/* ===================================================
   Boston's Wallpaper Installers — Master Stylesheet
   Palette: Obsidian Green #06110E / Deep Lichen #030806
            Bone White #F5EFE3 / Bone Mist #FBF6EE
            Moss Charcoal #1F2A25 / Verdigris #4C9A8A
   =================================================== */

:root {
  --bg-primary: #06110E;
  --bg-secondary: #030806;
  --bg-light: #F5EFE3;
  --bg-card: #0C1F19;
  --text-light: #FBF6EE;
  --text-dark: #1F2A25;
  --accent: #4C9A8A;
  --accent-hover: #3A7D6E;
  --accent-glow: rgba(76,154,138,0.15);
  --border-accent: rgba(76,154,138,0.25);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); margin-bottom: 14px; }
h4 { font-size: 1.15rem; margin-bottom: 10px; }

p { margin-bottom: 16px; }
ul, ol { margin-bottom: 16px; padding-left: 24px; }
li { margin-bottom: 6px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; min-height: 54px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent); color: #fff !important;
  box-shadow: 0 4px 16px rgba(76,154,138,0.3);
}
.btn-primary * { color: #fff !important; }
.btn-primary:hover {
  background: var(--accent-hover); color: #fff !important;
  box-shadow: 0 6px 24px rgba(76,154,138,0.4);
  transform: translateY(-2px);
}
.btn-primary:hover * { color: #fff !important; }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent); color: #fff !important;
}
.btn-outline:hover * { color: #fff !important; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(6,17,14,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-accent);
}
.header-top {
  background: var(--bg-secondary);
  padding: 6px 0; font-size: 13px;
}
.header-top .container {
  display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap;
}
.header-top a {
  color: var(--text-light); display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.85; transition: opacity var(--transition);
}
.header-top a:hover { opacity: 1; color: var(--accent); }
.header-top svg { width: 15px; height: 15px; fill: var(--accent); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--container); margin: 0 auto;
}
.logo {
  font-family: var(--font-heading); font-size: 1.35rem;
  color: var(--text-light); text-decoration: none;
  display: flex; flex-direction: column; line-height: 1.15;
}
.logo span { color: var(--accent); font-size: 0.85em; }

.main-nav {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 10px 16px;
  color: var(--text-light); font-size: 14px; font-weight: 500;
  border-radius: 8px; transition: all var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--accent); background: var(--accent-glow);
}

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px; padding: 8px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  list-style: none; z-index: 100;
}
.main-nav > li:hover > .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
  display: block; padding: 10px 20px;
  color: var(--text-light); font-size: 14px;
  transition: all var(--transition);
}
.dropdown li a:hover {
  background: var(--accent-glow); color: var(--accent); padding-left: 26px;
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-light); border-radius: 2px;
  transition: all var(--transition);
}
.mob-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 998;
}
.mob-overlay.active { display: block; }
.mob-close { display: none; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,17,14,0.88) 0%, rgba(6,17,14,0.55) 100%);
}
.hero .container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding-top: 40px; padding-bottom: 40px;
}
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 .highlight { color: var(--accent); }
.hero-content p { font-size: 1.1rem; margin-bottom: 28px; opacity: 0.9; max-width: 520px; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 80px 0 50px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-accent);
  text-align: center;
}
.page-header h1 { margin-bottom: 14px; }
.page-header p { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px; margin-bottom: 32px; padding: 16px 0;
  border-bottom: 1px solid var(--border-accent); opacity: 0.7;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* ── CONTENT SECTIONS ── */
.content-section { padding: 80px 0; }
.content-section.light {
  background: var(--bg-light); color: var(--text-dark);
}
.content-section.light h2,
.content-section.light h3 { color: var(--text-dark); }
.content-section.light a { color: var(--accent-hover); }

/* Two-column layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center; margin-bottom: 50px;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.img-panel {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow);
}
.img-panel img {
  width: 100%; height: 360px; object-fit: cover;
  transition: transform 0.6s ease;
}
.img-panel:hover img { transform: scale(1.03); }

/* ── CTA BLOCK ── */
.cta-block {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 50px; margin: 50px 0;
  text-align: center;
}
.cta-block h3 { color: var(--accent); margin-bottom: 12px; }
.cta-block p { margin-bottom: 20px; opacity: 0.85; }
.content-section.light .cta-block {
  background: #EDE7D9; border-color: rgba(76,154,138,0.2);
}

/* ── SERVICE CARDS ── */
.service-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; margin: 40px 0;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: var(--text-light);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(76,154,138,0.15);
  border-color: var(--accent);
}
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 24px; }
.card-body h3 { color: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.card-body p { font-size: 14px; opacity: 0.8; margin-bottom: 0; }
.content-section.light .service-card {
  background: #fff; border-color: #ddd; color: var(--text-dark);
}
.content-section.light .service-card .card-body h3 { color: var(--accent-hover); }

/* ── GALLERY ── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 40px 0;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-accent);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ── TRUST SECTION ── */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px; margin: 40px 0;
}
.trust-item {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.trust-item:hover { border-color: var(--accent); transform: translateY(-4px); }
.trust-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow); border-radius: 50%;
}
.trust-icon svg { width: 26px; height: 26px; fill: var(--accent); }
.trust-item h3,
.trust-item h4 { color: var(--accent); }
.content-section.light .trust-item h3,
.content-section.light .trust-item h4 { color: var(--accent); }
.trust-item p { color: var(--text-light); }

/* ── CITY GRID ── */
.city-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 30px 0;
}
.city-link {
  display: block; padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  color: var(--text-light); font-weight: 500;
  text-align: center; transition: all var(--transition);
}
.city-link:hover {
  background: var(--accent-glow); border-color: var(--accent);
  color: var(--accent); transform: translateY(-2px);
}

/* ── FAQ ── */
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-accent);
}
.faq-item h3 { color: var(--accent); font-size: 1.15rem; margin-bottom: 10px; }
.faq-item p { opacity: 0.85; margin-bottom: 0; }

/* ── FORMS ── */
.feedback-form-container {
  background: rgba(12,31,25,0.9);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 36px; backdrop-filter: blur(8px);
}
.feedback-form-container h2,
.feedback-form-container h3 {
  text-align: center; margin-bottom: 20px; color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 0; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 18px;
  background: rgba(251,246,238,0.06);
  border: 1px solid var(--border-accent);
  border-radius: 8px; color: var(--text-light);
  font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(251,246,238,0.4); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group textarea {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.form-group textarea::-webkit-scrollbar { display: none; }
.form-submit { margin-top: 16px; }
.submit-btn {
  width: 100%; padding: 16px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(76,154,138,0.3);
}
.submit-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(76,154,138,0.4);
  transform: translateY(-2px);
}
.content-section.light .feedback-form-container {
  background: #fff; border-color: #ccc;
}
.content-section.light .form-group input,
.content-section.light .form-group textarea {
  background: #F5EFE3; color: var(--text-dark); border-color: #ccc;
}
.content-section.light .form-group input::placeholder,
.content-section.light .form-group textarea::placeholder { color: #999; }

/* ── MAP ── */
.map-section { margin: 50px 0; }
.map-section iframe {
  width: 100%; height: 400px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-accent);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--accent); font-family: var(--font-heading);
  margin-bottom: 18px; font-size: 1.1rem;
}
.footer-col p { font-size: 14px; opacity: 0.8; margin-bottom: 8px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-light); font-size: 14px; opacity: 0.75; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-accent);
  padding: 20px 0; text-align: center;
  font-size: 13px; opacity: 0.6;
}
.footer-bottom a { color: var(--text-light); }

/* ── STICKY QUOTE BUTTON ── */
.sticky-quote-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 990;
  padding: 16px 28px; background: var(--accent); color: #fff;
  border: none; border-radius: 50px; font-weight: 600; font-size: 15px;
  cursor: pointer; box-shadow: 0 6px 28px rgba(76,154,138,0.4);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.sticky-quote-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(76,154,138,0.5);
}

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(3,8,6,0.85); backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px; max-width: 520px; width: 90%;
  position: relative; box-shadow: var(--shadow);
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--text-light);
  font-size: 28px; cursor: pointer; opacity: 0.6;
  transition: opacity var(--transition);
}
.modal-close:hover { opacity: 1; color: var(--accent); }

/* ── NEIGHBORHOOD LIST ── */
.neighborhood-list {
  column-count: 2; column-gap: 30px;
  list-style: disc; padding-left: 20px;
}

/* ── TESTIMONIALS ── */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin: 30px 0;
}
.testimonial-item {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: all var(--transition);
}
.testimonial-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.testimonial-item p { font-size: 15px; line-height: 1.7; opacity: 0.9; margin-bottom: 12px; }
.testimonial-item .testimonial-author {
  font-weight: 600; font-size: 14px; color: var(--accent);
  opacity: 1; margin-bottom: 0;
}
.content-section.light .testimonial-item {
  background: #fff; border-color: #ddd; color: var(--text-dark);
}
.content-section.light .testimonial-item .testimonial-author {
  color: var(--accent-hover);
}

/* ── MASTERS GRID ── */
.masters-grid { grid-template-columns: repeat(3, 1fr); }
.masters-grid .gallery-item { aspect-ratio: 3/4; }
@media (max-width: 768px) {
  .masters-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ── VERTICAL SPACING BETWEEN MAJOR BLOCKS (Task 6) ── */
.content-section .two-col + .cta-block,
.content-section .two-col + h2,
.content-section .two-col + .testimonial-grid { margin-top: 50px; }
.content-section .testimonial-grid + .cta-block { margin-top: 40px; }
.content-section .gallery-grid + .cta-block,
.content-section .gallery-grid + h2 { margin-top: 40px; }
.content-section .service-cards + .cta-block { margin-top: 40px; }
.content-section .city-grid + .cta-block,
.content-section .city-grid + h2 { margin-top: 40px; }
.content-section h2 + .testimonial-grid { margin-top: 20px; }
.content-section .cta-block + h2 { margin-top: 50px; }
.content-section .faq-item:last-child { margin-bottom: 30px; }

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 70%; max-width: 320px;
    height: 100vh; background: var(--bg-card);
    flex-direction: column; align-items: stretch;
    padding: 0; z-index: 999;
    transition: right 0.35s ease;
    overflow-y: auto; gap: 0;
    border-left: 1px solid var(--border-accent);
  }
  .main-nav.open { right: 0; }
  .mob-close {
    display: flex; justify-content: flex-end;
    padding: 16px 20px; border-bottom: 1px solid var(--border-accent);
  }
  .mob-close-btn {
    background: none; border: 1px solid var(--border-accent);
    color: var(--text-light); font-size: 24px; width: 40px; height: 40px;
    border-radius: 8px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: all var(--transition);
  }
  .mob-close-btn:hover { border-color: var(--accent); color: var(--accent); }
  .main-nav > li > a {
    padding: 14px 24px; font-size: 15px;
    border-bottom: 1px solid rgba(76,154,138,0.1);
    border-radius: 0;
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible;
    transform: none; border: none; border-radius: 0;
    box-shadow: none; background: rgba(0,0,0,0.15);
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height 0.35s ease;
  }
  .main-nav > li.mob-open > .dropdown { max-height: 600px; padding: 4px 0; }
  .dropdown li a { padding: 10px 20px 10px 40px; font-size: 14px; }

  .header-top { display: none; }
  .hero { min-height: auto; padding: 60px 0; }
  .hero .container { padding-top: 20px; padding-bottom: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .neighborhood-list { column-count: 1; }
  .cta-block { padding: 30px 24px; display: flex; flex-direction: column; align-items: center; }
  .cta-block .btn { width: 100%; max-width: 320px; }
  .cta-block span { display: block; margin: 6px 0; }
  .modal-box { padding: 0; border: 0; }
  .modal-close {
    top: 10px; right: 10px; z-index: 5;
    width: 36px; height: 36px; border-radius: 999px;
    background: rgba(0,0,0,0.35); color: #fff; opacity: 1;
    display: flex; align-items: center; justify-content: center;
  }
  .sticky-quote-btn { right: 50%; transform: translateX(50%); bottom: 16px; }
  .sticky-quote-btn:hover { transform: translateX(50%) translateY(-3px); }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .city-grid { grid-template-columns: 1fr 1fr; }
}
