/* ============================================================
   Collica's Landscaping — styles
   Palette: deep teal #0F2E36, teal #16424D, gold #E0A93E,
   sand #F7F3EA, cream #FDFBF5
   Fonts: DM Serif Display (headings) + Jost (body)
   ============================================================ */

:root {
  --ink: #0F2E36;
  --teal: #16424D;
  --teal-soft: #2A4A55;
  --gold: #E0A93E;
  --gold-bright: #F5C842;
  --sand: #F7F3EA;
  --cream: #FDFBF5;
  --line: rgba(15, 46, 54, 0.14);
  --line-light: rgba(247, 243, 234, 0.18);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 46, 54, 0.12);
  --shadow-soft: 0 4px 14px rgba(15, 46, 54, 0.08);
  --font-head: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; line-height: 1.25; }

h2 em, h1 em {
  font-style: italic;
  color: var(--gold);
}

a { color: inherit; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  width: min(1140px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.container-wide {
  width: min(1380px, 96%);
  margin-left: auto;
  margin-right: auto;
}

.section { padding: clamp(70px, 9vw, 120px) 0; }

.section-dark {
  background: var(--ink);
  color: var(--sand);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section-head .section-lead,
.section-lead {
  font-size: 1.06rem;
  color: rgba(15, 46, 54, 0.75);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-lead {
  color: rgba(247, 243, 234, 0.75);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9em;
}

.eyebrow.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.8em 1.9em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: rgba(15, 46, 54, 0.25);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.btn-teal {
  background: var(--teal);
  color: var(--cream);
}
.btn-teal:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.btn-lg { padding: 1em 2.3em; font-size: 1rem; }
.btn-full { width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 46, 54, 0.96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header-inner {
  width: min(1380px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text em {
  color: var(--gold);
  font-style: italic;
}

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

.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.main-nav a:hover { border-bottom-color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-phone-icon { display: none; }

.header-actions .btn { white-space: nowrap; }

/* Keep everything on one line on medium screens */
@media (max-width: 1180px) and (min-width: 881px) {
  .header-inner { gap: 14px; }
  .brand-text { font-size: 1.05rem; }
  .main-nav ul { gap: 16px; }
  .main-nav a { font-size: 0.88rem; }
  .header-actions { gap: 12px; }
  .header-phone { font-size: 0.88rem; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 210;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.55) 0%, rgba(10, 30, 36, 0.35) 45%, rgba(10, 30, 36, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1140px, 92%);
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding-top: 70px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.2em;
}

.hero-title {
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 0.4em;
}

.hero-title em { color: var(--gold-bright); }

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 2em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Services ---------- */
.services { background: var(--cream); }

/* Services marquee — continuously scrolling cards */
.services-marquee {
  position: relative;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 46s linear infinite;
  will-change: transform;
}

.services-marquee:hover .marquee-track,
.services-marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-track .service-card {
  flex: 0 0 min(360px, 80vw);
  margin-right: 24px;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
  .marquee-viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .marquee-track .service-card { flex: 1 1 280px; margin-right: 0; }
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.service-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

.service-card p {
  color: rgba(15, 46, 54, 0.72);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Before / After ---------- */
.transformation .section-head { margin-bottom: 48px; }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  max-width: 940px;
  margin: 0 auto;
}

.ba-item {
  margin: 0;
  position: relative;
}

.ba-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(247, 243, 234, 0.2);
}

.ba-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.ba-item:nth-child(2) .ba-frame img {
  object-position: 50% 40%;
}

.ba-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}

.ba-label.before {
  background: rgba(15, 46, 54, 0.88);
  color: var(--sand);
}

.ba-label.after {
  background: var(--gold);
  color: var(--ink);
}

/* Before / After comparison slider (homepage) */
.ba-slider {
  --ba-pos: 50%;
  position: relative;
  max-width: 620px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(247, 243, 234, 0.2);
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider-layer {
  position: absolute;
  inset: 0;
}

.ba-slider-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  display: block;
  pointer-events: none;
}

.ba-slider-before {
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 0;
  z-index: 3;
}

.ba-slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 4px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.45);
}

.ba-slider-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.ba-slider-tag {
  position: absolute;
  top: 16px;
  z-index: 2;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  pointer-events: none;
}

.ba-slider-tag.before { left: 16px; background: rgba(15, 46, 54, 0.88); color: var(--sand); }
.ba-slider-tag.after { right: 16px; background: var(--gold); color: var(--ink); }

.ba-slider-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(15, 46, 54, 0.72);
  padding: 6px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

.ba-slider:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Projects gallery section ---------- */
.projects { background: var(--sand); }

.projects .section-head { margin-bottom: 44px; }

/* ---------- About ---------- */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.about-media {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.about-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 55%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-media-caption {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 46, 54, 0.55);
  text-align: center;
  margin: 12px 0 0;
}

.about-copy .section-lead { margin: 0; }

.about-copy p {
  color: rgba(15, 46, 54, 0.8);
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.about-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-weight: 500;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Reviews ---------- */
.reviews .section-head { margin-bottom: 48px; }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.review-card {
  margin: 0;
  background: rgba(247, 243, 234, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
}

.review-stars {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}

.review-text {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--sand);
  margin-bottom: 1.4em;
}

.review-name {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact { background: var(--sand); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.contact-info h2 { margin-bottom: 0.4em; }

.contact-info .section-lead { margin: 0 0 28px; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  flex: 0 0 84px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-list a:hover { border-bottom-color: var(--gold); }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
}

.contact-map iframe { display: block; }

/* ---------- Form ---------- */
.contact-form-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px);
}

.contact-form h3 { margin-bottom: 0.2em; }

.form-note {
  font-size: 0.92rem;
  color: rgba(15, 46, 54, 0.65);
  margin-bottom: 22px;
}

.field { margin-bottom: 18px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(224, 169, 62, 0.2);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding: clamp(56px, 7vw, 88px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 48px;
}

.footer-logo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.footer-brand p {
  color: rgba(247, 243, 234, 0.75);
  font-size: 0.95rem;
  max-width: 420px;
}

.footer-brand .btn { margin-top: 6px; }

.footer-col h3 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.footer-col p {
  color: rgba(247, 243, 234, 0.78);
  font-size: 0.95rem;
  margin-bottom: 0.6em;
}

.footer-col a {
  color: rgba(247, 243, 234, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-bright); }

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 8px; }

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: rgba(247, 243, 234, 0.6);
}

.footer-credit a {
  opacity: 0.5;
  font-weight: 300;
  color: inherit;
  text-decoration: none;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 46, 54, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
  }

  .main-nav.open { display: flex; }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 0;
  }

  .main-nav li { margin: 10px 0; }

  .main-nav a {
    font-size: 1.5rem;
    font-family: var(--font-head);
    letter-spacing: 0.06em;
  }

  .nav-toggle { display: flex; }

  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(247, 243, 234, 0.55);
    border-radius: 50%;
    flex-shrink: 0;
  }

  .header-phone-icon { display: block; }
  .header-phone-text { display: none; }

  .header-actions .btn { display: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .about-media { max-width: 480px; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .ba-grid,
  .reviews-grid { grid-template-columns: 1fr; max-width: 480px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }

  .hero { min-height: 560px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .brand-text { font-size: 1.05rem; }

  .brand-logo { width: 42px; height: 42px; }
}

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

  .reveal { opacity: 1; transform: none; transition: none; }

  .btn, .service-card { transition: none; }
}

/* ---------- Before & After page ---------- */
.main-nav a.active { border-bottom-color: var(--gold); }

.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 36, 0.6) 0%, rgba(10, 30, 36, 0.4) 45%, rgba(10, 30, 36, 0.7) 100%);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: min(1140px, 92%);
  margin: 0 auto;
  text-align: center;
  color: #fff;
  padding: 140px 0 70px;
}

.ba-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  max-width: 1080px;
  margin: 0 auto;
}

.ba-trio .ba-frame { aspect-ratio: 4 / 5; }

.ba-trio .ba-item:nth-child(3) .ba-frame img { object-position: 50% 40%; }

.ba-label.during {
  background: var(--teal);
  color: var(--sand);
}

.ba-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 0;
}

.ba-facts li {
  background: rgba(247, 243, 234, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-facts strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.ba-facts span {
  font-size: 0.95rem;
  color: rgba(247, 243, 234, 0.85);
}

.ba-note {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(15, 46, 54, 0.65);
  max-width: 620px;
  margin: 22px auto 0;
}

.ba-single {
  max-width: 940px;
  margin: 0 auto;
}

.ba-frame-wide { aspect-ratio: 16 / 9; }

.project-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-card figcaption {
  padding: 20px 22px 24px;
}

.project-card h3 { font-size: 1.2rem; margin-bottom: 0.3em; }

.project-card p {
  font-size: 0.95rem;
  color: rgba(15, 46, 54, 0.72);
  margin-bottom: 0;
}

.cta-box {
  text-align: center;
  max-width: 760px;
}

.cta-box .section-lead { margin-bottom: 28px; }

@media (max-width: 880px) {
  .ba-trio { grid-template-columns: 1fr; max-width: 480px; }

  .ba-facts { grid-template-columns: repeat(2, 1fr); }

  .project-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .ba-facts { grid-template-columns: 1fr; }

  .page-hero { min-height: 60vh; }
}

/* ---------- AI Landscape Designer ---------- */
.ai-design {
  position: relative;
  background: var(--sand);
  overflow: hidden;
}

.ai-design::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/tropical-palm-garden-landscape.jpg") center center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.ai-design > * {
  position: relative;
  z-index: 1;
}

.ai-mockup .ai-download {
  margin-top: 0.9rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(32px, 5vw, 56px);
}

.ai-form-card,
.ai-results,
.ai-placeholder {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 36px);
}

/* Refined field styling for the AI designer form */
#aiDesignForm .field { margin-bottom: 20px; }

#aiDesignForm label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

#aiDesignForm input,
#aiDesignForm select,
#aiDesignForm textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(15, 46, 54, 0.18);
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: inset 0 1px 2px rgba(15, 46, 54, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#aiDesignForm select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316424D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 13px;
  padding-right: 44px;
  cursor: pointer;
}

#aiDesignForm input::placeholder,
#aiDesignForm textarea::placeholder {
  color: rgba(15, 46, 54, 0.4);
}

#aiDesignForm input:focus,
#aiDesignForm select:focus,
#aiDesignForm textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 169, 62, 0.16);
}

#aiDesignForm textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.ai-file-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.ai-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.ai-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 36px 24px 30px;
  border: 1.5px dashed rgba(15, 46, 54, 0.22);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, rgba(224, 169, 62, 0.12), rgba(224, 169, 62, 0) 62%), #fff;
  color: var(--teal-soft);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ai-upload-zone:hover,
.ai-upload-zone:focus-visible,
.ai-upload-zone.is-dragover {
  border-color: var(--gold);
  background: radial-gradient(120% 90% at 50% 0%, rgba(224, 169, 62, 0.18), rgba(224, 169, 62, 0.04) 62%), #fff;
  box-shadow: 0 16px 34px rgba(15, 46, 54, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.ai-upload-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(224, 169, 62, 0.22), rgba(224, 169, 62, 0.1));
  box-shadow: 0 0 0 7px rgba(224, 169, 62, 0.12);
  color: var(--gold);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.ai-upload-zone:hover .ai-upload-badge,
.ai-upload-zone:focus-visible .ai-upload-badge,
.ai-upload-zone.is-dragover .ai-upload-badge {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 0 7px rgba(224, 169, 62, 0.2);
}

.ai-upload-icon {
  color: inherit;
}

.ai-upload-zone strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.ai-upload-hint {
  font-size: 0.9rem;
  color: var(--teal-soft);
}

.ai-upload-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(224, 169, 62, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-upload-zone:hover .ai-upload-btn,
.ai-upload-zone:focus-visible .ai-upload-btn,
.ai-upload-zone.is-dragover .ai-upload-btn {
  background: var(--ink);
  color: var(--sand);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 46, 54, 0.25);
}

.ai-upload-tips {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--teal-soft);
  opacity: 0.85;
  max-width: 34ch;
  line-height: 1.5;
}

.ai-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.ai-preview-remove {
  margin-top: 12px;
  padding: 9px 22px;
  background: none;
  border: 1px solid rgba(15, 46, 54, 0.25);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--teal);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-preview-remove:hover {
  border-color: var(--gold);
  background: rgba(224, 169, 62, 0.1);
  color: var(--ink);
}

.ai-fieldset-title {
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 78, 78, 0.14);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.ai-disclaimer {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--teal-soft);
  text-align: center;
}

.ai-placeholder h3 {
  color: var(--teal);
}

.ai-placeholder ol {
  margin: 0;
  padding-left: 1.3em;
}

.ai-placeholder li {
  margin-bottom: 0.6em;
}

.ai-results {
  min-height: 280px;
}

.ai-loading {
  text-align: center;
  padding: 48px 0;
  color: var(--teal);
}

.ai-spinner {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 4px solid rgba(224, 169, 62, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: ai-spin 0.9s linear infinite;
}

@keyframes ai-spin {
  to { transform: rotate(360deg); }
}

.ai-loading-sub {
  font-size: 0.9rem;
  color: var(--teal-soft);
}

.ai-suggestions h4 {
  margin: 1.3em 0 0.4em;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--teal);
}

.ai-suggestions h4:first-child {
  margin-top: 0;
}

.ai-suggestions ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.ai-suggestions li {
  margin-bottom: 0.35em;
}

.ai-mockup {
  margin-bottom: 1.4em;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ai-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.ai-mockup-caption {
  margin: 10px 4px 0;
  font-size: 0.85rem;
  color: var(--teal-soft);
  text-align: center;
}

.ai-error {
  padding: 14px 16px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: rgba(224, 169, 62, 0.12);
  color: var(--ink);
}

.ai-cta {
  margin-top: clamp(20px, 3vw, 28px);
  padding: clamp(24px, 4vw, 36px);
  background: var(--ink);
  color: var(--sand);
  border-radius: var(--radius);
  text-align: center;
}

.ai-cta h3 {
  color: var(--sand);
}

.ai-cta p {
  color: var(--line-light);
  color: rgba(247, 243, 234, 0.8);
}

@media (max-width: 900px) {
  .ai-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-spinner { animation: none; }
}

/* ---------- Curb Appeal carousel (scoped to #front-of-home) ---------- */
.ba-carousel {
  position: relative;
  max-width: 940px;
  margin: 0 auto;
}

.ba-carousel-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(247, 243, 234, 0.2);
  transform: translateX(0);
  transition: transform 0.6s ease;
}

.ba-carousel .ba-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.ba-carousel .ba-frame {
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ba-carousel .ba-item:nth-child(2) .ba-frame img {
  object-position: 50% 55%;
}

.ba-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(15, 46, 54, 0.75);
  color: var(--sand);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.ba-carousel-btn:hover,
.ba-carousel-btn:focus-visible {
  background: var(--gold);
  color: var(--ink);
}

.ba-carousel-prev { left: 16px; }
.ba-carousel-next { right: 16px; }

.ba-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.ba-carousel-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 46, 54, 0.25);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ba-carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

@media (max-width: 720px) {
  .ba-carousel .ba-frame { aspect-ratio: 4 / 3; }
  .ba-carousel-btn { width: 38px; height: 38px; }
  .ba-carousel-prev { left: 10px; }
  .ba-carousel-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-carousel-track { transition: none; }
}

/* ============================================================
   Blog — listing grid, cards, post layout
   ============================================================ */

/* ---------- Listing grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 34px);
}

/* ---------- Post card ---------- */
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-card-media {
  display: block;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 46, 54, 0.55);
  margin: 0;
}

.blog-card-dot { color: var(--gold); }

.blog-card-title {
  font-size: 1.3rem;
  margin: 0;
}

.blog-card-title a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-card-title a:hover { color: var(--teal); }

.blog-card-excerpt {
  font-size: 0.95rem;
  color: rgba(15, 46, 54, 0.75);
  margin: 0;
  flex: 1;
}

.blog-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
}

.blog-card-tags {
  display: inline-block;
  background: rgba(224, 169, 62, 0.14);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.blog-card-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- Post page layout ---------- */
.post-hero {
  background: var(--ink);
  color: var(--sand);
  padding: 150px 0 44px;
}

.post-breadcrumb {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 234, 0.65);
  margin: 0;
}

.post-breadcrumb a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.25s ease;
}

.post-breadcrumb a:hover { color: var(--gold); }

.post-breadcrumb .post-breadcrumb-current { color: var(--gold); }

.post-body {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 clamp(40px, 5vw, 60px);
}

.post-toc {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 26px;
  margin-bottom: 40px;
  font-size: 0.92rem;
}

.post-toc a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.post-toc a:hover { color: var(--gold); }

.post-article .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(15, 46, 54, 0.55);
  margin-bottom: 18px;
}

.post-tag {
  background: rgba(224, 169, 62, 0.14);
  color: var(--teal);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.post-article h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 0.4em;
}

.post-standfirst {
  font-size: 1.15rem;
  color: rgba(15, 46, 54, 0.75);
  margin-bottom: 1.6em;
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 1.8em;
}

.post-article h2 {
  font-size: 1.7rem;
  margin: 1.8em 0 0.6em;
}

.post-article p { line-height: 1.75; }

.post-cta {
  background: var(--teal);
  color: var(--sand);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  margin-top: clamp(40px, 6vw, 64px);
}

.post-cta h2 { margin-top: 0; color: #fff; }

.post-cta p {
  color: rgba(247, 243, 234, 0.85);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Related posts ---------- */
.post-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(70px, 9vw, 110px);
}

.post-related::before {
  content: "More from the blog";
  grid-column: 1 / -1;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
}

/* ---------- Blog responsive ---------- */
@media (max-width: 1020px) {
  .blog-grid,
  .post-related { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .blog-grid,
  .post-related { grid-template-columns: 1fr; }

  .post-hero { padding-top: 120px; }
}
