:root {
  --navy: #0d2a3a;
  --navy-deep: #081d2a;
  --tide: #2a6f87;
  --tide-light: #5a8fa5;
  --brass: #a8804a;
  --brass-soft: #c9a066;
  --cream: #f5efe3;
  --cream-warm: #ede4d3;
  --ink: #1a2a33;
  --muted: #5a6d76;
  --rule: #d8cdb9;
  --white: #fdfbf6;

  --serif: "Fraunces", Georgia, "Iowan Old Style", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--tide); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  color: var(--tide);
}

.nav nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav nav a {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 6rem 0 7rem;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 240px;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--brass-soft);
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--white);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.hero .lede {
  font-size: 1.2rem;
  color: rgba(245, 239, 227, 0.85);
  max-width: 620px;
  margin: 0 0 2.5rem;
}

.cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--brass);
  color: var(--white);
  border-radius: 2px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: background 0.2s;
  border: 1px solid var(--brass);
}
.btn:hover { background: var(--brass-soft); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245, 239, 227, 0.4);
}
.btn-ghost:hover { background: rgba(245, 239, 227, 0.08); color: var(--white); }

/* ---------- Sections ---------- */

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--brass);
}

/* ---------- Services grid ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service {
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -16px rgba(13, 42, 58, 0.25);
}

.service .icon {
  width: 40px;
  height: 40px;
  color: var(--tide);
  margin-bottom: 1rem;
}

.service h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Dark section ---------- */

.section-dark {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  padding-top: 7rem;
}

.section-dark h2 { color: var(--white); }
.section-dark .section-title::after { background: var(--brass-soft); }

.divider-waves {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: 80px;
}

.prose {
  max-width: 720px;
}

.prose p {
  color: rgba(245, 239, 227, 0.85);
  margin: 0 0 1rem;
}

/* ---------- Expertise ---------- */

.expertise {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.expertise h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-weight: 600;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  font-size: 0.88rem;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.section-contact {
  background: var(--cream-warm);
  text-align: center;
  padding: 5rem 0;
}

.section-contact .section-title {
  display: inline-block;
}

.section-contact .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-contact .lede {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--muted);
}

.contact-email {
  margin: 0;
}

.contact-email a {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.2rem;
}

.contact-email a:hover {
  color: var(--tide);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0;
  background: var(--navy-deep);
  color: rgba(245, 239, 227, 0.55);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- Mobile adjustments ---------- */

@media (max-width: 640px) {
  .nav nav { gap: 1rem; font-size: 0.88rem; }
  .hero { padding: 4rem 0 5rem; }
  .section { padding: 3.5rem 0; }
}
