/* ============================================
   Smyrna Wallpaper Installers — Main Stylesheet
   ============================================ */

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

:root {
  --primary-bg: #FFFFFF;
  --secondary-bg: #F5F5F5;
  --light-bg: #FAFAFA;
  --text-color: #111111;
  --text-muted: #555555;
  --accent: #000000;
  --accent-hover: #1A1A1A;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --radius: 7px;
  --btn-height: 56px;
  --max-width: 1200px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --transition: 0.3s ease;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.25; color: var(--text-color); }
h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.85rem; margin-top: 2.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }
p { margin-bottom: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: var(--btn-height); padding: 0 32px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; font-family: var(--font-main);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; gap: 8px;
}
.btn:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn-outline {
  background: transparent; color: var(--accent); border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--primary-bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.header-top {
  background: var(--accent);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
}
.header-top .container {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.header-top a { color: var(--white); font-weight: 500; }
.header-top a:hover { opacity: 0.85; color: var(--white); }
.header-contact-info { display: flex; gap: 24px; align-items: center; }
.header-contact-info svg { width: 16px; height: 16px; fill: var(--white); margin-right: 6px; vertical-align: middle; }

.header-main {
  padding: 16px 0;
}
.header-main .container {
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-color); }
.logo span { display: block; font-size: 0.75rem; font-family: var(--font-main); font-weight: 400; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

/* --- Desktop Navigation --- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block; padding: 12px 16px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-color);
  transition: color var(--transition);
}
.main-nav > li > a:hover { color: var(--accent); }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--primary-bg);
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
  z-index: 100;
  padding: 8px 0;
}
.main-nav > li:hover > .dropdown-menu,
.main-nav > li:focus-within > .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu li a {
  display: block; padding: 10px 20px;
  font-size: 0.875rem; color: var(--text-color);
  transition: all 0.2s ease;
}
.dropdown-menu li a:hover { background: var(--secondary-bg); padding-left: 26px; }

/* Dropdown animation - staggered */
.dropdown-menu li { opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.main-nav > li:hover > .dropdown-menu li,
.main-nav > li:focus-within > .dropdown-menu li { opacity: 1; transform: translateY(0); }
.dropdown-menu li:nth-child(1) { transition-delay: 0.03s; }
.dropdown-menu li:nth-child(2) { transition-delay: 0.06s; }
.dropdown-menu li:nth-child(3) { transition-delay: 0.09s; }
.dropdown-menu li:nth-child(4) { transition-delay: 0.12s; }
.dropdown-menu li:nth-child(5) { transition-delay: 0.15s; }
.dropdown-menu li:nth-child(6) { transition-delay: 0.18s; }
.dropdown-menu li:nth-child(7) { transition-delay: 0.21s; }
.dropdown-menu li:nth-child(8) { transition-delay: 0.24s; }
.dropdown-menu li:nth-child(9) { transition-delay: 0.27s; }
.dropdown-menu li:nth-child(10) { transition-delay: 0.30s; }
.dropdown-menu li:nth-child(11) { transition-delay: 0.33s; }

/* --- Mobile Menu --- */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-toggle svg { width: 28px; height: 28px; }

.mobile-nav-overlay {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.5); z-index: 2000;
}
.mobile-nav-overlay.active { display: block; }

.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 50%; min-width: 280px; max-width: 380px;
  height: 100vh; background: var(--primary-bg); z-index: 2001;
  transition: right 0.35s ease; overflow-y: auto;
  display: flex; flex-direction: column;
}
.mobile-nav.active { right: 0; }

.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.mobile-nav-close {
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-nav-close svg { width: 24px; height: 24px; }

.mobile-nav-links {
  list-style: none; padding: 16px 0; flex: 1;
}
.mobile-nav-links li { border-bottom: 1px solid var(--border); }
.mobile-nav-links li a {
  display: block; padding: 14px 24px;
  font-size: 1rem; font-weight: 500; color: var(--text-color);
  text-align: left;
}
.mobile-nav-links li a:hover { background: var(--secondary-bg); }

.mobile-dropdown-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 14px 24px;
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 500; color: var(--text-color);
  font-family: var(--font-main); text-align: left;
}
.mobile-dropdown-toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.mobile-dropdown-toggle.open svg { transform: rotate(180deg); }

.mobile-submenu {
  list-style: none; max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease; background: var(--light-bg);
}
.mobile-submenu.open { max-height: 600px; }
.mobile-submenu li a {
  padding: 10px 24px 10px 40px; font-size: 0.9rem; font-weight: 400;
  text-align: left;
}

.mobile-nav-contact {
  padding: 20px 24px; border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.mobile-nav-contact a { display: block; margin-bottom: 8px; color: var(--text-color); text-align: left; }

/* --- Hero Section --- */
.hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; color: var(--white); }
.hero-content h1 { color: var(--white); font-size: 3.25rem; margin-bottom: 1.25rem; }
.hero-content p { color: rgba(255,255,255,0.9); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-form-wrapper { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }

/* --- Sections --- */
.section { padding: 80px 0; }
.section-alt { background: var(--secondary-bg); }
.section-light { background: var(--light-bg); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-top: 0; }
.section-title p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Cards --- */
.card {
  background: var(--primary-bg); border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { margin-top: 0; font-size: 1.25rem; }

/* --- Service Cards --- */
.service-card { text-align: center; padding: 40px 24px; }
.service-card .icon { width: 56px; height: 56px; margin: 0 auto 20px; }
.service-card .icon svg { width: 100%; height: 100%; }

/* --- CTA Blocks --- */
.cta-block {
  background: var(--accent); color: var(--white);
  padding: 48px; border-radius: var(--radius);
  text-align: center; margin: 40px 0;
}
.cta-block h2, .cta-block h3 { color: var(--white); margin-top: 0; }
.cta-block p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.cta-block .btn { background: var(--white); color: var(--accent); }
.cta-block .btn:hover { background: var(--secondary-bg); }

.cta-inline { margin: 32px 0; text-align: center; }

/* --- Contact Form --- */
.feedback-form-container {
  background: var(--primary-bg); padding: 40px; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08); max-width: 560px;
}
.feedback-form-container h3 { font-family: var(--font-heading); margin-bottom: 24px; text-align: center; }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-group { flex: 1; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.9375rem; font-family: var(--font-main);
  transition: border-color var(--transition);
  background: var(--light-bg);
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); background: var(--primary-bg); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 16px; }
.submit-btn {
  width: 100%; height: var(--btn-height);
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-main);
  transition: all var(--transition);
}
.submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

#form-success { text-align: center; padding: 24px; }
#form-success p { font-size: 1.125rem; color: #2d7d46; font-weight: 500; }

/* Hero form override */
.hero .feedback-form-container { box-shadow: 0 16px 48px rgba(0,0,0,0.2); }

/* --- Map --- */
.map-wrapper { border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.map-wrapper iframe { width: 100%; height: 400px; border: 0; display: block; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq-question { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin-bottom: 12px; }
.faq-answer { color: var(--text-muted); line-height: 1.8; }

/* --- Footer --- */
.site-footer {
  background: var(--accent); color: var(--white); padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { color: var(--white); font-size: 1.125rem; margin-bottom: 20px; font-family: var(--font-heading); }
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.875rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0; text-align: center;
  font-size: 0.8125rem; color: rgba(255,255,255,0.5);
}

/* --- Sticky Quote Button --- */
.sticky-quote-btn {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999;
}
.sticky-quote-btn .btn { box-shadow: 0 8px 24px rgba(0,0,0,0.25); font-size: 0.9375rem; }

/* --- Modal --- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 3000;
  justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--primary-bg); border-radius: var(--radius);
  padding: 40px; max-width: 560px; width: 90%;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.modal-close svg { width: 24px; height: 24px; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: var(--secondary-bg); padding: 60px 0; text-align: center;
}
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1.0625rem; }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 16px 0; font-size: 0.8125rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; }

/* --- Content Blocks --- */
.content-block { margin-bottom: 48px; }
.content-block h2 { border-bottom: 2px solid var(--border); padding-bottom: 12px; }
.content-block ul, .content-block ol { margin: 16px 0 16px 24px; }
.content-block li { margin-bottom: 8px; line-height: 1.7; }

/* --- Image with text --- */
.img-text-row { display: flex; gap: 40px; align-items: center; margin: 40px 0; }
.img-text-row img { width: 45%; border-radius: var(--radius); object-fit: cover; max-height: 360px; }
.img-text-row .text-content { flex: 1; }

/* --- Location Grid --- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.location-card {
  display: flex; align-items: center; gap: 12px;
  padding: 20px; background: var(--primary-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--transition);
}
.location-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.location-card svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --- Neighborhoods --- */
.neighborhoods-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 24px; margin: 16px 0; }
.neighborhoods-list li { list-style: none; padding: 6px 0; padding-left: 20px; position: relative; }
.neighborhoods-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* --- Contact Info --- */
.contact-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.contact-info-card {
  text-align: center; padding: 32px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-info-card svg { width: 40px; height: 40px; margin: 0 auto 16px; }
.contact-info-card h3 { font-size: 1.125rem; margin-top: 0; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-muted); margin: 0; }
.contact-info-card a { font-weight: 600; }

/* --- Process Steps --- */
.process-steps { counter-reset: step; margin: 24px 0; }
.process-step {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.process-step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--accent); color: var(--white);
  border-radius: 50%; font-weight: 700; font-size: 1.125rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero { min-height: 60vh; }
  .hero-form-wrapper { flex-direction: column; gap: 32px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .img-text-row { flex-direction: column; }
  .img-text-row img { width: 100%; }
  .feedback-form-container { padding: 24px; }

  /* Desktop nav hidden */
  .main-nav { display: none; }
  .mobile-toggle { display: block; }

  /* Sticky button mobile */
  .sticky-quote-btn { bottom: 16px; right: 50%; transform: translateX(50%); }

  .header-contact-info { gap: 12px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 1.875rem; }
  .hero { min-height: 50vh; padding: 40px 0; }
  .feedback-form-container { padding: 20px; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
