/* ============================================
   Reliable Wallpaper Hanger - Main Stylesheet
   ============================================ */

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

:root {
  --primary-bg: #FFFFFF;
  --secondary-bg: #F1F5F9;
  --light-bg: #FAFAFA;
  --text-color: #111827;
  --text-muted: #4B5563;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: #DBEAFE;
  --border-color: #E5E7EB;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s ease;
  --max-width: 1200px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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); }
ul, ol { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text-color); }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 12px; }
p { margin-bottom: 16px; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 60px; padding: 0 32px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600;
  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: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-white { background: var(--white); color: var(--accent); }
.btn-white:hover { background: var(--light-bg); color: var(--accent-hover); }
.btn-sm { height: 48px; padding: 0 24px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.header-top {
  background: var(--accent);
  color: var(--white);
  padding: 8px 0;
  font-size: 14px;
}
.header-top .container {
  display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap;
}
.header-top a { color: var(--white); display: inline-flex; align-items: center; gap: 6px; }
.header-top a:hover { opacity: .85; color: var(--white); }
.header-top svg { width: 16px; height: 16px; flex-shrink: 0; }

.header-main { padding: 12px 0; }
.header-main .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { font-size: 20px; font-weight: 800; color: var(--text-color); white-space: nowrap; }
.logo span { color: var(--accent); }

/* ---------- Desktop Nav ---------- */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.main-nav > li > a:hover,
.main-nav > li > a.active { color: var(--accent); background: var(--accent-light); }
.main-nav > li > a .arrow { transition: transform var(--transition); font-size: 10px; }
.main-nav > li:hover > a .arrow { transform: rotate(180deg); }

/* ---------- Dropdown ---------- */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  padding: 8px 0;
  z-index: 100;
}
.main-nav > li:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 20px;
  font-size: 14px; color: var(--text-color);
  transition: all .2s ease;
  opacity: 0; transform: translateY(-4px);
  animation: dropIn .3s ease forwards;
}
.dropdown li:nth-child(1) a { animation-delay: .03s; }
.dropdown li:nth-child(2) a { animation-delay: .06s; }
.dropdown li:nth-child(3) a { animation-delay: .09s; }
.dropdown li:nth-child(4) a { animation-delay: .12s; }
.dropdown li:nth-child(5) a { animation-delay: .15s; }
.dropdown li:nth-child(6) a { animation-delay: .18s; }
.dropdown li:nth-child(7) a { animation-delay: .21s; }
.dropdown li:nth-child(8) a { animation-delay: .24s; }
.dropdown li:nth-child(9) a { animation-delay: .27s; }
.dropdown li:nth-child(10) a { animation-delay: .30s; }
.dropdown li:nth-child(11) a { animation-delay: .33s; }

.main-nav > li:not(:hover) > .dropdown a { animation: none; opacity: 0; }

@keyframes dropIn {
  to { opacity: 1; transform: translateY(0); }
}
.dropdown a:hover { background: var(--accent-light); color: var(--accent); padding-left: 28px; }

/* ---------- Mobile Menu ---------- */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-color); transition: all var(--transition);
}

.mobile-nav {
  display: none;
  position: fixed; top: 0; right: -100%;
  width: 50%; max-width: 50vw; height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right .35s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,.15);
  flex-direction: column;
}
.mobile-nav.open { right: 0; }
.mobile-overlay {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 1999;
  opacity: 0; transition: opacity .3s ease;
}
.mobile-overlay.open { opacity: 1; }

.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-close {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.mobile-nav-close:hover { background: var(--secondary-bg); }
.mobile-nav-close svg { width: 20px; height: 20px; }

.mobile-nav-links {
  padding: 12px 0;
  flex: 1;
}
.mobile-nav-links > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  font-size: 16px; font-weight: 500;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
}
.mobile-nav-links > li > a:hover { color: var(--accent); background: var(--accent-light); }
.mobile-sub-toggle { font-size: 12px; transition: transform var(--transition); }
.mobile-sub-toggle.open { transform: rotate(180deg); }

.mobile-submenu {
  display: none; background: var(--light-bg);
  padding: 4px 0;
}
.mobile-submenu.open { display: block; }
.mobile-submenu a {
  display: block; padding: 12px 20px 12px 32px;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}
.mobile-submenu a:hover { color: var(--accent); background: var(--accent-light); }

.mobile-nav-contact {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}
.mobile-nav-contact a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  font-size: 14px; color: var(--text-color);
}
.mobile-nav-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 600px;
  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(0,0,0,.65) 0%, rgba(0,0,0,.3) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 600px; color: var(--white); }
.hero-content h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero-content p { color: rgba(255,255,255,.9); font-size: 18px; margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--secondary-bg); }
.section-light { background: var(--light-bg); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { font-size: 14px; margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- Contact Form ---------- */
.feedback-form-container {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.feedback-form-container h3 {
  font-size: 1.5rem; margin-bottom: 20px; text-align: center;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 0; position: relative; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px; 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);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: 16px; }
.submit-btn {
  width: 100%; height: 60px;
  background: var(--accent); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.submit-btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }

#form-success {
  text-align: center; padding: 32px;
}
#form-success p {
  font-size: 18px; color: var(--accent); font-weight: 500;
}

/* ---------- Map ---------- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.map-container iframe {
  width: 100%; height: 400px; border: 0;
}

/* ---------- CTA Block ---------- */
.cta-block {
  background: var(--accent);
  color: var(--white);
  padding: 48px; border-radius: var(--radius);
  text-align: center;
}
.cta-block h2 { color: var(--white); }
.cta-block p { color: rgba(255,255,255,.9); margin-bottom: 24px; }
.cta-inline {
  margin: 32px 0;
  padding: 24px;
  background: var(--accent-light);
  border-radius: var(--radius);
  text-align: center;
  border-left: 4px solid var(--accent);
}
.cta-inline p { color: var(--text-color); margin-bottom: 12px; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600; font-size: 16px;
  background: var(--white);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--light-bg); }
.faq-question .icon {
  font-size: 20px; transition: transform var(--transition);
  color: var(--accent); flex-shrink: 0; margin-left: 12px;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 18px;
}
.faq-answer p { font-size: 15px; color: var(--text-muted); }

/* ---------- Icon Box ---------- */
.icon-box {
  text-align: center; padding: 32px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.icon-box:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.icon-box .icon-circle {
  width: 64px; height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.icon-box .icon-circle svg { width: 28px; height: 28px; color: var(--accent); }

/* ---------- Sticky Quote Button ---------- */
.sticky-quote {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 900;
}
.sticky-quote .btn {
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,99,235,.3); }
  50% { box-shadow: 0 4px 30px rgba(37,99,235,.5); }
}

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 3000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: var(--secondary-bg); border: none;
  width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 10;
}
.modal-close:hover { background: var(--border-color); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 32px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0F172A; color: #94A3B8; padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E293B;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94A3B8; font-size: 14px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ---------- Page Header ---------- */
.page-header {
  background: var(--secondary-bg);
  padding: 48px 0;
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { max-width: 600px; margin: 0 auto; }

/* ---------- Content Blocks ---------- */
.content-block { margin-bottom: 48px; }
.content-block h2 { margin-bottom: 16px; }
.content-block ul, .content-block ol { padding-left: 24px; margin-bottom: 16px; }
.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }
.content-block li { margin-bottom: 8px; color: var(--text-muted); line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col img { border-radius: var(--radius); }

/* ---------- Areas Grid ---------- */
.areas-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.areas-grid a {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-color);
  transition: all var(--transition);
}
.areas-grid a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.areas-grid a svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- Neighborhoods ---------- */
.neighborhoods-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px; margin: 16px 0;
}
.neighborhoods-list li {
  padding: 8px 12px;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-muted);
  list-style: none;
}

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

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .mobile-overlay { display: block; pointer-events: none; }
  .mobile-overlay.open { pointer-events: auto; }

  .hero { min-height: 500px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-block { padding: 32px 20px; }

  .sticky-quote { bottom: 16px; right: 16px; left: 16px; }
  .sticky-quote .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-top .container { justify-content: center; gap: 16px; font-size: 13px; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
}
