/* =========================================================
   ZALA CLEANING — Design System
   Signature element: the "clean sweep" divider — a thin
   gradient streak that mimics a squeegee wipe revealing
   clarity. Used at section transitions and under headlines.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- THEME 1: Deep Navy + Teal (default) ---------- */
:root,
[data-theme="navy-teal"] {
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --bg-card: #ffffff;
  --navy: #10263b;
  --navy-deep: #0a1a29;
  --teal: #1e8a83;
  --teal-deep: #146059;
  --teal-soft: #e6f2f1;
  --text: #17242e;
  --text-muted: #5c6b76;
  --border: #e3e8ea;
  --header-bg: rgba(255, 255, 255, 0.92);
  --hero-bg: var(--bg);
  --hero-text: var(--navy);
  --footer-bg: var(--navy-deep);
  --footer-text: #d9e2e6;
  --logo-src: url('../images/zala-mark.png');
}

/* ---------- THEME 2: Warm Neutral + Teal ---------- */
[data-theme="warm-neutral"] {
  --bg: #faf6ef;
  --bg-soft: #f2ece0;
  --bg-card: #ffffff;
  --navy: #1f2f3d;
  --navy-deep: #16232e;
  --teal: #2b8f80;
  --teal-deep: #1f6a5f;
  --teal-soft: #e9f1ea;
  --text: #24302c;
  --text-muted: #6b6357;
  --border: #e6ddc9;
  --header-bg: rgba(250, 246, 239, 0.92);
  --hero-bg: var(--bg-soft);
  --hero-text: var(--navy);
  --footer-bg: #23302a;
  --footer-text: #e4ddcd;
  --logo-src: url('../images/zala-mark.png');
}

/* ---------- THEME 3: Teal-Forward ---------- */
[data-theme="teal-forward"] {
  --bg: #ffffff;
  --bg-soft: #eef6f5;
  --bg-card: #ffffff;
  --navy: #0f2a3d;
  --navy-deep: #0a1e2c;
  --teal: #0e7c7b;
  --teal-deep: #0a5a59;
  --teal-soft: #dbeeec;
  --text: #14262c;
  --text-muted: #4d6265;
  --border: #d8e8e6;
  --header-bg: rgba(14, 124, 123, 0.94);
  --hero-bg: var(--teal-deep);
  --hero-text: #ffffff;
  --footer-bg: var(--navy-deep);
  --footer-text: #d9e2e6;
  --logo-src: url('../images/zala-mark-white.png');
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
[data-theme="teal-forward"] .hero h1 { color: #fff; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Signature: clean-sweep divider ---------- */
.section-sweep {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 15%, var(--border) 85%, transparent 100%);
}
.section-sweep::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--teal) 50%, transparent);
  opacity: 0.6;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-soft);
  padding: 8px 22px;
  border-radius: 40px;
  transition: background 0.2s ease;
}
.brand:hover { background: #d5ebe9; }
.brand img { height: 46px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
}
[data-theme="teal-forward"] .main-nav a { color: #fff; }
.main-nav a:hover { color: var(--teal-deep); }
[data-theme="teal-forward"] .main-nav a:hover { color: var(--teal-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 10px rgba(20, 96, 89, 0.25);
}
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(20, 96, 89, 0.32); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
[data-theme="teal-forward"] .btn-outline { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); }
[data-theme="teal-forward"] .btn-outline:hover { color: #fff; border-color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
[data-theme="teal-forward"] .mobile-toggle span { background: #fff; }
@media (min-width: 900px) { .mobile-toggle { display: none; } }
@media (max-width: 899px) { .main-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-bg);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.hero-inner-single {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
}
.hero-inner-single .hero-ctas { justify-content: center; }
.hero-inner-single .eyebrow { margin: 14px auto 18px; }
.hero-inner-single .hero-sub { margin-left: auto; margin-right: auto; }

.hero h1 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  color: var(--hero-text);
  margin-bottom: 0;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 34px;
}
[data-theme="teal-forward"] .hero-sub { color: rgba(255,255,255,0.82); }
@media (max-width: 860px) { .hero-sub { margin-left: auto; margin-right: auto; } }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-ctas { justify-content: center; } }

/* ---------- Hero entrance animation ---------- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(38px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(85vw); }
  to { opacity: 1; transform: translateX(0); }
}
.hero-inner-single h1 {
  opacity: 0;
  animation: heroSlideRight 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.15s;
}
.hero-inner-single .eyebrow,
.hero-inner-single .hero-sub,
.hero-inner-single .hero-ctas {
  opacity: 0;
  animation: heroFadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-inner-single .eyebrow { animation-delay: 0.75s; }
.hero-inner-single .hero-sub { animation-delay: 1.1s; }
.hero-inner-single .hero-ctas { animation-delay: 1.45s; }
@media (prefers-reduced-motion: reduce) {
  .hero-inner-single h1, .hero-inner-single .eyebrow, .hero-inner-single .hero-sub, .hero-inner-single .hero-ctas {
    animation: none;
    opacity: 1;
  }
}

/* ---------- Trust bar / value props ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 1.05rem; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px 34px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 38, 59, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--navy) 100%);
}
.value-card .value-number {
  font-family: 'Fraunces', serif;
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--teal-soft);
  line-height: 1;
  margin-bottom: 4px;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 38, 59, 0.12); }
.value-card h3 { font-size: 1.18rem; margin-bottom: 12px; text-align: center; }
.value-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Story / About ---------- */
.story {
  background: var(--bg-soft);
}
.story-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .story-inner { grid-template-columns: 1fr; } }
.story-copy p { color: var(--text-muted); margin-top: 16px; font-size: 1.03rem; }
.story-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

.story-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px;
}
.story-badge img { width: 100%; height: auto; }

/* ---------- Scenario cards ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) { .scenario-grid { grid-template-columns: 1fr; } }
.scenario-card {
  border-radius: 18px;
  padding: 36px 30px;
  background: var(--navy);
  color: #fff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.scenario-card:nth-child(2) { background: var(--teal-deep); }
.scenario-card:nth-child(3) { background: var(--navy-deep); }
.scenario-card .eyebrow { color: rgba(255,255,255,0.65); text-align: center; min-height: 2.4em; display: flex; align-items: flex-start; justify-content: center; }
.scenario-card h3 { color: #fff; font-size: 1.3rem; margin: 10px 0 0; min-height: 3rem; display: flex; align-items: flex-start; justify-content: center; text-align: center; }
.scenario-card p { color: rgba(255,255,255,0.82); font-size: 0.97rem; margin-top: 16px; text-align: center; }

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 50ch; margin: 16px auto 32px; font-size: 1.05rem; }

/* ---------- Sticky floating CTA (mobile-in-your-face) ---------- */
.floating-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
}
@media (max-width: 720px) {
  .floating-cta { left: 16px; right: 16px; bottom: 16px; }
  .floating-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h4 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { color: var(--footer-text); font-size: 0.95rem; opacity: 0.92; }
.footer-grid li { margin-bottom: 10px; }
.footer-logo img { height: 56px; margin-bottom: 14px; }
.footer-tagline { opacity: 0.7; margin-top: 10px; }
.footer-logo a { display: inline-block; transition: opacity 0.2s ease; }
.footer-logo a:hover { opacity: 0.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Scroll reveal animations ---------- */
.reveal, .reveal-scale {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-55vw); }
.reveal-right { transform: translateX(55vw); }
.reveal-scale { transform: scale(0.88); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
}
