/* =========================================================
   NorCal Cleanout — shared stylesheet
   Used by index.html, about.html, contact.html, and all
   /services/*.html pages. Keep this file the single source
   of truth for design so every page stays visually consistent.
   ========================================================= */

:root {
  --blue: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #1976D2;
  --sky: #E3F2FD;
  --sun: #FFD54F;
  --white: #FFFFFF;
  --off-white: #F8FBFF;
  --text: #1A1A2E;
  --muted: #546E7A;
  --border: #BBDEFB;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.3px;
}

.nav-logo span { color: var(--text); }
.nav-logo a { color: inherit; text-decoration: none; }
.nav-logo a:hover { text-decoration: underline; }

.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.nav-brand > a { display: flex; align-items: center; }
.nav-logo-img { height: 48px; width: 48px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links > li > a.active { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; color: white !important; }

/* Services dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 0.3rem;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
}
.nav-dropdown-toggle:hover, .nav-dropdown:hover .nav-dropdown-toggle { color: var(--blue); }
.nav-dropdown-toggle .caret { font-size: 0.65rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-dropdown-toggle .caret,
.nav-dropdown.open .nav-dropdown-toggle .caret { transform: rotate(180deg); }

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(21,101,192,0.14);
  padding: 0.5rem;
  min-width: 240px;
  display: grid;
  gap: 0.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--sky); color: var(--blue); }
.dropdown-menu li a.active { background: var(--sky); color: var(--blue); font-weight: 600; }
.dropdown-menu li a .dd-icon { font-size: 1rem; }
.dropdown-menu .dropdown-all {
  border-top: 1px solid var(--border);
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  font-weight: 600;
  color: var(--blue);
}

.nav-mobile-toggle { display: none; }

/* ── HERO (home) ── */
.hero {
  padding-top: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--off-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(21,101,192,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  padding: 1rem 1.5rem 6rem;
  max-width: 760px;
  text-align: center;
  animation: fadeUp 0.8s ease both;
}

.hero-content .hero-sub { margin-left: auto; margin-right: auto; }
.hero-content .hero-actions { justify-content: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sky);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-badge::before { content: '★'; color: var(--sun); }

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (min-width: 640px) {
  .hero-content h1 { white-space: nowrap; }
}

h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

h1 em::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 3px;
  background: var(--sun);
  border-radius: 2px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(21,101,192,0.25);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--blue);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--blue); background: var(--sky); }

.hero-visual {
  padding: 3rem 1.5rem 1rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.8s 0.2s ease both;
}

/* Illustrated house card */
.house-card {
  width: 100%;
  max-width: 720px;
  position: relative;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.ba-box {
  background: var(--sky);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.ba-box.after { background: #E8F5E9; }

.ba-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.ba-icon { font-size: 2rem; }
.ba-arrow { font-size: 1.8rem; color: var(--blue); font-weight: 700; }

.ba-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

/* ── PAGE HERO (inner pages: about, contact, services) ── */
.page-hero {
  padding: 9.5rem 8% 4rem;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(21,101,192,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  position: relative;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { margin: 0 0.4rem; color: var(--border); }
.breadcrumb .current { color: var(--blue); font-weight: 500; }

.page-hero-icon {
  width: 60px; height: 60px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(21,101,192,0.08);
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 700px;
  position: relative;
}

.page-hero .hero-sub { position: relative; }

/* ── CONTENT SECTIONS (inner pages) ── */
.content-section {
  padding: 5rem 8%;
  background: white;
}
.content-section.alt { background: var(--off-white); }

.content-wrap {
  max-width: 920px;
}
.content-wrap p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.content-wrap p:last-child { margin-bottom: 0; }

.about-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-block .about-media,
.about-block .about-text {
  min-width: 0;
}
.about-block .about-media {
  max-width: 340px;
  width: 100%;
  justify-self: center;
}

.about-text p:last-of-type { margin-bottom: 1.25rem; }

.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
  padding: 1.5rem;
}
.content-section.alt .media-placeholder { background: white; }
.media-placeholder .mp-icon { font-size: 2rem; }
.media-placeholder .mp-label { font-size: 0.8rem; font-weight: 500; max-width: 220px; }

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.text-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.6;
  background: var(--off-white);
}
.content-section.alt .text-placeholder { background: white; }

.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.included-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}
.included-item .check {
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}
.included-item span.label { font-size: 0.9rem; font-weight: 500; color: var(--text); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.process-step { position: relative; }
.process-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--border);
  margin-bottom: 0.5rem;
}
.process-step h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--text); }
.process-step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; max-width: 760px; }
.faq-item {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.25rem 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  padding-bottom: 1.1rem;
}

.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: white;
  border: 1px solid var(--border);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.related-chip:hover { background: var(--sky); border-color: var(--blue-light); }

/* ── SERVICES ── */
.services {
  padding: 2rem 8% 3rem;
  background: white;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3rem;
  max-width: 560px;
  line-height: 1.2;
}

.services-subhead {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 3rem 0 1.5rem;
}
.services-subhead:first-of-type { margin-top: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: default;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(21,101,192,0.1);
  border-color: var(--blue-light);
}

a.service-card { display: block; text-decoration: none; cursor: pointer; }
a.service-card .service-link-hint {
  font-size: 0.8rem; font-weight: 600; color: var(--blue);
  margin-top: 0.75rem; display: inline-block;
}

.service-icon {
  width: 46px; height: 46px;
  background: var(--sky);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.service-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.service-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── WHY US ── */
.why {
  padding: 2rem 8% 6rem;
  background: white;
}

.mission-section {
  padding: 0 8% 2rem;
  background: white;
}

.why-list { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }

.why-item { display: flex; gap: 1rem; align-items: flex-start; }

.why-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--sky);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}

.why-text h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
.why-text p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

.mission-block {
  background: var(--blue);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.mission-block::before {
  content: '\201C';
  position: absolute;
  top: -1rem; left: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.mission-sig {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--sun);
  letter-spacing: 0.5px;
}

.mission-sig-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  margin-top: 1.5rem;
}

.mission-headshot {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.service-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.area-tag {
  background: var(--sky);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ── CTA ── */
.cta-section {
  padding: 6rem 8%;
  background: var(--off-white);
  text-align: center;
}

.cta-section.on-white { background: white; border-top: 1px solid var(--border); }

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-section p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Quote form */
.quote-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 8px 40px rgba(21,101,192,0.08);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: 0.8rem; font-weight: 500; color: var(--text); }

input, select, textarea {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--off-white);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, select:focus, textarea:focus { border-color: var(--blue); background: white; }
textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  background: var(--blue);
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 16px rgba(21,101,192,0.25);
}

.form-submit:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 8% 2.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.6rem;
}

.footer-col { min-width: 160px; }
.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.85rem;
}
.footer-col-links { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a, .footer-col-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
.footer-links a:hover, .footer-col-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy { font-size: 0.75rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .dropdown-menu { min-width: 220px; }
}

@media (max-width: 768px) {
  .hero-content { padding: 1rem 1.25rem 4rem; }
  .hero-visual { padding: 2.5rem 1.25rem 0.5rem; }
  .about-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-block .about-media { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  nav .nav-links { display: none; }
  .page-hero { padding: 7.5rem 6% 3rem; }
  .content-section { padding: 3.5rem 6%; }
  .footer-top { flex-direction: column; gap: 1.5rem; }
  footer { text-align: center; }
  .footer-top { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
