/* ===========================================================================
   iQRC Client Demo — promo website stylesheet
   Light, clean, enterprise-calm climate / IoT theme.
   Brand: #1863DC / #0056A7 / accent #EE9023 / AI violet #7C5CFC
   Fonts: Inter + IBM Plex Mono
   ========================================================================== */

:root {
  /* Brand (authoritative) */
  --color-primary:        #1863DC;
  --color-primary-deep:   #0056A7;
  --color-accent:         #EE9023;
  --color-ai:             #7C5CFC;
  --color-savings:        #16A34A;

  /* Temperature status scale (data-viz / dividers / legend only) */
  --temp-cold:            #22C6E6;
  --temp-ok:              #2BB673;
  --temp-warm:            #EE9023;
  --temp-hot:             #E23B3B;
  --gradient-temp: linear-gradient(90deg,
      var(--temp-cold) 0%, var(--temp-ok) 38%,
      var(--temp-warm) 72%, var(--temp-hot) 100%);

  /* Surfaces / backgrounds (LIGHT theme) */
  --color-bg:             #F5F8FE;
  --color-bg-alt:         #EAF1FC;
  --color-surface:        #FFFFFF;
  --color-surface-ai:     #F1EEFF;
  --color-border:         #DCE6F5;

  /* Text */
  --color-text:           #0F1B2D;
  --color-text-secondary: #44566B;
  --color-text-muted:     #7C8BA0;
  --color-text-on-dark:   #FFFFFF;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  --gradient-ai:    linear-gradient(135deg, var(--color-ai) 0%, var(--color-primary) 100%);
  --gradient-hero:  linear-gradient(135deg, #1863DC 0%, #0056A7 60%, #003E7C 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(2,18,52,0.88) 0%, rgba(0,34,92,0.70) 100%);

  /* Radius */
  --radius-sm:   10px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,27,45,0.04), 0 1px 3px rgba(15,27,45,0.06);
  --shadow-md: 0 4px 12px rgba(15,27,45,0.06), 0 2px 6px rgba(15,27,45,0.05);
  --shadow-lg: 0 12px 32px rgba(24,99,220,0.10), 0 4px 12px rgba(15,27,45,0.06);
  --shadow-ai: 0 8px 28px rgba(124,92,252,0.18);
  --shadow-primary: 0 8px 24px rgba(24,99,220,0.28);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --container-max: 1200px;
  --section-pad-y: 5.5rem;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--color-text); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--color-text-secondary); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-pad-y) 0; position: relative; }
.section-alt { background: var(--color-bg-alt); }

/* ---------- Typographic helpers ---------- */
.section-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-sub {
  font-size: 1.075rem;
  color: var(--color-text-secondary);
  max-width: 640px;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-unit { font-family: var(--font-mono); color: var(--color-text-muted); font-weight: 500; }

/* Temperature scale divider tick */
.temp-rule {
  height: 4px; width: 88px; border-radius: var(--radius-pill);
  background: var(--gradient-temp);
  margin: 1.25rem auto 0;
}
.temp-rule.left { margin-left: 0; margin-right: auto; }

/* ---------- Sensor-dot texture (faint) ---------- */
.dot-grid::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(24,99,220,0.13) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* ===========================================================================
   Navigation — #5 Minimal top bar
   ========================================================================== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,248,254,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em;
  color: var(--color-text); text-decoration: none;
}
.brand-logo img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.brand-logo .brand-tag {
  font-family: var(--font-mono); font-weight: 500; font-size: .78rem;
  color: var(--color-text-muted); letter-spacing: 0;
}
.nav-links { display: none; gap: 1.75rem; align-items: center; }
.nav-links a { color: var(--color-text-secondary); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
@media (min-width: 860px) { .nav-links { display: flex; } }

[x-cloak] { display: none !important; }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; font-size: 1.25rem;
  background: var(--color-surface); color: var(--color-primary);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow-sm); line-height: 1;
}
.mobile-menu {
  display: flex; flex-direction: column; gap: .25rem;
  padding: .75rem 1.5rem 1.25rem;
  background: rgba(245,248,254,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.mobile-menu a { color: var(--color-text); font-weight: 600; font-size: 1rem; padding: .6rem .25rem; border-bottom: 1px solid var(--color-border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--color-primary); text-decoration: none; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}
@media (max-width: 859px) {
  /* Mobile/tablet top bar = brand + language switch + menu button only.
     The download CTA lives in the hero and the drawer to avoid crowding.
     Scoped past `.btn` (which also sets display) so the hide actually wins. */
  .nav-actions .nav-cta { display: none; }
  .nav-actions { gap: .5rem; flex-shrink: 0; } /* keep language + menu fully visible */
}
@media (max-width: 380px) {
  .brand-logo .brand-tag { display: none; } /* keep the bar on one line on tiny phones */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  line-height: 1; white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--gradient-brand); color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24,99,220,0.36); }
.btn-ghost {
  background: var(--color-surface); color: var(--color-primary);
  border-color: var(--color-border); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--color-primary-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.18); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ===========================================================================
   Hero — #3 Centered Typographic
   ========================================================================== */
.hero {
  position: relative;
  background: var(--gradient-hero);
  color: var(--color-text-on-dark);
  text-align: center;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('images/hero_bg.webp') center/cover no-repeat;
  opacity: .9;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-hero-overlay);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.2em; font-size: .74rem; font-weight: 500;
  color: #BFD6FF; margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--temp-ok); box-shadow: 0 0 0 4px rgba(43,182,115,0.25); }
.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.99; letter-spacing: -0.035em;
  margin: 0 auto 1.5rem; max-width: 16ch;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0,8,30,0.85), 0 0 50px rgba(0,8,30,0.6);
}
.hero-title .font-light { font-weight: 300; color: #DCE9FF; }
.hero-title .font-black { font-weight: 900; color: #FFFFFF; }
.hero-title .accent {
  background: linear-gradient(135deg, #7FC0FF 0%, #FFFFFF 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #DCE9FF; max-width: 620px; margin: 0 auto 2.25rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-note {
  margin-top: 1.75rem; font-family: var(--font-mono);
  font-size: .78rem; color: #9FBDEE; letter-spacing: .02em;
}
/* hero stat chips */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; justify-content: center;
  margin-top: 3rem;
}
.hero-stat { text-align: center; min-width: 120px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.hero-stat .lbl { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #BFD6FF; }

/* diagonal cut under hero */
.hero-cut {
  position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3;
  height: 60px; background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* ===========================================================================
   Features — #1 Cards in rows
   ========================================================================== */
.feature-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #C6D8F4; }
.feature-card.ai { background: var(--color-surface-ai); border-color: #DAD2FF; }
.feature-card.ai:hover { box-shadow: var(--shadow-ai); }
.feature-icon {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 14px; margin-bottom: 1rem;
}
.feature-icon-css {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
  background: rgba(24,99,220,0.10); color: var(--color-primary);
}
.feature-card.ai .feature-icon-css { background: rgba(124,92,252,0.12); color: var(--color-ai); }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: .35rem; }
.feature-card p { font-size: .96rem; margin-bottom: 0; }
.feature-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: .66rem; text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; padding: .25rem .6rem; border-radius: var(--radius-pill);
  margin-bottom: .85rem;
}
.feature-badge.ai { background: rgba(124,92,252,0.14); color: var(--color-ai); }

/* small icon-only mini cards row */
.mini-grid {
  display: grid; gap: 1rem; margin-top: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .mini-grid { grid-template-columns: repeat(4, 1fr); } }
.mini-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
}
.mini-card .mi { font-size: 1.4rem; }
.mini-card h4 { font-size: 1rem; font-weight: 600; margin: .5rem 0 .2rem; }
.mini-card p { font-size: .85rem; margin: 0; color: var(--color-text-muted); }

/* ---------- Highlight (savings) band ---------- */
.savings-band {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .savings-band { grid-template-columns: 1.1fr 1fr; } }
.savings-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.savings-stat {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.4rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.savings-stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--color-savings); }
.savings-stat .lbl { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); }
.savings-visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--gradient-hero);
}
.savings-visual img { width: 100%; height: 100%; object-fit: cover; max-height: 360px; }

/* ===========================================================================
   App preview — #5 Featured screenshot + thumbnails
   ========================================================================== */
.preview-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; margin-top: 2.5rem; }
.device-mockup {
  position: relative; width: 270px; max-width: 72vw;
  border-radius: 36px; padding: 12px;
  background: linear-gradient(155deg, #d7e2f4, #ffffff);
  box-shadow: var(--shadow-lg);
}
.device-mockup .screen {
  border-radius: 26px; overflow: hidden; background: #fff;
  border: 1px solid var(--color-border);
}
.device-mockup .screen img { width: 100%; display: block; }
.device-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 7px; border-radius: 4px; background: rgba(15,27,45,0.18); z-index: 3;
}
.thumb-strip { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.thumb {
  width: 56px; height: 121px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--color-border); cursor: pointer; background: #fff;
  transition: border-color .15s ease, transform .15s ease; padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--color-primary); transform: translateY(-2px); }
.preview-caption {
  font-family: var(--font-mono); font-size: .8rem; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ===========================================================================
   CTA section + #3 sticky footer bar
   ========================================================================== */
.cta-section {
  position: relative; overflow: hidden; text-align: center;
  background: var(--gradient-ai); color: #fff;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('images/cta_bg.webp') center/cover no-repeat; opacity: .85;
}
.cta-section::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(24,99,220,0.55), rgba(124,92,252,0.45));
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.cta-section p { color: #E7ECFF; max-width: 560px; margin: 0 auto 2rem; }
.cta-section .hero-cta { justify-content: center; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.25rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(15,27,45,0.08);
}
.sticky-cta .sc-text { font-weight: 600; font-size: .9rem; color: var(--color-text); }
.sticky-cta .sc-text span { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--color-text-muted); font-weight: 400; }
@media (min-width: 1000px) { .sticky-cta { display: flex; } }

/* ===========================================================================
   Footer — #5 Contact-heavy
   ========================================================================== */
.site-footer {
  background: #0B1A33; color: #C6D3E6;
  padding: 3.5rem 0 2rem;
}
.site-footer a { color: #C6D3E6; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .75rem; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; font-size: .92rem; }
.footer-note { font-size: .82rem; color: #7C8BA0; max-width: 42ch; margin-top: .75rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #7C8BA0;
}
.lang-pill {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.14); color: #C6D3E6;
}

/* ===========================================================================
   Content pages (privacy / terms / contact)
   ========================================================================== */
.page-header {
  background: var(--gradient-hero); color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px; opacity: .6;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.page-header p { color: #CFE0FF; margin: .5rem 0 0; font-family: var(--font-mono); font-size: .85rem; }

.legal {
  max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem 4rem;
  text-align: left;
}
.legal h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: .25rem; }
.legal h2 { font-size: 1.35rem; font-weight: 700; margin: 2.25rem 0 .6rem; letter-spacing: -0.01em; color: var(--color-primary-deep); }
.legal h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .4rem; }
.legal p, .legal li { color: var(--color-text-secondary); font-size: 1rem; }
.legal ul { padding-left: 1.25rem; margin: 0 0 1em; }
.legal li { margin-bottom: .5rem; }
.legal a { color: var(--color-primary); word-break: break-word; }
.legal > p:first-of-type + p { color: var(--color-text-muted); font-family: var(--font-mono); font-size: .85rem; }

/* ---------- Contact form — #1 centered ---------- */
.contact-card {
  max-width: 620px; margin: 0 auto; padding: 2.5rem;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); text-align: left;
}
.contact-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.contact-card form > div { margin-bottom: 1.25rem; }
.contact-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--color-text); }
.contact-card label span { font-weight: 400; color: var(--color-text-muted); }
.contact-card abbr { color: var(--color-accent); text-decoration: none; }
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  width: 100%; padding: .8rem 1rem; font-family: var(--font-sans); font-size: 1rem;
  color: var(--color-text); background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-card input:focus, .contact-card textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(24,99,220,0.15);
}
.contact-card input[type="file"] {
  width: 100%; font-size: .9rem; color: var(--color-text-secondary);
  padding: .6rem; background: var(--color-bg);
  border: 1px dashed var(--color-border); border-radius: var(--radius);
}
.contact-card button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; background: var(--gradient-brand); color: #fff;
  font-weight: 600; font-size: 1rem; padding: .9rem 1.5rem;
  border: none; border-radius: var(--radius); cursor: pointer; box-shadow: var(--shadow-primary);
  transition: transform .18s ease, box-shadow .18s ease;
}
.contact-card button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24,99,220,0.36); }
.contact-info {
  max-width: 760px; margin: 2.5rem auto 0;
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }
.contact-info-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
  text-align: left;
}
.contact-info-card .ci-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.contact-info-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.contact-info-card p { margin: 0 0 .35rem; font-size: .95rem; }
.contact-info-card .ci-note { font-size: .85rem; color: var(--color-text-muted); margin: 0; }

#form-success {
  text-align: center; padding: 2rem 1rem;
  background: rgba(43,182,115,0.08); border: 1px solid rgba(43,182,115,0.3);
  border-radius: var(--radius-lg);
}
#form-success h2 { color: var(--color-savings); }
[hidden] { display: none !important; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,18,36,0.92); display: none;
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem; color: #fff;
  font-size: 2rem; background: none; border: none; cursor: pointer; line-height: 1;
}

/* ===========================================================================
   Privacy acceptance button (Flutter bridge) — REQUIRED
   ========================================================================== */
.privacy-accept-btn {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem 1.25rem 1.5rem;
  background: linear-gradient(to top, var(--color-bg) 55%, rgba(245,248,254,0));
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; max-width: 420px;
  background: var(--gradient-brand); color: #fff;
  font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem;
  padding: 1rem 1.5rem; border: none; border-radius: var(--radius);
  cursor: pointer; box-shadow: var(--shadow-primary);
  transition: transform .18s ease, box-shadow .18s ease;
}
.accept-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(24,99,220,0.4); }

/* ---------- AOS-free fallback (reduced motion) ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ===================== Language switcher ===================== */
.lang-switch {
  display: inline-flex;
  flex: 0 0 auto;          /* never let the flex row squeeze the pill into a stack */
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(15, 27, 45, 0.12);
  border-radius: 999px;
  background: rgba(15, 27, 45, 0.04);
}
.lang-switch .lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--color-text-secondary);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch .lang-opt:hover { color: var(--color-text); }
.lang-switch .lang-opt.active {
  color: #fff;
  background: var(--color-primary);
}
/* On the dark mobile menu, lighten the chrome. */
.mobile-menu .lang-switch {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  margin-top: 0.5rem;
}
.mobile-menu .lang-switch .lang-opt { color: rgba(255, 255, 255, 0.7); }
.mobile-menu .lang-switch .lang-opt:hover { color: #fff; }
