/* ---------- Tokens ---------- */
:root {
  --green-900: #082a1f;
  --green-800: #0d3b2c;
  --green-700: #11503c;
  --green-50: #eaf3ee;
  --gold-600: #b8943d;
  --gold-500: #c9a449;
  --gold-400: #d8b96a;
  --ink-900: #1b1f1d;
  --ink-700: #3a4540;
  --ink-500: #6b746f;
  --ink-300: #c9cfcb;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --line: #e7e3d6;

  --shadow-1: 0 1px 2px rgba(8, 42, 31, 0.06), 0 1px 3px rgba(8, 42, 31, 0.04);
  --shadow-2: 0 4px 10px rgba(8, 42, 31, 0.08), 0 2px 4px rgba(8, 42, 31, 0.05);
  --shadow-3: 0 12px 28px rgba(8, 42, 31, 0.14), 0 6px 10px rgba(8, 42, 31, 0.06);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --container: 1140px;
  --header-h: 72px;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
  background: rgba(251, 250, 246, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--green-800);
}
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-700);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover {
  color: var(--green-800);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--green-800);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
}
.nav-toggle:hover {
  background: var(--green-50);
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.mobile-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
  color: var(--ink-700);
}
.mobile-nav a:hover {
  background: var(--green-50);
  color: var(--green-800);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 0 6rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(201, 164, 73, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 80% 110%,
      rgba(13, 59, 44, 0.16),
      transparent 65%
    ),
    linear-gradient(180deg, var(--bg) 0%, #f3efe2 100%);
  z-index: -1;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 59, 44, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 59, 44, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, transparent 75%);
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 6px 20px rgba(8, 42, 31, 0.18));
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw + 1rem, 5.25rem);
  letter-spacing: 0.04em;
  color: var(--green-800);
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw + 0.6rem, 1.4rem);
  color: var(--gold-600);
  margin: 0 0 0.25rem;
  letter-spacing: 0.05em;
}
.hero-sub {
  color: var(--ink-500);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-800);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-1);
  animation: bob 2.4s ease-in-out infinite;
  transition: background 0.2s var(--ease);
}
.scroll-cue:hover {
  background: #fff;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green-800);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid transparent;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn .material-symbols-rounded {
  font-size: 1.15rem;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--green-800);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-700);
}
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-800);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--green-800);
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}
.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  line-height: 1.15;
  margin: 0;
  color: var(--green-900);
}
.lede {
  color: var(--ink-700);
  font-size: 1.1rem;
  max-width: 60ch;
}

.section-about {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-800), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: transparent;
}
.card:hover::before {
  transform: scaleX(1);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-50);
  color: var(--green-800);
  margin-bottom: 1.25rem;
}
.card-icon .material-symbols-rounded {
  font-size: 30px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
  color: var(--green-900);
}
.card-sub {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 600;
}
.card p:last-child {
  color: var(--ink-700);
  margin: 0;
}

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(201, 164, 73, 0.1), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
  }
}

.contact-form {
  background: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  font: inherit;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(17, 80, 60, 0.15);
}
.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-700);
  min-height: 1.25rem;
}
.form-status.is-success {
  color: var(--green-700);
}
.form-status.is-error {
  color: #b3301f;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-mark {
  width: 36px;
  height: 36px;
  background: #fff;
  padding: 4px;
  border-radius: 8px;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}
.footer-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-top: 2px;
}
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }
  .site-header.is-open .mobile-nav {
    display: block;
  }
  .brand-tagline {
    display: none;
  }
  .section {
    padding: 4.5rem 0;
  }
  .hero {
    padding: 3rem 0 5rem;
  }
  .hero-logo {
    width: 96px;
    height: 96px;
  }
}
