/* ==========================================================================
   Thrive Renovation — site styles
   Rebuilt as a self-owned static site (migrated off Duda/Hibu).
   Brand palette taken from the original site:
     navy  #343047   gold #daa360   ink #333   mist #e9e9eb
   ========================================================================== */

:root {
  --navy: #343047;
  --navy-2: #2a2738;
  --gold: #daa360;
  --gold-dark: #c68d45;
  --ink: #333333;
  --muted: #6b6b76;
  --mist: #e9e9eb;
  --light: #f7f7f8;
  --white: #ffffff;
  --line: #e3e3e6;

  --maxw: 1180px;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(52, 48, 71, 0.12);
  --shadow-sm: 0 4px 14px rgba(52, 48, 71, 0.10);

  --font-head: "Poppins", "Montserrat", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

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

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

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

.section { padding: 80px 0; }
.section--tight { padding: 56px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #d9d8e0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* Seasonal promo band (basements in winter, decks in summer — switched by JS) */
.promo { background: #f6efe4; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.promo__variant { display: none; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
}

.lead { font-size: 1.08rem; color: var(--muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.measure { max-width: 760px; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 2px solid var(--gold);
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: var(--white); }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: #cfcdd8;
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #cfcdd8; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar__tag { margin-left: auto; font-style: italic; color: var(--gold); }
.topbar i { color: var(--gold); margin-right: 6px; }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav a:hover { background: var(--light); text-decoration: none; color: var(--gold-dark); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a { display: block; padding: 9px 12px; font-weight: 500; }

.nav__cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
  padding: 6px 10px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(rgba(52,48,71,0.72), rgba(52,48,71,0.78)),
              url("../images/home-1.jpg") center/cover no-repeat;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 90px;
}
.hero h1 { color: var(--white); max-width: 12ch; }
.hero .eyebrow { color: var(--gold); }
.hero p { color: #e7e6ec; font-size: 1.12rem; max-width: 46ch; }

/* Inline request form card */
.form-card {
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.form-card h3 { text-align: center; margin-bottom: 4px; }
.form-card .eyebrow { text-align: center; }

.field { margin-bottom: 12px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--light);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .btn { width: 100%; margin-top: 6px; }
.form-status { margin-top: 12px; font-size: 0.9rem; text-align: center; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #c0392b; }

/* ==========================================================================
   Generic two-column feature blocks
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(rgba(52,48,71,0.88), rgba(52,48,71,0.92)),
              url("../images/outdoor-2.jpg") center/cover fixed no-repeat;
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #e7e6ec; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card__link {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-top: 12px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a { display: block; overflow: hidden; border-radius: 10px; }
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a { cursor: pointer; }

/* Gallery quick-jump chips */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}
.gallery-nav a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 9px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  transition: all 0.2s ease;
}
.gallery-nav a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  text-decoration: none;
}
/* offset anchor jumps so the sticky header doesn't cover the section title */
[id^="gallery-"] { scroll-margin-top: 90px; }

/* ==========================================================================
   Lightbox (click a gallery photo to view + scroll through all)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 28, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.lightbox__btn,
.lightbox__close {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox__btn { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.5rem; }
.lightbox__close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox__btn:hover,
.lightbox__close:hover { background: var(--gold); color: var(--navy); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
}
@media (max-width: 600px) {
  .lightbox__btn { width: 44px; height: 44px; font-size: 1.2rem; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 40px 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--gold-dark);
}
.faq__item.open .faq__q::after { content: "\2013"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a p { padding-bottom: 20px; color: var(--muted); margin: 0; }

/* ==========================================================================
   Areas we serve
   ========================================================================== */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 26px;
}
.areas-list span,
.areas-list a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50px;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
}
.areas-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}
.areas-list a::after {
  content: "\f105"; /* chevron-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85em;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.areas-list a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.areas-list a:hover::after { color: var(--navy); transform: translateX(3px); }

/* ==========================================================================
   Areas We Serve — region/county directory cards
   ========================================================================== */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.area-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 26px 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.area-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.area-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.area-card h3 i { color: var(--gold-dark); }
.area-links { list-style: none; margin: 0; padding: 0; }
.area-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--light);
  transition: color 0.15s ease, padding 0.15s ease;
}
.area-links li:last-child a { border-bottom: 0; }
.area-links a:hover { color: var(--gold-dark); padding-left: 12px; text-decoration: none; }
.area-links a i { color: var(--line); font-size: 0.78em; transition: color 0.15s ease; }
.area-links a:hover i { color: var(--gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-2); color: #b9b7c4; padding: 64px 0 0; }
.site-footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1.05rem; }
.site-footer a { color: #b9b7c4; }
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-logo { height: 56px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.social-row a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px;
  padding: 22px 0;
  font-size: 0.82rem;
  text-align: center;
}
.footer-bottom a { margin: 0 6px; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(rgba(52,48,71,0.82), rgba(52,48,71,0.86)),
              url("../images/basement-4.jpg") center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 88px 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #e7e6ec; max-width: 60ch; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--gold); margin-bottom: 10px; }
.breadcrumb a { color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 18px 24px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    gap: 2px;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 12px 14px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
  }
  .nav__cta { margin: 10px 0 0; }
  .topbar__tag { display: none; }
  .cards, .gallery-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
