/* ============================================================
   GigaBizZone — Homepage: header, footer, sections 4.1–4.12
   ============================================================ */

/* --- Shared section heading --------------------------------- */
.section-head {
  font-size: var(--text-2xl);
  max-width: 18ch;
}
.section-head--center { margin-inline: auto; text-align: center; max-width: 22ch; }

@media (min-width: 768px) {
  .section-head { font-size: var(--text-3xl); }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background var(--dur-mid) var(--ease),
              box-shadow var(--dur-mid) var(--ease),
              border-color var(--dur-mid) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header[data-state="top"]    { background: transparent; }
.site-header[data-state="solid"]  {
  background: var(--cream);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(0, 96, 109, 0.05);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img {
  height: 60px;          /* matches the footer logo height */
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.nav-desktop { display: none; }
.nav-desktop__list { display: flex; align-items: center; gap: var(--space-5); }
.nav-desktop__list a,
.nav-mega-trigger {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav-desktop__list a:hover,
.nav-mega-trigger:hover,
.nav-mega-trigger[aria-expanded="true"] { color: var(--coral); }

.site-header__actions { display: none; align-items: center; gap: var(--space-4); }
.site-header__call {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease);
}
.site-header__call:hover { color: var(--coral); }

/* Mega-menu */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 96, 109, 0.12);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              visibility var(--dur-fast);
}
.has-mega:hover .mega,
.has-mega:focus-within .mega,
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega__inner .eyebrow { margin-bottom: 16px; }
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.mega__grid--three { grid-template-columns: 1fr 1fr; }
.mega__grid a {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 4px;
  transition: background var(--dur-fast) var(--ease);
}
.mega__grid a:hover { background: var(--cream-deep); }
.mega__grid strong { font-weight: 500; color: var(--teal-deep); }
.mega__grid span { font-size: 0.8125rem; color: var(--ink-light); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal-deep);
  margin-inline: auto;
  transition: transform var(--dur-fast) var(--ease),
              opacity var(--dur-fast) var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  z-index: 1100;
  background: var(--cream);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 100px 28px 40px;
}
.mobile-nav__panel a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__panel a.btn { border: none; margin-top: 20px; color: var(--cream); }
.mobile-nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(26, 43, 48, 0.4);
}

/* ============================================================
   4.1 HERO
   ============================================================ */
/* extra top padding so hero content clears the fixed 76px header */
.hero { background: var(--cream); padding-top: 124px; }
@media (min-width: 768px) { .hero { padding-top: 152px; } }
.hero__grid { align-items: center; row-gap: var(--space-7); }
.hero__copy { grid-column: 1 / -1; }
.hero__ticker { grid-column: 1 / -1; }

.hero__eyebrow { margin-bottom: 20px; }
.hero__headline {
  font-size: 2.5rem;            /* 40px mobile */
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__line { display: block; }
.hero__line:last-child { color: var(--coral); }
.hero__subhead {
  margin-top: var(--space-5);
  max-width: 36ch;
  font-size: 1.125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.hero__trust {
  margin-top: var(--space-5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.9;
}

/* Outcomes ticker */
.ticker {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.ticker__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
}
.ticker__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.ticker__viewport { height: 264px; overflow: hidden; position: relative; }
.ticker__track { display: flex; flex-direction: column; }
.ticker__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
}
.ticker__time {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-light);
}
.ticker__action {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.4;
}
.ticker__tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--teal-mid);
}

/* Hero load animation */
.hero__line,
.hero__subhead,
.hero__cta,
.hero__trust,
.hero__eyebrow { will-change: opacity, transform; }
.js-anim .hero__eyebrow,
.js-anim .hero__line,
.js-anim .hero__subhead,
.js-anim .hero__cta,
.js-anim .hero__trust {
  opacity: 0;
  transform: translateY(30px);
}
.js-anim .hero-in {
  animation: heroUp 700ms var(--ease) forwards;
}
@keyframes heroUp {
  to { opacity: 1; transform: none; }
}

/* ============================================================
   4.2 PROBLEM
   ============================================================ */
.problem__intro { max-width: 720px; }
.problem__headline {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.problem__sub {
  font-size: 1.25rem;
  color: var(--ink-muted);
  max-width: 580px;
  line-height: 1.5;
}
.problem__grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-7);
}
.problem__num { font-size: var(--text-4xl); display: block; }
.problem__col-head {
  font-size: 1.375rem;
  font-weight: 500;
  margin: var(--space-3) 0 var(--space-3);
  line-height: 1.15;
}
.problem__col p { font-size: 1rem; color: var(--ink-muted); }

@media (min-width: 768px) {
  .problem__headline { font-size: var(--text-3xl); }
  .problem__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
}

/* ============================================================
   4.3 OPERATING THESIS
   ============================================================ */
.thesis {
  background: var(--cream-deep);
  padding-block: 96px;
  text-align: center;
}
.thesis__quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--teal-deep);
  max-width: 1000px;
  margin-inline: auto;
}
.thesis__line { display: block; }
.thesis__line + .thesis__line { margin-top: 0.4em; }
.thesis__attr {
  margin-top: var(--space-6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (min-width: 768px) {
  .thesis { padding-block: 160px; }
  .thesis__quote { font-size: 3.5rem; }
}

/* ============================================================
   4.4 HOW IT WORKS
   ============================================================ */
.how__head { margin-bottom: var(--space-7); }
.how__grid { display: grid; gap: var(--space-4); }
.how__card { display: flex; flex-direction: column; }
.how__day {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
}
.how__title {
  font-size: var(--text-xl);
  font-weight: 500;
  margin: var(--space-3) 0 var(--space-3);
}
.how__card p { font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.55; }
@media (min-width: 768px) {
  .how__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   4.5 VERTICAL BRANDS
   ============================================================ */
.verticals { background: var(--cream-deep); }
.verticals__head { margin-bottom: var(--space-7); }
.verticals__sub {
  margin-top: var(--space-4);
  max-width: 720px;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.verticals__grid { display: grid; gap: var(--space-4); }

.vcard { display: flex; flex-direction: column; }
.vcard__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
}
.vcard__industry {
  font-size: 1.75rem;
  font-weight: 500;
  margin-top: var(--space-2);
}
.vcard__market {
  font-size: 0.875rem;
  color: var(--ink-light);
  margin-top: 4px;
}
.vcard__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-top: var(--space-3);
  line-height: 1.55;
}
.vcard__stat {
  margin-top: auto;
  padding-top: var(--space-5);
}
.vcard__num { font-size: 2.25rem; display: block; }
.vcard__label {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.vcard__link { align-self: flex-end; margin-top: var(--space-4); }

@media (min-width: 600px) {
  .verticals__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .verticals__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   4.6 NINE SERVICE LINES
   ============================================================ */
.services__head { margin-bottom: var(--space-6); }
.services__list { border-top: 1px solid var(--line); }
.services__row { border-bottom: 1px solid var(--line); }
.services__row a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name arrow"
    "num desc arrow";
  align-items: center;
  column-gap: var(--space-4);
  padding: var(--space-4);
  margin-inline: calc(-1 * var(--space-4));
  transition: background var(--dur-fast) var(--ease);
}
.services__row a:hover { background: var(--cream-deep); }
.services__num {
  grid-area: num;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: color var(--dur-fast) var(--ease);
}
.services__row a:hover .services__num { color: var(--coral); }
.services__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--teal-deep);
}
.services__desc {
  grid-area: desc;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.services__arrow {
  grid-area: arrow;
  color: var(--teal-deep);
  font-size: 1.25rem;
  transition: transform var(--dur-fast) var(--ease);
}
.services__row a:hover .services__arrow { transform: translateX(4px); color: var(--coral); }

@media (min-width: 900px) {
  .services__row a {
    grid-template-columns: 64px 30% 1fr auto;
    grid-template-areas: "num name desc arrow";
  }
  .services__num { font-size: 2.25rem; }
  .services__name { font-size: 1.5rem; }
  .services__desc { margin-top: 0; font-size: 1rem; }
}

/* ============================================================
   4.7 CONFIDENCE 30 GUARANTEE
   ============================================================ */
.guarantee { background: var(--teal-deep); color: var(--cream); }
.guarantee__inner { max-width: 1000px; margin-inline: auto; text-align: center; }
.guarantee__headline {
  color: var(--cream);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
  max-width: 16ch;
  margin-inline: auto;
}
.guarantee__body {
  margin-top: var(--space-5);
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.1875rem;
  color: rgba(250, 246, 240, 0.9);
}
.guarantee__cols {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-8);
  text-align: left;
}
.guarantee__col-head {
  color: var(--teal-light);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.guarantee__col p { color: rgba(250, 246, 240, 0.85); font-size: 1rem; }
.guarantee__cta { margin-top: var(--space-7); }

@media (min-width: 768px) {
  .guarantee__headline { font-size: 3.5rem; }
  .guarantee__cols { grid-template-columns: 1fr 1fr; gap: var(--space-7); }
}

/* ============================================================
   4.8 CONFIGURATOR PREVIEW
   ============================================================ */
.preview__grid { align-items: center; row-gap: var(--space-7); }
.preview__copy { grid-column: 1 / -1; }
.preview__widget { grid-column: 1 / -1; }
.preview__headline {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.preview__body {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
  max-width: 42ch;
}
@media (min-width: 768px) {
  .preview__headline { font-size: 2.25rem; }
}

/* ============================================================
   4.9 OPERATING COMPANY
   ============================================================ */
.company { background: var(--cream-deep); }
.company__grid { row-gap: var(--space-7); }
.company__media { grid-column: 1 / -1; }
.company__copy { grid-column: 1 / -1; }

.company__photo {
  display: block;
  width: 100%;
  max-width: 320px;        /* slight bump from 280 so the face reads clearly */
  height: auto;            /* natural aspect — no cropping, ever */
  border-radius: 6px;
}

/* Homepage variant: founder block removed, company narrative spans the full grid */
.company__copy--full { grid-column: 1 / -1; max-width: 880px; }
.company__copy--full .company__headline { max-width: 22ch; }
.company__id { margin-top: var(--space-4); }
.company__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal-deep);
}
.company__role { font-size: 0.9375rem; color: var(--ink-muted); }
.company__meta { margin-top: var(--space-2); font-size: 0.875rem; color: var(--ink-light); }

.company__headline {
  font-size: var(--text-2xl);
  margin: var(--space-3) 0 var(--space-5);
}
.company__para { color: var(--ink); margin-bottom: var(--space-4); }
.company__badges {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .company__headline { font-size: var(--text-3xl); }
  .company__badges { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .company__media { grid-column: 1 / 6; }
  .company__copy  { grid-column: 6 / -1; }
  /* Homepage variant: founder block removed — narrative spans full grid */
  .company__copy.company__copy--full { grid-column: 1 / -1; max-width: 880px; }
}

/* ============================================================
   4.10 WHY NOW
   ============================================================ */
.why__head { margin-bottom: var(--space-7); }
.why__sub {
  margin: var(--space-4) auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.125rem;
  color: var(--ink-muted);
}
.why__grid { display: grid; gap: var(--space-5); }
.why__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: var(--space-5);
}
.why__num { font-size: var(--text-4xl); display: block; }
.why__title {
  font-size: var(--text-xl);
  font-weight: 500;
  margin: var(--space-2) 0 var(--space-3);
}
.why__card p { font-size: 1rem; color: var(--ink-muted); }
@media (min-width: 768px) {
  .why__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* ============================================================
   4.11 FINAL CTA / AUDIENCE SPLIT
   ============================================================ */
.finalcta { background: var(--teal-deep); }
.finalcta__headline {
  color: var(--cream);
  font-weight: 400;
  text-align: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-7);
}
.finalcta__grid { display: grid; gap: var(--space-6); }
.finalcta__col { display: flex; flex-direction: column; }
.finalcta__col-head {
  color: var(--cream);
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.finalcta__col p {
  color: rgba(250, 246, 240, 0.8);
  font-size: 0.9375rem;
  margin-bottom: var(--space-5);
  flex: 1;
}
.finalcta__col .btn { align-self: flex-start; }
@media (min-width: 768px) {
  .finalcta__headline { font-size: var(--text-3xl); }
  .finalcta__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #04373E; color: rgba(250, 246, 240, 0.85); }
.site-footer__grid { padding-block: var(--space-8) var(--space-7); row-gap: var(--space-6); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__col   { grid-column: 1 / -1; }

.site-footer__brand img {
  height: 60px;          /* horizontal wordmark on the dark footer */
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
  margin-bottom: var(--space-3);
}
.site-footer__tagline { margin-top: var(--space-3); max-width: 30ch; }
.site-footer__op,
.site-footer__contact {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  line-height: 1.7;
}
.site-footer__contact a:hover { color: var(--teal-light); }

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-4);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a {
  font-size: 0.9375rem;
  transition: color var(--dur-fast) var(--ease);
}
.site-footer__col a:hover { color: var(--cream); }

.site-footer__bar {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-block: var(--space-5);
}
.site-footer__bar-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.site-footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-footer__compliance li {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
}
.site-footer__legal,
.site-footer__note { font-size: 0.8125rem; color: rgba(250, 246, 240, 0.6); }
.site-footer__legal a:hover { color: var(--cream); }

/* Four columns in a single row at >=900px.
   nth-child counts ALL grid children (the brand <div> is :nth-child(1),
   the three <nav>s are :nth-child(2,3,4)) — this is more reliable than
   nth-of-type, which counts only same-tag siblings. */
@media (min-width: 900px) {
  .site-footer__brand               { grid-column: 1 / 4;  }   /* brand: 3 cols */
  .site-footer__col:nth-child(2)    { grid-column: 4 / 7;  }   /* Industries */
  .site-footer__col:nth-child(3)    { grid-column: 7 / 10; }   /* Capabilities */
  .site-footer__col:nth-child(4)    { grid-column: 10 / -1; }  /* Company */

  .site-footer__bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ============================================================
   DESKTOP NAV VISIBILITY
   ============================================================ */
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .site-header__actions { display: flex; }
  .hamburger { display: none; }
}

/* ============================================================
   HERO / PREVIEW desktop asymmetry
   ============================================================ */
@media (min-width: 960px) {
  .hero__copy   { grid-column: 1 / 9; }
  .hero__ticker { grid-column: 9 / -1; }
  /* Ticker fills the hero column on desktop, but capped so it
     never drives the hero section taller than the headline column.
     Roughly 25% shorter than the previous unbounded stretch. */
  .hero__grid   { align-items: stretch; }
  .hero__ticker { display: flex; flex-direction: column; align-self: stretch; }
  .hero__ticker .ticker { flex: 0 1 auto; display: flex; flex-direction: column; }
  .hero__ticker .ticker__viewport { flex: 1 1 auto; height: auto; min-height: 260px; max-height: 360px; }
  .hero__headline { font-size: 3.5rem; }
  .preview__copy   { grid-column: 1 / 6; }
  .preview__widget { grid-column: 6 / -1; }
}
@media (min-width: 1200px) {
  .hero__headline { font-size: var(--text-5xl); }
}
