/* ===== Design tokens ===== */
:root {
  --navy: #10222E;
  --navy-light: #1B3B4E;
  --teal: #2F7A73;
  --teal-tint: #EAF3F1;
  --gold: #C79A56;
  --cream: #FAF7F1;
  --white: #FFFFFF;
  --ink: #1E2A32;
  --ink-muted: #5C6B72;
  --border: #E5E1D6;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1140px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1.1em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
.narrow { max-width: 760px; }
.center { text-align: center; }

.section { padding: 96px 0; scroll-margin-top: 78px; }

.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 0.9em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: #d9ab63;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(199, 154, 86, 0.35);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--teal); }
.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 150px 0 130px;
  overflow: hidden;
  text-align: center;
}
.dot-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dot-pattern svg { width: 100%; height: 100%; }

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(16, 34, 46, 0.76) 0%, rgba(58, 124, 150, 0.58) 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(7px) saturate(0.7) brightness(1);
  transform: scale(1.04);
}
.hero .hero-bg::after,
.contact .hero-bg::after,
.services-banner .hero-bg::after {
  background: linear-gradient(160deg, rgba(16, 34, 46, 0.5) 0%, rgba(58, 124, 150, 0.4) 100%);
}
.hero .hero-bg img,
.contact .hero-bg img,
.services-banner .hero-bg img {
  filter: saturate(0.9) brightness(1.02);
  transform: scale(1);
}
.hero-inner,
.contact-inner {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(8, 18, 24, 0.55);
}
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.hero-tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--cream);
  opacity: 0.88;
  margin-bottom: 40px;
}

/* ===== Problem ===== */
.problem-text {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--navy);
  line-height: 1.55;
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  text-align: left;
}

/* ===== About ===== */
.about { position: relative; background: var(--white); overflow: hidden; }
.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.about-bg-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  opacity: 0.05;
  filter: grayscale(30%);
}
.about-figure {
  position: absolute;
  top: 50%;
  height: 90%;
  width: auto;
  object-fit: contain;
  opacity: 0.09;
  filter: grayscale(25%);
}
.about-figure-left {
  left: -40px;
  transform: translateY(-50%) scaleX(-1);
}
.about-figure-right {
  right: -40px;
  transform: translateY(-50%);
}
.about-copy { position: relative; z-index: 1; }
.about-copy h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about-copy p:not(.label) { text-align: left; }
.promise-card { text-align: left; }

.promise-card {
  margin-top: 28px;
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  padding: 22px 26px;
  border-radius: 2px;
}
.promise-label {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.promise-card p { color: var(--ink); margin: 0; }

/* ===== Services ===== */
.services-banner {
  position: relative;
  overflow: hidden;
  max-width: var(--wrap);
  margin: 0 auto 64px;
  padding: 64px 28px;
  border-radius: 14px;
}
.services-banner-inner {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(8, 18, 24, 0.55);
}
.services-banner-inner .label { color: var(--gold); }
.services-banner-inner h2 { color: var(--white); }
.services-intro { font-size: 1.05rem; color: var(--cream); opacity: 0.9; }

/* ===== Values background ===== */
.values-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.values-bg-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  filter: grayscale(30%);
}
.values-copy { position: relative; z-index: 1; }

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 38px 34px;
}
.pillar-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar-icon img { width: 100%; height: 100%; object-fit: contain; }
.pillar-card h3 { font-size: 1.28rem; margin-bottom: 20px; }
.sub-service { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.sub-service:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.sub-service h4 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.sub-service p { font-size: 0.94rem; margin-bottom: 0; }

/* ===== Who We Serve ===== */
.who-we-serve { background: var(--teal-tint); }
.serve-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.tag {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Values ===== */
.values { position: relative; background: var(--white); overflow: hidden; }
.values-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 52px;
  text-align: center;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.value-icon img { width: 40px; height: 40px; object-fit: contain; }
.value-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* ===== Founder ===== */
.founder { background: var(--white); }
.founder-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.avatar-photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--teal-tint);
  box-shadow: 0 0 0 1.5px var(--teal);
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.founder-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* ===== Contact ===== */
.contact {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  overflow: hidden;
}
.contact .label { color: var(--gold); }
.contact h2 { color: var(--white); }
.contact-lead { color: var(--cream); opacity: 0.85; font-size: 1.05rem; }
.contact-email {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 4px;
}
.contact-email:hover { color: var(--white); border-color: var(--white); }

/* ===== Footer ===== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 40px 0 26px;
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; }
.footer-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
}
.footer-tagline { font-style: italic; font-family: var(--font-head); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder-portrait { order: -1; max-width: 220px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 420px; }
  .site-nav a {
    width: 100%;
    padding: 16px 28px;
    border-top: 1px solid var(--border);
  }
  .nav-cta { border-radius: 0; text-align: center; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .hero { padding: 120px 0 90px; }
  .services-banner { padding: 44px 22px; border-radius: 10px; margin-bottom: 44px; }

  .problem-text { text-align: left; }
  .values-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-top { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
