/* ==========================================================================
   Madison Taylor Design - Residential Clone Design System
   ========================================================================== */

:root {
  /* Color Palette matching Madison Taylor Residential */
  --color-olive: #5e684d;
  --color-olive-dark: #515a42;
  --color-charcoal: #212421;
  --color-forest: #263525;
  --color-linen: #f5f3ee;
  --color-linen-alt: #ece9e1;
  --color-footer: #171918;

  --color-text-dark: #1f2120;
  --color-text-muted: #6b6e6c;
  --color-text-light: #f8f7f4;
  --color-text-light-muted: #dedcd5;
  --color-gold-accent: #c4a97d;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Garamond, 'Didot', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-padding-y: 110px;
  --container-max-width: 900px;
  --content-narrow-width: 780px;

  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

section,
#projects-section {
  scroll-margin-top: 75px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 40px;
  background: transparent;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Area */
.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-text-dark);
  text-transform: uppercase;
}

.brand-separator {
  color: #a5a5a5;
  font-weight: 300;
  font-size: 1.1rem;
}

.brand-dropdown {
  position: relative;
}

.dropdown-toggle {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.dropdown-toggle:hover .chevron-icon {
  transform: translateY(2px);
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-item {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #222222;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #222222;
  transition: width 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
  width: 100%;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-text-dark);
  transition: var(--transition-smooth);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 75px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 30px 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-item {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text-dark);
}

/* ==========================================================================
   Hero Section (Screenshot 1)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 24px 80px;
  background-color: #f5f3ee;
  overflow: hidden;
}

/* Hero Background: properly sized, greyed out, and washed for max readability */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.78), rgba(245, 243, 238, 0.82)),
    url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(80%) contrast(90%);
  z-index: 1;
}

.image-placeholder-overlay {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
}

.placeholder-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px dashed #b0aaa0;
  border-radius: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #5c5850;
  text-transform: uppercase;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  font-weight: 300;
  line-height: 1.18;
  color: #1a1a1a;
  margin-bottom: 42px;
  letter-spacing: -0.01em;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
}

/* Buttons */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 38px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.btn-outline.dark-btn {
  border-color: #1a1a1a;
  color: #1a1a1a;
  padding: 14px 44px;
}

.btn-outline.dark-btn:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  justify-content: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 55px;
  background: #1a1a1a;
  animation: pulseHeight 2.5s infinite ease-in-out;
}

@keyframes pulseHeight {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.7);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ==========================================================================
   Shared Content Section Layout (Sections 2 & 3)
   ========================================================================== */
.overview-section {
  padding: var(--section-padding-y) 30px;
}

.content-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.section-label-container {
  margin-bottom: 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.label-underline {
  width: 104px;
  height: 1px;
  background-color: currentColor;
  margin-top: 6px;
  opacity: 0.85;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.section-body {
  font-size: 0.96rem;
  line-height: 1.85;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 42px;
}

.underlined-term {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.section-action {
  margin-top: 10px;
}

.text-link {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.text-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.text-link:hover::after {
  width: 100%;
}

/* Section 2 Specifics: Olive Green */
.olive-section {
  background-color: var(--color-olive);
  color: var(--color-text-light);
}

.olive-section .section-body {
  color: var(--color-text-light-muted);
}

.olive-section .text-link {
  color: #ffffff;
}

/* Section 3 Specifics: Dark Charcoal */
.charcoal-section {
  background-color: var(--color-charcoal);
  color: var(--color-text-light);
}

.charcoal-section .section-body {
  color: #d1cfc7;
}

.charcoal-section .text-link {
  color: #ffffff;
}

/* ==========================================================================
   Section 4: Editorial Statement Banner (Screenshot 4)
   ========================================================================== */
.quote-banner-section {
  padding: 130px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.forest-section {
  background-color: var(--color-forest);
  color: #ffffff;
}

.banner-container {
  max-width: 1100px;
  margin: 0 auto;
}

.banner-quote {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0;
  color: #f7f5ed;
}

/* ==========================================================================
   Section 5: Connect / Let's Talk (Screenshot 4)
   ========================================================================== */
.connect-section {
  padding: 120px 30px 90px;
  text-align: center;
}

.linen-section {
  background-color: var(--color-linen);
  color: var(--color-text-dark);
}

.connect-container {
  max-width: 800px;
  margin: 0 auto;
}

.connect-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 400;
  margin-bottom: 16px;
  color: #1f2120;
}

.connect-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: #555856;
  margin-bottom: 38px;
  letter-spacing: 0.02em;
}

.connect-action {
  margin-bottom: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.email-me-btn {
  padding: 16px 52px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
}

.email-copy-bar {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9d5cb;
  border-radius: 30px;
  padding: 8px 14px 8px 22px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.email-copy-bar:hover {
  background: #ffffff;
  border-color: #1f2120;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.email-text {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: #2b2d2c;
  font-weight: 400;
}

.copy-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f2120;
  color: #ffffff;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.email-copy-bar:hover .copy-action-btn {
  background: var(--color-olive);
}

.email-toast {
  font-size: 0.82rem;
  color: #2e6b37;
  min-height: 20px;
  font-weight: 500;
}

.regulatory-disclaimer {
  font-size: 0.68rem;
  line-height: 1.7;
  color: #7d807e;
  max-width: 740px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Footer (Screenshot 4)
   ========================================================================== */
.site-footer {
  background-color: var(--color-footer);
  color: #a0a3a1;
  padding: 38px 40px;
}

.footer-container {
  max-width: 1540px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-transform: uppercase;
}

.footer-copyright {
  font-size: 0.75rem;
  color: #7b7e7c;
  letter-spacing: 0.03em;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Google Review Badge */
.google-review-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.google-review-badge:hover {
  transform: scale(1.04);
}

.review-stars {
  color: #fbbc05;
  font-size: 0.82rem;
  letter-spacing: 2px;
}

/* Social links */
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2c5c3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Contact Modal (Interactive Mock Inquiry)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 20, 19, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  padding: 44px 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  line-height: 1;
  color: #888888;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #111111;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1c1e1d;
}

.modal-subtitle {
  font-size: 0.88rem;
  color: #666666;
  margin-bottom: 28px;
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdad4;
  background-color: #faf9f7;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #222222;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1c1e1d;
  background-color: #ffffff;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.submit-btn {
  padding: 12px 30px;
  font-size: 0.75rem;
}

.direct-email-link {
  font-size: 0.78rem;
  color: #666;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 20px;
  text-align: center;
}

.form-status.success {
  color: #2c7a36;
}

/* ==========================================================================
   Services Showcase Section (Screenshots 1-5)
   ========================================================================== */
.services-showcase-section {
  position: relative;
  background-color: var(--color-linen);
}

.showcase-intro-banner {
  background-color: var(--color-olive);
  color: var(--color-text-light);
  padding: var(--section-padding-y) 30px 80px;
}

.showcase-intro-banner .section-body {
  color: var(--color-text-light-muted);
}

.showcase-intro-banner .text-link {
  color: #ffffff;
}

.explore-invite {
  margin-top: 10px;
  font-weight: 400;
  color: #ffffff;
}

/* Feature Showcase Image Banner (Image 2) */
.feature-showcase-img-container {
  background-color: var(--color-linen);
  padding: 60px 40px;
  max-width: 1460px;
  margin: 0 auto;
}

.feature-img-slot {
  position: relative;
  width: 100%;
  height: 620px;
  background-color: #dfdbd2;
  background-size: cover;
  background-position: center;
  border: 1px dashed #beb7ab;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition-smooth);
}

/* Deep Olive Quote Banner */
.deep-olive-banner {
  background-color: #34402e;
  padding: 90px 30px;
}

/* Services List (Images 3, 4, 5) */
.services-list-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.service-card-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 64px;
}

/* Alternate row alignment for organic rhythm */
.service-card-row:nth-child(even) {
  grid-template-columns: 1fr 1.15fr;
}

.service-card-row:nth-child(even) .service-card-image {
  order: 2;
}

.service-card-row:nth-child(even) .service-card-text {
  order: 1;
}

.service-card-image {
  width: 100%;
}

.service-img-slot {
  position: relative;
  width: 100%;
  height: 480px;
  background-color: #ded9cd;
  background-size: cover;
  background-position: center;
  border: 1px dashed #b9b2a5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  transition: var(--transition-smooth);
}

.service-card-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  color: #1f2120;
}

.service-card-description {
  font-size: 0.94rem;
  line-height: 1.85;
  font-weight: 300;
  color: #4a4e4c;
}

.service-view-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #1f2120;
  position: relative;
  padding-bottom: 4px;
  margin-top: 6px;
}

.service-view-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.service-view-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .site-header {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-drawer {
    display: block;
  }

  :root {
    --section-padding-y: 80px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card-row,
  .service-card-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .service-card-row:nth-child(even) .service-card-text {
    order: 2;
  }

  .feature-img-slot {
    height: 420px;
  }

  .service-img-slot {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 140px 20px 60px;
  }

  .feature-showcase-img-container {
    padding: 30px 16px;
  }

  .services-list-container {
    padding: 60px 20px;
    gap: 60px;
  }

  .feature-img-slot {
    height: 280px;
  }

  .service-img-slot {
    height: 260px;
  }

  .modal-card {
    padding: 30px 22px;
  }

  .form-actions {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
}