/* ==========================================================================
   Del Castillo Home & Lawn Services
   Palette: forest green + warm terracotta/gold, organic rounded shapes
   Type: Fraunces (headings) + Nunito Sans (body)
   Mobile-first.
   ========================================================================== */

:root {
  --green-deep: #1f3a24;
  --green: #2f5233;
  --green-mid: #4a7a4e;
  --green-pale: #eef2e4;
  --gold: #d99a3e;
  --gold-deep: #c98a3e;
  --cream: #faf7f0;
  --sand: #e8dcc4;
  --ink: #23291f;
  --ink-soft: #4a5245;
  --white: #ffffff;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 12px 32px rgba(31, 58, 36, 0.12);
  --shadow-card: 0 6px 20px rgba(31, 58, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a {
  color: var(--green);
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold-deep);
  margin: 0 0 0.6em;
}
.eyebrow.center { text-align: center; }
h2.center, .section-lede.center { text-align: center; }
.section-lede {
  max-width: 640px;
  font-size: 1.05rem;
}
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn-ghost:hover { background: var(--green-deep); color: #fff; }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(47, 82, 51, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
}

.main-nav {
  display: none;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 2px;
}
.main-nav a:hover { color: var(--green); }

.header-cta {
  display: none;
  align-items: center;
  gap: 16px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 800;
  min-height: 44px;
  white-space: nowrap;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--green);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.menu-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid rgba(47, 82, 51, 0.12);
  box-shadow: var(--shadow-soft);
}
.main-nav ul {
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 16px;
}
.main-nav li {
  border-top: 1px solid rgba(47, 82, 51, 0.08);
}
.main-nav a {
  display: block;
  padding: 14px 4px;
  min-height: 44px;
}
.main-nav.is-open { display: block; }

@media (min-width: 900px) {
  .main-nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .main-nav ul {
    flex-direction: row;
    padding: 0;
  }
  .main-nav li { border-top: none; }
  .main-nav a { padding: 10px 2px; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--green-pale) 0%, var(--cream) 78%);
  padding: 48px 0 64px;
}
.hero-shape {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(217, 154, 62, 0.25), transparent 70%);
}
.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
  position: relative;
}
.hero-lede { font-size: 1.08rem; max-width: 52ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}
.hero-actions.center { justify-content: center; }
.hero-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-stars { color: var(--gold-deep); letter-spacing: 2px; }

.hero-art { display: none; }
.hero-art-circle {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--sand);
  opacity: 0.6;
}
.hero-art-illustration {
  position: relative;
  width: 100%;
  max-width: 380px;
}

@media (min-width: 860px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--green-deep);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 0;
  padding: 28px 0;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  min-width: 120px;
}
.trust-number {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
}
.trust-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #dfe8dc;
  font-weight: 700;
}
.trust-divider {
  display: none;
}
@media (min-width: 700px) {
  .trust-divider {
    display: block;
    width: 1px;
    background: rgba(255,255,255,0.18);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--green-pale);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-art {
  max-width: 260px;
  margin: 0 auto;
}
.about-points {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.about-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
  color: var(--green-deep);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
}
@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .about-art { max-width: 100%; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: 1fr;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card p { margin-bottom: 0; }
.services-note {
  text-align: center;
  margin-top: 32px;
  font-style: italic;
  color: var(--ink-soft);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Testimonial carousel (React island styles) ---------- */
#testimonial-carousel-root {
  margin-top: 36px;
}
.tc-root {
  max-width: 680px;
  margin: 0 auto;
}
.tc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tc-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}
.tc-quote {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--green-deep);
  line-height: 1.5;
  margin: 0 0 14px;
}
.tc-attribution {
  font-weight: 700;
  color: var(--gold-deep);
  margin: 0;
  font-size: 0.92rem;
}
.tc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
}
.tc-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  background: var(--white);
  color: var(--green-deep);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-arrow:hover { background: var(--green-pale); }
.tc-dots {
  display: flex;
  gap: 10px;
}
.tc-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  border: none;
  background: var(--sand);
  cursor: pointer;
  padding: 0;
}
.tc-dot-active {
  background: var(--gold);
}
.tc-fallback blockquote {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: var(--shadow-card);
  font-family: var(--font-head);
  color: var(--green-deep);
}

/* ---------- CTA band ---------- */
.cta-band-inner {
  text-align: center;
}
.cta-band-inner p {
  max-width: 480px;
  margin: 0 auto 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 40px;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.contact-list svg { color: var(--gold-deep); flex-shrink: 0; }
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact-list a:hover { color: var(--green); }

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form label {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 0.92rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--sand);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  min-height: 44px;
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.contact-form button {
  margin-top: 6px;
  justify-self: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-deep);
  color: #dfe8dc;
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.footer-brand .brand-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { color: #b9c7b3; margin: 4px 0 0; }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-contact a:hover { color: var(--gold); }
.footer-copyright {
  color: #93a48d;
  font-size: 0.85rem;
  margin: 10px 0 0;
}
@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 24px;
  }
}
