/* ============================================
   San Francisco Wallpaper Installers — style.css
   Minimal, modern, contrast-heavy design
   ============================================ */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #FFFFFF;
  background: #000000;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color .25s; }
a:hover { color: #ccc; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; margin-bottom: .6em; }
h3 { font-size: 1.4rem; margin-bottom: .5em; }
p { margin-bottom: 1em; }

/* === CONTAINER === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0,0,0,.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .85rem;
}
.header-top a { color: #ccc; }
.header-top a:hover { color: #fff; }
.header-contact { display: flex; gap: 20px; align-items: center; }
.header-contact svg { width: 16px; height: 16px; margin-right: 5px; vertical-align: middle; fill: #fff; }
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.logo a {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em;
  color: #fff; white-space: nowrap;
}
.logo span { font-weight: 400; opacity: .7; }

/* === DESKTOP NAV === */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block; padding: 20px 16px;
  font-size: .9rem; font-weight: 500; color: #ccc;
  transition: color .2s;
}
.main-nav > li > a:hover,
.main-nav > li:hover > a { color: #fff; }

/* Dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  background: #111; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s, visibility .3s;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.main-nav > li:hover .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li { opacity: 0; transform: translateY(6px); }
.main-nav > li:hover .dropdown-menu li {
  opacity: 1; transform: translateY(0);
}
.dropdown-menu li:nth-child(1) { transition: opacity .25s .05s, transform .25s .05s; }
.dropdown-menu li:nth-child(2) { transition: opacity .25s .1s, transform .25s .1s; }
.dropdown-menu li:nth-child(3) { transition: opacity .25s .15s, transform .25s .15s; }
.dropdown-menu li:nth-child(4) { transition: opacity .25s .2s, transform .25s .2s; }
.dropdown-menu li:nth-child(5) { transition: opacity .25s .25s, transform .25s .25s; }
.dropdown-menu li:nth-child(6) { transition: opacity .25s .3s, transform .25s .3s; }
.dropdown-menu li:nth-child(7) { transition: opacity .25s .35s, transform .25s .35s; }
.dropdown-menu li:nth-child(8) { transition: opacity .25s .4s, transform .25s .4s; }
.dropdown-menu li:nth-child(9) { transition: opacity .25s .45s, transform .25s .45s; }
.dropdown-menu li:nth-child(10) { transition: opacity .25s .5s, transform .25s .5s; }
.dropdown-menu li:nth-child(11) { transition: opacity .25s .55s, transform .25s .55s; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: .85rem; color: #bbb;
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

/* === MOBILE MENU === */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-direction: column; justify-content: center; align-items: center;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: transform .3s, opacity .3s;
  margin: 3px 0;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed; top: 0; right: 0;
  width: 55%; max-width: 360px; height: 100vh;
  background: #0a0a0a;
  z-index: 2000;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.6); z-index: 1999;
  opacity: 0; transition: opacity .3s;
}
.mobile-overlay.show { opacity: 1; }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav-header .logo-text { font-size: 1rem; font-weight: 700; color: #fff; }
.mobile-close {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.mobile-close svg { width: 22px; height: 22px; stroke: #fff; }

.mobile-nav-links { padding: 12px 0; }
.mobile-nav-links a {
  display: block; padding: 14px 24px;
  font-size: 1rem; color: #ccc; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-align: left;
  transition: background .2s, color .2s;
}
.mobile-nav-links a:hover { background: rgba(255,255,255,.05); color: #fff; }
.mobile-nav-links .mobile-section-title {
  display: block; padding: 14px 24px 6px;
  font-size: .75rem; font-weight: 700; color: #666;
  text-transform: uppercase; letter-spacing: .08em;
  border-bottom: none;
}
.mobile-nav-links .mobile-sub a {
  padding-left: 36px; font-size: .9rem; color: #999;
}
.mobile-nav-contact {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: auto;
}
.mobile-nav-contact a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; color: #ccc; font-size: .9rem;
}
.mobile-nav-contact svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* === HERO === */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 100%);
}
.hero .container { position: relative; z-index: 1; display: flex; gap: 60px; align-items: center; }
.hero-content { flex: 1; }
.hero-content h1 { font-size: 3rem; margin-bottom: .5em; line-height: 1.15; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 540px; margin-bottom: 1.5em; }
.hero-form { flex: 0 0 420px; }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem; font-weight: 600;
  border-radius: 7px;
  border: none; cursor: pointer;
  transition: background .25s, color .25s, transform .15s;
  text-align: center;
}
.btn-primary {
  background: #FFFFFF; color: #000000;
}
.btn-primary:hover {
  background: #E5E5E5; color: #000000;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  border-color: #fff; background: rgba(255,255,255,.05);
}

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-dark { background: #000; }
.section-alt { background: #121212; }
.section-light { background: #fff; color: #111; }
.section-light h2, .section-light h3 { color: #111; }
.section-light a { color: #333; }
.section-light a:hover { color: #000; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 2.2rem; }
.section-title p { color: rgba(255,255,255,.6); max-width: 600px; margin: .5em auto 0; font-size: 1.05rem; }
.section-light .section-title p { color: #555; }

/* === GRID LAYOUTS === */
.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; }

/* === CARDS === */
.card {
  background: #121212; border-radius: 12px;
  overflow: hidden; transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(255,255,255,.06);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card-body p { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 1em; }
.card-link {
  font-size: .85rem; font-weight: 600; color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-link::after { content: '→'; transition: transform .2s; }
.card-link:hover::after { transform: translateX(4px); }

/* Light card variant */
.section-light .card { background: #f7f7f7; border-color: #e5e5e5; }
.section-light .card-body p { color: #666; }
.section-light .card-link { color: #111; }

/* === FORM === */
.feedback-form-container {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 32px;
}
.feedback-form-container h3 {
  font-size: 1.35rem; margin-bottom: 20px; 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;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; color: #fff;
  font-size: .95rem; font-family: inherit;
  transition: border-color .25s, background .25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { margin-top: 8px; }
.submit-btn {
  width: 100%; padding: 16px;
  background: #fff; color: #000;
  border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .25s;
}
.submit-btn:hover { background: #E5E5E5; }
#form-success { text-align: center; padding: 20px; }
#form-success p { color: #4ecdc4; font-size: 1.05rem; font-weight: 500; }

/* Light form */
.section-light .feedback-form-container {
  background: #f5f5f5; border-color: #ddd;
}
.section-light .form-group input,
.section-light .form-group textarea {
  background: #fff; border-color: #ddd; color: #111;
}
.section-light .form-group input::placeholder,
.section-light .form-group textarea::placeholder { color: #999; }
.section-light .form-group input:focus,
.section-light .form-group textarea:focus { border-color: #999; }
.section-light .submit-btn { background: #111; color: #fff; }
.section-light .submit-btn:hover { background: #333; }

/* === CTA BLOCK === */
.cta-block {
  text-align: center; padding: 48px 32px;
  background: #121212; border-radius: 14px;
  margin: 48px 0;
}
.cta-block h2 { font-size: 1.8rem; margin-bottom: .5em; }
.cta-block p { color: rgba(255,255,255,.6); margin-bottom: 1.5em; max-width: 500px; margin-left: auto; margin-right: auto; }
.section-light .cta-block { background: #f0f0f0; }
.section-light .cta-block p { color: #666; }

/* === MAP === */
.map-container { border-radius: 12px; overflow: hidden; margin-top: 32px; }
.map-container iframe { width: 100%; height: 400px; border: 0; display: block; }

/* === FEATURES / ICON LIST === */
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: rgba(255,255,255,.06); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.5; }
.section-light .feature-icon { background: #f0f0f0; }
.section-light .feature-icon svg { stroke: #111; }
.feature-text h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature-text p { font-size: .9rem; color: rgba(255,255,255,.55); margin-bottom: 0; }
.section-light .feature-text p { color: #666; }

/* === CONTENT BLOCKS === */
.content-block { margin-bottom: 48px; }
.content-block h2 { margin-bottom: .6em; }
.content-block p { color: rgba(255,255,255,.75); }
.section-light .content-block p { color: #444; }
.content-block ul, .content-block ol { margin: 16px 0 16px 24px; }
.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }
.content-block li { margin-bottom: 8px; color: rgba(255,255,255,.7); line-height: 1.6; }
.section-light .content-block li { color: #444; }

/* Two-column content with image */
.content-with-image { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.content-image { border-radius: 12px; overflow: hidden; }
.content-image img { width: 100%; height: 100%; object-fit: cover; }

/* === AREAS GRID === */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.area-link {
  display: block; padding: 16px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; font-weight: 500;
  transition: background .2s, border-color .2s;
}
.area-link:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.section-light .area-link { background: #f5f5f5; border-color: #e0e0e0; color: #111; }
.section-light .area-link:hover { background: #eee; border-color: #ccc; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
}
.faq-item h3 {
  font-size: 1.1rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item h3::after { content: '+'; font-size: 1.4rem; font-weight: 300; transition: transform .3s; }
.faq-item.active h3::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { padding-top: 12px; color: rgba(255,255,255,.65); }
.section-light .faq-item { border-color: #e0e0e0; }
.section-light .faq-answer p { color: #555; }

/* === FOOTER === */
.site-footer {
  background: #0a0a0a; padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #666; margin-bottom: 16px; }
.footer-col p { font-size: .9rem; color: #888; }
.footer-col a { display: block; padding: 4px 0; font-size: .9rem; color: #888; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center; font-size: .8rem; color: #555;
}

/* === STICKY QUOTE BUTTON === */
.sticky-quote {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
}
.sticky-quote .btn {
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  padding: 16px 28px; font-size: .95rem;
}

/* === MODAL === */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: #111; border-radius: 16px;
  padding: 40px; max-width: 500px; width: 90%;
  position: relative;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 20px; height: 20px; stroke: #fff; }

/* === BREADCRUMBS === */
.breadcrumbs { padding: 120px 0 0; font-size: .85rem; color: #666; }
.breadcrumbs a { color: #999; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 8px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 140px 0 60px;
  background: #000;
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: .4em; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === NEIGHBORHOODS === */
.neighborhoods-list {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 16px 0;
}
.neighborhoods-list span {
  background: rgba(255,255,255,.06);
  padding: 8px 16px; border-radius: 20px;
  font-size: .85rem; color: #ccc;
}
.section-light .neighborhoods-list span { background: #f0f0f0; color: #444; }

/* === ABOUT PAGE === */
.about-image { border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; height: 400px; object-fit: cover; }

/* === CONTACT INFO === */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 40px; }
.contact-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 24px; text-align: center;
}
.contact-card svg { width: 32px; height: 32px; margin-bottom: 12px; stroke: #fff; fill: none; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 0; }
.contact-card a { color: #fff; font-weight: 500; }

/* === IMAGE GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero .container { flex-direction: column; }
  .hero-form { flex: none; width: 100%; max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-with-image { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .header-top { display: none; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }
  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-content h1 { font-size: 2.2rem; }
  .section { padding: 56px 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; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-quote { bottom: 16px; right: 50%; transform: translateX(50%); }
  .page-hero { padding: 110px 0 40px; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .container { padding: 0 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === ANIMATION KEYFRAMES === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Error message for form */
.error-message { color: #ff6b6b; margin-top: 5px; font-size: 14px; animation: fadeIn 0.3s ease; }
