/* ── Reset & Variables ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand palette — fixed */
  --black:      #000000;
  --dark:       #232426;
  --mid:        #575859;
  --warm:       #BFB9B8;
  --light:      #F2F2F2;
  --white:      #ffffff;
  --gold:       #C9A96E;
  --gold-dark:  #a07840;
  --gold-dim:   #8a6f3e;

  /* Light theme (default) */
  --bg:         #f5f2ef;
  --bg2:        #ece8e3;
  --surface:    #ffffff;
  --surface2:   #f5f2ef;
  --border:     #d8d2cc;
  --text:       #1a1818;
  --text-muted: #575859;
  --text-dim:   #928d8a;
  --accent:     var(--gold);
  --accent-inv: #ffffff;

  /* Nav overlay */
  --nav-scrolled: rgba(245,242,239,.94);
  --nav-mobile-bg: #f5f2ef;

  --radius:     8px;
  --radius-lg:  14px;
  --nav-h:      68px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Dark theme */
[data-theme="dark"] {
  --bg:         #000000;
  --bg2:        #0d0e0f;
  --surface:    #232426;
  --surface2:   #2d2f31;
  --border:     #3a3c3e;
  --text:       #F2F2F2;
  --text-muted: #BFB9B8;
  --text-dim:   #575859;
  --accent:     var(--gold);
  --accent-inv: #000000;

  --nav-scrolled:  rgba(0,0,0,.9);
  --nav-mobile-bg: #000000;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p  { line-height: 1.75; color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }

/* ── Utilities ────────────────────────────────────────────────────────────── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section     { padding: 5.5rem 0; }
.section-sm  { padding: 3rem 0; }
.text-center { text-align: center; }
.hidden      { display: none !important; }

.section-label {
  display: inline-block;
  font-size: .73rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: .6rem;
}
.section-title    { margin-bottom: 1rem; }
.section-desc     { max-width: 560px; margin: 0 auto 3rem; font-size: 1.05rem; }
.section-header   { margin-bottom: 3rem; }

/* ── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  margin: 1rem auto 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: var(--radius);
  border: none; cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: all .18s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: var(--black);
  box-shadow: 0 2px 16px rgba(201,169,110,.25);
}
.btn-primary:hover {
  background: #d9bc82; transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(201,169,110,.4);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-dark {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}

/* ── Theme switch ─────────────────────────────────────────────────────────── */
.theme-switch {
  display: flex; align-items: center; gap: .35rem;
  cursor: pointer; flex-shrink: 0; user-select: none;
}
.theme-switch input { display: none; }
.ts-sun, .ts-moon { font-size: .85rem; line-height: 1; }
.ts-track {
  width: 40px; height: 22px; border-radius: 11px;
  background: var(--border); border: 1px solid var(--border);
  position: relative; transition: background .22s, border-color .22s;
  flex-shrink: 0;
}
.theme-switch:hover .ts-track { border-color: var(--gold); }
.ts-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1), background .22s;
}
/* Checked (dark mode) state */
.theme-switch input:checked ~ .ts-track { background: var(--gold); border-color: var(--gold); }
.theme-switch input:checked ~ .ts-track .ts-thumb { transform: translateX(18px); background: #1a1818; }
.btn-dark:hover { border-color: var(--mid); }

.btn-lg { padding: .9rem 2.2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { background: transparent; color: var(--text-muted); border: none; padding: .5rem .75rem; }
.btn-ghost:hover { color: var(--text); }

/* ── Badges ────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 20px;
  font-size: .72rem; font-weight: 600;
}
.badge-light  { background: rgba(242,242,242,.12); color: var(--light); }
.badge-warm   { background: rgba(191,185,184,.12); color: var(--warm); }
.badge-mid    { background: rgba(87,88,89,.25);    color: var(--warm); }
.badge-green  { background: rgba(62,207,142,.12);  color: #3ecf8e; }
.badge-yellow { background: rgba(245,166,35,.12);  color: #f5a623; }
.badge-red    { background: rgba(224,82,82,.12);   color: #e05252; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  transition: border-color .25s;
}
/* Use ::before for backdrop-filter so #nav does NOT become a containing
   block for position:fixed children (nav-actions.open, lang-dropdown). */
#nav.scrolled {
  border-bottom: 1px solid var(--border);
}
#nav.scrolled::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: var(--nav-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .25s;
}
.nav-inner {
  max-width: 1140px; width: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  position: relative; z-index: 1; /* stay above #nav.scrolled::before */
}
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  letter-spacing: -.02em; white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.nav-logo img {
  height: 34px; width: auto;
  filter: drop-shadow(0 0 6px rgba(201,169,110,.25));
}
[data-theme="dark"] .nav-logo img {
  filter: invert(1) drop-shadow(0 0 8px rgba(201,169,110,.2));
}
.footer-brand .nav-logo { font-size: 1.05rem; display: inline-flex; }
.footer-brand .nav-logo img { height: 30px; filter: drop-shadow(0 0 5px rgba(201,169,110,.2)); }
[data-theme="dark"] .footer-brand .nav-logo img { filter: invert(1) drop-shadow(0 0 6px rgba(201,169,110,.15)); }

.nav-links {
  display: flex; align-items: center; gap: .15rem; flex: 1;
  list-style: none;
}
.nav-links a {
  padding: .45rem .85rem; border-radius: 6px;
  font-size: .88rem; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover  { color: var(--text); background: rgba(0,0,0,.05); }
[data-theme="dark"] .nav-links a:hover { background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--gold); background: rgba(201,169,110,.12); }

.nav-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; flex-shrink: 0; }
.nav-actions .btn { padding: .45rem 1.1rem; font-size: .85rem; }

#btn-nav-menu {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1.4rem; padding: .4rem; margin-left: auto;
}

@media (max-width: 768px) {
  #btn-nav-menu { display: block; }
  .nav-links, .nav-actions { display: none; }

  /* Full-screen menu overlay */
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 72px;
    background: var(--nav-mobile-bg);
    padding: .5rem 0; gap: 0; overflow-y: auto;
    animation: mobileMenuIn .18s ease;
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .nav-links.open li { border-bottom: 1px solid var(--border); }
  .nav-links.open li:first-child { border-top: 1px solid var(--border); }
  .nav-links.open a {
    display: flex; align-items: center;
    font-size: 1.05rem; font-weight: 500;
    padding: 1rem 1.75rem; width: 100%;
    color: var(--text-muted);
    border-left: 3px solid transparent;
    border-radius: 0; background: none;
    transition: background .12s, color .12s, border-color .12s;
  }
  .nav-links.open a:hover { color: var(--text); background: rgba(0,0,0,.04); border-left-color: rgba(201,169,110,.4); }
  [data-theme="dark"] .nav-links.open a:hover { background: rgba(255,255,255,.04); }
  .nav-links.open a.active {
    color: var(--gold); border-left-color: var(--gold);
    background: rgba(201,169,110,.07); font-weight: 600;
  }

  /* Bottom dock — language + portal */
  .nav-actions.open {
    display: flex; flex-direction: row; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; height: 72px;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 0 1.25rem; gap: .75rem;
    z-index: 901; overflow: visible;
  }
  .nav-actions.open .btn { flex: 1; justify-content: center; text-align: center; padding: .65rem 1rem; }

  /* Dropdown opens upward from the bottom dock, aligned to left edge of button */
  .nav-actions.open .lang-dropdown {
    top: auto;
    bottom: calc(100% + .5rem);
    left: 0;
    right: auto;
    z-index: 950;
  }
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(201,169,110,.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(87,88,89,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-dim);
  margin-bottom: 1.25rem; display: block;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-desc { font-size: 1.15rem; max-width: 520px; margin-bottom: 2.5rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 4.5rem) 0 4.5rem;
  text-align: center; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { display: block; }
.page-hero p { max-width: 560px; margin: 1rem auto 0; font-size: 1.1rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--mid); transform: translateY(-2px); }

/* ── Service cards ────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.5rem;
}
.service-card h3 { margin-bottom: .6rem; }
.service-card p  { font-size: .9rem; }

.service-card-pub {
  display: flex; flex-direction: column; gap: .5rem;
  border-top: 2px solid rgba(201,169,110,.3);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
}
.service-card-pub:hover {
  border-top-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.service-card-featured {
  border-top-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,169,110,.06) 0%, transparent 60%);
}
.service-card-pub h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.svc-desc { font-size: .9rem; color: var(--text-muted); flex: 1; line-height: 1.6; margin: 0; }
.svc-featured-badge {
  display: inline-block; align-self: flex-start;
  background: rgba(201,169,110,.15); color: var(--gold);
  border: 1px solid rgba(201,169,110,.35); border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: .2rem .65rem; text-transform: uppercase;
}
.svc-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; margin-top: .5rem; flex-wrap: wrap;
}
.svc-price-row { display: flex; align-items: baseline; gap: .4rem; }
.service-price { font-size: 1.35rem; font-weight: 700; color: var(--text); }
.svc-price-note { font-size: .78rem; color: var(--text-muted); }
.service-enquiry-badge {
  display: inline-flex; align-items: center;
  background: rgba(201,169,110,.1); color: var(--gold);
  border: 1px solid rgba(201,169,110,.3); border-radius: 20px;
  font-size: .78rem; font-weight: 700; padding: .25rem .75rem;
}
.svc-cta { flex-shrink: 0; }

/* ── Blog cards ───────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.blog-card {
  display: flex; flex-direction: column; gap: .6rem;
  cursor: pointer; text-decoration: none;
}
.blog-card:hover { border-color: var(--mid); }
.blog-card-meta  { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.blog-card h3    { color: var(--text); }
.blog-card p     { font-size: .88rem; flex: 1; }
.blog-read-more  { font-size: .82rem; color: var(--warm); font-weight: 600; margin-top: auto; }

/* ── CTA BAND ─────────────────────────────────────────────────────────────── */
.band {
  background: var(--black, #000);
  padding: 5rem 0;
  text-align: center;
}
.band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text, #f2f2f2);
  margin-bottom: .75rem;
}
.band p {
  font-size: 1.05rem;
  color: var(--text-muted, #aaa);
  margin-bottom: 2rem;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: .75rem; }
.footer-brand p  { font-size: .88rem; max-width: 280px; }
.footer-col h4   {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem;
}
.footer-col ul   { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a { font-size: .88rem; color: var(--text-muted); transition: color .15s; }
.footer-col ul a:hover { color: var(--text); }
.footer-social {
  display: flex; gap: .45rem; margin-top: 1.1rem;
}
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--text-muted); transition: color .15s, background .15s, border-color .15s;
}
.social-icon svg { width: 15px; height: 15px; flex-shrink: 0; }
.social-icon:hover {
  background: rgba(201,169,110,.1); border-color: rgba(201,169,110,.35);
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-dim);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: .7rem 1rem; font-size: .92rem; outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--warm); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 580px) { .form-row { grid-template-columns: 1fr; } }
.form-error   { color: #e05252; font-size: .82rem; margin-top: .4rem; }
.form-success { color: #3ecf8e; font-size: .9rem; text-align: center; margin-top: 1rem; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column; gap: .5rem; z-index: 2000;
}
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: var(--radius);
  padding: .7rem 1.1rem; font-size: .85rem;
  animation: toastIn .2s ease; box-shadow: 0 4px 20px rgba(0,0,0,.5);
  color: var(--text);
}
.toast.success { border-left-color: #3ecf8e; }
.toast.error   { border-left-color: #e05252; }
@keyframes toastIn { from { opacity:0; transform:translateX(14px); } to { opacity:1; transform:none; } }

/* ── Spinner ──────────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--gold);
  animation: spin .7s linear infinite; margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Stats strip ──────────────────────────────────────────────────────────── */
.stats-strip {
  display: flex; gap: 0; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item {
  flex: 1; padding: 2rem 1.5rem; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .8rem; color: var(--text-dim); margin-top: .3rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 600px) {
  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); }
}

/* ── Process steps ────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem;
}
.step-card { text-align: center; }
.step-num  {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(201,169,110,.08); border: 1px solid rgba(201,169,110,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: var(--gold);
  margin: 0 auto 1rem;
}
.step-card h3 { margin-bottom: .5rem; }

/* ── CTA section ──────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 5rem 0;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p  { max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Language switcher ────────────────────────────────────────────────────── */
.lang-switcher {
  position: relative;
}
.lang-current {
  display: flex; align-items: center; gap: .35rem;
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-muted);
  padding: .35rem .65rem; cursor: pointer; font-size: .8rem; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.lang-current:hover { border-color: var(--gold); color: var(--gold); }
.lang-code   { letter-spacing: .06em; }
.lang-chevron {
  transition: transform .2s;
  color: var(--text-dim);
}
.lang-switcher.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute; top: calc(100% + .5rem); right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); min-width: 148px;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  overflow: hidden; z-index: 1000;
}
.lang-switcher.open .lang-dropdown { display: block; }

.lang-opt {
  width: 100%; display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem; background: transparent; border: none;
  color: var(--text-muted); font-size: .85rem; cursor: pointer;
  transition: background .12s, color .12s;
  text-align: left;
}
.lang-opt:hover  { background: var(--surface2); color: var(--text); }
.lang-flag       { font-size: .75rem; font-weight: 800; letter-spacing: .04em; color: var(--gold); min-width: 22px; }
.lang-opt.active { color: var(--gold); background: rgba(201,169,110,.08); }
