/* Apex Construct — single site stylesheet. Mobile-first, no framework.
   Brand: gold #b18918 on white, dark ink #1d2129. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2");
}

/* ---------- Reset-lite & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --gold: #b18918;
  --gold-bright: #c9a227;
  --ink: #1d2129;
  --ink-soft: #4a4f58;
  --paper: #ffffff;
  --paper-alt: #f7f5f0;
  --line: #e5e1d8;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(29, 33, 41, 0.08);
  --container: 1140px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img, svg { max-width: 100%; height: auto; vertical-align: middle; }
picture img { display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
ul, ol { padding-left: 1.3em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 0; }

.icon { flex: none; }

/* ---------- Buttons ---------- */
.button, .button-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.15s ease, color 0.15s ease;
}
.button { background: var(--gold); color: #fff; }
.button:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: #fff; }
.button-outline { color: var(--gold); background: transparent; }
.button-outline:hover { background: var(--gold); color: #fff; }
.button-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 1.1rem;
}
.brand img { width: 40px; height: 40px; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink);
}
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

.nav-menu {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu > li > a {
  display: block; padding: 10px 14px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.nav-menu > li > a:hover { color: var(--gold); }
.nav-menu > li > a.button { color: #fff; padding: 10px 20px; margin-left: 8px; }
.nav-menu > li > a.button:hover { color: #fff; }

.has-submenu { position: relative; }
.submenu {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: 8px 0;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu { display: block; }
.submenu a {
  display: block; padding: 8px 18px;
  color: var(--ink); text-decoration: none;
}
.submenu a:hover { background: var(--paper-alt); color: var(--gold); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 10px 20px 20px;
  }
  .nav-menu.open { display: flex; }
  .nav-menu > li > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-menu > li > a.button { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .submenu {
    display: block; position: static;
    border: 0; box-shadow: none; padding: 0 0 0 16px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 480px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero picture img, .hero > img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
}
.hero-inner { position: relative; padding: 64px 0; max-width: 640px; }
.hero-inner .container { padding: 0; }
.hero h1 { color: #fff; }
.hero .tagline {
  color: var(--gold-bright); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem;
  margin-bottom: 0.5em;
}
.hero p { font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .button-outline { color: #fff; border-color: #fff; }
.hero-actions .button-outline:hover { background: #fff; color: var(--ink); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.trust-bar ul {
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: center;
  list-style: none; margin: 0; padding: 14px 0;
  font-weight: 600; font-size: 0.95rem;
}
.trust-bar li { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.trust-bar .icon { color: var(--gold); }

/* ---------- Sections & cards ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-alt); }
.section-title { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-title h2::after {
  content: ""; display: block; width: 72px; height: 4px;
  background: var(--gold-bright); margin: 14px auto 0; border-radius: 2px;
}
.section-title p { color: var(--ink-soft); }

.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow);
}
.card .icon { color: var(--gold); margin-bottom: 12px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.card p { color: var(--ink-soft); margin-bottom: 0.5em; }
.card .card-more { font-weight: 600; text-decoration: none; }

/* ---------- Steps (process) ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 12px;
  background: var(--gold); color: #fff; font-weight: 700; border-radius: 50%;
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery (CSS scroll-snap, no JS) ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(85%, 460px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 4px 16px; -webkit-overflow-scrolling: touch;
}
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.gallery figcaption { font-size: 0.9rem; color: var(--ink-soft); padding: 8px 4px 0; }

/* ---------- Prose (markdown content) ---------- */
.prose { padding: 40px 20px 8px; max-width: 780px; }
.prose h2 { margin-top: 1.6em; }
.prose h2::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--gold-bright); margin-top: 10px; border-radius: 2px;
}
.prose ul li, .prose ol li { margin-bottom: 0.4em; }
.prose .lead { font-size: 1.15rem; color: var(--ink-soft); }
.prose figure { margin: 1.5em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.9rem; color: var(--ink-soft); padding-top: 8px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.5em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--paper-alt); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.88rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 4px;
  list-style: none; margin: 0 auto; padding: 14px 20px 0;
  max-width: var(--container);
}
.breadcrumbs li + li::before { content: "›"; padding: 0 6px; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Link blocks (cross-linking) ---------- */
.link-block { padding: 8px 20px 32px; max-width: 780px; }
.pill-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.pill-list a {
  display: inline-block; padding: 8px 16px;
  background: var(--paper-alt); border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: 0.92rem; font-weight: 600;
}
.pill-list a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-section { max-width: 780px; margin: 0 auto; padding: 16px 20px 40px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; background: var(--paper);
}
.faq-item summary {
  padding: 14px 18px; cursor: pointer; font-weight: 600;
  list-style: none; position: relative; padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 18px 14px; margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink); color: #fff;
  text-align: center; padding: 56px 0; margin-top: 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; color: #cfd2d8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .button-outline { color: #fff; border-color: var(--gold); }
.cta-band .button-outline:hover { background: var(--gold); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info ul { list-style: none; margin: 0 0 1.5em; padding: 0; }
.contact-info li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.contact-info .icon { color: var(--gold); }

.form-facade {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-alt); padding: 32px; text-align: center;
}
.form-facade p { color: var(--ink-soft); }
.form-frame { border: 0; width: 100%; min-height: 1200px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #cfd2d8;
  padding: 48px 0 0; margin-top: 8px; font-size: 0.95rem;
}
.cta-band + .site-footer { margin-top: 0; }
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: 32px;
}
.footer-logo { font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.footer-slogan { color: var(--gold-bright); font-style: italic; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.footer-contact a { color: #cfd2d8; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: #fff; }
.footer-col h2 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold-bright); margin-bottom: 12px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: #cfd2d8; text-decoration: none; display: block; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px; padding-bottom: 18px; text-align: center; font-size: 0.85rem;
}
.footer-legal a { color: #cfd2d8; }
