/* ==========================================================================
   Quest Landscapes — Full Website
   Organic premium: warm stone, deep garden green, bark brown, honey timber
   ========================================================================== */

:root {
  --stone: #F3F0E9;
  --stone-dim: #EAE5D8;
  --green: #2E5936;
  --green-deep: #214027;
  --bark: #3E2F23;
  --honey: #C99A4B;
  --white: #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --shadow-card: 0 12px 32px -12px rgba(62, 47, 35, 0.28);
  --shadow-soft: 0 4px 16px -6px rgba(62, 47, 35, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 420ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bark);
  background: var(--stone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bark);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-weight: 700; }

p { max-width: 62ch; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 200ms var(--ease-out);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 240, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(62, 47, 35, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--green-deep);
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--green-deep);
  text-decoration: none;
  min-height: 44px;
  padding-inline: 0.25rem;
}
.phone-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--green-deep); box-shadow: var(--shadow-card); }

.btn-outline {
  background: transparent;
  border-color: var(--bark);
  color: var(--bark);
}
.btn-outline:hover { background: var(--bark); color: var(--stone); }

.btn-honey {
  background: transparent;
  border-color: var(--honey);
  color: var(--bark);
}
.btn-honey:hover { background: var(--honey); color: var(--bark); }

.btn-block { width: 100%; }

/* ---------- Leaf / frond SVG accents ---------- */
.leaf-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
}
.leaf-accent svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 64, 39, 0.55) 0%, rgba(30, 26, 18, 0.55) 45%, rgba(20, 16, 11, 0.88) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 4rem 3.5rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--honey);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.hero-lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

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

/* Hero staggered fade-up (JS gated) */
.hero-stagger > * {
  opacity: 1;
  transform: none;
}
html.js .hero-stagger > * {
  opacity: 0;
  transform: translateY(18px);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .hero-stagger > * {
    animation: heroUp var(--dur) var(--ease-out) forwards;
  }
  html.js .hero-stagger > *:nth-child(1) { animation-delay: 80ms; }
  html.js .hero-stagger > *:nth-child(2) { animation-delay: 180ms; }
  html.js .hero-stagger > *:nth-child(3) { animation-delay: 280ms; }
  html.js .hero-stagger > *:nth-child(4) { animation-delay: 380ms; }
}
@keyframes heroUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal.in-view {
    animation: revealUp var(--dur) var(--ease-out) forwards;
  }
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}
@keyframes revealUp {
  to { opacity: 1; transform: none; }
}
.reveal-group .reveal:nth-child(1) { animation-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { animation-delay: 60ms; }
.reveal-group .reveal:nth-child(3) { animation-delay: 120ms; }
.reveal-group .reveal:nth-child(4) { animation-delay: 180ms; }
.reveal-group .reveal:nth-child(5) { animation-delay: 240ms; }
.reveal-group .reveal:nth-child(6) { animation-delay: 300ms; }

/* ---------- Section base ---------- */
.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.section-dark {
  background: var(--bark);
  color: var(--stone);
}
.section-dark h2, .section-dark h3 { color: var(--stone); }
.section-green {
  background: var(--green-deep);
  color: var(--stone);
}
.section-green h2 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head .eyebrow { color: var(--green); }
.section-dark .section-head .eyebrow,
.section-green .section-head .eyebrow { color: var(--honey); }

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  font-size: 1.08rem;
  color: rgba(62, 47, 35, 0.78);
}
.section-dark .section-head p,
.section-green .section-head p {
  color: rgba(243, 240, 233, 0.82);
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(62, 47, 35, 0.06);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--stone-dim);
  color: var(--green);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.96rem;
  color: rgba(62, 47, 35, 0.75);
}

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--green);
  color: var(--white);
  padding-block: 2.75rem;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--honey);
  display: block;
}
.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.35rem;
}

/* ---------- Projects gallery ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  display: block;
  text-decoration: none;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 380ms var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .project-card:hover img,
  .project-card:focus-visible img { transform: scale(1.03); }
  .project-card:active img { transform: scale(0.98); }
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 11, 0) 40%, rgba(20, 16, 11, 0.82) 100%);
}
.project-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  z-index: 1;
  color: var(--white);
}
.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(201, 154, 75, 0.92);
  color: var(--bark);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.project-card-info h3 {
  color: var(--white);
  font-size: 1.15rem;
}
.project-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.15rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.review-card {
  background: rgba(243, 240, 233, 0.06);
  border: 1px solid rgba(243, 240, 233, 0.16);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.review-stars {
  color: var(--honey);
  margin-bottom: 0.9rem;
  letter-spacing: 0.1em;
}
.review-card p.quote {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 1rem;
}
.review-source {
  font-size: 0.88rem;
  color: rgba(243, 240, 233, 0.7);
}
.review-card.placeholder {
  border-style: dashed;
  color: rgba(243, 240, 233, 0.65);
}
.review-card.placeholder p.quote {
  color: rgba(243, 240, 233, 0.65);
  font-style: italic;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--honey);
  color: var(--bark);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { color: var(--bark); margin-bottom: 0.75rem; }
.cta-band p { margin-inline: auto; margin-bottom: 1.75rem; color: rgba(62, 47, 35, 0.85); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- Quote form ---------- */
.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-card);
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}
.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}
.form-row label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--bark);
}
.form-row input,
.form-row textarea,
.form-row select {
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(62, 47, 35, 0.22);
  background: var(--stone);
  font-size: 1rem;
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-note {
  font-size: 0.85rem;
  color: rgba(62, 47, 35, 0.65);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bark);
  color: rgba(243, 240, 233, 0.85);
  padding-block: 3rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand img { height: 30px; }
.footer-col h4 {
  color: var(--stone);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a {
  text-decoration: none;
  color: rgba(243, 240, 233, 0.78);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-col a:hover { color: var(--honey); }
.footer-bottom {
  border-top: 1px solid rgba(243, 240, 233, 0.14);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(243, 240, 233, 0.6);
}

/* ---------- Nav (multi-page website) ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--bark);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--green-deep);
  border-bottom-color: var(--honey);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--stone);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform 260ms var(--ease-out);
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding-block: 0.65rem; border-bottom: 1px solid rgba(62,47,35,0.08); }
  .nav-toggle { display: inline-flex; }
  .header-cta .phone-text { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.1rem; }
}

/* ==========================================================================
   Multi-page website additions
   ========================================================================== */

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-media img { object-position: center 40%; }
.page-hero .hero-inner { padding-block: 3rem 3rem; max-width: 780px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--white); }
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Intro / split layout (about, home) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.value-list { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.value-list .icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--stone-dim);
  color: var(--green);
}
.value-list .icon svg { width: 18px; height: 18px; }
.value-list strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.value-list span.desc { font-size: 0.92rem; color: rgba(62,47,35,0.75); }

/* ---------- Badge row (directory trust signals) ---------- */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(62,47,35,0.12);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--bark);
  min-height: 44px;
}
.badge-pill svg { width: 16px; height: 16px; color: var(--honey); }

/* ---------- Filter tabs (projects page) ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}
.filter-tab {
  min-height: 44px;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid rgba(62,47,35,0.18);
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bark);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.filter-tab:hover { border-color: var(--green); }
.filter-tab[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}
.project-card[hidden] { display: none; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-soft);
}
.contact-info-card h3 { margin-bottom: 1rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid rgba(62,47,35,0.08);
  text-decoration: none;
  color: var(--bark);
  font-weight: 600;
  min-height: 44px;
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--stone-dim);
  color: var(--green);
  flex-shrink: 0;
}
.contact-detail .icon svg { width: 18px; height: 18px; }

/* ---------- About page: timeline / stat strip ---------- */
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin-top: 2rem;
}
.mini-stat .stat-figure { color: var(--green); font-size: 2rem; }
.mini-stat .stat-label { color: rgba(62,47,35,0.7); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
}
