/* ============================================
   Vine & Branch Cleaning Co. — Polished Clone
   Brand Colors from Squarespace computed values
   ============================================ */

:root {
  /* Brand Palette */
  --sage:        #869680;   /* lightAccent — sage green, body bg accent */
  --slate:       #4d5862;   /* accent — slate blue-gray, primary/buttons */
  --cream:       #f7f4ef;   /* lightened warm white — page backgrounds */
  --warm-white:  #faf8f4;   /* slightly warmer white */
  --brown:       #a28c7f;   /* darkAccent — warm brown, h1 color */
  --taupe:       #d7cfb3;   /* body text on dark bg */
  --beige:       #e8e2d6;   /* light card backgrounds */
  --earth:       #6b7c6a;   /* deeper sage for accents */
  --charcoal:    #3a4248;   /* dark text */
  --muted:       #8a8578;   /* muted text */
  --border:      rgba(77, 88, 98, 0.15);

  /* Typography */
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Proxima Nova, Helvetica, Arial, sans-serif;
  --font-button: 'PT Serif', Georgia, serif;

  /* Spacing */
  --section-pad: 100px 0;
  --container: 1200px;
  --radius: 15px;
  --radius-sm: 8px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:not(.btn):hover {
  opacity: 0.75;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--brown);
  letter-spacing: -0.5px;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--slate);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--slate);
}

p {
  margin-bottom: 1rem;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--earth);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ============================================
   Layout
   ============================================ */

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-pad);
}

.section-light {
  background: var(--cream);
}

.section-white {
  background: var(--warm-white);
}

.section-sage {
  background: var(--sage);
  color: var(--taupe);
}

.section-sage h1,
.section-sage h2,
.section-sage h3 {
  color: #fff;
}

.section-dark {
  background: var(--slate);
  color: var(--taupe);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: #fff;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 48px;
  width: auto;
  max-width: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: normal;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--earth);
  opacity: 1;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--earth);
  transition: width 0.25s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--slate);
  transition: all 0.3s ease;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--slate);
  color: #fff;
}

.btn-primary:hover {
  background: #3e4750;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid var(--slate);
}

.btn-outline:hover {
  background: var(--slate);
  color: #fff;
  opacity: 1;
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: var(--slate);
}

.btn-light:hover {
  background: #fff;
  opacity: 1;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a1a1a;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  pointer-events: none;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

/* ============================================
   Services Grid
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(77, 88, 98, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--earth);
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  font-family: var(--font-button);
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-link::after {
  content: ' →';
  transition: margin-left 0.2s ease;
}

.service-link:hover::after {
  margin-left: 6px;
}

/* ============================================
   About / Mission
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* ============================================
   Reviews / Testimonials
   ============================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.review-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(5px);
}

.review-card .review-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.review-card blockquote {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

.review-card cite {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   Process Steps
   ============================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 48px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 20px;
  counter-increment: step;
}

.process-step .step-number::before {
  content: counter(step, decimal-leading-zero);
}

.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.process-step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ============================================
   Contact Form
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info .info-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--earth);
}

.contact-info .info-item .icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 40px 36px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group label .req {
  color: var(--brown);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--earth);
  box-shadow: 0 0 0 3px rgba(107, 124, 106, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234d5862' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

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

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

/* ============================================
   Page Header (subpages)
   ============================================ */

.page-header {
  background: linear-gradient(135deg, var(--sage) 0%, #74847a 100%);
  color: #fff;
  padding: 140px 0 70px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Service Detail (services page)
   ============================================ */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-detail:nth-child(even) .service-detail-image {
  order: -1;
}

.service-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-text h2 {
  margin-bottom: 1.25rem;
}

.service-detail-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.service-detail-text ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-detail-text ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.service-detail-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--earth);
  font-weight: bold;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.6s ease forwards;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .service-detail {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail:nth-child(even) .service-detail-image {
    order: 0;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  }

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

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 70vh;
  }

  section {
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}