/* ============================================================
   Dzugan Farms — site styles
   Palette pulled from the logo (parchment + black) and the barn (red/charcoal)
   ============================================================ */
:root {
  --parchment:   #efd9a6;   /* logo background */
  --parchment-2: #f7ecd2;   /* lighter tint for page backgrounds */
  --cream:       #fcf8ef;
  --ink:         #171411;   /* logo black */
  --ink-soft:    #3b352e;
  --barn-red:    #8a2a21;   /* barn siding */
  --barn-red-dk: #6b1f18;
  --charcoal:    #2a2d31;   /* barn roof */
  --grass:       #4f6b3a;
  --line:        #e3d2ad;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(23, 20, 17, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--barn-red); }
a:hover { color: var(--barn-red-dk); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.lead { font-size: 1.2rem; }
.muted { color: #7a7066; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--barn-red);
  background: var(--barn-red);
  color: #fff;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--barn-red-dk); border-color: var(--barn-red-dk); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--barn-red); }
.btn.ghost:hover { background: var(--barn-red); color: #fff; }
.btn.light { background: var(--parchment); border-color: var(--parchment); color: var(--ink); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--parchment);
  border-bottom: 4px solid var(--barn-red);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 88px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand img { width: 72px; height: 72px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--parchment); letter-spacing: .02em; }
.brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #c9b283; margin-top: .3rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.site-nav a {
  display: block; padding: .6rem .9rem; border-radius: 6px;
  color: var(--parchment); text-decoration: none; font-weight: 600; letter-spacing: .02em;
}
.site-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.site-nav a.current { background: var(--barn-red); color: #fff; }
.nav-phone a { border: 1px solid #5a5146; margin-left: .5rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--parchment); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-bottom: 1rem; }
  .nav-phone a { margin-left: 0; margin-top: .5rem; text-align: center; }
  .brand-name { font-size: 1.3rem; }
  .brand img { width: 56px; height: 56px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 72vh; display: grid; place-items: center;
  background: var(--charcoal) url("../images/barn-1600.jpg") center 60% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,20,17,.35) 0%, rgba(23,20,17,.55) 60%, rgba(23,20,17,.8) 100%); }
.hero-inner { position: relative; text-align: center; padding: 5rem 1rem; max-width: 820px; }
.hero img.hero-logo { width: 170px; height: 170px; margin: 0 auto 1.25rem; filter: drop-shadow(0 8px 20px rgba(0,0,0,.5)); }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); margin-bottom: .4rem; }
.hero .tag { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); color: var(--parchment); margin-bottom: 1.75rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Page banner for inner pages */
.page-banner {
  background: var(--charcoal) url("../images/barn-1600.jpg") center 55% / cover no-repeat;
  position: relative; color: #fff; padding: 4.5rem 0;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(23,20,17,.62); }
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: var(--parchment); font-size: 1.15rem; margin: .5rem 0 0; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section.alt { background: var(--parchment-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #d9cdb6; }
.section.dark h2, .section.dark h3 { color: var(--parchment); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.section-head .kicker { display: block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--barn-red); font-weight: 700; margin-bottom: .5rem; }

.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 2px 8px rgba(23,20,17,.05);
}
.card h3 { margin-top: 0; }
.card .icon { width: 48px; height: 48px; color: var(--barn-red); margin-bottom: 1rem; }
.card.link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.link h3 { color: var(--barn-red); }

.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Pricing / product table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--ink); color: var(--parchment); font-weight: 600; letter-spacing: .03em; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td strong { color: var(--ink); }

.cut-list { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.cut-list li { padding: .35rem 0 .35rem 1.4rem; position: relative; break-inside: avoid; }
.cut-list li::before { content: "•"; color: var(--barn-red); position: absolute; left: .3rem; font-weight: 700; }
@media (max-width: 600px) { .cut-list { columns: 1; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4.25rem; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 1.25rem; top: 1.25rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--barn-red); color: #fff;
  font-family: var(--font-display); font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: 1.1rem; }

/* Callout / CTA band */
.cta-band { background: var(--barn-red); color: #fff; padding: 3rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f3dcd8; font-size: 1.15rem; }
.cta-band a.phone { color: #fff; font-family: var(--font-display); font-size: 1.6rem; text-decoration: none; }

.notice { background: var(--parchment); border-left: 5px solid var(--barn-red); padding: 1rem 1.25rem; border-radius: 6px; color: var(--ink); }

/* Photo gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: .7rem 1rem; font-size: .95rem; color: var(--ink-soft); }
.gallery .placeholder {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(45deg, #f3e8cf 0 12px, #efe1c2 12px 24px); color: #8a7a5c; font-weight: 600;
}

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1.3fr; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card p { margin-bottom: .6rem; }
.contact-card .big { font-family: var(--font-display); font-size: 1.5rem; }
form.contact { display: grid; gap: 1rem; }
form.contact .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { form.contact .row { grid-template-columns: 1fr; } }
label { font-weight: 600; color: var(--ink); display: block; margin-bottom: .3rem; }
input, select, textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #cbb98f; border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--barn-red); outline-offset: 1px; border-color: var(--barn-red); }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }  /* honeypot */
.form-msg { padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1rem; }
.form-msg.ok  { background: #e6efdc; border-left: 5px solid var(--grass); color: #2f4620; }
.form-msg.err { background: #f6e0dd; border-left: 5px solid var(--barn-red); color: #5c1a14; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9b283; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: var(--parchment); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h3 { color: var(--parchment); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-body); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.3fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand strong { color: var(--parchment); font-family: var(--font-display); font-size: 1.2rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { padding: .2rem 0; }
.social { display: inline-flex; align-items: center; gap: .5rem; }
.copyright { border-top: 1px solid #332d26; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; text-align: center; }
