/* ============================================================
   Tofra — layout.css
   Page chrome: header/nav, hero, footer, CTA band, drawer,
   breadcrumb, marquee, and responsive rules.
   ============================================================ */

/* ---- Header / nav ----------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height .22s ease, background .22s ease,
              box-shadow .22s ease, border-color .22s ease;
}
.site-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.nav__link { color: #fff; }
.nav__link:hover { color: #fff; opacity: .85; }
.nav__link[aria-current="page"] { color: var(--teal-bright); }

.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.burger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px;
}

/* solid state (after scroll) */
.site-header.is-solid {
  height: var(--header-h-solid);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: rgba(21, 59, 80, .08);
  box-shadow: 0 1px 2px rgba(21, 59, 80, .05), 0 8px 24px rgba(21, 59, 80, .06);
}
.site-header.is-solid .nav__link { color: var(--navy-deep); }
.site-header.is-solid .nav__link:hover { color: var(--teal); opacity: 1; }
.site-header.is-solid .nav__link[aria-current="page"] { color: var(--teal); }
.site-header.is-solid .burger { color: var(--navy-deep); }

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
  padding: 150px var(--gutter) 80px;
}
/* second ambient orb, drifting opposite the glow — pure decoration */
.hero::before {
  content: "";
  position: absolute;
  left: -160px; bottom: -180px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 139, 141, .28), transparent 70%);
  animation: tofra-drift-2 24s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero--home { padding-bottom: 88px; }
.hero--slim { padding: 150px var(--gutter) 72px; }
.hero--strip { padding: 130px var(--gutter) 40px; }
.hero__inner { position: relative; max-width: var(--container); margin: 0 auto; }

/* split layout (home / about): text + image */
.hero__grid {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* stats sitting on the dark hero must read as light, not navy */
.hero .stat__num { color: #fff; }
.hero .stat__label { color: var(--on-dark-dim); }

/* decorative radial glow */
.hero__glow {
  position: absolute;
  right: -160px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 199, 183, .20), transparent 68%);
  animation: tofra-drift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
/* keep hero content above the ambient orbs */
.hero__inner, .hero__grid { z-index: 1; }
.hero__scale { z-index: 1; }
/* left-edge calibration scale */
.hero__scale {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-left: 24px;
  opacity: .5;
  pointer-events: none;
}
.hero__scale span { height: 1px; display: block; background: rgba(255, 255, 255, .35); }
.hero__scale span:first-child, .hero__scale span:last-child { background: var(--teal-bright); }

/* hero image with floating stat badge */
.hero__figure { position: relative; }
.hero__image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a2230;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; }
.float-badge {
  position: absolute;
  left: -22px; bottom: 26px;
  display: flex; align-items: center; gap: 13px;
  background: #fff; color: var(--ink);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lift);
  animation: tofra-float 6s ease-in-out infinite;
}
.float-badge__label { font-size: 13px; color: var(--slate); font-weight: 600; }
.float-badge__value { font-size: 15px; font-weight: 700; color: var(--navy-deep); }

/* radial glow variant for navy content sections */
.glow-tr {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(32, 199, 183, .16), transparent 55%);
  transform-origin: 85% 15%;
  animation: tofra-breathe 12s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--on-dark-dim);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--on-dark-dim); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb__current { color: var(--teal-soft); }

/* ---- Trusted-by marquee ----------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: tofra-marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none;
  display: flex; align-items: center;
  padding: 0 40px;
  white-space: nowrap;
}
.marquee__item img {
  height: 30px; width: auto;
  object-fit: contain;
  filter: grayscale(1); opacity: .6;
}
.trusted-label {
  text-align: center;
  margin-bottom: 22px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate);
}

/* ---- CTA band --------------------------------------------- */
.cta-band {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 72px 64px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(125deg, #0B6E70 0%, #0F8B8D 50%, #159c98 100%);
  background-size: 170% 170%;
  animation: tofra-pan 18s ease infinite;
  box-shadow: 0 30px 60px rgba(15, 139, 141, .28);
}
.cta-band__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band__title { max-width: 640px; font-size: 38px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 14px; }
.cta-band__lead { max-width: 640px; font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.cta-band__blob {
  position: absolute;
  right: -80px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  animation: tofra-drift 18s ease-in-out infinite;
  pointer-events: none;
}
.cta-band__inner { z-index: 1; }
/* dark newsletter variant */
.cta-band--dark { background: var(--navy); padding: 64px; }

/* ---- Footer ----------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #fff; padding: 72px var(--gutter) 32px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__logo { height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.site-footer__blurb { font-size: 15px; line-height: 1.6; color: rgba(237, 242, 241, .68); max-width: 320px; margin-bottom: 22px; }
.footer-col__title {
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-soft); margin-bottom: 18px;
}
.footer-col__links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-col__links a { color: rgba(237, 242, 241, .78); }
.footer-col__links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: rgba(237, 242, 241, .78); }
.footer-contact a { color: rgba(237, 242, 241, .78); }
.footer-contact a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(237, 242, 241, .55);
}
.site-footer__bottom a { color: rgba(237, 242, 241, .55); }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__legal { display: flex; gap: 24px; }

/* footer newsletter inline form */
.subscribe { display: flex; gap: 10px; max-width: 340px; }
.subscribe__input {
  flex: 1; height: 48px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  padding: 0 16px;
  color: #fff;
  font-size: 15px;
  outline: none;
}
.subscribe__input::placeholder { color: rgba(237, 242, 241, .6); }
.subscribe__btn {
  height: 48px; padding: 0 20px;
  border: none; border-radius: var(--r);
  background: var(--teal); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.subscribe__btn:hover { background: var(--teal-hover); }

/* ---- Mobile drawer ---------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 46, 63, .5);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.drawer.is-open { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 340px);
  background: #fff;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer__panel { transition: none; }
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer__head img { height: 34px; }
.drawer__close { background: transparent; border: none; color: var(--navy-deep); padding: 6px; cursor: pointer; }
.drawer__links { display: flex; flex-direction: column; gap: 4px; font-size: 18px; font-weight: 600; }
.drawer__links a { color: var(--navy-deep); padding: 14px 8px; border-bottom: 1px solid var(--bg-alt); }
.drawer__links a[aria-current="page"] { color: var(--teal); }
.drawer .btn { margin-top: auto; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(4, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .site-header__cta { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { padding: 56px 40px; }
  .cta-band__title { font-size: 30px; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .section { padding: 68px 0; }
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .section-head__title, .cta-band__title { font-size: 28px; }
  .hero { padding-top: 128px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .float-badge { left: 12px; }
}
