/*
  site.css — shared base stylesheet for Website Landlord properties.

  Vanilla CSS, mobile-first, no build step, no framework. Copied verbatim
  into every dist/<property-id>/assets/ output by render.py. Niche-specific
  theming (colors, type) can override this later with an additional
  stylesheet loaded after this one, without touching this file.
*/

:root {
  --color-bg: #ffffff;
  --color-text: #1a1d21;
  --color-muted: #5b6470;
  --color-primary: #0b5fa5;
  --color-primary-dark: #08477c;
  --color-accent: #d9772c;
  --color-border: #e5e8ec;
  --color-surface: #f6f8fa;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 10px rgba(16, 24, 40, 0.07), 0 2px 4px rgba(16, 24, 40, 0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1080px;
  font-size: 100%;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  margin-top: 2.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(6px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-text);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.primary-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-nav a:hover {
  color: var(--color-primary);
}

/* Dropdown nav (Services / Locations) — native <details>/<summary>, zero JS.
   Works via click/tap on both desktop and mobile, unlike a hover-only menu. */
.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.15rem 0;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "\25BE";
  margin-left: 0.3rem;
  font-size: 0.75em;
  color: var(--color-muted);
}

.nav-dropdown summary:hover {
  color: var(--color-primary);
}

.nav-dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  z-index: 20;
  width: max-content;
  min-width: 220px;
  max-width: 320px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  columns: 1;
}

.nav-dropdown-menu li {
  display: block;
  margin: 0;
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* Close other open dropdowns when one opens, without JS: not fully
   possible in pure CSS across siblings, so each stays independently
   toggleable — acceptable since only one is typically opened at a time. */

/* ---------- CTA phone ---------- */

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cta-phone:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-phone-label {
  font-weight: 500;
}

/* ---------- Hero ---------- */

.hero,
.location-hero,
.service-hero,
.guide-hero,
.bridge-hero {
  padding-top: 3rem;
  padding-bottom: 1.25rem;
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(246, 248, 250, 0) 100%);
}

/* Phone CTA stays centered on every page it appears on as a standalone
   call-to-action (hero sections, hub-page bottom CTA) — on all viewport
   sizes, not just mobile. Deliberately excludes the header's copy of
   .cta-phone, which stays in its conventional top-right nav position. */
.hero .cta-phone,
.location-hero .cta-phone,
.service-hero .cta-phone,
.guide-hero .cta-phone,
.bridge-hero .cta-phone,
.hub-cta .cta-phone {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 62ch;
}

/* ---------- CTA buttons ---------- */

.cta-button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.cta-button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ---------- Forms ---------- */

.contact-form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-width: 560px;
  margin: 1.5rem auto;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-form {
  max-width: none;
}

.form-row {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 95, 165, 0.15);
}

.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-consent label {
  font-weight: 400;
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
}

/* ---------- Grids / lists ---------- */

.services-grid ul,
.locations-grid ul,
.hub-list,
.related-services ul,
.services-offered ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}

.services-grid li,
.locations-grid li,
.hub-list li,
.related-services li,
.services-offered li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.services-grid li:hover,
.locations-grid li:hover,
.hub-list li:hover,
.related-services li:hover,
.services-offered li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.services-grid a,
.locations-grid a,
.hub-list a,
.related-services a,
.services-offered a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.services-grid a:hover,
.locations-grid a:hover,
.hub-list a:hover,
.related-services a:hover,
.services-offered a:hover {
  text-decoration: underline;
}

.services-grid a::after,
.locations-grid a::after,
.hub-list a::after,
.related-services a::after,
.services-offered a::after {
  content: "\2192";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Hub pages (services/locations/guides/calculators index) ---------- */

.hub-cta {
  padding-top: 0.5rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item summary::marker {
  color: var(--color-primary);
}

/* ---------- Map ---------- */

.map-embed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.map-fallback-link {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ---------- Map pair (small maps + area list, replaces one big map) ---------- */

.service-area-maps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

.maps-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.map-small {
  flex: 1 1 300px;
  max-width: 360px;
}

.map-small iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.area-list {
  flex: 1 1 240px;
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 1.5rem;
}

.area-list li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

/* ---------- Inline photo (single, sprinkled between sections) ----------
   Default size is intentionally small ("quarter size" per owner
   instruction 2026-07-28 — full-width/520px-tall photos were "taking up
   way too much of the page"). Always centered. Captions are NOT shown as
   visible text (owner: "the captions are not helping, it's too much
   noise") — caption text still ships as the img title attribute so it's
   available on hover/to assistive tech, just not printed on the page.
   .inline-photo--large is the one exception: the location-page landmark
   hero_image, which stays prominent since its whole purpose is visual
   recognition — but it now renders inline below the intro text instead of
   as a full-bleed text-overlay background (the background-photo treatment
   caused unreadable text-over-photo overlap and was removed). */

.inline-photo {
  max-width: 320px;
  margin: 1.75rem auto;
  padding: 0 1.25rem;
  text-align: center;
}

.inline-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}

.inline-photo--large {
  max-width: var(--max-width);
}

.inline-photo--large img {
  max-height: 420px;
}

/* Middle tier — a single deliberate "anchor" photo (e.g. the homepage's
   one standalone image right after the hero), bigger than the small
   default so it reads as intentional rather than a stray thumbnail, but
   well short of the location-hero --large treatment. Sized down ~25%
   again 2026-07-29 (owner: homepage images still read too big). */
.inline-photo--medium {
  max-width: 360px;
}

.inline-photo--medium img {
  max-height: 240px;
}

/* ---------- Photo strip (a few photos grouped together in one row) ----------
   Owner instruction 2026-07-29: images should be "grouped together where
   it makes sense and standalone where it makes sense" rather than one
   dropped between every section — modeled on autoglassnola.com, which
   groups a row of photos together near the bottom of the page (right
   before the testimonials) instead of scattering single images
   throughout. */

.photo-strip {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.photo-strip img {
  /* Sized down ~25% again 2026-07-29 (owner: homepage images still read
     too big) from an original 260x170 default. */
  flex: 1 1 165px;
  max-width: 195px;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Photo gallery (still used where the property keeps it) ---------- */

.photo-gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 0;
  margin: 0 auto;
  max-width: var(--max-width);
  font-size: 0.85rem;
  color: var(--color-muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--color-muted);
}

/* ---------- Testimonials ---------- */

.testimonials blockquote {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ---------- Trust badge / footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: 2.5rem;
  padding: 1.75rem 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.disclosure {
  max-width: 70ch;
}

.trust-badge {
  font-weight: 600;
}

.copyright {
  margin-top: 0.75rem;
}

.legal-links {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ---------- Legal pages (Privacy Policy / Terms of Service) ---------- */

.legal-page {
  max-width: 760px;
}

/* ---------- Pricing ---------- */

.pricing-block ul {
  padding-left: 1.2rem;
}

/* ---------- Mobile layout ---------- */

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.6rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .primary-nav ul {
    justify-content: center;
    gap: 1rem 1.2rem;
  }

  .cta-phone {
    justify-content: center;
  }

  .hero,
  .location-hero,
  .service-hero,
  .guide-hero,
  .bridge-hero {
    padding-top: 2rem;
    text-align: center;
  }

  .hero-sub {
    max-width: none;
  }

  .hero .cta-phone,
  .location-hero .cta-phone,
  .service-hero .cta-phone,
  .guide-hero .cta-phone,
  .bridge-hero .cta-phone {
    width: 100%;
  }

  .contact-form {
    max-width: none;
  }

  .gallery-grid img {
    height: 180px;
  }
}
