/* ─────────────────────────────────────────────
   Palmeras Home Services — theme: soft lilac + sage
   ───────────────────────────────────────────── */

:root {
  color-scheme: light;
  --lilac:        #F6F2FC;
  --lilac-deep:   #EAE0F8;
  --purple:       #FDEFFC;
  --purple-deep:  #93268F;
  --green:        #3AB449;
  --green-deep:   #3AB449;
  --ink:          #2A2333;
  --ink-soft:     #6B637A;
  --paper:        #FFFFFF;
  --line:         rgba(56, 35, 83, 0.12);
  --shadow:       0 20px 45px -25px rgba(56, 35, 83, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-scroll, body.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1300px circle at 0% 0%, rgba(147, 38, 143, 0.22), transparent 62%),
    radial-gradient(1300px circle at 100% 0%, rgba(58, 180, 73, 0.19), transparent 62%),
    #FAF8FC;
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  color: var(--purple-deep);
  margin: 0 0 0.6em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.9rem;
}
.section-label.center { display: block; text-align: center; }

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 5vw;
}

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--purple-deep);
  padding: 0.85rem 1.9rem;
  border-radius: 2rem;
  box-shadow: 0 14px 30px -16px rgba(147, 38, 143, 0.65);
  transition: background 0.25s, transform 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  background: #7a1f75;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(147, 38, 143, 0.75);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.large { padding: 1.05rem 2.4rem; font-size: 0.92rem; }
.btn-primary.full { width: 100%; text-align: center; margin-top: 0.5rem; }

.btn-outline {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-deep);
  background: transparent;
  border: 1.5px solid var(--green-deep);
  padding: 0.7rem 1.5rem;
  border-radius: 2rem;
  transition: background 0.25s, color 0.25s, transform 0.2s ease;
}
.btn-outline:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }

/* ─── NAV ─── */
nav {
  position: static;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 5vw;
  background: var(--lilac-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(56,35,83,0.4); }

.brand { display: flex; align-items: center; gap: 0.7rem; }

/* Logo slot — drop a file named logo.png next to these HTML files and
   it fills this in. Sized with clamp() so it scales as the page resizes
   rather than staying a fixed pixel size. Until a real file is added,
   a soft placeholder mark shows instead. */
.logo-mark {
  position: relative;
  flex-shrink: 0;
  height: clamp(64px, 8.4vw, 96px);
  width: clamp(64px, 8.4vw, 96px);
  border-radius: 0.85rem;
  overflow: hidden;
}
#nav .logo-mark, .menu-top .logo-mark {
  height: clamp(74px, 9.6vw, 110px);
  width: clamp(74px, 9.6vw, 110px);
}
.logo-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.logo-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.nav-right { display: flex; align-items: center; gap: 1.4rem; }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: var(--purple-deep);
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  transition: background 0.25s;
}
.nav-cta:hover { background: #7a1f75; }

/* Hamburger */
.hamburger {
  position: relative;
  width: 30px; height: 22px;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--purple-deep);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }
.hamburger.active span { background: var(--lilac-deep); }
.hamburger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ─── FULL-SCREEN MENU (slide-in + drill-down sub-panels) ─── */
.menu-overlay {
  position: fixed; inset: 0;
  z-index: 205;
  background:
    radial-gradient(1300px circle at 0% 0%, rgba(147, 38, 143, 0.22), transparent 62%),
    radial-gradient(1300px circle at 100% 0%, rgba(58, 180, 73, 0.19), transparent 62%),
    #FAF8FC;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.menu-overlay.open { transform: translateX(0); }

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 5vw;
  background: var(--lilac-deep);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.menu-top .logo-main { color: var(--purple-deep); }
.menu-top .logo-sub { color: var(--green-deep); }

.menu-close {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--purple-deep);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-close:hover { border-color: var(--green-deep); color: var(--green-deep); }

.menu-panel {
  display: none;
  flex-direction: column;
  padding: 1.6rem 6vw 3rem;
  flex: 1;
}
.menu-panel.is-active { display: flex; }

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.65rem;
  color: var(--purple-deep);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.menu-row:hover { color: var(--green-deep); }
.menu-chevron { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }

.menu-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 0 1.6rem;
  cursor: pointer;
}
.menu-back svg { width: 1.1rem; height: 1.1rem; }

.menu-heading {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--green-deep);
  margin: 1.3rem 0 1rem;
}
.menu-panel > .menu-heading:first-of-type { margin-top: 0; }

.menu-services-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.menu-service-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.menu-service-item svg { width: 1.5rem; height: 1.5rem; color: var(--green-deep); flex-shrink: 0; margin-top: 0.15rem; }
.menu-service-item h4 { margin: 0 0 0.2rem; font-size: 1.08rem; color: var(--purple-deep); }
.menu-service-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.menu-faq-list { display: flex; flex-direction: column; }
.menu-faq-item { border-bottom: 1px solid var(--line); }
.menu-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  font-size: 1.03rem;
  font-weight: 600;
  color: var(--purple-deep);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-faq-q span { font-size: 1.3rem; color: var(--green-deep); transition: transform 0.25s; }
.menu-faq-item.open .menu-faq-q span { transform: rotate(45deg); }
.menu-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.menu-faq-a p { padding: 0 0 1rem; font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.menu-faq-item.open .menu-faq-a { max-height: 220px; }

.menu-about-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(150deg, var(--lilac-deep), rgba(58,180,73,0.25));
  margin-bottom: 1.2rem;
}
.menu-about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-about-subhead {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--purple-deep);
  margin: 1.1rem 0 0.4rem;
}
.menu-about-subhead:first-of-type { margin-top: 0; }
.menu-about-text { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 0.4rem; line-height: 1.6; }

.menu-actions {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.menu-quote-btn {
  display: block;
  width: 100%;
  background: var(--purple-deep);
  color: #fff;
  border: none;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.95rem;
  border-radius: 2rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.menu-quote-btn:hover { background: #7a1f75; opacity: 0.9; }

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 5vw 2.5rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.75rem 2.5rem;
}

/* Checkered corner frame — four thin edge strips, each split in half so
   every corner reads as one solid color (green top-left, purple top-right,
   purple bottom-left, green bottom-right). No fill behind the text —
   only the outer edges are drawn. */
.frame-edge { position: absolute; pointer-events: none; }
.frame-top    { top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--green) 50%, var(--purple-deep) 50%); }
.frame-bottom { bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(to right, var(--purple-deep) 50%, var(--green) 50%); }
.frame-left   { top: 0; bottom: 0; left: 0; width: 3px; background: linear-gradient(to bottom, var(--green) 50%, var(--purple-deep) 50%); }
.frame-right  { top: 0; bottom: 0; right: 0; width: 3px; background: linear-gradient(to bottom, var(--purple-deep) 50%, var(--green) 50%); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green-deep); }
.hero-sub {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ─── SERVICES ─── */
.services { text-align: center; }
.services h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 2rem; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
}
.service-card {
  position: relative;
  border-radius: 1.2rem;
  padding: 1.9rem;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover, .service-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(56, 35, 83, 0.45);
}
.service-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--purple-deep), var(--green));
}
.service-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(42, 35, 51, 0.88), rgba(147, 38, 143, 0.78) 55%, rgba(58, 180, 73, 0.5));
}
.service-card:hover .service-card-media img,
.service-card:focus-visible .service-card-media img {
  transform: scale(1.06);
}
.service-card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.45);
}
.service-card-icon svg { width: 24px; height: 24px; color: var(--purple-deep); }
.service-card h3 { position: relative; z-index: 1; color: #fff; font-size: 1.2rem; margin-bottom: 0.2rem; }
.service-card p { position: relative; z-index: 1; flex-grow: 1; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.service-card-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.service-card-arrow { transition: transform 0.2s ease; }
.service-card:hover .service-card-arrow, .service-card:focus-visible .service-card-arrow {
  transform: translateX(4px);
}

/* ─── TRUST STRIP ─── */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1.5rem 1rem;
  border-top: 1px solid var(--line);
}
.trust-item svg {
  width: 46px;
  height: 46px;
  padding: 12px;
  color: var(--purple-deep);
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px -14px rgba(56, 35, 83, 0.5);
}
.trust-item h4 { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--purple-deep); }

/* ─── CONTACT ─── */
.contact {
  position: relative;
  border-radius: 1.6rem;
  color: #fff;
  text-align: center;
  padding: 4rem 5vw;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, var(--ink), var(--purple-deep) 60%, var(--green-deep));
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(42, 35, 51, 0.88), rgba(147, 38, 143, 0.82) 55%, rgba(58, 180, 73, 0.55));
  z-index: -1;
}
.contact-inner { position: relative; }
.contact h2 { color: #fff; }
.contact p { color: rgba(255, 255, 255, 0.85); max-width: 460px; margin-left: auto; margin-right: auto; }
.contact .btn-primary { background: #fff; color: var(--purple-deep); }
.contact .btn-primary:hover { background: var(--lilac); }
.hours { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.25); max-width: 320px; margin-left: auto; margin-right: auto; }
.hours h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 0.7rem; }
.hours ul { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.hours li { display: flex; justify-content: space-between; padding: 0.35rem 0; color: rgba(255, 255, 255, 0.85); }

/* ─── FOOTER ─── */
footer {
  background: var(--lilac-deep);
  padding: 3.5rem 5vw 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.footer-links { list-style: none; display: flex; gap: 1.8rem; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--purple-deep); }
.footer-note, .footer-copy {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.footer-copy { margin-top: 0.8rem; }

/* ─── MODAL ─── */
.modal-scrim, .menu-scrim {
  position: fixed; inset: 0;
  background: rgba(42, 35, 51, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 190;
}
.modal-scrim.open, .menu-scrim.open { opacity: 1; pointer-events: auto; }

.modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(480px, 90vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 1.4rem;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 30px 70px -20px rgba(42,35,51,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 220;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }

.modal-close {
  position: absolute;
  top: 1rem; right: 1.3rem;
  font-size: 1.7rem;
  color: var(--ink-soft);
  line-height: 1;
}
.modal-close:hover { color: var(--purple-deep); }

.modal h3 { font-size: 1.4rem; margin-bottom: 1.3rem; }

.modal form { display: flex; flex-direction: column; gap: 1rem; }
.modal label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.modal input, .modal textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--lilac);
  color: var(--ink);
  resize: vertical;
}
.modal input:focus, .modal textarea:focus {
  outline: none;
  border-color: var(--purple-deep);
}
.modal-legal { font-size: 0.7rem; text-align: center; color: var(--ink-soft); margin: 0.6rem 0 0; }

.modal-success { text-align: center; padding: 1rem 0; }
.modal-success svg { width: 46px; height: 46px; color: var(--green-deep); margin-bottom: 1rem; }
.modal-success .btn-outline { margin-top: 1.2rem; }

/* ─── FOCUS VISIBILITY ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 2px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  main > section { padding: 2.75rem 6vw; }
  .nav-cta { display: none; }
  .menu-row { font-size: 1.4rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}