/* ==========================================================================
   Phoenix Home Professionals - phx-storm child theme
   Storm-contractor design system: charcoal/red-orange, sharp corners,
   hairline dividers, uppercase tracked labels, numbered section eyebrows.
   ========================================================================== */

:root {
  --bg: #171515;
  --bg-2: #1c1919;
  --bg-3: #141212;
  --surface: #1b1818;
  --surface-2: #121010;
  --ink: #f3f2f2;
  --ink-dim: #d7d3d3;
  --ink-mute: #bab6b6;
  --ink-faint: #9b9797;
  --accent: #ec3013;
  --accent-2: #ff563c;
  --accent-deep: #ae1800;
  --accent-deeper: #8a1206;
  --border: #393534;
  --border-dim: #2d2b2b;
  --border-mid: #605d5d;
  --max: 1280px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body.phx-body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 55%, #191616 100%);
  background-attachment: fixed;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.phx-body a { color: #ff9783; text-decoration: none; }
.phx-body a:hover { color: var(--accent-2); }

.phx-body h1, .phx-body h2, .phx-body h3, .phx-body h4 {
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}
.phx-body p { margin: 0; }
.phx-body input, .phx-body select, .phx-body textarea, .phx-body button { font-family: inherit; font-size: inherit; }
.phx-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.phx-body ::selection { background: #ffc4b8; color: #201e1d; }
.phx-body summary::-webkit-details-marker { display: none; }

@keyframes phxRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes phxPulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

.phx-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* - utility labels - */
.phx-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.phx-kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 800;
}
.phx-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 20px;
}
.phx-section-head h2 { font-size: clamp(30px, 3.6vw, 48px); }

/* - top bar - */
.phx-topbar {
  background: linear-gradient(90deg, var(--accent-deeper) 0%, var(--accent-deep) 55%, #96140a 100%);
  color: #fff; padding: 7px 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.phx-topbar .phx-dot { width: 7px; height: 7px; background: #fff; display: inline-block; animation: phxPulse 2s ease-in-out infinite; }
.phx-topbar .phx-flag { display: flex; align-items: center; gap: 8px; }
.phx-topbar .phx-right { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.phx-topbar a { color: #fff; }
.phx-topbar .phx-area { opacity: 0.8; }

/* - header / nav - */
.phx-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(20,18,18,0.96) 0%, rgba(13,12,12,0.88) 100%);
  backdrop-filter: blur(10px); border-bottom: 2px solid var(--accent);
}
.phx-nav {
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.phx-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; text-decoration: none; }
.phx-brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; background: var(--accent);
  color: #fff; font-weight: 900; font-size: 16px; letter-spacing: -0.02em; flex: none;
}
.phx-brand-text-1 { display: block; font-weight: 900; font-size: 17px; letter-spacing: 0.02em; color: var(--ink); line-height: 1; }
.phx-brand-text-2 { display: block; font-size: 9.5px; letter-spacing: 0.24em; color: var(--accent-2); font-weight: 700; margin-top: 3px; }

.phx-nav-links {
  display: flex; gap: 14px 18px; align-items: center; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; flex-wrap: wrap; min-width: 0;
  flex: 1 1 auto; justify-content: flex-end;
}
.phx-nav-links a { color: var(--ink); }
.phx-nav-links a:hover { color: var(--accent-2); }

.phx-nav-toggle {
  display: none; background: transparent; border: 2px solid var(--border-mid); color: var(--ink);
  width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer;
}
.phx-nav-toggle span, .phx-nav-toggle::before, .phx-nav-toggle::after { display: none; }

/* - buttons - */
.phx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; border: none;
  font-family: var(--font); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px; white-space: nowrap;
}
.phx-btn-primary { background: linear-gradient(180deg, #b91a02 0%, #96140a 100%); color: #fff; }
.phx-btn-primary:hover { background: linear-gradient(180deg, #96140a 0%, #6d1104 100%); color: #fff; }
.phx-btn-secondary { border: 2px solid var(--border-mid); color: var(--ink); background: transparent; }
.phx-btn-secondary:hover { border-color: var(--accent-2); color: var(--accent-2); }
.phx-btn-dark { background: linear-gradient(180deg, #2b2827 0%, #141312 100%); color: var(--ink); text-align: left; justify-content: flex-start; }
.phx-btn-dark:hover { background: linear-gradient(180deg, #b91a02 0%, #96140a 100%); color: #fff; }
.phx-btn-nav {
  background: linear-gradient(180deg, #b91a02 0%, #96140a 100%); color: #fff; padding: 13px 20px; font-size: 13px;
}
.phx-btn-nav:hover { background: linear-gradient(180deg, #96140a 0%, #6d1104 100%); color: #fff; }
.phx-btn-block { width: 100%; margin-top: 4px; }

/* - hero - */
.phx-hero {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 0;
  border-bottom: 2px solid var(--border);
}
.phx-hero-copy {
  padding: 64px 40px 56px 0; display: flex; flex-direction: column; gap: 26px; align-items: flex-start;
  animation: phxRise 0.7s ease both;
}
.phx-tag-outline {
  display: inline-flex; gap: 10px; border: 2px solid var(--accent); color: var(--accent-2);
  padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
}
.phx-hero-copy h1 { font-size: clamp(38px, 5.4vw, 74px); }
.phx-hero-copy > p { font-size: 19px; color: var(--ink-dim); max-width: 46ch; }
.phx-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.phx-hero-note {
  font-size: 13px; color: var(--ink-faint); letter-spacing: 0.04em;
  border-left: 2px solid var(--accent); padding-left: 14px;
}

.phx-hero-visual {
  border-left: 2px solid var(--border); display: flex; flex-direction: column; min-height: 560px;
}
.phx-hero-stage {
  position: relative; flex: 1 1 auto; min-height: 400px;
  background: radial-gradient(125% 95% at 68% 12%, #332d2b 0%, #211d1c 42%, #100f0f 78%);
  overflow: hidden; touch-action: none;
}
#phx-hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#phx-hero-3d:active { cursor: grabbing; }
.phx-hero-hint {
  position: absolute; top: 18px; left: 18px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #dcd8d8; text-shadow: 0 1px 3px rgba(0,0,0,0.9); pointer-events: none;
}
.phx-hero-controls {
  flex: none; background: linear-gradient(180deg, #161414 0%, #0c0b0b 100%); border-top: 2px solid var(--border);
  padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-start;
}
.phx-swatch-group { display: grid; gap: 7px; }
.phx-swatch-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; }
.phx-swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.phx-swatch {
  width: 30px; height: 30px; padding: 0; border: 2px solid var(--border-mid); cursor: pointer;
}
.phx-swatch[aria-pressed="true"] { border: 3px solid var(--accent); }
.phx-chip {
  border: 2px solid var(--border-mid); background: transparent; color: var(--ink-dim);
  padding: 7px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.phx-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-deep); color: #fff; }

/* - stat strip - */
.phx-stats {
  border-bottom: 2px solid var(--border); background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.phx-stats-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phx-stat { padding: 26px 24px; border-right: 2px solid var(--border); }
.phx-stat:last-child { border-right: none; }
.phx-stat-num { font-size: 34px; font-weight: 900; color: var(--ink); line-height: 1; }
.phx-stat-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }

/* - services grid - */
.phx-services { padding-top: 72px; }
.phx-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.phx-service {
  padding: 34px 28px; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border);
  display: grid; gap: 14px; align-content: start; color: var(--ink); text-decoration: none;
}
.phx-service:last-child { border-right: none; }
.phx-service:hover { background: #1e1b1b; color: var(--ink); }
.phx-service h3 { font-size: 26px; }
.phx-service p { color: var(--ink-mute); font-size: 15px; }
.phx-service-link { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); }

/* - claims - */
.phx-claims { padding-top: 72px; }
.phx-claims-band {
  background: linear-gradient(112deg, var(--accent-deeper) 0%, var(--accent-deep) 62%, #b91a02 100%);
  color: #fff; padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px; align-items: center; margin-top: 28px;
}
.phx-claims-band h3 { font-size: 28px; }
.phx-claims-band p { font-size: 15px; font-weight: 500; }

.phx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 2px solid var(--border); }
.phx-step { padding: 30px 26px; border-right: 2px solid var(--border); border-top: 2px solid var(--border); display: grid; gap: 10px; align-content: start; }
.phx-step-n { font-size: 12px; font-weight: 900; color: var(--accent-2); letter-spacing: 0.14em; }
.phx-step h4 { font-size: 19px; }
.phx-step p { color: var(--ink-mute); font-size: 14.5px; }
.phx-step-who { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); border-top: 2px solid var(--border-dim); padding-top: 10px; }

.phx-faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0; }
.phx-faq-intro { padding: 40px 32px 40px 0; border-right: 2px solid var(--border); }
.phx-faq-intro h3 { font-size: 26px; margin-bottom: 14px; }
.phx-faq-intro p { color: var(--ink-mute); font-size: 15px; }
.phx-faq-list { display: grid; }
.phx-faq-item { border-top: 2px solid var(--border); padding: 0; }
.phx-faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 0; display: flex; gap: 16px; align-items: baseline;
  font-weight: 800; font-size: 17px;
}
.phx-faq-item summary::before { content: "+"; color: var(--accent-2); font-size: 13px; }
.phx-faq-item[open] summary::before { content: "\2212"; }
.phx-faq-item p { color: var(--ink-mute); font-size: 15px; padding: 0 0 22px 29px; max-width: 70ch; }

/* - comparison - */
.phx-compare-section {
  background: linear-gradient(180deg, var(--surface-2) 0%, #1a1717 60%, var(--surface-2) 100%);
  border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); margin-top: 72px;
}
.phx-compare-inner { max-width: var(--max); margin: 0 auto; padding: 64px 24px; }
.phx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; }
.phx-table th { text-align: left; padding: 18px 20px 18px 0; }
.phx-table th:not(:first-child), .phx-table td:not(:first-child) { border-left: 2px solid var(--border); padding: 18px 20px; }
.phx-table thead th:first-child { width: 27%; }
.phx-table thead th:nth-child(2) { font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--accent-2); }
.phx-table thead th:nth-child(3) { font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--ink-faint); }
.phx-table td { vertical-align: top; }
.phx-table td:first-child { font-weight: 700; color: var(--ink-dim); }
.phx-table td:nth-child(2) { color: var(--ink); }
.phx-table td:nth-child(3) { color: var(--ink-faint); }
.phx-table tr { border-top: 1px solid var(--border-dim); }

/* - pricing - */
.phx-pricing { padding-top: 72px; }
.phx-pricing-lede { color: var(--ink-mute); font-size: 16px; max-width: 76ch; padding: 22px 0 26px; }
.phx-price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.phx-price-tier { padding: 28px 24px; border-right: 2px solid var(--border); display: grid; gap: 8px; align-content: start; }
.phx-price-tier:last-child { border-right: none; }
.phx-price-range { font-size: 28px; font-weight: 900; line-height: 1.05; }
.phx-price-note { color: var(--ink-faint); font-size: 14px; }
.phx-price-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 2px solid var(--border); }
.phx-price-term { padding: 28px 24px; border-right: 2px solid var(--border); }
.phx-price-term:last-child { border-right: none; }
.phx-price-term h4 { font-size: 18px; margin-bottom: 8px; }
.phx-price-term p { color: var(--ink-mute); font-size: 14.5px; }

/* - gallery - */
.phx-gallery { padding-top: 72px; }
.phx-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--border); border-bottom: 2px solid var(--border); }
.phx-gallery-item { margin: 0; background: var(--surface); display: grid; }
.phx-gallery-slot {
  position: relative; height: 216px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, #232020 0 8px, #1b1818 8px 16px);
  border: 1px dashed var(--border-mid); display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
}
.phx-gallery-slot span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--ink-faint);
}
.phx-gallery-caption { padding: 14px 16px; border-top: 2px solid var(--border-dim); display: grid; gap: 4px; color: var(--ink); }
.phx-gallery-title { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.phx-gallery-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.phx-gallery-note { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--ink-faint); padding-top: 14px; }

/* - vetting - */
.phx-vetting { padding-top: 72px; }
.phx-vetting-lede { color: var(--ink-mute); font-size: 16px; max-width: 74ch; padding: 22px 0 8px; }
.phx-vetting-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phx-vetting-item { padding: 20px 24px 20px 0; border-top: 2px solid var(--border-dim); display: flex; gap: 14px; align-items: baseline; }
.phx-vetting-n { font-size: 12px; font-weight: 900; color: var(--accent-2); letter-spacing: 0.1em; }
.phx-vetting-q { font-size: 15.5px; color: var(--ink-dim); }

/* - inspection form - */
.phx-inspection {
  background: linear-gradient(135deg, #7c1405 0%, var(--accent-deep) 48%, var(--accent-deeper) 100%);
  margin-top: 72px;
}
.phx-inspection-inner {
  max-width: var(--max); margin: 0 auto; padding: 64px 24px;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px;
}
.phx-inspection-copy { color: #fff; display: grid; gap: 20px; align-content: start; }
.phx-inspection-copy .phx-eyebrow { color: #fff; font-weight: 800; }
.phx-inspection-copy h2 { font-size: clamp(32px, 4vw, 56px); color: #fff; }
.phx-inspection-copy > p { font-size: 17px; font-weight: 500; }
.phx-inspection-contact { border-top: 2px solid rgba(255,255,255,0.45); padding-top: 20px; display: grid; gap: 6px; }
.phx-inspection-phone { color: #fff; font-size: 30px; font-weight: 900; letter-spacing: -0.01em; }
.phx-inspection-email { color: #fff; font-size: 15px; font-weight: 600; }
.phx-inspection-area { font-size: 13px; opacity: 0.9; color: #fff; }

/* Jetpack contact form wrapper - restyle to match the design */
.phx-form-panel {
  background: var(--ink); color: #201e1d; padding: 30px 28px;
}
.phx-form-panel .contact-form,
.phx-form-panel form.wp-block-jetpack-contact-form,
.phx-form-panel div[id^="contact-form"] { display: block; }
.phx-form-panel .grunion-field-label,
.phx-form-panel label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #4a4747; margin-bottom: 6px;
}
.phx-form-panel input[type="text"],
.phx-form-panel input[type="email"],
.phx-form-panel input[type="tel"],
.phx-form-panel input[type="date"],
.phx-form-panel select,
.phx-form-panel textarea {
  width: 100%; min-height: 44px; padding: 6px 10px; font: inherit; font-size: 14px; color: #201e1d;
  background: #fff; border: 1px solid #d7d3d3; border-radius: 0; box-sizing: border-box;
}
.phx-form-panel textarea { min-height: 90px; resize: vertical; }
.phx-form-panel .grunion-field,
.phx-form-panel p.contact-form-comment-area,
.phx-form-panel .contact-field { margin-bottom: 16px; }
.phx-form-panel input[type="submit"],
.phx-form-panel button[type="submit"] {
  background: linear-gradient(180deg, #2b2827 0%, #141312 100%); color: var(--ink); border: none;
  padding: 16px 20px; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; width: 100%; text-align: left;
}
.phx-form-panel input[type="submit"]:hover,
.phx-form-panel button[type="submit"]:hover { background: linear-gradient(180deg, #b91a02 0%, #96140a 100%); }
.phx-form-note { font-size: 12.5px; color: #605d5d; margin-top: -4px; margin-bottom: 16px; }

/* - footer - */
.phx-footer { background: linear-gradient(180deg, #1a1717 0%, #0d0c0c 100%); border-top: 2px solid var(--border); }
.phx-footer-grid {
  max-width: var(--max); margin: 0 auto; padding: 44px 24px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
}
.phx-footer-brand { display: grid; gap: 14px; align-content: start; }
.phx-footer-brand p { color: var(--ink-faint); font-size: 14px; max-width: 34ch; }
.phx-footer-col { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.phx-footer-col .phx-kicker { margin-bottom: 4px; }
.phx-footer-col a { color: var(--ink-dim); }
.phx-footer-col span { color: var(--ink-faint); }
.phx-footer-bottom { border-top: 2px solid var(--border-dim); }
.phx-footer-bottom-inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint);
}
.phx-footer-bottom-inner .phx-push { margin-left: auto; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .phx-hero { grid-template-columns: 1fr; }
  .phx-hero-copy { padding: 40px 0 32px; }
  .phx-hero-visual { border-left: none; border-top: 2px solid var(--border); min-height: 460px; }
  .phx-stats-grid { grid-template-columns: 1fr; }
  .phx-stat { border-right: none; border-bottom: 2px solid var(--border); }
  .phx-stat:last-child { border-bottom: none; }
  .phx-service-grid { grid-template-columns: 1fr; }
  .phx-service { border-right: none !important; padding: 28px 0; }
  .phx-claims-band { grid-template-columns: 1fr; }
  .phx-steps { grid-template-columns: 1fr; }
  .phx-step { border-right: none; }
  .phx-faq-wrap { grid-template-columns: 1fr; }
  .phx-faq-intro { border-right: none; padding: 32px 0; }
  .phx-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phx-price-tier:nth-child(2n) { border-right: none; }
  .phx-price-terms { grid-template-columns: 1fr; }
  .phx-price-term { border-right: none; }
  .phx-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phx-vetting-grid { grid-template-columns: 1fr; }
  .phx-inspection-inner { grid-template-columns: 1fr; }
  .phx-footer-grid { grid-template-columns: 1fr; }
  .phx-table { font-size: 13px; }
}

@media (max-width: 640px) {
  .phx-topbar { font-size: 10.5px; padding: 7px 16px; }
  .phx-wrap, .phx-nav, .phx-stats-grid, .phx-footer-grid, .phx-footer-bottom-inner, .phx-inspection-inner, .phx-compare-inner {
    padding-left: 16px; padding-right: 16px;
  }
  .phx-nav-links {
    display: none; width: 100%; order: 3; justify-content: flex-start;
    flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 14px; border-top: 1px solid var(--border-mid);
  }
  .phx-nav-links.is-open { display: flex; }
  .phx-nav-toggle { display: flex; }
  .phx-btn-nav { padding: 11px 14px; font-size: 11px; }
  .phx-hero-copy h1 { font-size: clamp(32px, 9vw, 46px); }
  .phx-gallery-grid { grid-template-columns: 1fr; }
  .phx-price-grid { grid-template-columns: 1fr; }
  .phx-price-tier { border-right: none; border-bottom: 2px solid var(--border); }
  .phx-table thead th:first-child { width: auto; }
  .phx-table { table-layout: auto; }
}

/* ==========================================================================
   Roof / Sheds / Fencing page additions
   ========================================================================== */

.phx-nav-links a[aria-current="page"] { color: var(--accent-2); }

/* - shared mid-page CTA band (roof/sheds/fencing) - */
.phx-cta-band {
  background: linear-gradient(135deg, #7c1405 0%, var(--accent-deep) 48%, var(--accent-deeper) 100%);
  margin-top: 72px;
}
.phx-cta-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.phx-cta-inner h2 { font-size: clamp(30px, 4vw, 52px); color: #fff; }
.phx-cta-actions { display: grid; gap: 14px; justify-items: start; }
.phx-cta-phone { color: #fff; font-size: 26px; font-weight: 900; }

/* ===== Roof: layer-by-layer ===== */
.phx-layer-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  border: 2px solid var(--border); margin-top: 36px;
}
.phx-layer-visual {
  padding: 22px; background: radial-gradient(125% 100% at 58% 8%, #332d2b 0%, #211d1c 42%, #100f0f 78%);
  min-height: 420px; display: flex; flex-direction: column;
}
.phx-layer-visual-hint {
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px;
}
.phx-layer-stack { flex: 1 1 auto; display: flex; flex-direction: column-reverse; border: 2px solid var(--border); }
.phx-layer-band {
  flex: 1; display: flex; align-items: center; padding: 0 16px; font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.04em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); border-top: 1px solid rgba(0,0,0,0.35);
}
.phx-layer-band:first-child { border-top: none; }
.phx-layer-list { border-left: 2px solid var(--border); display: grid; align-content: start; }
.phx-layer-item { border-top: 2px solid var(--border-dim); border-left: 4px solid transparent; padding: 18px 22px; }
.phx-layer-item:first-child { border-top: none; }
.phx-layer-item:hover, .phx-layer-item:focus-within { background: #1e1b1b; border-left-color: var(--accent); }
.phx-layer-head { display: flex; align-items: baseline; gap: 12px; }
.phx-layer-swatch { width: 12px; height: 12px; flex: none; }
.phx-layer-name { font-weight: 800; font-size: 16px; }
.phx-layer-spec { display: block; font-size: 13.5px; color: var(--ink-faint); padding-left: 24px; margin-top: 4px; }
.phx-layer-why { display: block; font-size: 13px; color: var(--ink-dim); padding-left: 24px; margin-top: 8px; }

.phx-failures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phx-failure { padding: 28px 22px 28px 0; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); display: grid; gap: 10px; align-content: start; }
.phx-failure:last-child { border-right: none; }
.phx-failure h4 { font-size: 19px; }
.phx-failure p { color: var(--ink-mute); font-size: 14.5px; }

.phx-decision { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phx-decision-col { padding: 32px 28px 32px 0; border-right: 2px solid var(--border); }
.phx-decision-col:last-child { border-right: none; padding-left: 28px; padding-right: 0; }
.phx-decision-col h3 { font-size: 22px; color: var(--accent-2); margin-bottom: 14px; }
.phx-decision-list { display: grid; gap: 12px; }
.phx-decision-list p { font-size: 15px; color: var(--ink-dim); border-top: 2px solid var(--border-dim); padding-top: 12px; }

/* ===== Sheds: configurator ===== */
.phx-shed-panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border: 2px solid var(--border); margin-top: 28px; }
.phx-shed-stage { position: relative; min-height: 540px; }
.phx-shed-estimate {
  position: absolute; left: 18px; bottom: 16px; border: 2px solid var(--border);
  background: rgba(15,14,14,0.9); padding: 12px 16px; display: grid; gap: 2px;
}
.phx-shed-estimate-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.phx-shed-estimate-value { font-size: 26px; font-weight: 900; color: var(--ink); }
.phx-shed-estimate-meta { font-size: 11px; color: var(--ink-faint); }
.phx-shed-config { border-left: 2px solid var(--border); display: grid; align-content: start; }
.phx-shed-group { padding: 20px 22px; border-bottom: 2px solid var(--border-dim); display: grid; gap: 10px; }
.phx-shed-group:last-child { border-bottom: none; }
.phx-shed-group-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; }
.phx-shed-row { display: flex; flex-wrap: wrap; gap: 7px; }

.phx-shed-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.phx-shed-spec { padding: 26px 22px 26px 0; border-right: 2px solid var(--border); border-bottom: 2px solid var(--border); display: grid; gap: 8px; align-content: start; }
.phx-shed-spec:nth-child(3n) { border-right: none; }
.phx-shed-spec h4 { font-size: 18px; }
.phx-shed-spec p { color: var(--ink-mute); font-size: 14.5px; }
.phx-permit-note { color: var(--ink-faint); font-size: 14px; padding-top: 22px; max-width: 80ch; }

/* ===== Fencing ===== */
.phx-fence-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); border: 2px solid var(--border); margin-top: 28px; }
.phx-fence-stage { position: relative; min-height: 520px; }
.phx-fence-caption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; border-top: 2px solid var(--border);
  padding-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline;
  background: linear-gradient(to top, rgba(15,14,14,0.92), rgba(15,14,14,0));
}
.phx-fence-name { font-size: 20px; font-weight: 900; }
.phx-fence-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.phx-fence-list { border-left: 2px solid var(--border); display: grid; align-content: start; }
.phx-fence-style {
  text-align: left; cursor: pointer; border: none; border-top: 2px solid var(--border-dim);
  border-left: 4px solid transparent; background: transparent; color: var(--ink); padding: 14px 18px;
  font: inherit; display: block; width: 100%;
}
.phx-fence-style:first-child { border-top: none; }
.phx-fence-style[aria-pressed="true"] { border-left-color: var(--accent); background: #1e1b1b; }
.phx-fence-style-label { display: block; font-weight: 800; font-size: 14.5px; }
.phx-fence-style-meta { display: block; font-size: 12px; color: var(--ink-faint); margin-top: 2px; }

.phx-install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phx-install-item { padding: 24px 24px 24px 0; border-top: 2px solid var(--border-dim); display: grid; gap: 8px; align-content: start; }
.phx-install-item:nth-child(2n) { padding-left: 24px; padding-right: 0; }
.phx-install-item h4 { font-size: 18px; }
.phx-install-item p { color: var(--ink-mute); font-size: 14.5px; }

@media (max-width: 900px) {
  .phx-cta-inner { grid-template-columns: 1fr; }
  .phx-layer-panel { grid-template-columns: 1fr; }
  .phx-layer-visual { min-height: 260px; }
  .phx-failures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phx-failure:nth-child(2n) { border-right: none; }
  .phx-decision { grid-template-columns: 1fr; }
  .phx-decision-col { border-right: none; padding-right: 0; }
  .phx-decision-col:last-child { padding-left: 0; }
  .phx-shed-panel { grid-template-columns: 1fr; }
  .phx-shed-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phx-shed-spec:nth-child(3n) { border-right: 2px solid var(--border); }
  .phx-shed-spec:nth-child(2n) { border-right: none; }
  .phx-fence-panel { grid-template-columns: 1fr; }
  .phx-install-grid { grid-template-columns: 1fr; }
  .phx-install-item:nth-child(2n) { padding-left: 0; }
}

@media (max-width: 640px) {
  .phx-failures { grid-template-columns: 1fr; }
  .phx-failure { border-right: none !important; }
  .phx-shed-specs { grid-template-columns: 1fr; }
  .phx-shed-spec { border-right: none !important; }
}
/* Hero 3D zoom buttons (device-independent zoom fallback, added alongside pinch-to-zoom) */
.phx-hero-zoom {
  position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 5;
}
.phx-hero-zoom-btn {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(18,16,16,0.82); border: 2px solid var(--border-mid); color: var(--ink);
  font-family: var(--font); font-size: 19px; font-weight: 700; line-height: 1; cursor: pointer;
  border-radius: 0; -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none;
}
.phx-hero-zoom-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.phx-hero-zoom-btn:active { background: var(--accent-deep); color: var(--ink); border-color: var(--accent); }
