/* =====================================================
   VINCITORE DESIGN -- ONLINE / DIGITAL PROJECT PAGE
   ===================================================== */

/* ── SHARED SECTION STYLES ─────────────────────────── */
.online-section {
  padding: 5rem 0;
  background: var(--white);
  border-top: 1px solid var(--light-grey);
}

.online-section--alt {
  background: var(--off-white);
}

.online-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin-bottom: 2rem;
}

.online-section-title--center {
  text-align: center;
  margin-bottom: 3rem;
}

.online-section-intro {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 3rem;
}

.online-lead {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.online-text-col p {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: .85rem;
}
.online-text-col p strong { font-weight: 600; color: var(--text-dark); }


/* ── CONTENT SOLUTIONS LAYOUT ──────────────────────── */
.online-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: start;
}

.online-text-col {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

/* Feature bullet list */
.online-feature-list {
  list-style: none;
  padding: 0;
  margin: .5rem 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.online-feature-list li {
  font-size: .88rem;
  color: var(--text-body);
  line-height: 1.6;
  padding-left: 1.4rem;
  position: relative;
}

.online-feature-list li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .8rem;
}

/* 16:9 video embed */
.online-video-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* NOT sticky — prevents column from scrolling independently */
}

.online-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
  border: 1px solid var(--light-grey);
}

.online-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Secondary image — 750x422px, sits below hero video with padding */
.online-secondary-img {
  width: 100%;
  padding-top: .5rem;            /* adjustable — increase for more space */
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.online-secondary-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.online-secondary-fallback {
  width: 100%;
  aspect-ratio: 750 / 422;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--text-muted);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  border-radius: var(--radius-lg);
}

/* Inline pull quote below the secondary image */
.online-inline-pullquote {
  border-left: 2px solid var(--gold);
  padding: .85rem 0 .85rem 1.25rem;
}
.online-inline-pullquote p {
  font-size: .92rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-dark);
  line-height: 1.72;
  margin-bottom: .6rem;
}
.online-inline-pullquote cite {
  font-size: .65rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

.online-video-caption {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}


/* ── BROWSER FRAME MOCKUPS ─────────────────────────── */
.site-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.site-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform .3s var(--ease);
}
.site-card:hover { transform: translateY(-4px); }

/* Browser chrome frame */
.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--mid-grey);
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
  background: #f0f0f0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: #e8e8e8;
  border-bottom: 1px solid #d8d8d8;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  flex: 1;
  font-size: .65rem;
  font-weight: 400;
  color: #777;
  letter-spacing: .02em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 100px;
  padding: .2rem .75rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-screen {
  aspect-ratio: 16 / 10;
  background: var(--light-grey);
  overflow: hidden;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}
.site-card:hover .browser-screen img { transform: scale(1.02); }

.screen-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--text-muted);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

/* Site card info */
.site-card-info {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.site-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: -.01em;
}

.site-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.site-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
  width: fit-content;
  margin-top: .25rem;
}
.site-card-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}


/* ── SOCIAL MEDIA POSTS ────────────────────────────── */
.social-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.social-post-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

/* Phone frame around social post — fully fluid */
.phone-frame {
  width: 100%;
  max-width: 320px;              /* comfortable cap on desktop */
  background: transparent;       /* remove dark background */
  border: 1px solid var(--mid-grey);  /* hairline border */
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);  /* softer shadow */
  margin: 0 auto;
}

.phone-screen {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 684 / 576;       /* matches your image dimensions */
  background: var(--light-grey);
  width: 100%;                   /* always fills the phone frame */
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.social-post-card:hover .phone-screen img { transform: scale(1.03); }

.social-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey);
  color: var(--text-muted);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

.social-post-caption {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: .05em;
  line-height: 1.5;
  width: 100%;
}


/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-showcase-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .online-section-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .online-video-col {
    order: -1;            /* video appears above text on mobile */
  }
  /* Secondary image and pull quote hidden on mobile */
  .online-secondary-img,
  .online-inline-pullquote {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-showcase-grid { grid-template-columns: 1fr; }
  .social-posts-grid  { grid-template-columns: 1fr; gap: 2rem; }
  /* Phone frame fills full column width on mobile — no max-width cap */
  .phone-frame { max-width: 100%; }
}

@media (max-width: 480px) {
  .online-pullquote p { font-size: 1rem; }
}