/* AQF BUILD VERSION: clients.css landing-v23-phone-final-audit | 2026-06-29 | Phone hero/story archive/CTA/footer responsive fixes; styles.css and HTML unchanged */

.client-stories-page {
  --client-blue: #00AEEF;
  --client-orange: #F7931F;
  --client-navy: #000033;
  --client-ink: #071E2D;
  --client-sand: #f6f1e8;
  --client-sand-deep: #efe4d0;
  --client-aqua-soft: #e7f9fc;
  --client-serif: "Libre Baskerville", Georgia, serif;
  --client-sans: "Montserrat", Arial, sans-serif;
  background: #fff;
  color: var(--client-ink);
}

.client-stories-page h1,
.client-stories-page h2,
.client-stories-page h3 { font-family: var(--client-serif); letter-spacing: -0.035em; }
.client-stories-page p,
.client-stories-page a,
.client-stories-page span,
.client-stories-page .client-label { font-family: var(--client-sans); }

.client-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--client-orange);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.15;
  text-transform: uppercase;
}
/* Non-hero section labels intentionally do not use the blue line accent. */
.client-section { padding: clamp(70px, 8vw, 104px) 0; }

/* HERO */
.client-hero {
  position: relative;
  width: 100%;
  min-height: 650px;
  background-color: var(--client-navy);
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}

/* HERO IMAGE LAYER
   Section: Client Stories Hero
   Purpose: Uses the approved Figma/screenshot composition with the image shifted right. */
.client-hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  display: block;
  z-index: 1;
}

/* HERO GRADIENT OVERLAY
   Section: Client Stories Hero
   Purpose: Blends both image edges into dark navy while keeping the subject area readable. */
.client-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 51, 0.38) 0%,
      rgba(0, 0, 51, 0) 13%,
      rgba(0, 0, 51, 0) 84%,
      rgba(0, 0, 51, 0.42) 100%
    ),
    linear-gradient(
      to right,
      #000033 0%,
      #000033 25%,
      rgba(0, 0, 51, 0.94) 31%,
      rgba(0, 0, 51, 0.70) 39%,
      rgba(0, 0, 51, 0.22) 50%,
      rgba(0, 0, 51, 0.02) 62%,
      rgba(0, 0, 51, 0.02) 74%,
      rgba(0, 0, 51, 0.22) 88%,
      rgba(0, 0, 51, 0.56) 100%
    );
  pointer-events: none;
}

.client-hero__inner {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  min-height: 650px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
}

.client-hero__content {
  max-width: 560px;
  padding: 88px 0;
}

.client-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  color: var(--client-orange);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  line-height: 1.2;
  text-transform: uppercase;
}

.client-hero-eyebrow span {
  display: inline-block;
  width: 38px;
  height: 2px;
  background: var(--client-blue);
  flex-shrink: 0;
}

.client-hero h1 {
  max-width: 560px;
  margin: 0 0 30px;
  color: #fff;
  font-size: 52px;
  font-weight: 400;
  line-height: 1.10;
  letter-spacing: -0.015em;
  text-shadow: 0 8px 30px rgba(0,0,51,.44);
}

.client-hero-copy {
  max-width: 490px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 1.03rem;
  line-height: 1.72;
  font-weight: 400;
}

/* ARCHIVE */
.client-archive {
  background:
    radial-gradient(circle at 16% 8%, rgba(0,174,239,.18), transparent 32%),
    radial-gradient(circle at 85% 76%, rgba(247,147,31,.10), transparent 28%),
    linear-gradient(180deg, #e7f9fc 0%, #f4fbfd 24%, #fbf9f2 56%, var(--client-sand) 100%);
}
.client-section-head { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.client-section-head .client-label { justify-content: center; }
.client-section-head h2 { max-width: 760px; margin: 0 auto; color: var(--client-navy); font-size: clamp(1.9rem, 3.25vw, 3.35rem); line-height: 1.12; }
.client-section-head p:not(.client-label) { max-width: 820px; margin: 20px auto 0; color: rgba(7,30,45,.70); font-size: 1.02rem; line-height: 1.78; font-weight: 600; }
.client-story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.client-story-card { display: flex; flex-direction: column; height: 100%; min-height: 520px; overflow: hidden; border-radius: 22px; background: rgba(255,255,255,.97); border: 1px solid rgba(7,30,45,.08); box-shadow: 0 24px 60px rgba(7,30,45,.10); text-decoration: none; color: inherit; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.client-story-card:hover { transform: translateY(-3px); border-color: rgba(0,174,239,.25); box-shadow: 0 30px 68px rgba(7,30,45,.14); }
.client-story-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--client-navy); flex: 0 0 auto; }
.client-story-image::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(0deg, rgba(0,0,51,.40), rgba(0,0,51,0)); }
.client-story-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.02) contrast(1.02); transition: transform 240ms ease; }
.client-story-card:hover .client-story-image img { transform: scale(1.025); }
.client-story-body { display: flex; flex-direction: column; flex: 1; padding: 24px 22px 26px; min-height: 290px; }
.client-story-category { display: block; min-height: 2.4em; margin: 0 0 12px; color: var(--client-orange); font-size: .67rem; font-weight: 900; letter-spacing: .115em; line-height: 1.35; text-transform: uppercase; }
.client-story-card h3 { margin: 0 0 12px; color: var(--client-navy); font-size: clamp(1.08rem, 1.24vw, 1.28rem); line-height: 1.28; }
.client-story-card p { margin: 0; color: rgba(7,30,45,.68); font-size: .92rem; line-height: 1.68; font-weight: 600; }
.client-story-link { display: inline-flex; align-items: center; margin-top: auto; padding-top: 22px; color: var(--client-navy); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; transition: color 160ms ease, transform 160ms ease; }
.client-story-card:hover .client-story-link { color: var(--client-orange); transform: translateX(2px); }

/* CTA */
/* CTA SECTION HEIGHT REFINEMENT
   Section: Client Stories CTA
   Purpose: Reduces excess vertical space above and below the centered CTA. */
.client-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 5vw, 76px) 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(0,0,51,.44), rgba(0,0,51,.28)),
    url("../images/client-stories/cta-underwater.jpg") center 33% / cover no-repeat;
}
.client-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, rgba(0,0,51,.58), rgba(0,0,51,.22) 34%, rgba(0,0,51,0) 58%),
    linear-gradient(
      90deg,
      rgba(0,0,51,.52) 0%,
      rgba(0,0,51,.32) 25%,
      rgba(0,0,51,.20) 50%,
      rgba(0,0,51,.32) 75%,
      rgba(0,0,51,.52) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0,0,51,.14) 0%,
      rgba(0,0,51,0) 42%,
      rgba(0,0,51,.34) 100%
    );
  pointer-events: none;
}
.client-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 18%, rgba(255,255,255,.18), rgba(255,255,255,0) 25%),
    radial-gradient(circle at 16% 60%, rgba(0,174,239,.14), rgba(0,174,239,0) 34%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* CTA CENTERED EDITORIAL REFINEMENT
   Section: Client Stories CTA
   Purpose: Centers the CTA message while reducing inner vertical spacing. */
.client-cta-box {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 3vw, 36px) 0;
  border-radius: 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.client-cta .client-label {
  justify-content: center;
}
.client-cta h2 {
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 3.45rem);
  line-height: 1.12;
}
.client-cta p:not(.client-label) {
  max-width: 760px;
  margin: 20px auto 30px;
  color: rgba(255,255,255,.88);
  font-size: 1.02rem;
  line-height: 1.76;
  font-weight: 600;
}
.client-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 16px 26px;
  border: 1px solid rgba(255,255,255,.68);
  color: var(--client-orange);
  background: rgba(0,0,51,.10);
  font-family: var(--client-sans);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.client-cta-link span {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--client-blue);
  transition: width 180ms ease, background 160ms ease;
}
.client-cta-link:hover {
  border-color: var(--client-orange);
  color: #fff;
  background: rgba(255,255,255,.08);
}
.client-cta-link:hover span {
  width: 48px;
  background: var(--client-orange);
}

.client-stories-page .footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1100px) {
  .client-hero__inner {
    padding: 0 48px;
  }

  .client-hero__image {
    width: 75%;
  }

  .client-hero h1 {
    font-size: 44px;
  }

  .client-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-story-card {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .client-hero {
    min-height: 520px;
  }

  .client-hero__inner {
    min-height: 520px;
    padding: 0 28px;
  }

  .client-hero__image {
    width: 100%;
    object-position: 60% center;
  }

  .client-hero__overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,51,.55) 0%,
        rgba(0,0,51,0) 15%,
        rgba(0,0,51,0) 80%,
        rgba(0,0,51,.65) 100%
      ),
      linear-gradient(
        to right,
        #000033 0%,
        rgba(0,0,51,.97) 20%,
        rgba(0,0,51,.82) 40%,
        rgba(0,0,51,.45) 65%,
        rgba(0,0,51,.55) 100%
      );
  }

  .client-hero__content {
    max-width: 380px;
    padding: 60px 0;
  }

  .client-hero h1 {
    font-size: 36px;
  }

  .client-hero-copy {
    font-size: .94rem;
    line-height: 1.68;
  }

  .client-section {
    padding: 64px 0;
  }

  .client-section-head {
    margin-bottom: 32px;
  }

  .client-story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .client-story-card {
    min-height: auto;
  }

  .client-story-body {
    padding: 22px 20px 24px;
    min-height: auto;
  }

  .client-story-category {
    min-height: auto;
  }

  .client-cta-box {
    max-width: 100%;
    padding: 24px 0;
    border-radius: 0;
  }
}

@media (max-width: 430px) {
  .client-hero {
    min-height: 500px;
  }

  .client-hero__inner {
    min-height: 500px;
    padding: 0 24px;
  }

  .client-hero__content {
    padding: 52px 0;
  }

  .client-hero h1 {
    font-size: clamp(1.82rem, 9.4vw, 2.45rem);
  }

  .client-hero-eyebrow {
    font-size: .64rem;
    gap: 10px;
  }

  .client-hero-eyebrow span {
    width: 28px;
  }

  .client-section-head h2,
  .client-cta h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .client-section-head p:not(.client-label),
  .client-cta p:not(.client-label) {
    font-size: .94rem;
    line-height: 1.68;
  }
}

/* PHONE RESPONSIVE FINAL AUDIT FIX
   Section: Client Stories phone portrait/landscape
   Purpose: Creates a true phone layout: image-led hero, compact story archive rows, clean CTA, contained footer. Desktop and iPad rules remain untouched. */
@media (max-width: 680px) {
  .client-stories-page .site-header {
    position: static;
  }

  .client-stories-page .client-hero {
    display: block;
    min-height: auto;
    background: var(--client-navy);
  }

  .client-stories-page .client-hero__image {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: clamp(210px, 58vw, 260px);
    object-fit: cover;
    object-position: 58% center;
    opacity: 1;
    z-index: 1;
  }

  .client-stories-page .client-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: clamp(210px, 58vw, 260px);
    z-index: 2;
    background:
      linear-gradient(180deg, rgba(0,0,51,.10) 0%, rgba(0,0,51,.18) 54%, rgba(0,0,51,.72) 100%),
      linear-gradient(90deg, rgba(0,0,51,.48) 0%, rgba(0,0,51,.05) 52%, rgba(0,0,51,.18) 100%);
  }

  .client-stories-page .client-hero__inner {
    min-height: auto;
    max-width: 100%;
    padding: 34px 24px 46px;
    display: block;
  }

  .client-stories-page .client-hero__content {
    max-width: 360px;
    padding: 0;
    margin: 0 auto;
    text-align: left;
  }

  .client-stories-page .client-hero-eyebrow {
    margin-bottom: 18px;
    font-size: .62rem;
    gap: 10px;
  }

  .client-stories-page .client-hero-eyebrow span {
    width: 28px;
  }

  .client-stories-page .client-hero h1 {
    max-width: 340px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 10vw, 2.72rem);
    line-height: 1.08;
  }

  .client-stories-page .client-hero-copy {
    max-width: 340px;
    font-size: .92rem;
    line-height: 1.65;
  }

  .client-stories-page .client-section {
    padding: 54px 0;
  }

  .client-stories-page .client-section-head {
    max-width: 350px;
    margin-bottom: 30px;
  }

  .client-stories-page .client-section-head h2 {
    font-size: clamp(1.55rem, 7.4vw, 2rem);
    line-height: 1.12;
  }

  .client-stories-page .client-section-head p:not(.client-label) {
    margin-top: 16px;
    font-size: .9rem;
    line-height: 1.62;
  }

  .client-stories-page .client-story-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .client-stories-page .client-story-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 0;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(7,30,45,.12);
  }

  .client-stories-page .client-story-image {
    height: 100%;
    min-height: 148px;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .client-stories-page .client-story-image::after {
    height: 18%;
    background: linear-gradient(0deg, rgba(0,0,51,.16), rgba(0,0,51,0));
  }

  .client-stories-page .client-story-image img {
    height: 100%;
    object-fit: cover;
  }

  .client-stories-page .client-story-body {
    min-height: 0;
    padding: 16px 15px 15px;
  }

  .client-stories-page .client-story-category {
    min-height: 0;
    margin-bottom: 8px;
    font-size: .56rem;
    line-height: 1.32;
    letter-spacing: .09em;
  }

  .client-stories-page .client-story-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.22;
  }

  .client-stories-page .client-story-card p {
    display: none;
  }

  .client-stories-page .client-story-link {
    margin-top: 0;
    padding-top: 6px;
    font-size: .62rem;
    letter-spacing: .10em;
  }

  .client-stories-page .client-cta {
    padding: 48px 0 52px;
    background-position: center 30%;
  }

  .client-stories-page .client-cta::before {
    background:
      radial-gradient(circle at 50% 54%, rgba(0,0,51,.62), rgba(0,0,51,.28) 38%, rgba(0,0,51,0) 62%),
      linear-gradient(90deg, rgba(0,0,51,.48) 0%, rgba(0,0,51,.22) 50%, rgba(0,0,51,.48) 100%),
      linear-gradient(180deg, rgba(0,0,51,.18) 0%, rgba(0,0,51,0) 42%, rgba(0,0,51,.42) 100%);
  }

  .client-stories-page .client-cta-box {
    max-width: 350px;
    padding: 0;
  }

  .client-stories-page .client-cta .client-label {
    justify-content: center;
    margin-bottom: 14px;
  }

  .client-stories-page .client-cta h2 {
    max-width: 340px;
    font-size: clamp(1.55rem, 7.6vw, 2.05rem);
    line-height: 1.14;
  }

  .client-stories-page .client-cta p:not(.client-label) {
    max-width: 340px;
    margin: 16px auto 22px;
    font-size: .9rem;
    line-height: 1.62;
  }

  .client-stories-page .client-cta-link {
    width: min(100%, 310px);
    min-height: 48px;
    padding: 14px 18px;
    gap: 12px;
  }

  .client-stories-page .site-footer {
    overflow: hidden;
    background: var(--royal) !important;
    padding-top: 44px;
  }

  .client-stories-page .footer-grid {
    gap: 24px;
  }

  .client-stories-page .footer-logo-wrap {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
  }

  .client-stories-page .footer-logo-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }
}

/* PHONE LANDSCAPE NAV FINAL FIX
   Section: Client Stories navigation
   Purpose: Collapses the crowded full nav on phone landscape without changing desktop/iPad layouts. */
@media (min-width: 681px) and (max-width: 900px) {
  .client-stories-page .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .client-stories-page .brand-logo {
    width: 218px;
  }

  .client-stories-page .menu-toggle {
    display: inline-flex;
    width: 46px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,51,0.18);
    border-radius: 12px;
    background: var(--white);
    color: var(--royal);
    cursor: pointer;
    padding: 0;
  }

  .client-stories-page .menu-toggle span,
  .client-stories-page .menu-toggle span::before,
  .client-stories-page .menu-toggle span::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--royal);
    border-radius: 999px;
    position: relative;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .client-stories-page .menu-toggle span::before,
  .client-stories-page .menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .client-stories-page .menu-toggle span::before {
    top: -7px;
  }

  .client-stories-page .menu-toggle span::after {
    top: 7px;
  }

  .client-stories-page .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 4px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }

  .client-stories-page .main-nav.is-open {
    display: flex;
  }

  .client-stories-page .main-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    line-height: 1.25;
    padding: 10px 12px;
    border: 1px solid rgba(7, 30, 45, 0.10);
    border-radius: 12px;
    background: #ffffff;
  }

  .client-stories-page .nav-cta {
    background: var(--royal) !important;
    color: var(--white) !important;
    border: 1px solid var(--royal) !important;
    font-size: 0.74rem;
    font-weight: 700;
    box-shadow: none;
  }
}
