/* ═══════════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════════ */
:root {
  --primary: #0d1b2a;
  --secondary: #1b263b;
  --accent: #d4a017;
  --text: #1f2933;
  --muted: #5b6777;
  --bg: #f6f8fb;
  --white: #ffffff;
  --border: #d9e2ec;
  --shadow: 0 16px 40px rgba(13, 27, 42, 0.12);
}

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   TOPBAR
═══════════════════════════════════════════════ */
.topbar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  padding: 0 1.5rem !important;
  min-height: 70px !important;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Brand ─────────────────────────────────── */
.site-header .container > .brand {
  flex: 1 !important;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--accent);
}

.brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 56px;
  width: auto;
}

/* ═══════════════════════════════════════════════
   HAMBURGER TOGGLE (CSS-only checkbox trick)
═══════════════════════════════════════════════ */
.site-header .container > .nav-toggle-input {
  display: none !important;
  pointer-events: none !important;
}

/* ── Desktop: hidden — NO !important so mobile can override ── */
.site-header .container > .nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  line-height: 0;
  order: 2;
}

.site-header .container > .nav-toggle-label .bar {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Bars animate to ✕ when checked */
.site-header .container > .nav-toggle-input:checked
  ~ .nav-toggle-label .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header .container > .nav-toggle-input:checked
  ~ .nav-toggle-label .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header .container > .nav-toggle-input:checked
  ~ .nav-toggle-label .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   NAV LINKS — DESKTOP
═══════════════════════════════════════════════ */
.site-header .container > .nav-links {
  display: flex !important;
  align-items: center;
  gap: 2rem;
  order: 3;
}

.site-header .container > .nav-links a {
  font-weight: 600;
  color: var(--secondary);
}

.site-header .container > .nav-links a:hover,
.site-header .container > .nav-links .primary-menu .current-menu-item > a,
.site-header .container > .nav-links .primary-menu .current_page_item > a,
.site-header .container > .nav-links .primary-menu .current-page-ancestor > a {
  color: var(--accent);
}

/* ── Primary menu ─────────────────────────── */
.site-header .container > .nav-links .primary-menu {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .container > .nav-links .primary-menu a {
  font-weight: 600;
  color: var(--secondary);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.86), rgba(13, 27, 42, 0.48)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.hero-content {
  max-width: 640px;
  padding: 4.5rem 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.1;
}

.hero p,
.page-hero p {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.stat-card,
.card,
.service-card,
.contact-card,
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 1.2rem;
  color: var(--primary);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
}

/* ═══════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════ */
.section {
  padding: 5rem 0;
}

.section-title {
  max-width: 650px;
  margin-bottom: 2rem;
}

.section-title h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  color: var(--primary);
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════ */
.grid-3,
.grid-2,
.service-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3,
.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card,
.feature-card {
  padding: 1.6rem;
}

.feature-card h3,
.card h3,
.service-card h3,
.contact-card h3 {
  margin-top: 0;
  color: var(--primary);
}

.muted {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   ABOUT SPLIT
═══════════════════════════════════════════════ */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-image img,
.page-image {
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.check-list {
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ═══════════════════════════════════════════════
   SERVICE CARDS
═══════════════════════════════════════════════ */
.service-card {
  overflow: hidden;
}

.service-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.service-card .content {
  padding: 1.35rem;
}

/* ═══════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════ */
.page-hero {
  padding: 5rem 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(13, 27, 42, 0.88), rgba(27, 38, 59, 0.65)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

/* ═══════════════════════════════════════════════
   HIGHLIGHT BAND
═══════════════════════════════════════════════ */
.highlight-band {
  background: var(--primary);
  color: var(--white);
}

.highlight-band .grid-3 {
  align-items: stretch;
}

.highlight-band .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  box-shadow: none;
}

.highlight-band .card h3 {
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-card,
.contact-form {
  padding: 1.6rem;
}

.contact-form {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-grid > div > .contact-card + .contact-card {
  margin-top: 1rem;
}

iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════════
   PAGE CONTENT
═══════════════════════════════════════════════ */
.page-content-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.page-content-shell > :first-child,
.content-entry > :first-child {
  margin-top: 0;
}

.page-content-shell > :last-child,
.content-entry > :last-child {
  margin-bottom: 0;
}

.content-entry + .content-entry {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: #08111d;
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 1.5rem;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  margin-top: 0;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-note {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .service-grid,
  .contact-grid,
  .footer-grid,
  .about-split,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content,
  .page-hero {
    padding: 3.5rem 0;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 768px)
═══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Show hamburger — wins because desktop rule has no !important */
  .site-header .container > .nav-toggle-label {
    display: flex !important;
  }

  /* Collapse nav below brand + toggle row */
  .site-header .container > .nav-links {
    width: 100% !important;
    order: 4 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    background: var(--white);
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    padding: 0 !important;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  /* Open state when checkbox is checked */
  .site-header .container > .nav-toggle-input:checked ~ .nav-links {
    max-height: 600px !important;
    opacity: 1 !important;
    padding: 0.75rem 0 1.5rem !important;
  }

  /* Stack menu items */
  .site-header .container > .nav-links .primary-menu {
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .site-header .container > .nav-links .primary-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .site-header .container > .nav-links .primary-menu a {
    display: block !important;
    padding: 0.875rem 0 !important;
    width: 100%;
  }

  .site-header .container > .nav-links .btn {
    display: block !important;
    margin-top: 1.25rem !important;
    width: 100% !important;
    text-align: center !important;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (max 600px)
═══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}