/* Typography adopted from the Figma "Enhance Website Design":
   Instrument Serif (headings, wordmark) + Figtree (body, nav). */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Figtree:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── DARK THEME (default) ────────────────────────────── */
:root,
[data-theme="dark"] {
  --void:        #07070D;
  --deep:        #0F0F1A;
  --panel:       #141422;
  --card:        #1A1A2E;
  --card2:       #1F1F38;
  --gold:        #C9A84C;
  --gold-light:  #E8D5A3;
  --gold-dim:    #8A6F32;
  --champagne:   #F0E6CC;
  --text:        #E8E4DC;
  --muted:       #9090A0;
  --border:      rgba(201,168,76,0.18);
  --border2:     rgba(201,168,76,0.08);
  --nav-bg:      rgba(7,7,13,0.92);
  --tooltip-bg:  #1F1F38;
  --heading-font: 'Instrument Serif', Georgia, serif;
  --heading-style: italic;
}

/* ── IVORY THEME ──────────────────────────────────────── */
[data-theme="light"] {
  --void:        #F8F4EC;
  --deep:        #F0EAD9;
  --panel:       #E8E0CC;
  --card:        #FDFAF3;
  --card2:       #F5EFE0;
  --gold:        #9A6F1E;
  --gold-light:  #7A5510;
  --gold-dim:    #B8943C;
  --champagne:   #3D2B0A;
  --text:        #2C1E06;
  --muted:       #6B5A3E;
  --border:      rgba(154,111,30,0.22);
  --border2:     rgba(154,111,30,0.12);
  --nav-bg:      rgba(248,244,236,0.94);
  --tooltip-bg:  #FDFAF3;
  --heading-font: 'Instrument Serif', Georgia, serif;
  --heading-style: italic;
}

/* ── DEFAULT THEME — simple, premium, monochrome ─────── */
[data-theme="default"] {
  --void:        #FFFFFF;
  --deep:        #FAFAFA;
  --panel:       #F2F2F2;
  --card:        #FFFFFF;
  --card2:       #F5F5F5;
  --gold:        #111111;
  --gold-light:  #000000;
  --gold-dim:    #9A9A9A;
  --champagne:   #111111;
  --text:        #2A2A2A;
  --muted:       #6E6E6E;
  --border:      rgba(0,0,0,0.12);
  --border2:     rgba(0,0,0,0.07);
  --nav-bg:      rgba(255,255,255,0.94);
  --tooltip-bg:  #FFFFFF;
  --heading-font: 'Instrument Serif', Georgia, serif;
  --heading-style: normal;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ── THEME TOGGLE ────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: 0.5px solid var(--border);
  color: var(--muted);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  transition: all 0.2s;
  margin-right: 12px;
}
.theme-toggle:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}
.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 2.5rem;
  min-height: 60px;
  transition: background 0.3s, border-color 0.3s;
}

.nav-logo {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 0;
  align-self: center;
}
.nav-logo span { color: var(--champagne); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  justify-content: center;
  padding: 0.35rem 1.5rem;
  row-gap: 0;
}
.nav-links li {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
  line-height: 1.4;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

/* Separators between nav items */
.nav-links li + li > a::before {
  content: '·';
  margin-right: 0.75rem;
  color: var(--border);
  font-size: 12px;
}

/* ── NAV: "About Us" DROPDOWN ─────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-caret {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  list-style: none;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border: 0.5px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  padding: 0.9rem 0 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 150;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu li {
  display: block;
  align-items: unset;
}
.nav-dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 10.5px;
  white-space: nowrap;
}
/* This submenu shouldn't inherit the "·" separator used between top-level nav items */
.nav-dropdown-menu li a::before { content: none !important; }

.nav-right {
  display: flex;
  align-items: center;
  align-self: center;
}

.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}
.nav-cta:hover { background: var(--gold-light); color: var(--void); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--void); }

.btn-ghost {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: 0.5px solid var(--gold-dim);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── SECTION COMMONS ─────────────────────────────────── */
section { padding: 6rem 3rem; }

.section-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 0.5px;
  background: var(--gold);
}

.section-title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 300;
  color: var(--champagne);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-title em { font-style: var(--heading-style, italic); color: var(--gold); }

.section-desc {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 3.5rem;
}

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--void);
  border-top: 0.5px solid var(--border);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  transition: background 0.3s;
}
.footer-logo {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}
.footer-tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.05em; margin-top: 4px; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: var(--gold-dim); letter-spacing: 0.05em; }

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,7,13,0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
[data-theme="light"] .modal-overlay { background: rgba(248,244,236,0.88); }
.modal-overlay.open { display: flex; }

.modal {
  background: var(--panel);
  border: 0.5px solid var(--border);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
}
.modal-title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--champagne);
  margin-bottom: 0.25rem;
}
.modal-role {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.modal-close {
  float: right;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  margin-top: -0.25rem;
}
.modal-close:hover { color: var(--gold); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--card);
  border: 0.5px solid var(--border);
  color: var(--text);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold-dim); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; }

.textarea-wrap { position: relative; }
.char-warning-dot {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  background: #e24b4a;
  color: #fff;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 0 0 2px var(--panel);
  pointer-events: none;
}
.char-warning-dot.show { display: flex; }
.form-submit {
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--gold);
  border: none;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--gold-light); }

.form-success { display: none; text-align: center; padding: 2rem 0; }
.form-success .success-icon { font-size: 40px; color: var(--gold); display: block; margin-bottom: 1rem; }
.form-success-title {
  font-family: var(--heading-font, Georgia, serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--champagne);
  margin-bottom: 0.5rem;
}
.form-success-sub { font-size: 13px; color: var(--muted); }

.form-error {
  font-size: 12px;
  color: #e24b4a;
  margin-top: 1rem;
  display: none;
}

/* ── REACH US BLOCK ──────────────────────────────────── */
.reach-us {
  background: var(--deep);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border2);
  padding: 3.5rem 3rem;
  transition: background 0.3s;
}
.reach-us-inner { max-width: 900px; }
.reach-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.reach-line {
  display: block;
  width: 20px;
  height: 0.5px;
  background: var(--gold);
}
.reach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
.reach-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.reach-icon {
  font-size: 18px;
  color: var(--gold-dim);
  margin-top: 2px;
  flex-shrink: 0;
}
.reach-caption {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.reach-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}
.reach-value a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.reach-value a:hover { color: var(--gold); }

/* ── FOOTER: social & column layout ─────────────────── */
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-social {
  margin-top: 1rem;
}
.footer-social-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.footer-social-links {
  display: flex;
  gap: 0.6rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--card);
  border: 0.5px solid var(--border2);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}
.social-link:hover {
  background: var(--card2);
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ── MOBILE NAV (hamburger) ──────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  background: none;
  border: 0.5px solid var(--border);
  cursor: pointer;
  padding: 0 9px;
  margin-left: 10px;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
}
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  nav {
    grid-template-columns: auto 1fr;
    padding: 0 1.25rem;
  }
  .nav-hamburger { display: flex; }
  .nav-right { justify-content: flex-end; }

  /* Links collapse into a slide-down panel under the bar */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
    padding: 0.5rem 0 1rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  nav.nav-open .nav-links { display: flex; }
  .nav-links li { display: block; }
  .nav-links a { display: block; padding: 0.8rem 1.5rem; font-size: 12px; }
  .nav-links li + li > a::before { content: none; }

  /* About Us submenu: rendered inline, toggled by the caret */
  .nav-dropdown-link { display: flex; align-items: center; justify-content: space-between; }
  .nav-caret { width: 16px; height: 16px; padding: 2px; }
  .nav-dropdown-menu {
    display: none;
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu li a { padding: 0.6rem 1.5rem 0.6rem 2.75rem; color: var(--muted); }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 18px; }
  .theme-toggle { padding: 6px 8px; margin-right: 8px; }
  #theme-label { display: none; }
  .nav-cta { padding: 8px 12px; font-size: 10px; white-space: nowrap; }
}

/* ── SHARED RESPONSIVE RULES ─────────────────────────── */
@media (max-width: 720px) {
  section { padding: 4rem 1.25rem; }
  .reach-us { padding: 3rem 1.25rem; }
  footer { padding: 2.5rem 1.25rem; }
  .footer-links { gap: 1.25rem; flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .modal-overlay { padding: 1rem; }
  .modal { padding: 1.75rem 1.25rem; max-height: 92vh; }
}

/* ═══════════════════════════════════════════════════════════
   FIGMA EDITORIAL HEADER  (from "Enhance Website Design")
   A fixed dark bar with a letter-spaced ETAMOR wordmark, quiet
   Figtree nav links, and a solid white "Get the App" button.
   Colours are pinned here (not theme variables) so the header
   reads the same in every theme. Only colour/background is set —
   layout stays with the base + responsive rules above.
   ═════════════════════════════════════════════════════════ */
nav {
  background: rgba(12, 10, 9, 0.96);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.nav-logo,
.nav-logo span {
  color: #FFFFFF;
  letter-spacing: 0.24em;
  font-weight: 400;
}

.nav-links a { color: rgba(255, 255, 255, 0.6); }
.nav-links a:hover,
.nav-links a.active { color: #FFFFFF; }
.nav-links li + li > a::before { color: rgba(255, 255, 255, 0.18); }

.nav-dropdown-menu {
  background: rgba(18, 16, 14, 0.98);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-dropdown-menu li a { color: rgba(255, 255, 255, 0.6); }
.nav-dropdown-menu li a:hover { color: #FFFFFF; }

.theme-toggle {
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.55);
}
.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}

.nav-cta {
  background: #FFFFFF;
  color: #0C0A09;
}
.nav-cta:hover {
  background: #E7E5E4;
  color: #0C0A09;
}

.nav-hamburger { border-color: rgba(255, 255, 255, 0.3); }
.nav-hamburger span { background: #FFFFFF; }

/* ── OVERLAY HEADER (homepage) ─────────────────────────────
   On the homepage the nav floats over the full-bleed hero:
   fully transparent at the very top, darkening to solid black
   as you scroll (opacity driven by nav.js). A soft text-shadow
   keeps the white wordmark/links readable over the photo. */
nav.nav-overlay {
  position: fixed;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
nav.nav-overlay .nav-logo,
nav.nav-overlay .nav-links a,
nav.nav-overlay .theme-toggle {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
/* Once the mobile menu is open the links live on a light panel,
   so drop the shadow there. */
nav.nav-overlay.nav-open .nav-links a { text-shadow: none; }

/* ── MOBILE MENU PANEL: readable per theme ─────────────────
   The slide-down panel uses the theme's own light surface, so the
   pinned white header link colours above must be overridden to a
   dark, theme-aware colour here. Placed after the header block so
   these win within the mobile breakpoint. */
@media (max-width: 900px) {
  nav.nav-open .nav-links {
    background: var(--nav-bg);
    border-top: 0.5px solid var(--border);
  }
  .nav-links a { color: var(--text); }
  .nav-links a:hover,
  .nav-links a.active { color: var(--gold); }
  .nav-links li + li > a::before { content: none; }
  .nav-dropdown-menu li a { color: var(--muted); }
  .nav-dropdown-menu li a:hover { color: var(--gold); }
}
