@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --cream: #F7F2EA;
  --cream-dark: #EEE6D6;
  --sage: #6E7A55;
  --sage-light: #A3AA86;
  --sage-dark: #4F5A3D;
  --moss: #3F4B34;
  --terracotta: #9C7F55;
  --warm-brown: #7A5F3A;
  --charcoal: #2F3127;
  --text-mid: #5A5750;
  --text-light: #8A857D;
  --white: #FDFAF4;
  --shadow: rgba(60,55,40,0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NOISE TEXTURE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

nav.scrolled {
  background: rgba(247, 242, 234, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(110,122,85,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.nav-emblem {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(110,122,85,0.25);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .wordmark {
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--moss);
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav-logo .sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--sage);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--moss);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--moss);
}

.nav-cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 2px;
  letter-spacing: 0.12em;
  transition: background 0.3s !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--moss) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ─── FOOTER ─── */
footer {
  background: var(--moss);
  color: rgba(255,255,255,0.7);
  padding: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand .wordmark {
  font-family: 'EB Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand .sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  display: block;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 280px;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.badges {
  display: flex;
  gap: 1rem;
}

.badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-radius: 1px;
}

/* ─── DECORATIVE LEAF SVG ─── */
.leaf-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--sage);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: background 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--moss);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--moss);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1.5px solid var(--sage);
  border-radius: 2px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--sage);
  color: var(--white);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    z-index: 90;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .nav-hamburger {
    display: flex;
    z-index: 101;
  }

  footer {
    padding: 3rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .nav-emblem { width: 42px; height: 42px; }
  .nav-logo .sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ─── iPHONE / SMALL SCREEN ─── */
nav {
  padding-left: max(4rem, env(safe-area-inset-left));
  padding-right: max(4rem, env(safe-area-inset-right));
}

@media (max-width: 900px) {
  nav {
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: 1rem;
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  /* menu panel: full screen, scrollable, comfortable tap targets */
  .nav-links {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    padding: 6rem 1.5rem calc(2rem + env(safe-area-inset-bottom));
  }
  .nav-links a { display: inline-block; padding: 0.5rem 0.25rem; }
  .nav-links .nav-cta { padding: 0.9rem 2rem; }
  .nav-links.open ~ .nav-hamburger span { background: var(--charcoal) !important; }
  .nav-links.open a:not(.nav-cta) { color: var(--text-mid) !important; }
  .nav-links.open a.active { color: var(--moss) !important; }
  body.menu-open { overflow: hidden; }
  .form-checkbox input[type="checkbox"] { width: 22px !important; height: 22px !important; margin-top: 0 !important; }

  /* 16px+ stops iPhone zooming in when a form field is tapped */
  input, select, textarea { font-size: 16px !important; }

  /* buttons fill the width so they're easy to tap */
  .btn-primary, .btn-outline { justify-content: center; }

  footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .btn-primary, .btn-outline { width: 100%; padding: 1rem 1.2rem; }
  .nav-logo .wordmark { font-size: 1.25rem; }
}

/* stop hover effects sticking after a tap on touch screens */
@media (hover: none) {
  .btn-primary:hover { transform: none; }
}

/* menu button turns into a close cross when open */
.nav-links.open ~ .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-links.open ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-links.open ~ .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
