/* ═══════════════════════════════════════════
   JF Services Cleaning · Boston, MA
   Fonts: Comfortaa (headings) · Raleway (body)
   ═══════════════════════════════════════════ */

:root {
  --green-900: #36432F;
  --green-700: #5F7D5C;
  --green-500: #7E997B;
  --green-300: #A9B8A4;
  --green-100: #E3EAE1;
  --sand: #CDB585;
  --sand-dark: #B89D66;
  --cream: #EFEBE7;
  --off-white: #F8F6F4;
  --white: #FFFFFF;
  --text: #2E362B;
  --text-light: #5C665A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(54, 67, 47, 0.10);
  --shadow-lg: 0 14px 40px rgba(54, 67, 47, 0.16);
  --container: 1160px;
  --font-head: 'Comfortaa', sans-serif;
  --font-body: 'Raleway', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

p { color: var(--text-light); }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 12px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head p { margin-top: 14px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--green-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-secondary {
  background: transparent;
  color: var(--green-900);
  border-color: var(--green-700);
}
.btn-secondary:hover { background: var(--green-700); color: var(--white); }

.btn-sand {
  background: var(--sand);
  color: var(--green-900);
}
.btn-sand:hover { background: var(--sand-dark); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--green-900);
}
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

/* ── Top Offer Bar ───────────────────────── */
.offer-bar {
  background: var(--green-900);
  color: var(--white);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  letter-spacing: 0.4px;
}
.offer-bar a { color: var(--sand); text-decoration: none; font-weight: 700; }
.offer-bar a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 14px rgba(54, 67, 47, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 58px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-900);
  text-decoration: none;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--green-700); }

/* Dropdown (Services) */
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-900);
  padding: 0;
  transition: color 0.2s;
}
.nav-drop-toggle:hover { color: var(--green-700); }
.nav-drop-toggle svg { transition: transform 0.2s; }
.nav-dropdown.open > .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-drop-menu {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 220px;
}
.nav-drop-menu a {
  display: block;
  padding: 10px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-drop-menu a:hover { background: var(--green-100); color: var(--green-900); }

@media (min-width: 761px) {
  .nav-drop-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-drop-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
  }
  .nav-dropdown:hover .nav-drop-menu,
  .nav-dropdown:focus-within .nav-drop-menu,
  .nav-dropdown.open .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-900);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green-700); }

.header-cta { padding: 12px 26px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--green-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(rgba(46, 56, 41, 0.72), rgba(46, 56, 41, 0.58)), url('images/hero-home.webp') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0 100px;
}

.hero-content { max-width: 700px; }

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
  max-width: 560px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  color: var(--green-900);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}

/* ── Trust Bar ───────────────────────────── */
.trust-bar { background: var(--green-900); padding: 22px 0; }
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
}
.trust-item svg { flex-shrink: 0; }

/* ── Value Cards ─────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.bg-cream { background: var(--off-white); }
.bg-green-light { background: var(--green-100); }

/* ── Services Preview ────────────────────── */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.service-card-img { height: 210px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.service-card-body p { flex: 1; margin: 10px 0 18px; }

.link-arrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green-700);
  text-decoration: none;
}
.link-arrow:hover { color: var(--green-900); }

/* ── About Snippet ───────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-split h2 { margin-bottom: 18px; }
.about-split p { margin-bottom: 16px; }

/* ── Why Choose Us ───────────────────────── */
.why-list { list-style: none; display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.why-list li {
  display: flex;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.why-list li strong { display: block; font-family: var(--font-head); color: var(--green-900); margin-bottom: 4px; }
.why-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Stats Bar ───────────────────────────── */
.stats-bar { background: var(--green-900); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--sand);
}
.stat-label { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; }

/* ── Testimonials ────────────────────────── */
.testimonial-card { position: relative; }
.stars { color: var(--sand-dark); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card blockquote { font-style: italic; color: var(--text-light); margin-bottom: 18px; font-size: 0.98rem; }
.testimonial-author { font-family: var(--font-head); font-weight: 700; color: var(--green-900); font-size: 0.9rem; }

/* ── Service Area ────────────────────────── */
.area-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.area-cities { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; list-style: none; }
.area-cities li {
  background: var(--white);
  border: 1px solid var(--green-300);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green-900);
}
.area-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.area-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ── Estimate Form ───────────────────────── */
.estimate-section { background: var(--green-900); }
.estimate-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.estimate-wrap h2 { color: var(--white); margin-bottom: 18px; }
.estimate-wrap > div > p { color: rgba(255, 255, 255, 0.85); margin-bottom: 24px; }
.estimate-perks { list-style: none; display: grid; gap: 12px; }
.estimate-perks li { display: flex; gap: 10px; color: var(--white); font-weight: 600; font-size: 0.95rem; align-items: center; }
.estimate-perks svg { flex-shrink: 0; }

.estimate-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.estimate-form h3 { margin-bottom: 22px; font-size: 1.3rem; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-900);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #D8DED6;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.form-consent input { margin-top: 5px; }
.form-consent label { font-size: 0.8rem; color: var(--text-light); }
.form-consent a { color: var(--green-700); }

.estimate-form .btn { width: 100%; }

.form-feedback { margin-top: 14px; font-weight: 600; font-size: 0.9rem; display: none; }
.form-feedback.success { display: block; color: var(--green-700); }
.form-feedback.error { display: block; color: #B0533B; }

/* ── Final CTA ───────────────────────────── */
.final-cta {
  background: linear-gradient(rgba(54, 67, 47, 0.82), rgba(54, 67, 47, 0.82)), url('images/cta-bg.webp') center/cover no-repeat;
  text-align: center;
  color: var(--white);
}
.final-cta h2 { color: var(--white); margin-bottom: 14px; }
.final-cta p { color: rgba(255, 255, 255, 0.9); max-width: 560px; margin: 0 auto 30px; }

/* ── Page Hero (inner pages) ─────────────── */
.page-hero {
  background: linear-gradient(rgba(46, 56, 41, 0.72), rgba(46, 56, 41, 0.62)), var(--green-900) center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 90px 0 70px;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, 0.9); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 18px; color: rgba(255, 255, 255, 0.75); }
.breadcrumbs a { color: var(--sand); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── Service Detail ──────────────────────── */
.service-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.service-detail img { border-radius: var(--radius); box-shadow: var(--shadow-lg); position: sticky; top: 110px; }

.check-list { list-style: none; display: grid; gap: 14px; margin: 20px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; color: var(--text-light); }
.check-list svg { flex-shrink: 0; margin-top: 4px; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step-card { text-align: center; }
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { font-size: 0.9rem; }

/* ── FAQ ─────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-900);
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--green-700); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 28px 22px; font-size: 0.95rem; color: var(--text-light); }

/* ── Gallery ─────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.gallery-grid img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(46, 56, 41, 0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 30px 18px 14px;
}

/* ── Values / About page ─────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }

.stats-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 34px 20px;
  border-top: 4px solid var(--sand);
}
.stat-box .stat-num { color: var(--green-700); }
.stat-box .stat-label { color: var(--text-light); }

/* ── Legal pages ─────────────────────────── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.35rem; margin: 38px 0 14px; }
.legal-content p, .legal-content li { margin-bottom: 12px; font-size: 0.96rem; }
.legal-content ul { padding-left: 22px; }

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 70px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer-brand img { height: 72px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; }

.site-footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}

.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--sand); }

.footer-contact { list-style: none; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.footer-contact a:hover { color: var(--sand); }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: var(--green-700); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 26px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Inside Bar ──────────────────────────── */
.inside-bar { background: #000; padding: 14px 0; }
.inside-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inside-bar-logo img { display: block; height: 24px; width: auto; }
.inside-bar-links { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; }
.inside-bar-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.inside-bar-links a:hover { color: rgba(255,255,255,0.85); }
.inside-bar-sep { color: rgba(255,255,255,0.2); }
@media (max-width: 600px) { .inside-bar-inner { flex-direction: column; text-align: center; gap: 10px; } }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1020px) {
  .grid-4, .stats-inner, .stats-boxes, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .values-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-split, .area-wrap, .estimate-wrap, .service-detail { grid-template-columns: 1fr; gap: 44px; }
  .service-detail img { position: static; }
  .header-phone span { display: none; }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .hero { padding: 90px 0 70px; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    padding: 90px 34px 34px;
    z-index: 1100;
  }
  .main-nav.open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 24px; }
  .main-nav a { font-size: 1.1rem; }

  .nav-dropdown { width: 100%; }
  .nav-drop-toggle { font-size: 1.1rem; width: 100%; justify-content: space-between; }
  .nav-drop-menu { display: none; padding: 12px 0 0 14px; }
  .nav-dropdown.open .nav-drop-menu { display: block; }
  .nav-drop-menu li + li { margin-top: 14px; }
  .nav-drop-menu a { padding: 0; font-size: 1rem; }
  .nav-drop-menu a:hover { background: none; }

  .nav-toggle { display: block; z-index: 1200; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .header-cta { display: none; }
  .grid-3, .grid-2, .values-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-ctas .btn { width: 100%; }
  .estimate-form { padding: 30px 24px; }
}

@media (max-width: 480px) {
  .grid-4, .stats-inner, .stats-boxes, .steps-grid { grid-template-columns: 1fr; }
}
