/* ==========================================================================
   Nice Website Design — Design System
   Steel Slate Blue + Warm Amber. Barlow Condensed display, DM Sans body.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  /* Brand palette */
  --slate-blue: #3D5A6E;
  --amber: #E8A020;
  --amber-soft: #F6C25A;
  --icon-grey: #6B7F8E;
  --bg: #F8F9FB;
  --surface: #FFFFFF;
  --ink: #1C2B35;
  --body: #4A5568;
  --border: #E2E8F0;
  --navy: #1A2A35;

  /* Derived tones */
  --slate-deep: #2F4757;
  --slate-tint: #ECF1F4;
  --amber-tint: #FBEFD6;
  --navy-soft: #22343F;
  --shadow-sm: 0 1px 2px rgba(28,43,53,.06), 0 1px 3px rgba(28,43,53,.05);
  --shadow-md: 0 4px 6px -1px rgba(28,43,53,.07), 0 12px 24px -8px rgba(28,43,53,.10);
  --shadow-lg: 0 24px 48px -16px rgba(28,43,53,.18), 0 8px 16px -8px rgba(28,43,53,.08);
  --shadow-amber: 0 10px 24px -8px rgba(232,160,32,.45);

  /* Type */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --nav-h: 76px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.04; }
.display, h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase; letter-spacing: -0.005em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; line-height: 1.06; }
h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 0; text-transform: none; }
h4 { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--amber);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.25rem); color: var(--body); line-height: 1.6; }
.amber-text { color: var(--amber); }
.slate-text { color: var(--slate-blue); }

/* ---- Layout primitives --------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.center { text-align: center; }
.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head h2 + p, .section-head .lead { margin-top: 1.1rem; }
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--bg); }
.bg-slate-tint { background: var(--slate-tint); }
.bg-navy { background: var(--navy); color: #C6D2DA; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --bg: var(--slate-blue);
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .92em 1.5em;
  border-radius: 10px;
  background: var(--bg); color: #fff;
  border: 1.5px solid var(--bg);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  line-height: 1; white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-amber { --bg: var(--amber); color: var(--navy); box-shadow: var(--shadow-amber); }
.btn-amber:hover { background: #f3ab2e; }
.btn-ghost { background: transparent; color: var(--slate-blue); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--slate-blue); background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.04rem; }
.btn-sm { padding: .7em 1.1em; font-size: .9rem; }
.arrow-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; color: var(--slate-blue); font-size: .95rem;
}
.arrow-link svg { width: 1.05em; height: 1.05em; transition: transform .2s ease; }
.arrow-link:hover { color: var(--amber); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d4dde6; }

/* ---- Badges & chips ------------------------------------------------------ */
.tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  padding: .4em .7em; border-radius: 6px;
  background: var(--slate-tint); color: var(--slate-blue);
}
.tag-amber { background: var(--amber-tint); color: #9a6a10; }
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-weight: 600;
  white-space: nowrap;
  padding: .5em .95em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--slate-blue);
}
.pill svg { width: 15px; height: 15px; flex: none; color: var(--amber); }

/* ---- Image placeholder (striped) ----------------------------------------- */
.ph {
  position: relative; overflow: hidden;
  background-color: var(--slate-tint);
  background-image: repeating-linear-gradient(135deg,
     rgba(61,90,110,.07) 0, rgba(61,90,110,.07) 1px,
     transparent 1px, transparent 11px);
  display: flex; align-items: center; justify-content: center;
  color: var(--icon-grey);
}
.ph .ph-label {
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: .74rem; letter-spacing: .04em; text-transform: lowercase;
  background: rgba(255,255,255,.82); color: var(--slate-blue);
  padding: .4em .7em; border-radius: 6px; border: 1px solid var(--border);
  font-weight: 500;
}

/* ---- Site header --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248,249,251,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.9); }
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a.nav-item {
  display: inline-flex; align-items: center; gap: .35em;
  font-weight: 500; font-size: .96rem; color: var(--ink);
  padding: .55em .8em; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a.nav-item:hover { color: var(--slate-blue); background: var(--slate-tint); }
.nav-links a.nav-item.active { color: var(--slate-blue); }
.nav-links a.nav-item.active::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .15em;
  height: 2px; background: var(--amber); border-radius: 2px;
}
.nav-item .caret { width: 14px; height: 14px; transition: transform .2s ease; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 280px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 12px; border-radius: 9px; transition: background .15s ease;
}
.dropdown a:hover { background: var(--slate-tint); }
.dropdown .dd-ico {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: var(--slate-tint); color: var(--slate-blue);
  display: grid; place-items: center;
}
.dropdown a:hover .dd-ico { background: var(--amber-tint); color: #9a6a10; }
.dropdown .dd-ico svg { width: 19px; height: 19px; }
.dropdown .dd-title { font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.2; }
.dropdown .dd-sub { font-size: .82rem; color: var(--icon-grey); line-height: 1.3; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* Mobile nav */
.mobile-panel {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 99;
  background: var(--surface);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; padding: 24px var(--gutter) 60px;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel a { padding: 14px 8px; font-size: 1.15rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-panel .m-sub { font-size: 1rem; color: var(--body); padding-left: 24px; font-weight: 400; }
.mobile-panel .m-group-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); padding: 18px 8px 6px; font-weight: 600; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #9FB0BC; padding-block: clamp(56px, 7vw, 84px) 28px; }
.site-footer h4 { color: #fff; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; margin-bottom: 1.1em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.site-footer a { color: #9FB0BC; transition: color .15s ease; }
.site-footer a:hover { color: var(--amber); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .95rem; }
.footer-logo img { height: 30px; filter: brightness(0) invert(1); opacity: .96; margin-bottom: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: .95rem; }
.footer-contact .fc-row { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--amber); flex: none; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; color: #C6D2DA;
  transition: all .18s ease;
}
.social-row a:hover { background: var(--amber); border-color: var(--amber); color: var(--navy); transform: translateY(-2px); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 56px); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .85rem; color: #7c8e9a;
}

/* ---- Stars --------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- Accordion (FAQ) ----------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink);
}
.faq-q .faq-icon { flex: none; width: 26px; height: 26px; position: relative; }
.faq-q .faq-icon::before, .faq-q .faq-icon::after {
  content: ""; position: absolute; background: var(--slate-blue); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  transition: transform .25s ease, background .2s ease;
}
.faq-q .faq-icon::before { width: 14px; height: 2px; }
.faq-q .faq-icon::after { width: 2px; height: 14px; }
.faq-item.open .faq-q .faq-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-item.open .faq-q .faq-icon::before { background: var(--amber); }
.faq-item.open .faq-q { color: var(--slate-blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 26px; color: var(--body); max-width: 64ch; }

/* ---- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Misc ---------------------------------------------------------------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.kicker-num { font-family: var(--display); font-weight: 700; color: var(--amber); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta > .btn:not(.nav-toggle) { display: none; }
  .nav-cta .nav-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
