:root {
  --color-earth: #3d4f3a;
  --color-earth-light: #5a7354;
  --color-cream: #faf6ef;
  --color-warm: #e8dcc8;
  --color-gold: #c4a35a;
  --color-gold-dark: #9a7b3c;
  --color-ink: #2a2a26;
  --color-muted: #6b6560;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(42, 42, 38, 0.08);
  --radius: 12px;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-earth);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-gold-dark);
}

.container {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--color-earth);
  color: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-tagline {
  font-size: 0.72rem;
  opacity: 0.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--color-gold);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

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

.hero-bg-photo {
  background-image:
    linear-gradient(135deg, rgba(61, 79, 58, 0.88), rgba(42, 42, 38, 0.72)),
    var(--hero-photo, url("/images/hero-ducks.jpg"));
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 720px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-lead {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
}

.btn-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: #d4b36a;
  color: var(--color-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: #fff;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--color-earth);
  margin: 0 0 0.75rem;
}

.section-header p {
  color: var(--color-muted);
  margin: 0;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.section-alt .card {
  background: var(--color-cream);
}

.card:hover {
  transform: translateY(-3px);
}

.card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.card-body h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--color-earth);
  font-size: 1.2rem;
}

.card-body p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Content pages */
.page-hero {
  background: var(--color-earth);
  color: var(--color-cream);
  padding: 2.75rem 0;
}

.page-hero-photo {
  position: relative;
  padding: 4rem 0;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.page-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61, 79, 58, 0.9), rgba(42, 42, 38, 0.78));
}

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

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
  max-width: 640px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-family: var(--font-display);
  color: var(--color-earth);
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose h3 {
  color: var(--color-earth-light);
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.callout {
  background: var(--color-warm);
  border-left: 4px solid var(--color-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.feature-image {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 260px;
  background-size: cover;
  background-position: center;
}

/* Contact form */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-earth);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
  background: var(--color-cream);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 1rem;
}

.mockup-banner,
.dev-banner {
  background: #fff3cd;
  border-bottom: 1px solid #e6c96e;
  color: #664d03;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-header-left p {
  text-align: left;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-on-light {
  background: transparent;
  color: var(--color-earth);
  border: 2px solid var(--color-earth);
}

.btn-on-light:hover {
  background: var(--color-earth);
  color: #fff;
}

.card-image {
  height: 200px;
  overflow: hidden;
  background: var(--color-warm);
}

.card-image-link {
  display: block;
  line-height: 0;
}

.card-image-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.card:hover .card-image-photo {
  transform: scale(1.04);
}

.content-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}

img.content-image {
  object-fit: cover;
  min-height: 200px;
}

.card-image-photo {
  object-fit: cover;
  background: var(--color-warm);
}

.content-figure {
  margin: 0;
}

.content-figure .content-image {
  margin-bottom: 0.65rem;
}

.content-figure figcaption {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.45;
  padding: 0 0.15rem;
}

.feature-figure .content-image {
  min-height: 280px;
  object-fit: cover;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.photo-strip-duo {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 2rem 0;
}

.two-col-top {
  align-items: start;
  margin-bottom: 2rem;
}

.prose-narrow {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
}

.faq-list-flush {
  max-width: none;
  margin: 0;
}

.callout-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.25rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.callout-panel h2 {
  font-family: var(--font-display);
  color: var(--color-earth);
  margin: 0 0 0.75rem;
}

.callout-panel p {
  margin: 0;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

.prose-flush {
  margin: 0;
}

.callout-centered {
  max-width: 720px;
  margin: 2.5rem auto 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-aside h2 {
  font-family: var(--font-display);
  color: var(--color-earth);
  margin-top: 1.25rem;
}

.contact-aside .content-figure {
  margin-bottom: 0.5rem;
}

.contact-facts {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.contact-facts li {
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.92rem;
  color: var(--color-muted);
}

.contact-form-wrap {
  min-width: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #d1e7dd;
  border: 1px solid #a3cfbb;
  color: #0f5132;
}

.alert-error {
  background: #f8d7da;
  border: 1px solid #f1aeb5;
  color: #842029;
}

.alert-error ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* FAQ */
.faq-list {
  max-width: 760px;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.25rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-earth);
  padding: 0.85rem 0;
  list-style-position: outside;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--color-muted);
}

.faq-cta {
  margin-top: 2rem;
  text-align: center;
}

@media (max-width: 640px) {
  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }
}
