/* ==========================================================================
   Online Expo — landing page styles
   Brand colours from the original online-expos.com stylesheet:
   #185186 heading blue · #164978 link blue · #397ebe hover blue · #0a2036 navy
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --navy-950: #071728;
  --navy-900: #0a2036;
  --navy-800: #0f2d4b;
  --blue-700: #164978;
  --blue-600: #185186;
  --blue-500: #1f6aad;
  --blue-400: #397ebe;
  --sky-400: #3ea3e0;
  --sky-300: #7cc6f0;
  --sky-100: #e4f2fb;

  --ink: #0f1d2c;
  --text: #33445a;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --tint: #f4f7fb;
  --white: #fff;

  --success: #2f7a3a;
  --success-bg: #ecf7ee;
  --error: #b43a2c;
  --error-bg: #fdf0ee;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 32, 54, .06), 0 1px 3px rgba(10, 32, 54, .08);
  --shadow: 0 10px 30px -12px rgba(10, 32, 54, .25);
  --shadow-lg: 0 30px 60px -20px rgba(4, 18, 34, .55);
  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
/* Smooth scrolling only after load (set by JS), so the jump to #contact after submitting is instant. */
html.is-loaded { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.015em; text-wrap: balance; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1em; }
a { color: var(--blue-600); text-underline-offset: .18em; }
a:hover { color: var(--blue-400); }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 3px; border-radius: 4px; }

.sprite { display: none; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy-900); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(24, 81, 134, .7); }
.btn-primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   make it the containing block for the fixed mobile menu and clip the menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(10, 32, 54, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex-shrink: 0; }
.brand-logo { width: auto; height: 46px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; list-style: none; }
.site-nav ul a {
  position: relative; color: var(--ink); font-weight: 550; font-size: .97rem; text-decoration: none; padding: .35rem 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--blue-600); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--blue-600); }
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem;
  color: var(--navy-900); cursor: pointer; border-radius: var(--radius-sm);
}
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy-900); color: #c9d6e6; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.85rem); }
.section-lead { font-size: 1.15rem; color: var(--muted); margin: 0; }
.section-dark .section-lead, .section-contact .section-lead { color: #b5c6da; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem; padding: .35rem .85rem; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); background: var(--sky-100);
}
.eyebrow-light { color: var(--sky-300); background: rgba(124, 198, 240, .12); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #c9d8e8;
  background: radial-gradient(1200px 600px at 85% 10%, rgba(62, 163, 224, .28), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--blue-700) 100%);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4.5rem, 8vw, 7rem);
}
.hero-bg {
  position: absolute; inset: 0; opacity: .12; mix-blend-mode: luminosity;
  background: url("../img/hero-auditorium.webp") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero::after { /* soft fade into the next section */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(to bottom right, transparent 49.5%, #fff 50%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.75rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.25rem; }
.hero .hl {
  background: linear-gradient(90deg, var(--sky-300), #b9e3fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); color: #c3d3e5; max-width: 36em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .95rem; color: #d8e4f1; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points .icon { color: var(--sky-300); width: 1.1em; height: 1.1em; stroke-width: 2.6; }

.hero-visual { position: relative; padding: 0 0 3.5rem 2.5rem; }
.browser {
  margin: 0; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f7; border-bottom: 1px solid #dde4ec; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c8d1dc; }
.browser-bar span:first-child { background: #f07c6c; }
.browser-bar span:nth-child(2) { background: #f5c451; }
.browser-bar span:nth-child(3) { background: #62c26f; }
.browser img { width: 100%; }
.browser-main { transform: rotate(1.2deg); }
.browser-float { position: absolute; left: 0; bottom: 0; width: 52%; transform: rotate(-2.5deg); }
.browser-float .browser-bar { padding: 7px 9px; }
.browser-float .browser-bar span { width: 7px; height: 7px; }
.hero-badge {
  position: absolute; right: -6px; bottom: 1.4rem; display: flex; align-items: center; gap: .65rem;
  background: #fff; color: var(--ink); padding: .75rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: .92rem; line-height: 1.3;
}
.hero-badge .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--sky-100); color: var(--blue-600); }
.hero-badge strong { display: block; color: var(--blue-600); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 1.5rem; }
.about-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.about-card:hover { border-color: #c9d8ea; box-shadow: var(--shadow); transform: translateY(-3px); }
.about-card h3 { font-size: 1.15rem; display: flex; align-items: baseline; gap: .6rem; }
.about-num { font-size: .8rem; font-weight: 800; color: var(--sky-400); letter-spacing: .05em; }
.about-card p { margin: 0; font-size: .98rem; }

.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.callout {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.75rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--tint), #fff); border: 1px solid var(--line);
}
.callout h3 { font-size: 1.2rem; }
.callout p { margin: 0; font-size: .98rem; }
.callout-icon { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: var(--blue-600); color: #fff; }
.callout-award { background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); border-color: transparent; color: #c9d8e8; }
.callout-award h3, .callout-award strong { color: #fff; }
.callout-award .callout-icon { background: rgba(124, 198, 240, .18); color: var(--sky-300); }

/* ---------- Features ---------- */
.feature-group + .feature-group { margin-top: clamp(3rem, 6vw, 4.5rem); }
.feature-group-head { display: flex; align-items: baseline; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.feature-group-title { font-size: 1.45rem; margin: 0; color: var(--blue-600); }
.feature-group-head p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
/* 5 cards: three on the first row, two wider cards on the second */
.feature-grid[data-count="5"] { grid-template-columns: repeat(6, 1fr); }
.feature-grid[data-count="5"] > :nth-child(-n+3) { grid-column: span 2; }
.feature-grid[data-count="5"] > :nth-child(n+4) { grid-column: span 3; }
.feature-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9d8ea; }
.feature-card:target { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(57, 126, 190, .18), var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); color: #fff;
  box-shadow: 0 8px 18px -8px rgba(24, 81, 134, .8);
}
.feature-icon .icon { width: 26px; height: 26px; stroke-width: 1.8; }
.feature-card h4 { font-size: 1.15rem; margin-bottom: .45rem; }
.feature-card > p { font-size: .97rem; margin-bottom: 1rem; }
.check-list { list-style: none; display: grid; gap: .45rem; font-size: .93rem; color: var(--ink); }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.45; }
.check-list .icon { width: 1.05em; height: 1.05em; margin-top: .2em; color: var(--blue-500); stroke-width: 2.8; }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.benefit { display: flex; gap: 1.1rem; align-items: flex-start; }
.benefit-icon {
  flex-shrink: 0; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: var(--sky-100); color: var(--blue-600);
}
.benefit-icon .icon { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.benefit p { margin: 0; font-size: .98rem; }

/* ---------- How it works ---------- */
.section-dark { overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 400px at 10% 0%, rgba(62, 163, 224, .18), transparent 60%),
              radial-gradient(600px 400px at 100% 100%, rgba(57, 126, 190, .2), transparent 60%);
}
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps::before { /* connecting line */
  content: ""; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, rgba(124, 198, 240, .1), rgba(124, 198, 240, .5), rgba(124, 198, 240, .1));
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 1.25rem;
  border-radius: 50%; font-size: 1.3rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--sky-400));
  box-shadow: 0 0 0 8px var(--navy-900), 0 0 0 9px rgba(124, 198, 240, .3);
}
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; font-size: .97rem; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery-item a { display: block; position: relative; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery-item a:hover img { transform: scale(1.04); }
.gallery-item a::after {
  content: "View larger"; position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 650; color: #fff; background: rgba(10, 32, 54, .8); opacity: 0; transition: opacity .25s;
}
.gallery-item a:hover::after, .gallery-item a:focus-visible::after { opacity: 1; }
.gallery-caption { padding: 1rem 1.2rem 1.15rem; }
.gallery-caption h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.gallery-caption p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

.lightbox {
  width: min(1000px, 94vw); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 16, 28, .88); }
.lightbox-inner { position: relative; }
.lightbox img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.lightbox-caption { margin: 0; padding: .9rem 1.2rem; background: #fff; color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); font-size: .95rem; }
.lightbox-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: #fff; color: var(--navy-900); box-shadow: var(--shadow); cursor: pointer;
}
.lightbox-btn:hover { background: var(--sky-100); }
.lightbox-btn .icon { width: 22px; height: 22px; }
.lightbox-close { top: -14px; right: -14px; }
.lightbox-prev, .lightbox-next { top: 40%; }
.lightbox-prev { left: -22px; }
.lightbox-next { right: -22px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .85rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq[open] { border-color: #c9d8ea; box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 650; color: var(--ink); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23185186' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-600); }
.faq p { margin: 0; padding: 0 1.4rem 1.3rem; }

/* ---------- Contact ---------- */
.section-contact {
  background: radial-gradient(900px 500px at 0% 0%, rgba(62, 163, 224, .22), transparent 60%),
              linear-gradient(150deg, var(--navy-900), var(--navy-800) 60%, var(--blue-700));
  color: #c9d8e8;
}
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem); }
.contact-details { list-style: none; display: grid; gap: 1.25rem; margin-top: 2.25rem; }
.contact-details li { display: flex; gap: 1rem; align-items: flex-start; line-height: 1.5; }
.contact-icon { flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(124, 198, 240, .14); color: var(--sky-300); }
.contact-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-300); }
.contact-details a { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--sky-300); text-decoration: underline; }

.contact-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; font-size: .93rem; color: var(--ink); margin-bottom: .4rem; }
.req { color: var(--error); }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid #cfd9e5; border-radius: 10px; background: #fbfcfe;
  font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8796a8; }
.field input:hover, .field textarea:hover { border-color: #b2c2d5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(57, 126, 190, .18); }
.has-error input, .has-error textarea { border-color: var(--error); background: var(--error-bg); }
.field-error { margin: .4rem 0 0; font-size: .87rem; font-weight: 600; color: var(--error); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.form-note { margin: 0; flex: 1 1 260px; font-size: .86rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.alert:focus { outline: none; }
.alert .icon { width: 28px; height: 28px; padding: 5px; border-radius: 50%; color: #fff; stroke-width: 3; }
.alert h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.alert p { margin: 0; font-size: .95rem; }
.alert-success { background: var(--success-bg); border: 1px solid #bfe0c4; }
.alert-success .icon { background: var(--success); }
.alert-success h3 { color: var(--success); }
.alert-error { background: var(--error-bg); border: 1px solid #f1c6bf; }
.alert-error .icon { background: var(--error); }
.alert-error h3 { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.brand-footer { margin-bottom: 1rem; }
.brand-footer .brand-full { width: auto; height: 48px; }
.footer-brand p { max-width: 26rem; color: var(--muted); margin: 0; }
.footer-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .5rem; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--blue-600); text-decoration: underline; }
.footer-email { margin: 0; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap;
  padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--blue-600); text-decoration: underline; }

/* ---------- Legal / error pages ---------- */
.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal-meta { color: var(--muted); font-size: .92rem; }
.error-page { text-align: center; min-height: 55vh; }
.error-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, html.is-loaded { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav ul { gap: 1.1rem; }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem 24px 2rem; background: #fff; border-top: 1px solid var(--line);
    overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .95rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta { align-self: stretch; padding-block: .9rem; font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }

  .about-split { grid-template-columns: 1fr; }
  .feature-grid, .feature-grid[data-count] { grid-template-columns: repeat(2, 1fr); }
  .feature-grid[data-count] > :nth-child(n) { grid-column: auto; }
  .feature-grid[data-count="5"] > :last-child, .feature-grid[data-count="3"] > :last-child { grid-column: 1 / -1; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .steps::before { display: none; }
  .gallery { gap: 1rem; }
  .gallery-caption { padding: .85rem 1rem 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: 18px; }
  .brand-logo { height: 38px; }
  .hero { padding-top: 2.75rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-points { flex-direction: column; align-items: center; gap: .5rem; }
  .hero-visual { padding: 0 0 2.5rem 1.25rem; }
  .hero-badge { right: 0; bottom: .5rem; padding: .55rem .8rem; font-size: .85rem; }
  .hero-badge .icon { width: 30px; height: 30px; padding: 6px; }
  .about-grid, .benefit-grid, .gallery, .feature-grid, .feature-grid[data-count] { grid-template-columns: 1fr; }
  .callout { flex-direction: column; padding: 1.4rem; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-footer .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-close { right: 6px; top: 6px; }
}

@media print {
  .site-header, .hero-visual, .contact-card, .lightbox, .nav-toggle { display: none !important; }
  .hero, .section-dark, .section-contact { background: none !important; color: #000; }
  .hero h1, .section-dark h2, .section-dark h3, .contact-info h2 { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
}
