@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --spruce: #1b352d;
  --pine: #2f5b4f;
  --sage: #6d8f74;
  --fern: #9db59b;
  --wheat: #f7f3eb;
  --sun: #d9a441;
  --clay: #8f4d35;
  --ink: #11241d;
  --shadow: rgba(0, 0, 0, 0.12);
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #fdfbf8 0%, #f5f2ea 100%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pine);
  text-decoration: none;
}

a:hover {
  color: var(--clay);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Inter', serif;
  color: var(--spruce);
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

/* Layout helpers */
.container {
  width: min(1100px, 94%);
  margin: 0 auto;
  padding: 0 8px;
}

.section-shell {
  padding: 64px 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(247, 243, 235, 0.92);
  border-bottom: 1px solid rgba(17, 36, 29, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 3%;
}

.branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--spruce);
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 30px -14px var(--shadow);
}

.site-name {
  letter-spacing: 0.02em;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-weight: 600;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(45, 105, 86, 0.08);
  color: var(--pine);
  outline: none;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 3% 64px;
  background: radial-gradient(circle at 10% 20%, rgba(157, 181, 155, 0.14), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(217, 164, 65, 0.12), transparent 28%),
    var(--wheat);
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 36, 29, 0.05), transparent 55%);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 36, 29, 0.06);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 42px -28px var(--shadow);
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1.02rem;
  color: #2d4136;
}

/* Buttons */
.button,
.csa-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pine), var(--spruce));
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.button:hover,
.csa-button:hover,
.button:focus-visible,
.csa-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.button-secondary {
  background: #fff;
  color: var(--pine);
  border: 1px solid rgba(47, 91, 79, 0.25);
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(47, 91, 79, 0.06);
}

/* Sections */
main section {
  padding: 48px 3%;
}

main section:nth-of-type(odd) {
  background: rgba(247, 243, 235, 0.6);
}

main section:nth-of-type(even) {
  background: #fff;
}

.section-header {
  margin-bottom: 18px;
  color: var(--pine);
  letter-spacing: 0.01em;
}

.card-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.csa-card,
.form-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(17, 36, 29, 0.06);
  box-shadow: 0 16px 42px -30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.csa-card:hover,
.form-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.4);
}

.card-content h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Our story and experience */
.our-story p,
.experience p,
.attractions p {
  max-width: 860px;
  font-size: 1.02rem;
  color: #2f3c33;
}

.call-to-action {
  text-align: center;
}

.call-to-action .button {
  margin: 10px;
}

/* News cards */
.news-cards-section .container {
  width: min(1200px, 96%);
}

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

.cards-grid .card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 36, 29, 0.08);
}

.cards-grid .card a {
  color: inherit;
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.cards-grid img {
  border-radius: 16px 16px 0 0;
}

.cards-grid .card-content {
  padding: 14px 16px 18px;
}

/* CSA page */
.csa-signup__header {
  text-align: center;
  margin-bottom: 32px;
}

.csa-signup__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pine);
  font-weight: 700;
  margin-bottom: 8px;
}

.csa-signup__title {
  font-size: 2.2rem;
}

.csa-info,
.csa-unique,
.csa-shares,
.csa-membership,
.csa-policies,
.csa-form {
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(17, 36, 29, 0.08);
  box-shadow: 0 10px 28px -20px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.csa-unique__perk,
.csa-membership__note,
.csa-policies__note {
  background: rgba(47, 91, 79, 0.06);
  padding: 14px;
  border-radius: 12px;
}

.csa-shares__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.csa-form form {
  display: grid;
  gap: 16px;
}

.csa-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--spruce);
}

.csa-form input,
.csa-form select,
.csa-form textarea,
.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid rgba(17, 36, 29, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

.csa-form input:focus,
.csa-form select:focus,
.csa-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(47, 91, 79, 0.16);
}

.csa-form__actions {
  display: flex;
  justify-content: flex-end;
}

.directions {
  padding: 52px 3% 40px;
}

.directions .container {
  width: min(1120px, 96%);
}

.directions-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(125deg, rgba(27, 53, 45, 0.9), rgba(27, 53, 45, 0.7)),
    url('imgs/img.GFBF.historic-roadside-sign.png') center/cover no-repeat;
  border: 1px solid rgba(17, 36, 29, 0.14);
  box-shadow: 0 22px 48px -28px rgba(0, 0, 0, 0.45);
  padding: 28px;
}

.directions-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.directions-copy {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(247, 243, 235, 0.22);
  border-radius: 14px;
  padding: 20px 18px;
  backdrop-filter: blur(4px);
  color: #f7f3eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.directions-copy h2 {
  color: #fff;
  margin-bottom: 10px;
}

.directions-copy p {
  color: #f7f3eb;
}

.directions-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 6px;
}

.directions-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-embed {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(17, 36, 29, 0.1);
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, 0.6);
  min-height: 260px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
}

.map-note {
  color: #e6ede6;
  font-size: 0.95rem;
  margin: 0;
}

.directions-card--compact .directions-grid {
  grid-template-columns: 1fr;
}

.directions-card--compact .map-embed {
  min-height: 220px;
}

/* Connect page */
.connect {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(17, 36, 29, 0.08);
  box-shadow: 0 12px 32px -24px rgba(0, 0, 0, 0.35);
}

.contact-form button {
  width: fit-content;
}

/* Footer */
.site-footer {
  background: var(--spruce);
  color: #e6ede6;
  padding: 36px 3% 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #e6ede6;
}

.site-footer .social {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 10px 0;
}

.site-footer .social img,
.site-footer .social .social-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
  filter: grayscale(1) brightness(0.85);
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.site-footer .social a:hover .social-icon,
.site-footer .social a:focus-visible .social-icon {
  filter: grayscale(0) brightness(1);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.6);
}

.footer-note {
  text-align: right;
  font-size: 0.95rem;
  color: #c9d4cc;
}

/* Citations */
.citations {
  padding: 36px 3% 48px;
  background: #0f1f19;
  color: #dce4dc;
}

.citations a {
  color: var(--sun);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .primary-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .map-embed {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .site-header {
    position: static;
  }

  .hero-content {
    padding: 22px;
  }

  main section {
    padding: 36px 5%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .primary-nav ul {
    gap: 10px;
  }

  .primary-nav a {
    padding: 8px 10px;
  }

  .hero {
    padding: 36px 5% 48px;
  }

  .directions {
    padding: 38px 5% 32px;
  }

  .directions-card {
    padding: 22px;
  }

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