/* Tailor Made Contracting — light, black, and metallic gold */

:root {
  --ink: #1c1915;
  --ink-soft: #4e483f;
  --muted: #6f675c;
  --paper: #f4f0e8;
  --paper-deep: #ebe4d8;
  --white: #fffcf8;
  --line: #e3d9cb;
  --gold: #b08a3e;
  --gold-bright: #e4c78a;
  --gold-mid: #c6a15b;
  --gold-deep: #7c5d28;
  --black: #11100e;
  --black-soft: #1c1b18;
  --danger: #8d2f2f;
  --header-h: 7.5rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-ui: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 16px 40px rgba(28, 25, 21, 0.06);
  --glow: 0 0 0 1px rgba(90, 62, 18, 0.28), 0 10px 26px rgba(166, 124, 46, 0.26), 0 0 20px rgba(201, 162, 74, 0.34);
  --glow-strong: 0 0 0 1px rgba(90, 62, 18, 0.4), 0 16px 34px rgba(166, 124, 46, 0.36), 0 0 32px rgba(212, 175, 95, 0.5);
  --glow-quiet: 0 0 0 1px rgba(90, 62, 18, 0.22), 0 8px 18px rgba(166, 124, 46, 0.18), 0 0 12px rgba(201, 162, 74, 0.22);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(198, 161, 91, 0.16), transparent 55%),
    var(--paper);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}

body.has-mobile-cta { padding-bottom: 4.75rem; }

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

a { color: var(--gold-deep); text-underline-offset: 0.18em; }

a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  background: var(--gold-mid);
  color: var(--black);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

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

.internal-preview-banner {
  margin: 0;
  padding: 0.7rem 1rem;
  background: #5c3b16;
  color: #fff8ea;
  text-align: center;
  font-size: 0.92rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0 0 1rem; }
h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.4rem; }

.section { padding: 4.5rem 0; }
.section-inner { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; min-width: 0; }
.section-label {
  margin: 0 0 0.55rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.section-intro { max-width: 42rem; color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 1.75rem; }

.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.path-grid a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.path-grid a:hover { border-color: var(--gold); color: var(--ink); }
.path-grid strong { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 560; margin-bottom: 0.25rem; }
.path-grid span { color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}

.btn-primary {
  background: var(--black);
  color: #f6edd8;
  border-color: #2a2418;
}

.btn-primary:hover { background: #2a241c; color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c9bfb0;
}

.btn-block { width: 100%; }

/* Primary conversion buttons only */
.btn-conversion {
  background: linear-gradient(180deg, #f3ddb0 0%, #d7b46e 46%, #b4893c 100%);
  color: #1a140c;
  border: 1px solid #f6e6c4;
  box-shadow: var(--glow);
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.35);
}

.btn-conversion:hover {
  color: #1a140c;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--glow-strong);
}

.btn-conversion:active {
  color: #1a140c;
  transform: translateY(0) scale(0.98);
  box-shadow: var(--glow-quiet);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 12, 11, 0.96);
  border-bottom: 1px solid rgba(212, 175, 95, 0.35);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.logo { display: flex; align-items: center; min-width: 0; }
.logo img { width: min(320px, 42vw); height: auto; }

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 199, 138, 0.45);
  background: transparent;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--gold-bright);
}

.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.site-nav ul {
  display: flex;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: #f4ead7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a[aria-current="true"] { color: var(--gold-bright); }
.site-nav a:hover { color: white; }

.hero { padding: 2.5rem 0 3.5rem; }
.hero-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-kicker {
  margin: 0 0 0.8rem;
  color: var(--gold-deep);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero-lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; margin: 0 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-photo {
  margin: 0;
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.hero-photo figcaption { padding: 0.75rem 1rem 1rem; color: var(--muted); font-size: 0.92rem; }

.reason-grid, .benefit-list, .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reason-card, .benefit-list li, .trust-card, .process-list li, .faq-item, .window-option-card, .estimator-panel, .specialty-card, .arizona-panel, .form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.reason-card, .benefit-list li, .trust-card { padding: 1.25rem 1.3rem 1.35rem; }
.reason-card p, .benefit-list p, .trust-card p { margin: 0; color: var(--ink-soft); }
.benefit-list { counter-reset: none; }
.benefit-index, .process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #f6edd8;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.band { background: #fffaf3; border-block: 1px solid var(--line); }

.options-note, .imagery-rights-note, .glance-note, .estimator-role, .estimator-disclaimer, .contact-disclosure, .form-note {
  color: var(--muted);
  font-size: 0.98rem;
}

.table-wrap { display: block; width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); contain: inline-size; }
table { width: 100%; border-collapse: collapse; min-width: 46rem; font-size: 0.95rem; }
th, td { padding: 0.75rem 0.8rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #faf6ef; font-weight: 700; }
caption { text-align: left; padding: 0.8rem; font-weight: 700; }

.glance-cards { display: none; }
.glance-block { margin: 1.5rem 0 2rem; }

.window-option-grid { display: grid; gap: 1.25rem; }
.window-option-card { padding: 1rem; }
.window-option-card h3 { margin-top: 0.2rem; }
.option-positioning { margin: 0 0 0.4rem; color: var(--gold-deep); font-weight: 700; }
.option-fit, .option-price, .option-highlights { color: var(--ink-soft); }
.option-highlights { margin: 0 0 1rem; padding-left: 1.1rem; }
.option-price { font-weight: 700; color: var(--ink); }

.product-gallery-stage {
  position: relative;
  background: #f7f3ec;
  border-radius: 14px;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-gallery-image { width: 100%; max-height: 340px; object-fit: contain; }
.gallery-badge { position: absolute; top: 0.7rem; left: 0.7rem; }
.gallery-controls {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: flex;
  gap: 0.35rem;
}
.gallery-controls button, .ba-control, .ba-dot, .gallery-thumb {
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.94);
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}
.product-gallery-caption { color: var(--muted); font-size: 0.92rem; margin: 0.55rem 0; }
.gallery-thumbs { display: flex; gap: 0.45rem; overflow-x: auto; padding-bottom: 0.2rem; }
.gallery-thumb { padding: 0.25rem; border-radius: 10px; min-width: 5.4rem; }
.gallery-thumb img { width: 4.6rem; height: 3.4rem; object-fit: cover; border-radius: 7px; }
.gallery-thumb-label { display: block; font-size: 0.72rem; max-width: 4.8rem; }
.gallery-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.feature-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f6edd8;
  color: var(--gold-deep);
  margin-right: 0.25rem;
}
.feature-key { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.8rem 0; }
.option-tech-lead { color: var(--muted); font-size: 0.92rem; }
.option-details { border-top: 1px solid var(--line); }
.option-details summary { cursor: pointer; padding: 0.75rem 0; font-weight: 700; }
.option-details-body { padding: 0 0 0.8rem; color: var(--ink-soft); }
.option-callout { background: #faf6ef; border-radius: 10px; padding: 0.7rem 0.8rem; }

.arizona-panel, .specialty-card { padding: 1.2rem 1.3rem; margin-top: 1.25rem; }
.specialty-figure img { width: min(100%, 280px); border-radius: 12px; background: #f7f3ec; }
.specialty-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.process-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 1rem 1.1rem; align-items: start; }
.process-step { margin: 0; }

.brand-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.brand-card {
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.9rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.brand-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.brand-card-name, .brand-card-tier { display: block; }
.brand-card-tier { color: var(--muted); margin-top: 0.25rem; font-size: 0.92rem; }
.estimator-panel { padding: 1.2rem; }
.estimator-fields, .contact-inner { display: grid; gap: 1rem; }
.estimator-fields { grid-template-columns: 1fr 1fr; }
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
label, legend { font-weight: 700; }
input, select, textarea {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  width: 100%;
}
textarea { resize: vertical; }
.field-hint, .interest-note { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0; }
.field-error { color: var(--danger); margin: 0.2rem 0 0; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1rem; }
.interest-option { font-weight: 500; display: flex; gap: 0.45rem; align-items: flex-start; }
.interest-option input { width: auto; margin-top: 0.25rem; }
.estimator-result {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: #faf6ef;
}
.result-label { margin: 0; color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.result-range { margin: 0.2rem 0 0.6rem; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.result-range.is-withheld { font-size: 1.35rem; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0; }
.result-meta dt { color: var(--muted); font-size: 0.85rem; }
.result-meta dd { margin: 0; font-weight: 700; }
.estimator-selection-status:empty { display: none; }

.contact-inner { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.form-panel, .contact-intro { padding: 1.2rem; }
.contact-intro { background: transparent; border: 0; box-shadow: none; padding: 0; }
.contact-details { display: grid; gap: 0.7rem; }
.contact-details div { margin: 0; }
.contact-details dt { color: var(--muted); font-size: 0.85rem; }
.contact-details dd { margin: 0; font-weight: 700; }
.inquiry-summary { background: #faf6ef; border-radius: 12px; padding: 0.8rem; }
.form-status { min-height: 1.2rem; font-weight: 700; }
.form-status.is-info { color: var(--gold-deep); }
.form-success { padding: 0.5rem 0; }
.optional { font-weight: 500; color: var(--muted); }

.trust-flag {
  display: inline-block;
  margin-bottom: 0.45rem;
  background: #f6edd8;
  color: var(--gold-deep);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust-card { border-style: dashed; }

.faq-list { display: grid; gap: 0.7rem; }
.faq-item { padding: 0.3rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 0.85rem 0; }
.faq-item p { margin: 0 0 0.9rem; color: var(--ink-soft); }

.site-footer {
  background: var(--black);
  color: #f4ead7;
  padding: 2.5rem 0 2rem;
}
.footer-inner { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; display: grid; gap: 1rem; }
.footer-logo { width: min(280px, 70vw); height: auto; }
.footer-tag, .footer-meta { color: #d9ccb6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; }
.footer-nav a { color: #f4ead7; text-decoration: none; font-weight: 600; }
.copyright { color: #b7ab97; }

.mobile-cta {
  display: none;
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 90;
  min-height: 3.1rem;
}

.gallery-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(960px, calc(100% - 1.5rem));
}
.gallery-dialog::backdrop { background: rgba(12, 12, 11, 0.72); }
.gallery-dialog-inner {
  background: var(--white);
  border-radius: 18px;
  padding: 0.8rem;
}
.gallery-dialog-inner img { width: 100%; max-height: 72vh; object-fit: contain; background: #f7f3ec; border-radius: 12px; }
.gallery-dialog-caption { color: var(--ink-soft); }

body:not(.is-internal-preview) .planning-price { display: none; }
body.is-internal-preview .price-withheld { display: none; }

.reveal { opacity: 0; transform: translateY(10px); animation: rise 0.6s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Before-and-after, shown only in internal preview */
.ba-carousel { display: grid; gap: 0.8rem; }
.ba-carousel-toolbar, .ba-toolbar-actions, .ba-dots { display: flex; gap: 0.45rem; align-items: center; flex-wrap: wrap; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.ba-frame { margin: 0; position: relative; }
.ba-media, .ba-placeholder {
  min-height: 180px;
  border-radius: 12px;
  background: #f7f3ec;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}
.ba-label { position: absolute; top: 0.5rem; left: 0.5rem; background: var(--black); color: #f6edd8; border-radius: 999px; padding: 0.1rem 0.45rem; font-size: 0.75rem; }
.ba-placeholder-file { color: var(--muted); font-size: 0.85rem; }

@media (max-width: 980px) {
  .hero-grid, .contact-inner, .reason-grid, .benefit-list, .trust-grid, .brand-card-grid, .estimator-fields, .interest-grid, .ba-pair, .path-grid {
    grid-template-columns: 1fr;
  }
  .logo img { width: min(300px, 68vw); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #161512;
    padding: 0.8rem 1rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 95, 0.3);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.7rem 0.2rem; }
  .header-cta { margin-top: 0.4rem; }
  body { padding-bottom: 5rem; }
  .mobile-cta { display: inline-flex; }
  html { scroll-padding-top: 12rem; }
  .btn-conversion { box-shadow: var(--glow-quiet); }
  .btn-conversion:hover { box-shadow: var(--glow); }
  .section { padding: 3.2rem 0; }
  .header-inner { align-items: center; }
}

@media (min-width: 860px) {
  .window-option-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
    column-gap: 1.25rem;
    align-items: start;
  }
  .product-gallery { grid-column: 1; grid-row: 1 / span 7; }
  .option-details, .feature-key, .option-tech-lead, .use-in-estimator-btn { grid-column: 1 / -1; }
  .use-in-estimator-btn { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn-conversion:hover,
  .btn-conversion:active { transform: none; }
  .reveal { opacity: 1; transform: none; }
}
