/* RJ's Rescue Plumbing — Brand styles
   Colors: Deep Navy #0B1F3A | Safety Orange #FF6B1A | White | Light Gray #F2F4F7
*/

:root {
  --navy: #0B1F3A;
  --navy-deep: #071526;
  --navy-mid: #143052;
  --orange: #FF6B1A;
  --orange-hover: #E55A0E;
  --orange-soft: rgba(255, 107, 26, 0.12);
  --white: #FFFFFF;
  --gray: #F2F4F7;
  --gray-mid: #D0D5DD;
  --gray-text: #5A6577;
  --success: #0F7A45;
  --error: #C62828;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(11, 31, 58, 0.18);
  --shadow-sm: 0 2px 12px rgba(11, 31, 58, 0.1);
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1280px;
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

.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;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  overflow: visible;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-logo--mascot {
  width: auto;
  height: 52px;
  max-width: 58px;
  object-fit: contain;
  object-position: center center;
  overflow: visible;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}

.brand-name span { color: var(--orange); }

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}

.nav a:hover, .nav a:focus-visible {
  color: var(--orange);
  outline: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: var(--white) !important;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--orange-hover) !important; color: var(--white) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 8px;
  color: var(--white);
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle svg { width: 22px; height: 22px; }


.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1.2;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--white);
  outline: none;
}

.lang-btn.is-active {
  color: var(--navy);
  background: var(--orange);
}

.lang-sep {
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  user-select: none;
}

.lang-short { display: none; }
.lang-full { display: inline; }


/* —— Hero —— */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
  min-height: auto;
  display: block;
  padding: 0;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 1.75rem;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  max-height: none;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(150px, 1fr) minmax(380px, 440px);
  gap: 0.5rem 0.85rem;
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 0.25rem;
}

.hero-mid {
  min-height: 1px;
  pointer-events: none;
}

/* Full-bleed layer, content-width frame — plumber stays locked to columns at all widths */
.hero-plumber-layer {
  position: absolute;
  inset: 0;
  z-index: 1; /* above solid .hero-bg so the photo can't lose the paint race */
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.hero-plumber-frame {
  position: relative;
  width: min(100% - 2rem, var(--max));
  height: 100%;
  overflow: visible;
}

.hero-plumber {
  position: absolute;
  display: block;
  /* Hat target ~x320-505 @1024; asset has hat at ~55% of image */
  left: 32%;
  top: 0%;
  transform: translateX(-50%);
  height: 100%;
  width: 82%;
  max-width: 980px;
  opacity: 0.58;
}

.hero-plumber img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 2%, #000 92%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 2%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: brightness(0.88) saturate(0.92) drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.hero-copy {
  position: relative;
  z-index: 2;
  justify-self: start;
  max-width: 600px;
}

.badge-24 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--orange-soft);
  border: 1px solid rgba(255,107,26,0.45);
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.badge-24 .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 1.6s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.17rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.4rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,107,26,0.4);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--orange-hover);
  outline: none;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--white);
  outline: none;
}

.btn svg { width: 18px; height: 18px; }

.hero-copy .btn {
  font-size: 1.12rem;
  padding: 0.98rem 1.55rem;
}
.hero-copy .btn svg { width: 20px; height: 20px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.3rem;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.72);
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust svg {
  width: 18px; height: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.hero .intake-card {
  position: relative;
  z-index: 2;
  grid-column: 3;
  width: 100%;
  max-width: 450px;
  justify-self: stretch;
  padding: 1.1rem 1.2rem 1.05rem;
  box-shadow: 0 16px 40px rgba(7, 21, 38, 0.35);
}

.hero .intake-card h2 {
  font-size: 1.38rem;
  margin-bottom: 0.15rem;
}

.hero .intake-underline {
  width: 56px;
  height: 3.5px;
  margin-bottom: 0.75rem;
}

.hero .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.52rem 0.58rem;
}

.hero .field label {
  font-size: 0.8rem;
}

.hero .field input,
.hero .field select,
.hero .field textarea {
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  border-radius: 8px;
}

.hero .field textarea {
  min-height: 52px;
  resize: vertical;
}

.hero .consent {
  font-size: 0.7rem;
  margin-top: 0.55rem;
  line-height: 1.35;
}

.hero .file-row { gap: 0.5rem; }
.hero .file-btn {
  padding: 0.48rem 0.8rem;
  font-size: 0.88rem;
}
.hero .file-name { font-size: 0.8rem; }

.hero .btn-submit {
  margin-top: 0.65rem;
  padding: 0.85rem 1.15rem;
  font-size: 1.08rem;
}

/* —— Intake form card —— */
.intake-card {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.intake-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.intake-underline {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.field label .opt {
  font-weight: 400;
  color: var(--gray-text);
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--gray-mid);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: var(--gray);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  font-size: 0.9rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
  background: var(--white);
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--error);
}

.field-error {
  font-size: 0.7rem;
  color: var(--error);
  display: none;
}

.field-error.show { display: block; }

.field textarea { resize: vertical; min-height: 56px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px dashed var(--gray-mid);
  border-radius: 8px;
  background: var(--gray);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
}

.file-btn:hover { border-color: var(--orange); color: var(--orange); }

.file-name {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--gray-text);
  margin-top: 0.65rem;
}

.consent input {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--orange);
  flex-shrink: 0;
}

.consent.error-border {
  outline: 1px solid var(--error);
  outline-offset: 4px;
  border-radius: 4px;
}

.btn-submit {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255,107,26,0.35);
}

.btn-submit:hover { background: var(--orange-hover); }
.btn-submit:disabled { opacity: 0.65; cursor: wait; }

.form-status {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.form-status.success {
  display: block;
  background: #E8F5EE;
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #FDECEA;
  color: var(--error);
}

.form-success-panel {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.form-success-panel.show { display: block; }
.intake-form.hide { display: none; }

.form-success-panel .check {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  background: #E8F5EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
}

.form-success-panel h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.form-success-panel p {
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* —— Sections shared —— */
section { padding: 4.5rem 0; }

.section-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--gray-text);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section-head { margin-bottom: 0.5rem; }

/* —— Services —— */
.services { background: var(--gray); padding-top: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(255,107,26,0.2);
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* —— How it works —— */
.how-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  margin-bottom: 0.5rem;
}

.how-mascot {
  flex-shrink: 0;
  width: min(200px, 28vw);
}

.how-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(11, 31, 58, 0.18));
}

.how-copy .section-lead { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 52px;
  right: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gray-mid));
}

.step h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.apple-pay-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--gray);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* —— Areas —— */
.areas { background: var(--navy); color: var(--white); }

.areas .section-lead { color: rgba(255,255,255,0.7); }

.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.area-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s;
}

.area-chip:hover {
  background: rgba(255,107,26,0.15);
  border-color: rgba(255,107,26,0.4);
}

.area-chip svg {
  width: 16px; height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* —— Why us —— */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.why-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy);
  position: relative;
}

.why-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.92;
}

.why-list { display: flex; flex-direction: column; gap: 1.25rem; }

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

.why-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg { width: 22px; height: 22px; }

.why-item h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

/* —— Reviews —— */
.reviews { background: var(--gray); }

.sample-banner {
  display: inline-block;
  background: #FFF3E0;
  color: #B45309;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--orange);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.review-card blockquote {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.review-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
}

.review-card cite span {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
}

/* —— FAQ —— */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-item {
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  padding: 1rem 1.25rem;
  cursor: pointer;
  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.4rem;
  color: var(--orange);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--gray-text);
  font-size: 0.95rem;
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-band .btn-primary { font-size: 1.1rem; padding: 1.05rem 2rem; }

/* —— Footer —— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .brand { margin-bottom: 0.85rem; }

.footer-brand p { max-width: 28ch; line-height: 1.55; }

.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--orange); }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.license-note {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
}

/* —— Sticky mobile call bar —— */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--navy);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem;
  border-radius: 10px;
}

.mobile-call-bar svg { width: 20px; height: 20px; }


@media (min-width: 961px) and (max-height: 820px) {
  .hero-visual {
    min-height: calc(100vh - var(--header-h));
    padding: 1.1rem 0;
  }
  .hero h1 { font-size: clamp(2.05rem, 3.8vw, 2.75rem); }
  .hero-sub { margin-bottom: 1rem; font-size: 1.05rem; }
  .hero-copy .btn { font-size: 1.02rem; padding: 0.85rem 1.3rem; }
  .hero .intake-card { padding: 0.95rem 1.1rem 0.9rem; }
  .hero .form-grid { gap: 0.4rem 0.5rem; }
  .hero .field input,
  .hero .field select,
  .hero .field textarea { padding: 0.42rem 0.55rem; font-size: 0.88rem; }
  .hero .field textarea { min-height: 44px; }
  .hero .consent { font-size: 0.64rem; margin-top: 0.45rem; }
  .hero .btn-submit { padding: 0.72rem 1.05rem; margin-top: 0.5rem; }
  .hero-trust { gap: 0.85rem 1.1rem; font-size: 0.88rem; }
  .hero-plumber { opacity: 0.58; }
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(240px, 370px) minmax(120px, 1fr) minmax(340px, 400px);
    gap: 0.4rem 0.75rem;
  }
  .hero .intake-card { max-width: 400px; }
  .hero-plumber { left: 32%; width: 72%; opacity: 0.58; }
}

@media (max-width: 960px) {
  .hero-visual {
    min-height: auto;
    padding: 1.75rem 0 2.5rem;
    align-items: stretch;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
    .hero-mid { display: none; }
  /* Mobile: full upper-hero background photo (match owner reference) */
  .hero-plumber-layer {
    align-items: flex-start;
    z-index: 1;
  }
  .hero-plumber-frame {
    /* Tall enough to sit behind badge + headline + sub like the reference */
    height: min(125vw, 560px);
    width: 100%;
  }
  .hero-plumber {
    left: 70%;
    top: 0;
    transform: translateX(-50%);
    width: 145%;
    height: 100%;
    max-width: none;
    opacity: 0.82;
  }
  .hero-plumber img {
    object-fit: cover;
    object-position: 58% 8%;
    -webkit-mask-image:
      linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
    mask-image:
      linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,0.55) 68%, transparent 100%),
      linear-gradient(90deg, transparent 0%, #000 12%, #000 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    /* Navy wash so white copy stays readable; hat/vest still read */
    filter: brightness(0.68) saturate(0.95) contrast(1.05);
  }
  .hero-copy { z-index: 2; }
  .hero .intake-card {
    max-width: none;
    justify-self: stretch;
    width: 100%;
    grid-column: auto;
    z-index: 2;
  }
  .hero-bg {
    background: var(--navy-deep);
  }
  .how-head { grid-template-columns: 1fr; }
  .how-mascot {
    order: -1;
    width: min(160px, 45%);
    margin: 0 auto 0.5rem;
  }
  .hero { min-height: auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; max-height: 280px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-cta { margin-top: 0.5rem; justify-content: center; }


  .header-actions {
    gap: 0.45rem;
  }
  .lang-toggle {
    padding: 0.2rem 0.4rem;
    gap: 0.25rem;
  }
  .lang-btn {
    font-size: 0.68rem;
    padding: 0.16rem 0.3rem;
    letter-spacing: 0.03em;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-logo--mascot {
    height: 44px;
    max-width: 48px;
  }
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
  }

  .form-grid,
  .hero .form-grid { grid-template-columns: 1fr; }

  .services-grid { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }

  .mobile-call-bar { display: block; }

  body { padding-bottom: 76px; }

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

  .brand-sub { display: none; }
}

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

/* —— i18n / Spanish layout safety —— */
html[lang="es"] .hero h1 {
  font-size: clamp(2.05rem, 4vw, 3rem);
}
html[lang="es"] .hero-sub {
  max-width: 44ch;
}
html[lang="es"] .nav a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
html[lang="es"] .lang-btn {
  letter-spacing: 0.04em;
}
html[lang="es"] .hero .consent {
  font-size: 0.66rem;
}
html[lang="es"] .field label {
  line-height: 1.25;
}
@media (max-width: 1100px) {
  html[lang="es"] .nav a {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
  .nav {
    gap: 1.1rem;
  }
}

@media (max-width: 720px) {
  .lang-full { display: none; }
  .lang-short { display: inline; }
  .lang-btn { font-size: 0.78rem; padding: 0.2rem 0.38rem; letter-spacing: 0.06em; }
}
