/* ====== Spring Forest UK — Stylesheet ====== */

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

:root {
  --color-bg: #fdfaf0;
  --color-bg-alt: #f4eed8;
  --color-cream: #f8f1de;
  --color-moss: #3d5a28;
  --color-moss-dark: #2a3d18;
  --color-moss-light: #5a7a3e;
  --color-leaf: #7aa860;
  --color-leaf-soft: #a8c890;
  --color-bark: #5a4028;
  --color-bark-dark: #3a2818;
  --color-bluebell: #7a5fc8;
  --color-robin: #c84830;
  --color-text: #2a2a20;
  --color-text-muted: #6a6a5a;
  --color-line: #d4cdb0;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1200px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* ====== Reset & base ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Subtle paper texture using gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(122, 168, 96, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(90, 64, 40, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-moss-dark);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(253, 250, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  z-index: 100;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo-text { line-height: 1.1; }

.logo-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-moss-dark);
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--color-moss-light);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-moss-dark);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

nav a:hover { color: var(--color-leaf); }
nav a:hover::after { width: 100%; }

nav a.active { color: var(--color-leaf); }
nav a.active::after { width: 100%; }

.btn-login {
  background: var(--color-moss-dark);
  color: var(--color-cream) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 2px;
  border: 1px solid var(--color-moss-dark);
  transition: all 0.25s;
  font-size: 0.85rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-login:hover {
  background: transparent;
  color: var(--color-moss-dark) !important;
}

.btn-login::after { display: none !important; }

/* ====== Hero ====== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(253, 250, 240, 0.95) 0%,
    rgba(253, 250, 240, 0.7) 40%,
    rgba(253, 250, 240, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: var(--space-md);
  margin-left: 5%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-moss-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-moss-light);
}

.hero h1 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  color: var(--color-leaf);
  font-style: normal;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.7;
}

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

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 2px;
}

.btn-primary {
  background: var(--color-moss-dark);
  color: var(--color-cream);
  border-color: var(--color-moss-dark);
}

.btn-primary:hover {
  background: var(--color-leaf);
  border-color: var(--color-leaf);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(61, 90, 40, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-moss-dark);
  border-color: var(--color-moss-dark);
}

.btn-secondary:hover {
  background: var(--color-moss-dark);
  color: var(--color-cream);
}

/* ====== Section ====== */
section {
  padding: var(--space-xl) 0;
  position: relative;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-leaf);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before {
  content: '✦';
  color: var(--color-leaf);
  font-size: 0.7rem;
}

.section-title {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ====== Mission strip ====== */
.mission {
  background: var(--color-bg-alt);
  position: relative;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.mission-stat {
  text-align: left;
  padding: 2rem 1rem 2rem 0;
  border-left: 2px solid var(--color-line);
  padding-left: 1.75rem;
}

.mission-stat .number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--color-moss-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.mission-stat .label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: 0.5rem;
}

.mission-stat .desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ====== Feature row ====== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.feature-row.reverse .feature-image { order: 2; }

.feature-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(42, 24, 8, 0.15);
}

.feature-text h3 {
  margin-bottom: 1.25rem;
  font-style: italic;
}

.feature-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.feature-text ul {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-text ul li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.feature-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--color-leaf);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* ====== Card grid ====== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-cream);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-line);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-leaf);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.card:hover::before { transform: scaleX(1); }

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(42, 24, 8, 0.1);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-style: italic;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ====== CTA ====== */
.cta {
  background: var(--color-moss-dark);
  color: var(--color-cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(122, 168, 96, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(168, 200, 144, 0.1) 0%, transparent 50%);
}

.cta .container { position: relative; z-index: 2; }

.cta h2 {
  color: var(--color-cream);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: rgba(248, 241, 222, 0.85);
  font-size: 1.1rem;
}

.cta .btn-primary {
  background: var(--color-cream);
  color: var(--color-moss-dark);
  border-color: var(--color-cream);
}

.cta .btn-primary:hover {
  background: var(--color-leaf);
  color: var(--color-cream);
  border-color: var(--color-leaf);
}

/* ====== Footer ====== */
.site-footer {
  background: var(--color-bark-dark);
  color: var(--color-cream);
  padding: var(--space-lg) 0 var(--space-md);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-brand .logo-name { color: var(--color-cream); }
.footer-brand .logo-tagline { color: var(--color-leaf-soft); }

.footer-brand p {
  color: rgba(248, 241, 222, 0.65);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--color-leaf-soft);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: rgba(248, 241, 222, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--color-leaf-soft); }

.footer-col address {
  font-style: normal;
  color: rgba(248, 241, 222, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 241, 222, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(248, 241, 222, 0.5);
}

/* ====== Login modal ====== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 24, 8, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--color-bg);
  max-width: 440px;
  width: 100%;
  padding: 3rem 2.5rem;
  border-radius: 4px;
  position: relative;
  box-shadow: 0 30px 80px rgba(42, 24, 8, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
  border: 1px solid var(--color-line);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-moss-dark);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: block;
}

.modal h2 {
  font-size: 2rem;
  text-align: center;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-moss-dark);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-leaf);
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-meta label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-meta a {
  color: var(--color-moss-dark);
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-moss-dark);
  color: var(--color-cream);
  border: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--color-leaf); }

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-error {
  background: rgba(200, 72, 48, 0.08);
  border: 1px solid rgba(200, 72, 48, 0.3);
  color: var(--color-robin);
  padding: 0.75rem 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.form-error.active {
  display: flex;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.form-footer a {
  color: var(--color-moss-dark);
  font-weight: 500;
}

/* ====== Page hero (inner pages) ====== */
.page-hero {
  background: var(--color-bg-alt);
  padding: var(--space-xl) 0 var(--space-lg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: url('../images/oak-leaf.svg') no-repeat center;
  background-size: contain;
  opacity: 0.06;
  transform: rotate(20deg);
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-leaf);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.breadcrumb a:hover { border-bottom-color: var(--color-leaf); }

.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

.page-hero h1 {
  margin-bottom: 1rem;
  font-style: italic;
}

.page-hero .lead {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ====== Article body ====== */
.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1.1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.article-body h2 {
  margin: 3rem 0 1.5rem;
  font-style: italic;
  font-size: 2.2rem;
}

.article-body h3 {
  margin: 2.5rem 0 1rem;
  font-style: italic;
}

.article-body img {
  width: 100%;
  margin: 2rem 0;
  border-radius: 4px;
}

.article-body figure {
  margin: 2.5rem 0;
}

.article-body figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

.article-body blockquote {
  border-left: 3px solid var(--color-leaf);
  padding: 1rem 0 1rem 2rem;
  margin: 2.5rem 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-moss-dark);
  line-height: 1.4;
}

.article-body blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  margin-top: 1rem;
}

/* ====== Two column layout ====== */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 100px;
  background: var(--color-cream);
  padding: 2rem;
  border: 1px solid var(--color-line);
  border-radius: 4px;
}

.sidebar h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-leaf);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line);
}

.sidebar ul { list-style: none; }

.sidebar ul li {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.sidebar ul li a:hover { color: var(--color-leaf); }

.sidebar address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.sidebar address strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-moss-dark);
}

/* ====== Project list ====== */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(42, 24, 8, 0.1);
}

.project-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-moss-dark);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  align-self: flex-start;
  font-weight: 500;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.project-progress {
  width: 100%;
  height: 5px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}

.project-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-leaf), var(--color-moss-dark));
  border-radius: 3px;
}

/* ====== Contact form ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info h3 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.contact-detail {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-leaf);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-detail address {
  font-style: normal;
  line-height: 1.7;
  color: var(--color-text);
}

.contact-form {
  background: var(--color-cream);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--color-line);
}

.contact-form .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  border-radius: 2px;
  resize: vertical;
  min-height: 140px;
}

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--color-leaf);
}

.form-success {
  background: rgba(122, 168, 96, 0.12);
  border: 1px solid var(--color-leaf);
  color: var(--color-moss-dark);
  padding: 0.85rem 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.form-success.active { display: block; }

/* ====== Map decorative ====== */
.map-section {
  background: var(--color-bg-alt);
}

.map-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.map-flex img { width: 100%; max-width: 400px; margin: 0 auto; }

/* ====== Animations ====== */
@keyframes leafFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ====== Mobile menu ====== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-moss-dark);
  transition: all 0.3s;
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .feature-row,
  .two-col,
  .contact-grid,
  .map-flex {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-image { order: 0; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar { position: static; }
}

@media (max-width: 700px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 1.25rem;
    transform: translateY(-150%);
    transition: transform 0.3s;
    box-shadow: 0 10px 30px rgba(42, 24, 8, 0.1);
  }

  nav.active { transform: translateY(0); }

  .mobile-menu-toggle { display: flex; }

  .hero {
    height: auto;
    min-height: 70vh;
    padding: 4rem 0;
  }

  .hero-content {
    margin-left: 0;
    padding: 1rem;
  }

  .hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(253, 250, 240, 0.5) 0%,
      rgba(253, 250, 240, 0.85) 100%
    );
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .modal {
    padding: 2rem 1.5rem;
  }
}

/* ====== Contact page specifics ====== */
.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-moss-deep);
  margin-bottom: 1rem;
}

.contact-info > p,
.contact-form-wrap > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-line);
}

.contact-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--color-moss-deep);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.contact-block address,
.contact-block p {
  font-style: normal;
  color: var(--color-text);
  line-height: 1.7;
}

.contact-block a {
  color: var(--color-moss-mid);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 168, 96, 0.4);
  transition: color 0.2s;
}

.contact-block a:hover {
  color: var(--color-moss-deep);
  border-bottom-color: var(--color-moss-deep);
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.92em;
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--color-line);
}

.hours-list li:last-child {
  border-bottom: none;
}

.hours-list li > span:first-child {
  font-weight: 500;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 2px 14px rgba(61, 90, 40, 0.04);
  align-self: start;
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fdfaf0;
  transition: border-color 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-moss-mid);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  font-family: var(--font-body);
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%233d5a28' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contact-form-wrap {
    padding: 2rem 1.5rem;
  }
}
