/* ============================================================
   Crafted Curb Appeal — Design System
   Palette:  Forest #1B3622 · Gold #C5A059 · Sand #F4F1EA
             Slate #3A3F44 · Sage #7C8B6F · Gold Deep #9C7A3F
   Display:  Cormorant Garamond (headers) / Cinzel (wordmark)
   Body:     Lato
   ============================================================ */

:root {
  --forest: #1B3622;
  --forest-light: #2C4A34;
  --gold: #C5A059;
  --gold-deep: #9C7A3F;
  --sand: #F4F1EA;
  --sand-dark: #E9E3D5;
  --slate: #3A3F44;
  --sage: #5C6B4F;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', serif;
  --font-wordmark: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;

  --max-width: 1160px;
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li, .lede, .body-text { text-wrap: pretty; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--slate);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

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

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
}

.subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--sage);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p { margin: 0 0 1.2em; }

.lede {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 62ch;
}

::selection { background: var(--gold); color: var(--forest); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  padding: 0.95em 2.1em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--sand);
  border-color: rgba(244,241,234,0.5);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline-dark:hover { background: var(--forest); color: var(--sand); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,241,234,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-dark);
}

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

.wordmark {
  font-family: var(--font-wordmark);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
  color: var(--forest);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.wordmark span.tag {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.68rem;
  color: var(--sage);
  font-weight: 400;
}

.logo-link { display: block; }
.logo-img { height: 58px; width: auto; display: block; }
@media (max-width: 780px) {
  .logo-img { height: 46px; }
}

.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand-icon { height: 42px; width: auto; display: block; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--forest); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.75rem 1.5rem;
  }
  .main-nav li { border-top: 1px solid var(--sand-dark); }
  .main-nav a { display: block; padding: 0.9rem 0; }
}

/* ---------- Botanical divider (signature element) ---------- */
.divider {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  color: var(--gold);
  width: 100%;
  max-width: 220px;
}
.divider svg { width: 100%; height: auto; }
.divider--section { margin-top: var(--section-pad); margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.hero .eyebrow { display: block; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 0.35em; }
.hero .subhead { display: block; margin-bottom: 0; }

/* ---------- Gallery (Home / My Designs) ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.gallery figure { flex: 0 1 calc(33.333% - 0.5rem); }
.gallery figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.06); }

.gallery figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(27,54,34,0.28);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery figure::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 38px; height: 38px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F1EA' stroke-width='1.6'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M10.5 8v5M8 10.5h5' stroke-width='1.4'/%3E%3Cline x1='15.3' y1='15.3' x2='20.5' y2='20.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.gallery figure:hover::after { opacity: 1; }
.gallery figure:hover::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.gallery--teaser { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 780px) {
  .gallery figure { flex-basis: calc(50% - 0.375rem); }
  .gallery--teaser { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
@media (max-width: 520px) {
  .gallery--teaser { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27,54,34,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 3rem 1.5rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: 1px solid rgba(244,241,234,0.5);
  color: var(--sand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Intro / general content sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.intro {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}
.intro .cta-wrap { margin-top: 2.2rem; }

.section-head { text-align: center; max-width: 62ch; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: 3px; }
.two-col.reverse .col-img { order: 2; }

/* ---------- Service tiers ---------- */
.tiers {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.tier {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 700px) {
  .tier { grid-template-columns: 1fr; }
}
.tier-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}
.tier-name { margin-bottom: 0.15em; }
.tier-kicker {
  font-style: italic;
  color: var(--sage);
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.1em;
}
.tier ul {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
  display: grid;
  gap: 0.9em;
}
.tier li { padding-left: 1.6em; position: relative; }
.tier li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
}
.tier li strong { color: var(--forest); }
.tier-note {
  font-size: 0.92rem;
  color: var(--sage);
  font-style: italic;
  border-top: 1px solid var(--sand-dark);
  padding-top: 1em;
  margin-top: 0.5em;
}

/* ---------- Steps (Next Steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
}
.step { position: relative; padding-top: 1.6rem; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  background: var(--forest);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step h4 { margin-bottom: 0.4em; }
.step p { font-size: 0.95rem; color: var(--slate); margin-bottom: 0; }
.step .fee-note { display: block; margin-top: 0.5em; font-size: 0.85rem; color: var(--sage); font-style: italic; }

/* ---------- Quote block ---------- */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  color: var(--forest);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin: 1.5em 0;
}

/* ---------- Dark band (About story, CTA bands) ---------- */
.band-dark {
  background: var(--forest);
  color: var(--sand);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--sand); }
.band-dark .subhead { color: var(--gold); }
.band-dark p { color: rgba(244,241,234,0.85); }

/* ---------- Credentials strip ---------- */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(244,241,234,0.2);
}
.credentials div {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.credentials div span {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 300;
  font-size: 0.85rem;
  color: rgba(244,241,234,0.75);
  margin-top: 0.2em;
}

/* ---------- Forms ---------- */
.quote-form {
  background: var(--white);
  border-radius: 4px;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid var(--sand-dark);
}
.form-group { margin-bottom: 1.75rem; }
.form-group:last-of-type { margin-bottom: 0; }
.form-group > label.group-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--forest);
  margin-bottom: 0.85rem;
}
.form-hint { font-size: 0.85rem; color: var(--sage); margin: -0.5rem 0 0.85rem; }

.checkbox-list { display: grid; gap: 0.7rem; }
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sand-dark);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkbox-item:hover { border-color: var(--gold); background: var(--sand); }
.checkbox-item input { margin-top: 0.3rem; accent-color: var(--gold-deep); flex-shrink: 0; }
.checkbox-item .opt-title { font-weight: 600; color: var(--forest); font-size: 0.95rem; }
.checkbox-item .opt-desc { font-size: 0.85rem; color: var(--sage); display: block; margin-top: 0.15em; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--slate);
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 3px;
  padding: 0.85em 1em;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus { border-color: var(--gold-deep); outline: none; }
textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); }

.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.5em;
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--white);
  border-radius: 4px;
  border: 1px solid var(--sand-dark);
}
.form-success.visible { display: block; }
.form-success .divider { margin-bottom: 1.25rem; }

/* ---------- Contact info strip ---------- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 700px) { .contact-info { grid-template-columns: 1fr; gap: 1.5rem; } }
.contact-info .ci-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: block;
  margin-bottom: 0.4em;
}
.contact-info .ci-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest);
}
.contact-info a.ci-value:hover { color: var(--gold-deep); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 780px) {
  .testimonials { grid-template-columns: 1fr; }
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--sand-dark);
  border-radius: 4px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.testimonial p.body-text {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 1.4rem;
}
.testimonial .attribution {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest);
  border-top: 1px solid var(--sand-dark);
  padding-top: 1rem;
}
.testimonial .attribution span {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--sage);
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}
.testimonial.featured { grid-column: 1 / -1; }
.empty-state {
  text-align: center;
  max-width: 52ch;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.empty-state .divider { margin-bottom: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: rgba(244,241,234,0.75);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244,241,234,0.15);
  margin-bottom: 1.5rem;
}
.footer-top .wordmark { color: var(--sand); }
.footer-top .wordmark span.tag { color: var(--gold); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(244,241,234,0.75); }
.footer-nav a:hover { color: var(--gold); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(244,241,234,0.5);
}
.footer-meta a { color: rgba(244,241,234,0.65); }
.footer-meta a:hover { color: var(--gold); }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
