/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b132b;
  --navy-800: #14213d;
  --gold-500: #c59d5f;
  --gold-600: #a6824a;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #55606e;
  --gray-800: #1f2937;

  --bg: var(--gray-50);
  --surface: #ffffff;
  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --border: var(--gray-200);

  --utility-h: 2.25rem;
  --nav-h: 4.75rem;
  --nav-h-scrolled: 3.75rem;
  --container: 1180px;
  --radius: 2px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d1220;
  --surface: #131a2e;
  --text: #e7e9ee;
  --text-muted: #a7adba;
  --border: #232b42;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.utility-bar {
  background: var(--navy-900);
  color: #b7bdcc;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  overflow: hidden;
  max-height: var(--utility-h);
  transition: max-height 0.25s ease;
}

.utility-inner {
  height: var(--utility-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-contacts { display: flex; gap: 1.5rem; }
.utility-contacts a:hover { color: var(--gold-500); }

.site-header.scrolled .utility-bar { max-height: 0; }

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height 0.25s ease;
}

.site-header.scrolled .header-inner { height: var(--nav-h-scrolled); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background:
    conic-gradient(var(--navy-800) 0deg 90deg, var(--gold-500) 90deg 180deg,
                   var(--navy-800) 180deg 270deg, var(--gold-500) 270deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; color: var(--text); }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-600); }

.nav-links {
  display: flex;
  gap: 2.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-link {
  padding: 0.4rem 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom-color: var(--gold-500); }

/* Nav dropdown (Our Services) */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.nav-dropdown-toggle svg { width: 0.7rem; height: 0.7rem; transition: transform 0.2s ease; }
.nav-dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.85rem;
  min-width: 17rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
  padding: 0.5rem 0;
  display: none;
  z-index: 70;
}
.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu .nav-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  border-bottom: none;
}
.nav-dropdown-menu .nav-link:hover { background: var(--bg); color: var(--text); }
.nav-dropdown-menu .nav-link.active { color: var(--gold-600); font-weight: 700; }
.nav-dropdown-menu .divider { height: 1px; background: var(--border); margin: 0.4rem 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 0 0.6rem;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Main / pages ---------- */
main { flex: 1 1 auto; padding-top: calc(var(--utility-h) + var(--nav-h)); }
.page-view { min-height: 60vh; }
.hidden { display: none; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 0;
  border-top: 1px solid var(--gold-500);
  border-bottom: 3px solid var(--gold-500);
  background-image: url('../images/hero-banner.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    rgba(11, 19, 43, 0.94) 0%,
    rgba(11, 19, 43, 0.82) 30%,
    rgba(11, 19, 43, 0.45) 65%,
    rgba(11, 19, 43, 0.2) 100%
  );
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }
.eyebrow { font-family: var(--font-serif); font-style: italic; color: var(--gold-500); margin: 0 0 0.75rem; letter-spacing: 0.02em; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-size: clamp(1.9rem, 4.5vw, 3.25rem);
}
.hero p {
  color: #cbd2e1;
  font-weight: 300;
  max-width: 42rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0 0 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1rem 2.1rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-gold { background: var(--gold-500); color: #fff; }
.btn-gold:hover { background: var(--gold-600); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold-500); color: var(--gold-600); }

/* Feature / value cards */
.section { padding: 4.5rem 0; }
.grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }

  /* Centers an incomplete last row instead of leaving it left-aligned. */
  .grid-3.grid-center-last {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .grid-3.grid-center-last > * {
    flex: 0 1 calc((100% - 4rem) / 3);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border-top: 3px solid var(--gold-500);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:nth-child(2n) { border-top-color: var(--navy-800); }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.07); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--text); }
.card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--gold-500);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.3rem; height: 1.3rem; }

/* About */
.about { background: var(--bg); border-top: 1px solid var(--border); }
.about-grid { align-items: center; }
.about h2 { color: var(--gold-500); font-family: var(--font-serif); font-style: italic; margin: 0 0 0.4rem; }
.about h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text); margin: 0 0 1.25rem; }
.about p { color: var(--text-muted); line-height: 1.7; margin: 0 0 1rem; }

.promise-box {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold-500);
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.promise-box h4 { font-family: var(--font-serif); color: var(--gold-500); margin: 0 0 1.25rem; }
.promise-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.promise-box li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; color: #dfe3ec; }
.promise-box .check { color: var(--gold-500); flex-shrink: 0; }

/* Services page */
.page-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.page-header h2 { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--text); margin: 0 0 0.75rem; }
.page-header p { color: var(--text-muted); margin: 0; }

.card-link { display: block; text-decoration: none; }
.card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-600);
}
.card-link:hover .card-more { color: var(--navy-900); }
:root[data-theme="dark"] .card-link:hover .card-more { color: var(--gold-500); }

.why-choose {
  margin-top: 3.5rem;
  background: var(--navy-900);
  color: #dfe3ec;
  border-radius: var(--radius);
  border-top: 3px solid var(--gold-500);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
.why-choose h3 { font-family: var(--font-serif); color: var(--gold-500); margin: 0 0 1rem; font-size: 1.3rem; }
.why-choose p { max-width: 46rem; margin: 0 auto; line-height: 1.75; color: #ffffff; }

/* Affiliations page */
.affiliation-card { text-align: center; }
.affiliation-logo {
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.affiliation-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.affiliation-logo .card-icon { margin-bottom: 0; }
.affiliation-card h3 { margin-bottom: 0.6rem; }
.affiliation-card p { font-size: 0.88rem; }
.affiliation-card .service-list { text-align: left; margin: 0; }
.affiliation-card .service-list li { font-size: 0.85rem; }

/* Service detail pages */
.service-detail { max-width: 46rem; margin: 0 auto; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}
.back-link:hover { color: var(--gold-600); }

.service-detail-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; }
.service-detail-header .card-icon { margin-bottom: 0; width: 3.25rem; height: 3.25rem; flex-shrink: 0; }
.service-detail-header .card-icon svg { width: 1.5rem; height: 1.5rem; }
.service-detail-header h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--text); margin: 0; }

.service-detail .lead { color: var(--text-muted); line-height: 1.75; font-size: 1.02rem; margin: 0 0 1.75rem; }
.service-detail .sub-heading { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text); margin: 2rem 0 1.1rem; }

.service-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.service-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.service-list .check { color: var(--gold-600); flex-shrink: 0; font-weight: 700; }

.service-detail .cta-row { margin-top: 2.5rem; }

/* Contact page */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .card-icon { margin-bottom: 0; }
.contact-card .label { font-weight: 700; color: var(--text); margin: 0 0 0.25rem; }
.contact-card a.value, .contact-card p.value { color: var(--text-muted); margin: 0; }
.contact-card a.value:hover { color: var(--gold-600); }

/* Contact form */
.contact-form-wrap {
  max-width: 40rem;
  margin: 3.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: left;
}
.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.contact-form-wrap > p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 2rem; }

.form-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two-col { grid-template-columns: 1fr 1fr; } }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.55rem 0.1rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-500);
}
.form-group textarea { resize: vertical; min-height: 8rem; }

.form-status { margin-top: 1.25rem; font-size: 0.85rem; min-height: 1.2em; }
.form-status.success { color: #2f7a4d; }
.form-status.error { color: #b3413b; }
:root[data-theme="dark"] .form-status.success { color: #7fd39a; }
:root[data-theme="dark"] .form-status.error { color: #e08a84; }

/* Footer */
.site-footer { background: var(--navy-900); color: #9aa2b6; }
.footer-main { border-top: 3px solid var(--gold-500); padding: 3rem 0 2.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}
.footer-col p, .footer-col a { display: block; font-size: 0.85rem; line-height: 1.9; color: #9aa2b6; margin: 0; }
.footer-col a:hover { color: var(--gold-500); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 767px) {
  .utility-bar { display: none; }
  main { padding-top: var(--nav-h); }

  .menu-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open { max-height: 34rem; overflow-y: auto; }

  .nav-link {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    border-bottom: none;
  }
  .nav-link.active { background: var(--bg); border-bottom: none; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
  }
  .nav-dropdown-toggle.active { background: var(--bg); }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    background: var(--bg);
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    padding: 0;
  }
  .nav-dropdown-menu.open { display: block; }
  .nav-dropdown-menu .nav-link {
    padding: 0.85rem 1.25rem 0.85rem 2rem;
    border-top: 1px solid var(--border);
  }
}

@media (min-width: 640px) {
  .hero { padding: 6.5rem 0; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: var(--surface);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.theme-toggle:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.theme-toggle svg { width: 1.35rem; height: 1.35rem; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
