/* J Flores Plumbing LLC — demo site
   Colors sampled from the published Nextdoor profile photo (business card):
   navy header/wordmark, flag and service-list red. Not a formal brand guide.
   The JF mark is a demo monogram, not an official logo. */

:root {
  --navy-950: #0b1522;
  --navy-900: #122033;
  --navy: #1a2e4a;
  --blue: #1f4e8c;
  --blue-dark: #163a6a;
  --red: #9b2c35;
  --red-dark: #7a2229;
  --accent-soft: #f6ecec;
  --ink: #142033;
  --body: #3a4656;
  --muted: #5c6b7a;
  --line: #d8dee6;
  --paper: #f4f1ec;
  --white: #ffffff;
  --placeholder-bg: #fff8e5;
  --placeholder-border: #c4a035;
  --placeholder-text: #6a4f00;
  --shadow: 0 10px 30px rgba(18, 32, 51, 0.1);
  --radius: 14px;
  --header-offset: 8.5rem;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 70rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.85rem, 6vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--navy-900);
  color: #d7e0eb;
  font-size: 0.8125rem;
}

.topbar a { color: var(--white); }

.topbar .placeholder {
  font-size: 0.78rem;
  padding: 0.05em 0.4em;
  border-color: #d4b86a;
  background: rgba(255, 248, 229, 0.95);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding: 0.4rem 0;
}

.topbar-item { margin: 0; }

.navrow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy-900);
  min-width: 0;
}

.brand img {
  width: 3.1rem;
  height: auto;
  border-radius: 10px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-sub { font-size: 0.75rem; color: var(--muted); font-weight: 500; }

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1 1 12rem;
  min-width: 0;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--navy);
}

.header-call {
  margin-left: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  min-height: 2.75rem;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy-900);
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  min-height: 3.1rem;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 420px at 10% -10%, #ead9d9 0%, transparent 55%),
    linear-gradient(180deg, #f6f3ee 0%, var(--white) 100%);
  padding: 2.25rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-copy { grid-area: copy; }
.hero-media { grid-area: media; }
.trust-row { grid-area: trust; }

.hero-grid {
  grid-template-areas:
    "copy"
    "media"
    "trust";
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 0.7rem;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--body);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.6rem;
}

.trust-row {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.trust-row li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.trust-row strong {
  color: var(--navy-900);
  font-size: 1.02rem;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-media {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  aspect-ratio: 5 / 4;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head p,
.about-copy p,
.estimate-copy p,
.license-block p,
.hours-note {
  color: var(--body);
}

.section-cta {
  margin: 1.75rem 0 0;
  font-weight: 500;
}

#services,
#about,
#license,
#reviews,
#hours,
#estimate {
  scroll-margin-top: var(--header-offset);
}

/* Cards / services */
.service-grid,
.review-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
}

.service-grid .card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-grid h3 { margin: 0.2rem 0 0; }
.service-grid p { margin: 0; color: var(--body); font-size: 0.98rem; }

.icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--red);
  flex: 0 0 auto;
}

.card-note {
  margin: 1.25rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 52rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

.facts {
  display: grid;
  gap: 0.85rem 1.25rem;
  margin: 2rem auto 0;
}

.facts > div {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 650;
}

.facts dd { margin: 0.15rem 0 0; font-weight: 600; color: var(--navy-900); }

.placeholder {
  display: inline-block;
  padding: 0.15em 0.5em;
  border: 2px dashed var(--placeholder-border);
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92em;
}

.placeholder-block {
  display: block;
  padding: 0.7rem 0.8rem;
  line-height: 1.45;
}

.about-banner {
  margin: 0;
}

.about-banner img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper);
  object-fit: cover;
}

.about-banner figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* License */
.license-facts {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.license-facts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.license-facts strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.license-facts span {
  font-weight: 600;
  color: var(--navy-900);
}

/* Reviews */
.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.review-card blockquote {
  margin: 0;
}

.review-card blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.review-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hours / map / area */
.visit-grid {
  display: grid;
  gap: 1rem;
}

.hours-card h3 { margin-bottom: 0.75rem; }

.hours-note {
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
}

.address-heading { margin-top: 1.4rem; }

.address {
  font-size: 1.05rem;
  font-weight: 600;
}

.address a {
  color: var(--navy-900);
  text-decoration: none;
}

.address a:hover { color: var(--blue); text-decoration: underline; }

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 20rem;
  background: #e8eef3;
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 1.5rem;
  color: var(--body);
  font-size: 0.95rem;
}

.map-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 0;
  background: transparent;
}

.area-block {
  margin-top: 2rem;
}

.area-block h3 { margin-bottom: 0.35rem; }

.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.area-chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
}

#hours .area-chips li {
  background: var(--paper);
}

/* Estimate form */
.estimate-grid {
  display: grid;
  gap: 1.75rem;
}

.demo-note,
.demo-banner {
  background: var(--placeholder-bg);
  border: 2px dashed var(--placeholder-border);
  color: var(--placeholder-text);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.estimate-form {
  display: grid;
  gap: 0.9rem;
}

.estimate-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.estimate-form textarea { resize: vertical; min-height: 6.5rem; }

.estimate-form .btn { width: 100%; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #c9d6e8;
  padding: 3rem 0 7.5rem;
}

.site-footer a { color: var(--white); }
.site-footer h2 {
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-name {
  font-weight: 700;
  color: var(--white);
  margin: 0.75rem 0 0.25rem;
  font-size: 1.1rem;
}

.brand-footer img {
  width: 4.25rem;
  height: auto;
  border-radius: 12px;
}

.footer-nav { list-style: none; }
.footer-nav li { margin: 0.3rem 0; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
}

.footer-bottom p { margin: 0; }

/* Mobile bottom CTA */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgba(18, 32, 51, 0.08);
}

.mobile-cta .btn { flex: 1 1 0; }

/* AI receptionist placeholder */
.ai-receptionist {
  position: fixed;
  right: 0.9rem;
  bottom: 5.35rem;
  z-index: 70;
}

.ai-receptionist-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--white);
  background: var(--navy-900);
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 24px rgba(11, 21, 34, 0.28);
  cursor: not-allowed;
  opacity: 0.92;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

/* Desktop */
@media (min-width: 48rem) {
  :root { --header-offset: 7.25rem; }

  .hero {
    padding: 3.25rem 0 4rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "copy media"
      "trust media";
    gap: 1.5rem 3rem;
    align-items: center;
  }

  .hero-media img {
    aspect-ratio: 5 / 4;
    min-height: 24rem;
    object-position: center 55%;
  }

  .trust-row {
    grid-template-columns: repeat(3, 1fr);
    align-self: start;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .visit-grid {
    grid-template-columns: 20rem 1fr;
    align-items: stretch;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 100%;
    height: 100%;
  }

  .estimate-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer {
    padding-bottom: 2.5rem;
  }

  .mobile-cta { display: none; }

  .ai-receptionist {
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .about-grid {
    gap: 2.5rem;
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .license-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .license-facts {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    overflow: visible;
  }

  .brand img {
    width: 3.4rem;
  }
}

/* Phone in header can wrap on mid widths */
@media (max-width: 47.99rem) {
  :root { --header-offset: 11rem; }

  .header-call {
    display: none;
  }

  .hero-grid {
    grid-template-areas:
      "copy"
      "trust"
      "media";
  }

  .hero-media img {
    aspect-ratio: 21 / 12;
    min-height: 0;
    object-position: center 55%;
  }

  .hero {
    padding: 1.6rem 0 2.25rem;
  }

  .hero-actions {
    margin: 1.1rem 0 1rem;
  }

  .topbar-item:first-child,
  .topbar-item:last-child {
    flex: 1 1 100%;
  }

  .site-nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }

  body {
    padding-bottom: 4.75rem;
  }

  .ai-receptionist {
    bottom: 4.85rem;
    right: 0.55rem;
  }

  .ai-receptionist-btn {
    font-size: 0.7rem;
    padding: 0.45rem 0.7rem;
  }
}
