:root {
  --navy: #0c2340;
  --navy-deep: #071628;
  --navy-mid: #16355c;
  --cream: #f3eee4;
  --ivory: #faf7f2;
  --paper: #fffdf8;
  --ink: #16181d;
  --muted: #5e6772;
  --accent: #1b6b5c;
  --accent-hover: #15574b;
  --bronze: #b7a48a;
  --line: #d9d1c4;
  --whatsapp: #25d366;
  --danger: #9b2c2c;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
address { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 500;
  text-wrap: balance;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker-bronze { color: var(--bronze); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 3rem; padding: 0 2rem; }
.btn-sm { min-height: 2.25rem; padding: 0 1rem; font-size: 0.72rem; }
.btn-accent { background: var(--accent); color: var(--ivory); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-cream { background: var(--cream); color: var(--navy); }
.btn-cream:hover { background: var(--ivory); }
.btn-navy { background: var(--navy); color: var(--cream); }
.btn-navy:hover { background: var(--navy-mid); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgb(243 238 228 / 0.3);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgb(12 35 64 / 0.2);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* Header */
.site-header { z-index: 40; }
.site-header.is-home { position: fixed; inset: 0 0 auto 0; }
.site-header:not(.is-home) { position: sticky; top: 0; }

.topbar {
  display: none;
  border-bottom: 1px solid rgb(243 238 228 / 0.15);
  background: var(--navy);
  color: var(--cream);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  gap: 1rem;
}
.topbar p { margin: 0; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 1.25rem; }
.topbar a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar a:hover { color: var(--bronze); }

.navbar { border-bottom: 1px solid var(--line); background: rgb(250 247 242 / 0.95); backdrop-filter: blur(12px); }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.nav-desktop { display: none; align-items: center; gap: 1.75rem; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo-img { height: 2.25rem; width: auto; }
.logo-img-light { display: none; height: 2.25rem; width: auto; }
.logo-legal {
  margin-top: 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.logo-lockup .logo-img-light { display: block; height: 3.25rem; }
.logo-lockup .logo-legal { color: rgb(243 238 228 / 0.75); }

.nav-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 220ms var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.nav-drop { position: relative; }
.nav-panel {
  position: absolute;
  left: 50%; top: 100%;
  width: 28rem;
  transform: translateX(-50%);
  padding-top: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease);
}
.nav-panel > div, .nav-panel {
  /* panel body */
}
.nav-drop:hover .nav-panel,
.nav-drop:focus-within .nav-panel { opacity: 1; visibility: visible; }
.nav-panel {
  /* recreate as containing the cards */
}
.nav-panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  text-decoration: none;
  box-shadow: 0 12px 30px rgb(12 35 64 / 0.08);
}
.nav-panel a:first-child { border-top: 1px solid var(--line); }
.nav-panel a:last-child { border-bottom: 1px solid var(--line); }
.nav-panel a:hover { background: var(--cream); }
.nav-panel-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}
.nav-panel-copy {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.menu-toggle {
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent; color: var(--navy);
}
.menu-toggle .icon-close { display: none; }
.menu-toggle.is-open .icon-open { display: none; }
.menu-toggle.is-open .icon-close { display: block; }

.nav-mobile {
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
}
.nav-mobile a.sub {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  border: 0;
  padding: 0.4rem 0;
}
.nav-mobile .btn { margin-top: 0.75rem; }

/* Inverted (home overlay) */
.site-header.is-inverted .topbar {
  background: rgb(7 22 40 / 0.7);
  border-color: rgb(243 238 228 / 0.15);
}
.site-header.is-inverted .navbar {
  background: rgb(12 35 64 / 0.35);
  border-color: rgb(243 238 228 / 0.1);
}
.site-header.is-inverted .nav-link,
.site-header.is-inverted .menu-toggle { color: var(--cream); }
.site-header.is-inverted .logo-img { display: none; }
.site-header.is-inverted .logo-img-light { display: block; }

.site-header.is-home.is-solid .topbar { background: var(--navy); }
.site-header.is-home.is-solid .navbar {
  background: rgb(250 247 242 / 0.95);
  border-color: var(--line);
}
.site-header.is-home.is-solid .nav-link,
.site-header.is-home.is-solid .menu-toggle { color: var(--navy); }
.site-header.is-home.is-solid .logo-img { display: block; }
.site-header.is-home.is-solid .logo-img-light { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
}
.hero img.bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--navy-deep) 0%, rgb(7 22 40 / 0.55) 45%, rgb(12 35 64 / 0.1) 100%);
}
.hero-copy {
  position: relative;
  padding: 9rem 0 5rem;
  max-width: 48rem;
}
.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--cream);
}
.hero p.lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: rgb(243 238 228 / 0.8);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.page-hero {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
}
.page-hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.55;
}
.page-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy-deep), rgb(7 22 40 / 0.45));
}
.page-hero-copy { position: relative; padding: 6.5rem 0 2.5rem; max-width: 44rem; }
.page-hero h1 { margin: 0.6rem 0 0; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero p { margin: 0.8rem 0 0; color: rgb(243 238 228 / 0.8); }

.stats {
  display: grid;
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.stat-icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--accent);
}
.stat label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.section { padding: 4.5rem 0; }
.section-lg { padding: 5.5rem 0; }
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.split-frame { position: relative; }
.split-frame img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.split-card {
  display: none;
  position: absolute;
  right: 0; bottom: -1.25rem;
  width: 12rem;
  background: var(--navy);
  color: var(--cream);
  border: 1px solid var(--line);
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.band-navy { background: var(--navy); color: var(--cream); }
.band-cream { background: var(--cream); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-head h2,
.split h2,
.cta h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: inherit;
}
.split h2 { color: var(--navy); }

.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
.service-card {
  position: relative;
  isolation: isolate;
  min-height: 18rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
}
.service-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.service-card:hover img { transform: scale(1.05); }
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: rgb(7 22 40 / 0.55);
}
.service-card div { position: relative; padding: 1.5rem; }
.service-card h3 { margin: 0.4rem 0 0; font-size: 1.5rem; }
.service-card p { margin: 0.4rem 0 0; color: rgb(243 238 228 / 0.75); font-size: 0.9rem; }

.office-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.2rem;
}
.office-tile { text-decoration: none; }
.office-tile img { height: 20rem; width: 100%; object-fit: cover; }
.office-tile h3 {
  margin: 0.7rem 0 0;
  font-size: 1.25rem;
  color: var(--navy);
}
.office-tile p {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta { position: relative; overflow: hidden; text-align: center; color: var(--cream); }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.cta-inner { position: relative; padding: 5.5rem 0; }
.cta h2 { max-width: 36rem; margin-inline: auto; color: var(--cream); }
.cta p { max-width: 34rem; margin: 1rem auto 0; color: rgb(243 238 228 / 0.75); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.office-row {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 2rem;
}
.office-row img { height: 16rem; width: 100%; object-fit: cover; }
.office-row-copy { padding: 2rem; }
.office-row h2 { margin: 0.4rem 0 0; font-size: 2.2rem; color: var(--navy); }
.office-row h2 span { color: var(--muted); }
.meta { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.meta li { display: flex; gap: 0.5rem; margin: 0.6rem 0; font-size: 0.9rem; }
.meta svg { flex: none; margin-top: 0.15rem; color: var(--accent); }

.letterhead {
  display: grid;
  gap: 2rem;
}
.letterhead address p { margin: 0.7rem 0 0; font-size: 0.95rem; line-height: 1.6; }
.letterhead a { display: inline-block; margin-top: 0.7rem; text-decoration: none; }
.letterhead .rc {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.letterhead.inverted { color: rgb(243 238 228 / 0.85); }
.letterhead.inverted a { color: var(--cream); }
.letterhead.inverted .rc { color: rgb(243 238 228 / 0.55); }

.points { display: grid; gap: 1px; background: var(--line); margin-top: 2.2rem; }
.point {
  background: var(--ivory);
  padding: 1.4rem;
  text-decoration: none;
}
.point:hover { background: var(--paper); }
.point h3 { margin: 0.6rem 0 0; font-size: 1.4rem; color: var(--navy); }
.point p { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.9rem; }

.aside-card {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem;
}
.aside-dark {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.aside-dark a { color: var(--cream); }

.form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.75rem;
}
.form label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; }
.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 0.75rem; color: var(--muted); margin: 0; }
.alert {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem;
}
.alert h3 { margin: 0.4rem 0 0; font-size: 1.8rem; color: var(--navy); }
.alert-error { color: var(--danger); font-size: 0.9rem; }

.site-footer { background: var(--navy); color: var(--cream); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0;
}
.footer-intro { max-width: 26rem; color: rgb(243 238 228 / 0.75); font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; margin: 1rem 0 0; }
.footer-links a { color: rgb(243 238 228 / 0.8); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--cream); }
.footer-links li { margin: 0.4rem 0; }
.footer-contact { margin-top: 1.4rem; font-size: 0.9rem; color: rgb(243 238 228 / 0.8); }
.footer-contact a { color: var(--cream); text-decoration: none; }
.footer-base { border-top: 1px solid rgb(243 238 228 / 0.1); }
.footer-base-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 0;
  font-size: 0.75rem;
  color: rgb(243 238 228 / 0.55);
}
.footer-base a { color: rgb(243 238 228 / 0.45); text-decoration: none; }
.footer-base a:hover { color: var(--cream); }

.whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 30;
  width: 3.5rem; height: 3.5rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--ivory);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.2);
  transition: transform 150ms var(--ease);
}
.whatsapp:hover { transform: scale(1.06); }

/* Admin */
.admin-body { background: var(--ivory); }
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.admin-shell { display: grid; gap: 2rem; padding: 2.5rem 0; }
.admin-nav a {
  display: block;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--muted);
}
.admin-nav a.is-active { color: var(--navy); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; background: var(--paper); }
.table th, .table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 0.75rem;
  font-size: 0.9rem;
  vertical-align: top;
}
.table th { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.login-card {
  width: min(100% - 2.5rem, 28rem);
  margin: 4rem auto;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem;
}
.login-screen { min-height: 100svh; display: grid; place-items: center; background: var(--navy); }

.hide-sm { display: none; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .split-card { display: block; }
  .form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .office-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: inline-flex; }
  .letterhead { grid-template-columns: 1fr 1fr; }
  .align-end { text-align: right; }
}

@media (min-width: 900px) {
  .topbar { display: block; }
  .nav-desktop { display: flex; }
  .menu-toggle, .nav-mobile { display: none !important; }
  .navbar-inner { min-height: 4.5rem; }
  .logo-img, .logo-img-light { height: 2.75rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr 1fr; }
  .service-card.wide { grid-column: span 2; }
  .office-grid { grid-template-columns: repeat(5, 1fr); }
  .office-tile img { height: 20rem; }
  .office-row { grid-template-columns: 1fr 1fr; }
  .office-row img { height: 100%; min-height: 16rem; }
  .footer-grid { grid-template-columns: 5fr 3fr 4fr; }
  .footer-base-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-grid, .about-grid, .admin-shell { grid-template-columns: 7fr 5fr; }
  .admin-shell { grid-template-columns: 3fr 9fr; }
  .points { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
