/* ============================================
   Westchase Wallpaper Hanger — Main Stylesheet
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --color-primary-bg: #2F2A26;
  --color-secondary-bg: #E7E1D8;
  --color-light-bg: #FFF8F0;
  --color-text-on-dark: #FAF6F0;
  --color-text-on-light: #3A342F;
  --color-accent: #8FAF9D;
  --color-accent-hover: #7a9e8a;
  --color-border: #d4cec5;
  --color-white: #ffffff;
  --color-error: #ff6b6b;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius-btn: 14px;
  --radius-card: 12px;
  --shadow-soft: 0 2px 16px rgba(47,42,38,0.10);
  --shadow-btn: 0 2px 8px rgba(143,175,157,0.18);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- 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(--color-text-on-light);
  background: var(--color-light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-card); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }
ul, ol { padding-left: 1.3em; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-text-on-light); line-height: 1.3; }
h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 1.75rem; margin-bottom: 0.5em; margin-top: 1.5em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; margin-top: 1em; }
p { margin-bottom: 1em; }

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

/* --- Header --- */
.site-header {
  background: var(--color-primary-bg);
  color: var(--color-text-on-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.88rem;
}
.header-top a { color: var(--color-text-on-dark); }
.header-top a:hover { color: var(--color-accent); }
.header-contact { display: flex; gap: 20px; align-items: center; }
.header-contact svg { width: 16px; height: 16px; fill: var(--color-accent); vertical-align: middle; margin-right: 5px; }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 60px;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.logo a:hover { color: var(--color-accent); }

/* --- Desktop Navigation --- */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 18px 18px;
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--color-accent);
  background: rgba(143,175,157,0.08);
}

/* --- Dropdown --- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-primary-bg);
  min-width: 240px;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 1001;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.main-nav > ul > li:hover > .dropdown-menu,
.main-nav > ul > li:focus-within > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.dropdown-menu li { list-style: none; opacity: 0; animation: dropdownFadeIn 0.35s forwards; }
.dropdown-menu li:nth-child(1) { animation-delay: 0.03s; }
.dropdown-menu li:nth-child(2) { animation-delay: 0.06s; }
.dropdown-menu li:nth-child(3) { animation-delay: 0.09s; }
.dropdown-menu li:nth-child(4) { animation-delay: 0.12s; }
.dropdown-menu li:nth-child(5) { animation-delay: 0.15s; }
.dropdown-menu li:nth-child(6) { animation-delay: 0.18s; }
.dropdown-menu li:nth-child(7) { animation-delay: 0.21s; }
.dropdown-menu li:nth-child(8) { animation-delay: 0.24s; }
.dropdown-menu li:nth-child(9) { animation-delay: 0.27s; }
.dropdown-menu li:nth-child(10) { animation-delay: 0.30s; }
.dropdown-menu li:nth-child(11) { animation-delay: 0.33s; }

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.dropdown-menu a {
  display: block;
  padding: 10px 22px;
  color: var(--color-text-on-dark);
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown-menu a:hover {
  background: rgba(143,175,157,0.12);
  color: var(--color-accent);
  padding-left: 28px;
}

/* --- Mobile Hamburger --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text-on-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Mobile Menu Overlay --- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 55%;
  height: 100vh;
  background: var(--color-primary-bg);
  z-index: 1050;
  padding: 70px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}
.mobile-nav-overlay.open {
  display: block;
  transform: translateX(0);
}
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}
.mobile-nav-backdrop.open { display: block; }

.mobile-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1060;
}
.mobile-close-btn svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text-on-dark);
}

.mobile-nav-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-overlay > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav-overlay > ul > li > a {
  display: block;
  padding: 14px 0;
  color: var(--color-text-on-dark);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
}
.mobile-nav-overlay > ul > li > a:hover { color: var(--color-accent); }

.mobile-submenu {
  display: none;
  padding-left: 16px;
}
.mobile-submenu.open { display: block; }
.mobile-submenu li a {
  display: block;
  padding: 10px 0;
  color: rgba(250,246,240,0.8);
  font-size: 0.93rem;
  text-align: left;
}
.mobile-submenu li a:hover { color: var(--color-accent); }

.mobile-submenu-toggle {
  background: none;
  border: none;
  color: var(--color-text-on-dark);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-weight: 500;
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-align: left;
}
.mobile-submenu-toggle svg {
  width: 16px; height: 16px;
  stroke: var(--color-text-on-dark);
  transition: transform var(--transition);
}
.mobile-submenu-toggle.open svg { transform: rotate(180deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 540px;
  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(47,42,38,0.82) 0%, rgba(47,42,38,0.45) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 60px 0;
}
.hero h1 { color: var(--color-text-on-dark); font-size: 2.6rem; margin-bottom: 0.5em; }
.hero p { color: rgba(250,246,240,0.9); font-size: 1.15rem; margin-bottom: 1.5em; }

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  line-height: 1.4;
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn-accent:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(143,175,157,0.25);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-white {
  background: var(--color-white);
  color: var(--color-text-on-light);
}
.btn-white:hover {
  background: var(--color-secondary-bg);
  color: var(--color-text-on-light);
}

/* --- Sections --- */
.section { padding: 70px 0; }
.section-dark { background: var(--color-primary-bg); color: var(--color-text-on-dark); }
.section-dark h2, .section-dark h3 { color: var(--color-text-on-dark); }
.section-light { background: var(--color-light-bg); }
.section-beige { background: var(--color-secondary-bg); }
.section-title { text-align: center; margin-bottom: 1.5em; }

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(47,42,38,0.14);
}
.card-img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-card) var(--radius-card) 0 0; }
.card-body { padding: 22px; }
.card-body h3 { margin-top: 0; }

/* --- CTA Block --- */
.cta-block {
  text-align: center;
  padding: 40px 30px;
  margin: 30px 0;
  background: var(--color-secondary-bg);
  border-radius: var(--radius-card);
}
.cta-block h3 { margin-top: 0; }
.cta-block .btn { margin-top: 12px; }

.cta-inline {
  margin: 24px 0;
  padding: 20px 0;
  text-align: center;
}

/* --- Contact Form --- */
.feedback-form-container {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  max-width: 600px;
}
.feedback-form-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-text-on-light);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contact-form .form-group { margin-bottom: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--color-light-bg);
  color: var(--color-text-on-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(143,175,157,0.15);
}
.contact-form textarea { min-height: 110px; resize: vertical; margin-bottom: 16px; }
.contact-form .form-submit { text-align: center; }
.submit-btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all var(--transition);
}
.submit-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}
#form-success {
  text-align: center;
  padding: 20px;
}
#form-success p {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1.05rem;
}

/* --- Map --- */
.map-container {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 20px 0;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary-bg);
  color: var(--color-text-on-dark);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(250,246,240,0.8); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-col p { color: rgba(250,246,240,0.75); font-size: 0.9rem; line-height: 1.6; }
.footer-col svg { width: 16px; height: 16px; fill: var(--color-accent); vertical-align: middle; margin-right: 6px; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: rgba(250,246,240,0.5);
}

/* --- Sticky Quote Button --- */
.sticky-quote-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  padding: 16px 28px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(143,175,157,0.35);
  transition: all var(--transition);
  animation: stickyPulse 2.5s infinite;
}
.sticky-quote-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(143,175,157,0.45);
}
@keyframes stickyPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(143,175,157,0.35); }
  50% { box-shadow: 0 4px 28px rgba(143,175,157,0.55); }
}

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-content {
  background: var(--color-light-bg);
  border-radius: var(--radius-card);
  padding: 10px;
  max-width: 640px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.35s ease;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}
.modal-close svg { width: 28px; height: 28px; stroke: var(--color-text-on-light); }

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* --- Service/Area List --- */
.area-list, .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
}
.area-list li a, .service-list li a {
  display: block;
  padding: 12px 18px;
  background: var(--color-white);
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  transition: all var(--transition);
  font-weight: 500;
}
.area-list li a:hover, .service-list li a:hover {
  border-color: var(--color-accent);
  background: rgba(143,175,157,0.06);
  transform: translateY(-2px);
}

/* --- FAQ --- */
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-card);
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  display: none;
  padding: 0 24px 18px;
  color: rgba(58,52,47,0.85);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: rgba(58,52,47,0.6);
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb span { margin: 0 6px; }

/* --- Content Page --- */
.page-header {
  background: var(--color-primary-bg);
  color: var(--color-text-on-dark);
  padding: 50px 0 40px;
  text-align: center;
}
.page-header h1 { color: var(--color-text-on-dark); margin-bottom: 0.3em; }
.page-header p { color: rgba(250,246,240,0.8); font-size: 1.1rem; }

.content-section { padding: 50px 0; }
.content-section img {
  margin: 20px 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* --- Icon inline --- */
.icon-inline {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 6px;
  fill: var(--color-accent);
}
.icon-inline-sm {
  width: 16px;
  height: 16px;
}

/* --- Contact Info Block --- */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-info-item svg {
  width: 24px;
  height: 24px;
  fill: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* --- Neighborhoods Grid --- */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.neighborhoods-grid li {
  padding: 10px 14px;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.93rem;
}

/* --- Ordered Process List --- */
.process-list { counter-reset: step; list-style: none; padding: 0; }
.process-list li {
  counter-increment: step;
  padding: 14px 14px 14px 56px;
  position: relative;
  margin-bottom: 10px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* --- About Page Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.feature-item svg {
  width: 48px;
  height: 48px;
  fill: var(--color-accent);
  margin-bottom: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .header-top { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.4rem; }
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .hero { min-height: 420px; }
  .hero h1 { font-size: 2rem; }
  .hero-content { padding: 40px 0; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .section { padding: 45px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-top { flex-direction: column; gap: 6px; text-align: center; }
  .sticky-quote-btn {
    bottom: 16px;
    right: 50%;
    transform: translateX(50%);
    width: calc(100% - 40px);
    max-width: 340px;
  }
  .sticky-quote-btn:hover { transform: translateX(50%) translateY(-2px); }
  .mobile-nav-overlay { width: 55%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.7rem; }
  .feedback-form-container { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Error message animation --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
