/* Warwick Valley Renovations
   Brand: Forest Green #183D2B, Warm Ivory #F4F0E5, Muted Taupe #81735B, Charcoal #292D29
   Type: Cormorant Garamond (headings), Montserrat (nav, labels, body) */

:root {
  --green: #183D2B;
  --green-dark: #10291D;
  --ivory: #F4F0E5;
  --ivory-light: #FAF8F2;
  --taupe: #81735B;
  --taupe-light: #D8D0BF;
  --charcoal: #292D29;
  --wood: #9C7A52;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Keep anchor targets clear of the sticky header */
:target, [id] { scroll-margin-top: 150px; }
@media (max-width: 860px) { :target, [id] { scroll-margin-top: 120px; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--taupe); }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--green);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: .8rem;
  display: block;
}
.rule { width: 110px; height: 2px; background: var(--taupe); border: 0; margin: 1.2rem 0 1.6rem; }
.rule.center { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.alt { background: var(--ivory-light); }
.lead { font-size: 1.15rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Placeholder content still to be supplied. Search the site for class="tk" before launch. */
.tk { background: #fff3b0; outline: 1px dashed #b89a2a; padding: 0 .2em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 1rem 1.6rem; border: 1px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: var(--ivory); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--green-dark); color: #fff; }
.btn.outline { background: transparent; color: var(--green); }
.btn.outline:hover { background: var(--green); color: var(--ivory); }
.btn.light { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.btn.light:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 229, .97);
  border-bottom: 1px solid var(--taupe-light);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .6rem 0; }
.brand img { width: 165px; }
.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a {
  font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--green); color: var(--green); padding: .5rem .7rem; border-radius: var(--radius); font: 600 .75rem var(--sans); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 1060px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .brand img { width: 120px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--taupe-light); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.25rem 1.25rem; }
  .main-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--taupe-light); }
  .main-nav .mobile-cta { display: block; margin-top: 1rem; }
  .main-nav .mobile-cta a { border: 0; }
}
@media (min-width: 861px) { .main-nav .mobile-cta { display: none; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 720px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4.5rem); }
.hero-text p { font-size: 1.12rem; max-width: 34rem; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-phone { margin-top: 1.4rem; font-size: .9rem; color: var(--taupe); }
.hero-phone a { color: var(--green); font-weight: 600; text-decoration: none; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 340px; order: -1; }
}

/* Page banner for inner pages */
.page-banner { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--taupe-light); }
.page-banner p { max-width: 44rem; font-size: 1.1rem; }

/* Category strip */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ivory-light); border-top: 1px solid var(--taupe-light); border-bottom: 1px solid var(--taupe-light); }
.category { text-align: center; padding: 2.6rem 1.5rem; text-decoration: none; color: var(--charcoal); border-right: 1px solid var(--taupe-light); transition: background .2s; }
.category:last-child { border-right: 0; }
.category:hover { background: #fff; color: var(--charcoal); }
.category svg { width: 52px; height: 52px; stroke: var(--taupe); margin: 0 auto 1rem; }
.category h3 { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.category p { font-family: var(--serif); font-size: 1.15rem; margin: 0; }
@media (max-width: 860px) {
  .categories { grid-template-columns: 1fr 1fr; }
  .category:nth-child(2) { border-right: 0; }
  .category:nth-child(-n+2) { border-bottom: 1px solid var(--taupe-light); }
}

/* Tagline band */
.band { background: var(--green); color: var(--ivory); text-align: center; padding: 2.6rem 1.25rem; }
.band p { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.band .rule { background: var(--wood); margin: 1rem auto 0; width: 70px; }

/* Two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 75%; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

/* Project grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.project-card { margin: 0; background: #fff; border: 1px solid var(--taupe-light); }
.project-card button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.project-card button:hover img { opacity: .9; }
.project-card figcaption { padding: 1rem 1.1rem 1.2rem; }
.project-card .cat { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.project-card .title { font-family: var(--serif); font-size: 1.3rem; color: var(--green); line-height: 1.25; }
.project-card[hidden] { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2.5rem; }
.filters button { font: 600 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .7rem 1.2rem; background: transparent; color: var(--green); border: 1px solid var(--taupe-light); border-radius: var(--radius); cursor: pointer; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--green); color: var(--ivory); border-color: var(--green); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(16, 24, 19, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: var(--ivory); font-family: var(--serif); font-size: 1.3rem; margin-top: 1rem; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--ivory); font-size: 2.4rem; cursor: pointer; padding: .5rem 1rem; line-height: 1; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Services */
.service-block { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: clamp(3rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--taupe-light); }
.service-block:last-child { border-bottom: 0; }
.service-block img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.service-block.reverse { grid-template-columns: 7fr 5fr; }
.service-block.reverse .media { order: 2; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 1.5rem; }
.service-list h4 { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin: 0 0 .4rem; }
.service-list p { font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .media { order: 0; }
  .service-list { grid-template-columns: 1fr; }
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: #fff; border: 1px solid var(--taupe-light); padding: 2.2rem 2rem; margin: 0; }
.quote blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--charcoal); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: .6; color: var(--taupe); margin-bottom: .6rem; }
.quote figcaption { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.quote figcaption span { display: block; font-weight: 400; color: var(--taupe); letter-spacing: .06em; text-transform: none; font-size: .9rem; }

/* Service area */
.towns { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.towns li { border: 1px solid var(--taupe-light); background: #fff; padding: .45rem .95rem; font-size: .9rem; }

/* CTA band */
.cta { background: var(--green); color: var(--ivory); padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.cta h2 { color: var(--ivory); }
.cta p { max-width: 38rem; margin: 0 auto; font-size: 1.1rem; }
.cta .btn-row { justify-content: center; }
.cta .btn.outline { color: var(--ivory); border-color: var(--ivory); }
.cta .btn.outline:hover { background: var(--ivory); color: var(--green); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.contact-grid > *, .form-grid > * { min-width: 0; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: .4rem; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--charcoal);
  background: #fff; border: 1px solid var(--taupe-light); border-radius: var(--radius); padding: .85rem .9rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(24, 61, 43, .12); }
textarea { min-height: 160px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--taupe); }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.5rem; border-left: 3px solid; background: #fff; }
.alert.error { border-color: #9b2c2c; }
.alert.ok { border-color: var(--green); }
.info-card { background: var(--ivory-light); border: 1px solid var(--taupe-light); padding: clamp(1.25rem, 4vw, 2rem); }
.info-card a { overflow-wrap: anywhere; }
.info-card h3 { font-size: 1.4rem; margin-top: 1.6rem; }
.info-card h3:first-child { margin-top: 0; }
.info-card p { margin: 0 0 .3rem; }

/* About */
.portrait-placeholder { aspect-ratio: 4 / 5; background: var(--ivory-light); border: 1px dashed var(--taupe); display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--taupe); font-size: .9rem; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
.values h3 { font-size: 1.4rem; }
.values p { font-size: .97rem; }

/* Footer */
.site-footer { background: var(--green-dark); color: rgba(244, 240, 229, .82); padding: 4rem 0 2rem; font-size: .92rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; width: max-content; max-width: 100%; }
.footer-brand p { margin: 0; }
.footer-logo { width: 170px; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(244, 240, 229, .15); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; }
