/* ===== Design tokens ===== */
:root {
  --navy-900: #0d1a3a;
  --navy-800: #142452;
  --navy-700: #1b2f66;
  --navy-600: #24407f;
  --gold-500: #c9a24a;
  --gold-400: #d8b866;
  --gold-300: #e7cf8f;
  --ink: #1a2238;
  --muted: #5a6274;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --heading: #0d1a3a;
  --header-bg: rgba(255, 255, 255, 0.9);

  --maxw: 1140px;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(13, 26, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 26, 58, 0.12);
  --header-h: 84px;
}

/* Dark theme — remaps surface & text tokens; brand navy/gold scales stay fixed */
[data-theme='dark'] {
  --ink: #e7ecf6;
  --muted: #9aa6c0;
  --line: #27324f;
  --bg: #0d1729;
  --bg-soft: #131f3b;
  --white: #182746;
  --heading: #f0f3fa;
  --header-bg: rgba(13, 23, 41, 0.9);
}

/* ===== Reset / base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  line-height: 1.15;
  margin: 0;
  color: var(--heading);
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 8px 20px rgba(201, 162, 74, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 12px 26px rgba(201, 162, 74, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  color: var(--heading);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--heading);
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-500);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--heading);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ===== Language switch ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-btn {
  padding: 5px 11px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--heading);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-btn:hover {
  color: var(--gold-500);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
}

/* ===== Theme toggle ===== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: 6px;
  padding: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--heading);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle:hover {
  color: var(--gold-500);
  border-color: var(--gold-400);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(
      1200px 600px at 75% -10%,
      rgba(201, 162, 74, 0.18),
      transparent 60%
    ),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 70%, var(--navy-600));
  color: #ffffff;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.svg') center / cover no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  text-align: center;
  padding-top: 110px;
  padding-bottom: 120px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-300);
  margin-bottom: 20px;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-text {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 34px;
  max-width: 680px;
}

/* ===== Sections shared ===== */
.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.section-text {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Services (2×2 grid split by a vertical divider) ===== */
.services {
  padding: 96px 0 64px;
  background: var(--bg-soft);
}

.services-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Vertical divider spanning ~80% of the section height */
.services-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 2px;
  height: 80%;
  background: linear-gradient(
    180deg,
    transparent,
    var(--gold-500) 15%,
    var(--gold-500) 85%,
    transparent
  );
}

.service-col {
  padding: 8px 12px;
}

.split-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ===== Contact ===== */
.contact {
  padding: 96px 0;
  background: var(--bg);
}

.contact-inner {
  max-width: 720px;
}

.contact-title {
  text-align: center;
}

.contact-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-subtitle {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, 0.2);
}

.field.invalid input,
.field.invalid textarea {
  border-color: #d64545;
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.15);
}

.field-error {
  min-height: 1em;
  font-size: 0.85rem;
  color: #d64545;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

/* Honeypot — hidden from users, bots that fill it are silently dropped */
.hp-field {
  display: none;
}

.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.success {
  background: rgba(46, 160, 90, 0.14);
  border: 1px solid #2ea05a;
  color: #2ea05a;
}

.form-status.error {
  background: rgba(214, 69, 69, 0.14);
  border: 1px solid #d64545;
  color: #e06666;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  height: 42px;
  width: auto;
  display: block;
}

.footer-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--gold-300);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Stacked columns: drop the vertical divider, rule between each service instead */
  .services-grid::before {
    display: none;
  }

  .service-col + .service-col {
    padding-top: 40px;
    border-top: 2px solid var(--gold-500);
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 16px 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 12px;
    border-radius: 8px;
  }

  .nav-link::after {
    display: none;
  }

  .lang-switch {
    align-self: flex-start;
    margin: 10px 12px 4px;
  }

  .theme-toggle {
    align-self: flex-start;
    margin: 4px 12px 10px;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 540px) {
  .hero-inner {
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .split,
  .contact {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }
}
