/* ===== Design tokens ===== */
:root {
  --forest-dark: #16281c;
  --forest: #1f3a2a;
  --forest-mid: #2f5540;
  --forest-light: #4c7a5c;
  --timber: #8a5a34;
  --timber-dark: #6b4423;
  --gold: #e7c873;
  --gold-dark: #cf9f3f;
  --cream: #f7f2e7;
  --cream-deep: #efe6d3;
  --ink: #22281f;
  --ink-soft: #4b5347;
  --white: #ffffff;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(22, 40, 28, 0.08);
  --shadow-md: 0 12px 32px rgba(22, 40, 28, 0.14);
  --shadow-lg: 0 24px 60px rgba(22, 40, 28, 0.22);
  --container-w: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #16281c;
    --cream-deep: #12211a;
    --ink: #f2ede1;
    --ink-soft: #cdd6c8;
    --white: #1c3226;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.5);
  }
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.12; color: var(--forest); font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { h1, h2, h3 { color: var(--gold); } }
p { margin: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--forest-dark);
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--gold-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.75);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border-color: transparent;
  padding: 10px 16px;
}
@media (prefers-color-scheme: dark) { .btn-ghost { color: var(--gold); } }
.btn-ghost:hover { background: rgba(31,58,42,0.08); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 231, 0.9);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid rgba(31,58,42,0.08);
  transition: box-shadow 0.25s ease;
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(22, 40, 28, 0.85); border-bottom-color: rgba(231, 200, 115, 0.12); }
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  flex-shrink: 0; width: 52px; height: 52px; object-fit: cover;
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--forest); }
@media (prefers-color-scheme: dark) { .brand-name { color: var(--gold); } }
.brand-loc { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 500; font-size: 0.95rem; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--forest); }
@media (prefers-color-scheme: dark) { .main-nav a:hover { color: var(--gold); } }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold-dark); transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-call { display: flex; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--forest); border-radius: 2px; }
@media (prefers-color-scheme: dark) { .nav-toggle span { background: var(--gold); } }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, var(--forest-dark) 0%, var(--forest) 55%, var(--forest-mid) 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(231,200,115,0.16), transparent 45%),
    radial-gradient(circle at 88% 15%, rgba(231,200,115,0.10), transparent 40%),
    radial-gradient(circle at 75% 85%, rgba(231,200,115,0.08), transparent 45%);
}
.hero-photo {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.5s ease;
}
.hero-photo.is-visible { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cg fill='%23000000' fill-opacity='0.16'%3E%3Cpath d='M0 100V45L10 30 20 45V100Z M25 100V45L35 30 45 45V100Z M50 100V45L60 30 70 45V100Z M75 100V45L85 30 95 45V100Z M100 100V45L110 30 120 45V100Z M125 100V45L135 30 145 45V100Z M150 100V45L160 30 170 45V100Z M175 100V45L185 30 195 45V100Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 380px 200px;
  background-repeat: repeat-x;
  background-position: bottom;
}
.hero-content { position: relative; z-index: 3; padding-top: 60px; padding-bottom: 90px; max-width: 760px; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin-bottom: 22px;
}
.hero-lede { font-size: 1.1rem; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-fence-divider { position: absolute; bottom: -1px; left: 0; width: 100%; height: 44px; z-index: 1; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--cream); padding: 34px 0; border-bottom: 1px solid rgba(31,58,42,0.08); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.92rem; color: var(--forest);
}
@media (prefers-color-scheme: dark) { .trust-item { color: var(--gold); } }
.trust-item svg { flex-shrink: 0; color: var(--timber); }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-deep); }
.section-dark { background: var(--forest-dark); color: rgba(255,255,255,0.9); }
.section-eyebrow {
  font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--timber); font-weight: 700; margin-bottom: 12px;
}
.section-eyebrow-light { color: var(--gold); }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 640px; margin-bottom: 18px; }
.section-title-light { color: var(--gold); }
.section-lede { font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft); max-width: 620px; }
.section-lede-light { color: rgba(255,255,255,0.75); }

/* ===== Services ===== */
.services-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 1px solid rgba(31,58,42,0.06);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, var(--forest), var(--forest-mid));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ===== Carousel ===== */
.carousel { position: relative; margin-top: 52px; }
.carousel-viewport {
  position: relative; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  background: var(--cream-deep);
}
.carousel-track {
  display: flex; height: 100%;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: #fff;
  background: linear-gradient(0deg, rgba(15,26,18,0.8), transparent);
}
.carousel-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 14px; padding: 40px; color: var(--ink-soft);
}
.carousel-empty svg { color: var(--timber); }
.carousel-empty p { max-width: 380px; font-size: 0.98rem; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--white); color: var(--forest);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.18s ease, background 0.18s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: var(--gold); transform: translateY(-50%) scale(1.06); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: rgba(138,90,52,0.3); cursor: pointer; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active { background: var(--timber); transform: scale(1.25); }

/* ===== Facebook CTA ===== */
.facebook-cta-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,58,42,0.06);
}
.facebook-cta-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--forest), var(--forest-mid));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.facebook-cta-text { flex: 1; min-width: 220px; }
.facebook-cta-text h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 6px; color: var(--forest); }
@media (prefers-color-scheme: dark) { .facebook-cta-text h3 { color: var(--gold); } }
.facebook-cta-text p { color: var(--ink-soft); font-size: 0.96rem; }

@media (max-width: 640px) {
  .facebook-cta-card { flex-direction: column; text-align: center; padding: 28px 24px; }
  .facebook-cta-card .btn { width: 100%; }
}

/* ===== Why us ===== */
.why-grid { display: flex; justify-content: center; }
.why-copy { max-width: 720px; }
.why-list { margin: 34px 0; display: flex; flex-direction: column; gap: 24px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list svg { color: var(--timber); flex-shrink: 0; margin-top: 3px; }
.why-list strong { display: block; font-size: 1.02rem; color: var(--forest); margin-bottom: 3px; }
@media (prefers-color-scheme: dark) { .why-list strong { color: var(--gold); } }
.why-list span { color: var(--ink-soft); font-size: 0.94rem; }

/* ===== Area ===== */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.area-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.area-tags span {
  padding: 11px 20px; border-radius: 999px;
  background: rgba(231,200,115,0.12);
  border: 1px solid rgba(231,200,115,0.35);
  color: var(--gold);
  font-weight: 600; font-size: 0.92rem;
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-methods { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--white); border-radius: 12px;
  box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(31,58,42,0.06);
}
a.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-method svg { color: var(--timber); flex-shrink: 0; }
.contact-method strong { display: block; font-size: 0.98rem; }
.contact-method span { color: var(--ink-soft); font-size: 0.9rem; }
.contact-method-static { cursor: default; }

.quote-form {
  background: var(--white); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(31,58,42,0.06);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 0.88rem; font-weight: 600; color: var(--forest); }
@media (prefers-color-scheme: dark) { .form-row label { color: var(--gold); } }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px; border-radius: 9px; border: 1.5px solid rgba(31,58,42,0.18);
  background: var(--cream); color: var(--ink);
  font-family: inherit; font-size: 0.96rem;
  transition: border-color 0.15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--timber);
}
.form-submit { width: 100%; margin-top: 6px; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--ink-soft); }

/* ===== Footer ===== */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,0.8); padding: 48px 0 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 24px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: var(--gold); font-size: 1.05rem; }
.footer-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a, .footer-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; gap: 20px; }
.footer-bottom {
  padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.footer-admin-link { color: rgba(255,255,255,0.3); font-size: 0.78rem; }
.footer-admin-link:hover { color: rgba(255,255,255,0.6); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .header-call { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(31,58,42,0.08);
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name { font-size: 0.8rem; line-height: 1.15; }
  .brand-loc { display: none; }
  .header-actions { gap: 6px; }
  .eyebrow { font-size: 0.72rem; letter-spacing: 0.05em; }
  .hero-content { padding-top: 40px; padding-bottom: 70px; }
  .section-lede { margin-bottom: 6px; }

  .services-grid { grid-template-columns: 1fr; gap: 22px; }
  .trust-grid { grid-template-columns: 1fr; gap: 22px; }
  .trust-item { gap: 14px; }

  .hero { min-height: 92vh; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero-ctas .btn { width: 100%; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: 0.8rem; }

  .carousel { margin-top: 40px; }
  .carousel-viewport { aspect-ratio: 4 / 3; }
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  .why-list { gap: 28px; }
  .contact-methods { gap: 18px; }
  .contact-method { padding: 20px; }
  .quote-form { padding: 28px 24px; gap: 22px; }
  .area-tags { gap: 14px; }
  .area-grid { gap: 36px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }

  .main-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 20px 24px 28px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(31,58,42,0.08);
    gap: 22px;
  }
}
