/* Very Good Fence — shared stylesheet
   Classic foundation with new-wave accents */

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

:root {
  --pine: #1f3a2e;        /* deep classic green */
  --pine-dark: #142519;
  --cream: #f6f1e7;       /* warm parchment */
  --cream-2: #efe7d6;
  --ink: #1a1a1a;
  --tangerine: #e8643c;   /* new-wave accent */
  --mustard: #e0a83d;     /* secondary accent */
  --line: #d8ceba;
  --max: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  color: var(--pine);
}

a { color: var(--tangerine); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--pine-dark);
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px;
}
.topbar a { color: var(--cream); }
.topbar .badge { color: var(--mustard); font-weight: 600; }
.topbar a.proof { color: var(--mustard); font-weight: 600; cursor: pointer; text-decoration: none; border-bottom: 1px dotted var(--mustard); }
.topbar a.proof:hover { color: #f2c14e; border-bottom-style: solid; }
.topbar a.proof::before { content: "\1F512"; margin-right: 5px; font-size: 0.8em; }

/* ---------- Proof of insurance modal ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(20,37,25,0.82); z-index: 200; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--cream); border-radius: 6px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto; padding: 22px; position: relative; border-top: 5px solid var(--pine); }
.modal-box h3 { font-size: 1.25rem; margin-bottom: 4px; }
.modal-box p.sub { font-size: 0.88rem; color: #555; margin-bottom: 14px; }
.modal-box img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; display: block; }
.coi-cert { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.coi-cert-head { background: var(--pine); color: var(--cream); padding: 18px 20px; }
.coi-eyebrow { display: block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mustard); font-weight: 700; }
.coi-name { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.55rem; font-weight: 800; margin-top: 4px; }
.coi-addr { display: block; font-size: 0.9rem; color: #dfe6df; margin-top: 6px; }
.coi-cert-body { padding: 18px 20px; background: var(--cream); }
.coi-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; color: var(--pine); font-weight: 700; margin-bottom: 10px; }
.coi-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.coi-badge { background: #e3f3e8; color: #1f7a44; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; padding: 3px 9px; border-radius: 20px; }
.coi-policy { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 1rem; color: #222; }
.coi-field { font-size: 0.92rem; color: #3a3f38; padding: 3px 0; }
.coi-note { font-size: 0.78rem; color: #777; margin-top: 14px; }

/* ---------- Clickable category cards + galleries ---------- */
.cat-card { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(20,37,25,0.13); }
.cat-card:focus-visible { outline: 3px solid var(--tangerine); outline-offset: 2px; }
.cat-card .ph { height: 175px; padding: 0; overflow: hidden; }
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.22) contrast(1.03); display: block; }
.cat-card .ph .ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 14px 10px; color: #fff; font-weight: 600; font-size: 1rem; background: linear-gradient(transparent, rgba(20,37,25,0.82)); }
.cat-card .ph .ph-cap em { font-style: normal; color: var(--mustard); font-weight: 600; font-size: 0.82rem; }
.gallery-box { max-width: 780px; }
.gallery-scroll { max-height: 68vh; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; margin-top: 12px; padding-right: 6px; }
.gallery-item img { width: 100%; height: auto; border-radius: 6px; display: block; border: 1px solid var(--line); filter: saturate(1.22) contrast(1.03); }
.gallery-item .cap { font-size: 0.9rem; color: #444; margin-top: 6px; font-weight: 600; }

/* ---------- Gallery page photo grid + lightbox ---------- */
.gal-head { font-family: 'Playfair Display', Georgia, serif; color: var(--pine); font-size: 1.45rem; margin: 40px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--mustard); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 4px; }
.photo-grid .tile { aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--cream-2); }
.photo-grid .tile img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(1.2) contrast(1.03); display: block; transition: transform .25s ease; }
.photo-grid .tile:hover img { transform: scale(1.06); }
.lightbox-box { max-width: 920px; background: transparent; border: none; padding: 0; }
.lightbox-box img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; border-radius: 6px; display: block; }
.lightbox-box .modal-close { color: #fff; top: -6px; right: 0; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
@media (max-width: 700px) { .photo-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .photo-grid { grid-template-columns: 1fr; } }
.modal-close { position: absolute; top: 8px; right: 14px; background: none; border: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--pine); }
.modal-close:hover { color: var(--tangerine); }

/* ---------- Nav ---------- */
header.nav {
  background: var(--cream);
  border-bottom: 3px solid var(--pine);
  position: sticky; top: 0; z-index: 50;
}
header.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { height: 58px; width: auto; display: block; }
.brand .mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--pine); border-radius: var(--radius);
  position: relative;
}
/* little fence motif */
.brand .mark::before {
  content: ""; position: absolute; inset: 9px 7px;
  background:
    linear-gradient(var(--cream), var(--cream)) 0 0 / 4px 100% no-repeat,
    linear-gradient(var(--cream), var(--cream)) 11px 0 / 4px 100% no-repeat,
    linear-gradient(var(--cream), var(--cream)) 22px 0 / 4px 100% no-repeat;
}
.brand .mark::after {
  content: ""; position: absolute; left: 7px; right: 7px; top: 16px; height: 4px;
  background: var(--cream);
}
.brand .name { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.5rem; line-height: 1.04; letter-spacing: 0.5px; color: var(--pine); text-transform: uppercase; display: flex; flex-direction: column; justify-content: center; padding-left: 13px; border-left: 3px solid #d99a1f; }
.brand .name small { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 0.52rem; letter-spacing: 0.22em; text-transform: uppercase; color: #d99a1f; margin-top: 3px; }

nav.menu { display: flex; gap: 22px; flex-wrap: wrap; }
nav.menu a {
  color: var(--pine); font-weight: 600; font-size: 0.95rem;
  padding: 4px 2px; border-bottom: 2px solid transparent;
}
nav.menu a:hover, nav.menu a.active { color: var(--tangerine); border-bottom-color: var(--tangerine); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.98rem;
  padding: 13px 26px; border-radius: var(--radius); cursor: pointer;
  border: 2px solid var(--tangerine); background: var(--tangerine); color: #fff;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: #d4552f; text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn.ghost:hover { background: var(--pine); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  background: var(--pine);
  color: var(--cream);
  position: relative; overflow: hidden;
}
.hero::after { /* new-wave diagonal accent */
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; background: var(--tangerine);
  transform: rotate(45deg); opacity: 0.18;
}
.hero .wrap { padding: 84px 24px; position: relative; z-index: 2; display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero .hero-text { flex: 1 1 440px; }
.hero .hero-logo { flex: 0 0 260px; width: 260px; max-width: 70%; height: auto; }
.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; max-width: 16ch; }
.hero .tag { color: var(--mustard); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 14px; text-transform: uppercase; font-size: 0.9rem; }
.hero p.lead { font-size: 1.15rem; max-width: 52ch; margin: 18px 0 28px; color: #e9e3d4; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; }
section.block.alt { background: var(--cream-2); }
.eyebrow { color: var(--tangerine); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; }
.block h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 8px 0 14px; }
.block .intro { max-width: 60ch; font-size: 1.08rem; color: #33372f; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.trust .item {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--tangerine);
}
.trust .item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.trust .item p { font-size: 0.95rem; color: #444; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card .ph {
  height: 150px; background: linear-gradient(135deg, var(--pine), #2e5642);
  position: relative; color: var(--cream); display: flex; align-items: flex-end; padding: 14px;
  font-weight: 600; letter-spacing: 0.02em;
}
.card .ph span.tagpill {
  position: absolute; top: 12px; left: 12px; background: var(--mustard); color: var(--pine-dark);
  font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.03em;
}
.card .body { padding: 20px; }
.card .body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card .body p { font-size: 0.95rem; color: #444; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.gallery .shot {
  aspect-ratio: 4/3; border-radius: var(--radius); border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 14px, #e6dcc8 14px, #e6dcc8 28px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--pine); font-weight: 600; padding: 16px; font-size: 0.92rem;
}

/* ---------- Quote-beat banner ---------- */
.promise {
  background: var(--tangerine); color: #fff; text-align: center; padding: 40px 24px;
}
.promise h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.promise p { max-width: 60ch; margin: 10px auto 0; font-size: 1.05rem; }
.promise small { display:block; margin-top: 10px; opacity: 0.9; font-size: 0.85rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.review {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-left: 4px solid var(--mustard);
}
.review .stars { color: var(--mustard); letter-spacing: 2px; margin-bottom: 8px; }
.review p { font-style: italic; color: #333; }
.review .who { margin-top: 12px; font-weight: 600; color: var(--pine); font-style: normal; }
.review.placeholder { border-left-color: var(--line); text-align: center; }
.review.placeholder p { font-style: normal; color: #666; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-list li .lbl { font-weight: 700; color: var(--pine); min-width: 110px; }
form .field { margin-bottom: 16px; }
form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--pine); }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: #fff;
}
form textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--pine-dark); color: #cdd6cd; padding: 48px 0 28px; margin-top: 0;
}
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site h4 { color: var(--cream); font-family:'Playfair Display', serif; margin-bottom: 12px; }
footer.site a { color: #cdd6cd; }
footer.site a:hover { color: var(--mustard); }
footer.site ul { list-style: none; }
footer.site ul li { padding: 4px 0; font-size: 0.95rem; }
footer.site .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid #2a4234; font-size: 0.82rem; color: #8fa595; }

/* ---------- Page header ---------- */
.pagehead { background: var(--pine); color: var(--cream); padding: 56px 0; position: relative; overflow: hidden; }
.pagehead::after { content:""; position:absolute; left:-100px; bottom:-100px; width:280px; height:280px; background: var(--mustard); opacity:0.14; transform: rotate(45deg); }
.pagehead h1 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); position: relative; z-index: 2; }
.pagehead p { color: #e3ddce; margin-top: 8px; max-width: 56ch; position: relative; z-index: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .trust, .cards, .gallery { grid-template-columns: 1fr 1fr; }
  .reviews, .contact-grid, footer.site .cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .trust, .cards, .gallery, .reviews { grid-template-columns: 1fr; }
  nav.menu { gap: 14px; }
  .hero .wrap { padding: 60px 24px; }
}
