/* Felver Custom Cabinets — site styles
   Single stylesheet, no build step. Fraunces is self-hosted (SIL OFL);
   everything else is system type. No external requests anywhere. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f6ef;              /* warm off-white ground */
  --panel: #eceee3;              /* faint mint-tinted panel (alt sections, cards) */
  --line: #d7dccb;               /* soft green-grey border */
  --ink: #1e2b25;                /* dark pine-charcoal text */
  --muted: #5d6c62;              /* green-grey secondary text */
  --oak: #c99a1e;                /* GOLDENROD — primary warm accent */
  --oak-deep: #7e5e0c;           /* deep goldenrod (links, eyebrows) */
  --walnut: #17322a;             /* PINE — dark ground (footer, tagline, hero, buttons) */
  --walnut-soft: #244a3f;        /* pine, lifted (hovers, emphasis text) */
  --mint: #4fae8b;               /* MINT — secondary accent */
  --mint-deep: #2f7d5f;          /* deep mint */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--oak-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
a[href^="mailto:"] { overflow-wrap: anywhere; }

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

/* Skip link — visually hidden until focused (keyboard/AT users) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--walnut);
  color: var(--paper);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 4px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; }

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 42px; height: 42px; flex: none; display: block; }

.brand .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
}

.brand .name small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover { color: var(--oak-deep); }

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--oak);
  padding-bottom: 2px;
}

.phone-btn {
  display: inline-block;
  background: var(--walnut);
  color: var(--paper) !important;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.phone-btn:hover { background: var(--walnut-soft); }

/* ---- hero carousel ---- */

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
  min-height: clamp(30rem, 76vh, 46rem);
  display: flex;
  align-items: center;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-carousel .slide.is-active { opacity: 1; }

.hero-carousel .scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(102deg, rgba(13,27,22,0.86) 0%, rgba(13,27,22,0.55) 52%, rgba(13,27,22,0.20) 100%);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.hero-overlay h1 {
  color: #fdf7ec;
  font-size: clamp(2.3rem, 6vw, 4rem);
  max-width: 18ch;
  text-shadow: 0 2px 22px rgba(0,0,0,0.35);
}

.hero-overlay .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #eddcc2;
  max-width: 40rem;
  margin: 0 0 1.9rem;
}

.hero-overlay .actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-overlay .btn-ghost { border-color: #f7ecd9; color: #fdf7ec; }
.hero-overlay .btn-ghost:hover { background: #fdf7ec; color: var(--walnut); }

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(13,27,22,0.4);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.carousel-prev:hover, .carousel-next:hover { background: rgba(13,27,22,0.72); }
.carousel-prev { left: clamp(0.6rem, 2vw, 1.4rem); }
.carousel-next { right: clamp(0.6rem, 2vw, 1.4rem); }

.carousel-dots {
  position: absolute;
  bottom: 1.15rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.carousel-dot.is-active { background: #fff; transform: scale(1.2); }

@media (max-width: 640px) {
  .carousel-prev, .carousel-next { display: none; }
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 3px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  transition: transform 0.14s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--oak); color: var(--walnut); }
.btn-primary:hover { background: #b5890f; color: var(--walnut); box-shadow: 0 6px 18px rgba(23,50,42,0.30); }

.btn-ghost {
  border: 1.5px solid var(--walnut);
  color: var(--walnut);
}
.btn-ghost:hover { background: var(--walnut); color: var(--paper); }

/* ---- tagline band ---- */

.tagline {
  background: var(--walnut);
  color: #c3e6d4;
  text-align: center;
}

.tagline .wrap {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.tagline p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 400;
}

/* ---- sections ---- */

.section .wrap {
  padding-top: clamp(2.8rem, 7vw, 4.5rem);
  padding-bottom: clamp(2.8rem, 7vw, 4.5rem);
}

.section.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin: 0 0 0.6rem;
}

.section-intro { max-width: 44rem; color: var(--walnut-soft); }

/* ---- card grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem 1.4rem;
}

.section:not(.alt) .card { background: var(--panel); }

.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

a.card { text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
a.card:hover, a.card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(23,50,42,0.14); border-color: var(--oak); outline: none; }
a.card:focus-visible { outline: 2px solid var(--oak-deep); outline-offset: 2px; }
a.card h3 { color: var(--oak-deep); }

.more { margin-top: 0.6rem; font-weight: 600; }

.card .icon {
  color: var(--oak);
  margin-bottom: 0.9rem;
}

/* ---- photo gallery ---- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
  margin-top: 2rem;
}

.gallery .shot {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }

.gallery .shot:hover,
.gallery .shot:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 50, 42, 0.16);
  border-color: var(--oak);
  outline: none;
}
.gallery .shot:focus-visible { outline: 2px solid var(--oak-deep); outline-offset: 2px; }

/* ---- lightbox ---- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 23, 19, 0.94);
}
.lightbox.open { display: flex; }

.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-fig img { max-width: 100%; max-height: 88vh; border-radius: 5px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lb-fig figcaption { color: #e9dcc6; font-size: 0.9rem; margin-top: 0.8rem; text-align: center; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  z-index: 101;
  background: rgba(20, 12, 5, 0.5);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(20, 12, 5, 0.85); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: clamp(0.6rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.6rem, 2vw, 1.6rem); top: 50%; transform: translateY(-50%); }

/* ---- fact strip ---- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  text-align: center;
}

.facts .fact {
  border-top: 3px solid var(--mint);
  padding-top: 1rem;
}

.facts .fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
}

.facts .fact span { color: var(--muted); font-size: 0.92rem; }

/* ---- method list ---- */

.methods {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.5rem;
}
@media (max-width: 560px) { .methods { grid-template-columns: 1fr; } }

.methods li { padding-left: 1.4rem; position: relative; }

.methods li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--oak);
  transform: rotate(45deg);
}

.methods strong { display: block; font-family: var(--serif); font-size: 1.1rem; }
.methods span { color: var(--muted); font-size: 0.95rem; }

/* ---- prose pages ---- */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }

/* ---- contact ---- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-block h3 {
  font-size: 0.82rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 0.6rem;
}

.contact-block p { margin: 0 0 0.4rem; }

.contact-block .big {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
}

table.hours { border-collapse: collapse; }
table.hours td { padding: 0.15rem 1.4rem 0.15rem 0; color: var(--ink); }
table.hours td:first-child { color: var(--muted); }

/* ---- CTA band ---- */

.cta-band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-band .wrap {
  padding-top: 3rem;
  padding-bottom: 3.2rem;
  max-width: 46rem;
}

.cta-band p { color: var(--walnut-soft); max-width: 36rem; margin: 0 auto 1.5rem; }

/* ---- footer ---- */

.site-footer {
  background: var(--walnut);
  color: #cdd8cf;
  font-size: 0.92rem;
}

.site-footer .wrap {
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
}

.site-footer h3 {
  color: #add8c2;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer a { color: #e6ece4; }
.site-footer a:hover { color: #86d3ae; }
.site-footer p { margin: 0 0 0.35rem; }

.site-footer .legal {
  grid-column: 1 / -1;
  border-top: 1px solid #2c5247;
  padding-top: 1.2rem;
  color: #8aa79a;
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .site-header .wrap { justify-content: center; text-align: center; }
  .site-nav { justify-content: center; }
}
