/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea { font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; }

/* Santa Barbara Epoxy Floors — ink, antique gold & sand */
:root {
  --ink: #1A1E29;
  --ink-2: #262B38;
  --gold: #B0771A;
  --gold-dark: #8C5E12;
  --gold-soft: #F6EBD3;
  --sand: #F6F1E7;
  --stone: #ECE6DA;
  --paper: #FFFFFF;
  --text: #2B2F38;
  --muted: #646A75;
  --line: #DDD5C6;
  --radius: 14px;
  --maxw: 1200px;
  --display: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, system-ui, sans-serif;
}
body { font-family: var(--sans); color: var(--text); background: var(--paper); line-height: 1.7; font-size: 17px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .7rem; }
h3 { font-family: var(--sans); font-weight: 800; font-size: 1.12rem; margin-bottom: .4rem; }
p { margin-bottom: 1rem; }
a { color: var(--gold-dark); }
strong { color: var(--ink); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: 860px; }
.section { padding: 5rem 0; }
.section.alt { background: var(--sand); }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark); font-weight: 800; margin-bottom: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 1rem; line-height: 1.2; white-space: nowrap; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-call:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.small { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.call-icon { width: 18px; height: 18px; flex: none; }

/* top bar + header */
.topbar { background: var(--ink); color: #CBC6BC; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }
.site-header { background: var(--sand); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 86px; }
.brand img { width: 204px; height: auto; }
.main-nav > ul { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.main-nav > ul > li > a { padding: 1.9rem 0; display: inline-block; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-dark); }
.has-drop { position: relative; }
.drop { display: none; position: absolute; top: 100%; left: -1.2rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(26,30,41,.16); padding: 1rem 1.2rem; z-index: 60; min-width: 280px; }
.drop.mega { display: none; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 1.4rem; min-width: 720px; }
.has-drop:hover .drop, .has-drop.is-open .drop { display: block; }
.has-drop:hover .drop.mega, .has-drop.is-open .drop.mega { display: grid; }
.drop-label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 800; margin-bottom: .4rem; }
.drop a { display: block; padding: .35rem 0; font-weight: 600; font-size: .92rem; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: #fff; text-decoration: none; font-weight: 800; padding: .7rem 1.1rem; border-radius: 999px; white-space: nowrap; }
.header-phone:hover { background: var(--gold-dark); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.menu-btn-bars span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.nav-backdrop { display: none; }

/* hero */
.hero { background: var(--sand); padding: 3.5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.6rem; max-width: 34rem; }
.hero-points { margin-top: 1.6rem; display: grid; gap: .5rem; }
.hero-points li { padding-left: 1.7rem; position: relative; font-weight: 600; color: var(--ink); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.hero-photo { position: relative; }
.hero-photo { padding: 0 0 18px 18px; }
.hero-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: calc(100% - 18px); height: calc(100% - 18px); border: 2px solid var(--gold); border-radius: 22px; }
.hero-photo img { position: relative; border-radius: 22px; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(26,30,41,.22); }

/* doors */
.doors { margin-top: -2.5rem; position: relative; z-index: 2; }
.doors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.door { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; min-height: 320px; box-shadow: 0 16px 40px rgba(26,30,41,.18); }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; transition: transform .5s; }
.door:hover img { transform: scale(1.03); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,30,41,.88) 0%, rgba(26,30,41,.55) 45%, rgba(26,30,41,0) 75%); }
.door-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .5rem; padding: 2rem; max-width: 60%; color: #fff; }
.door-kicker { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: #E8C27A; }
.door-title { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; }
.door-link { font-weight: 800; margin-top: .4rem; }

/* intro + form */
.intro-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3.5rem; align-items: start; }
.takeaways { background: var(--sand); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.3rem 1.5rem; margin-top: 1.5rem; }
.takeaways-title { font-weight: 800; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
.takeaways li { padding-left: 1.4rem; position: relative; margin-bottom: .4rem; }
.takeaways li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-dark); font-weight: 800; }

/* form */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 22px 50px rgba(26,30,41,.12); position: relative; }
.form-card::before { content: ""; position: absolute; left: 1.8rem; right: 1.8rem; top: -1px; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.form-title { font-family: var(--display); color: var(--ink); font-size: 1.6rem; line-height: 1.2; margin-bottom: .3rem; }
.form-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form textarea { width: 100%; padding: .75rem .9rem; border: 1px solid #CFC6B5; border-radius: 10px; background: #FCFBF8; margin-bottom: .65rem; font-size: .98rem; }
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.form-checkbox-group { border: 0; margin-bottom: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; }
.form-checkbox-group legend { grid-column: 1 / -1; font-weight: 800; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.form-option { font-size: .88rem; display: flex; gap: .45rem; align-items: center; }
.form-option input { accent-color: var(--gold); }
.form-required-badge { color: #A33; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.form-checkbox-hint { color: var(--muted); font-weight: 500; font-size: .78rem; }
.form-consent { display: flex; gap: .5rem; font-size: .84rem; align-items: flex-start; margin: .4rem 0; }
.form-consent input { margin-top: .3rem; accent-color: var(--gold); }
.form-consent-note { font-size: .72rem; color: var(--muted); margin: .3rem 0 .9rem; line-height: 1.45; }
.lead-form button[type=submit] { width: 100%; background: var(--ink); color: #fff; border: 0; padding: 1rem; font-size: 1.05rem; font-weight: 800; border-radius: 999px; cursor: pointer; }
.lead-form button[type=submit]:hover { background: var(--ink-2); }
button.is-incomplete { opacity: .6; }
button.is-sending { opacity: .7; cursor: wait; }
.form-status { font-size: .9rem; margin: .6rem 0 0; min-height: 1.2em; }
.field-error { color: #A33; font-size: .78rem; display: block; margin: -.4rem 0 .5rem; }
.is-invalid { border-color: #A33 !important; }

/* services */
.group-title { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 2.2rem 0 1.1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.svc-grid.two { grid-template-columns: repeat(2, 1fr); }
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(26,30,41,.14); }
.svc-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right bottom; }
.svc-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.svc-name { font-weight: 800; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.svc-blurb { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.svc-grid.two .svc-card { flex-direction: row; }
.svc-grid.two .svc-img { flex: 0 0 46%; }
.svc-grid.two .svc-img img { height: 100%; aspect-ratio: auto; min-height: 200px; }
.svc-grid.two .svc-body { justify-content: center; }
.svc-more { margin-top: auto; padding-top: .4rem; font-weight: 800; color: var(--gold-dark); font-size: .9rem; }

/* compare table + prose tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
tbody tr:nth-child(even) { background: #FBF9F4; }
.compare tbody th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.prose table { margin: 1.2rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: table; }

/* guide with sticky toc */
.guide { display: grid; grid-template-columns: 250px 1fr; gap: 3.5rem; align-items: start; }
.toc { position: sticky; top: 110px; background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.3rem; }
.toc-title { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--gold-dark); margin-bottom: .6rem; }
.toc ol { counter-reset: toc; margin-bottom: 1rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; padding: .35rem 0; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.toc a::before { content: counter(toc, decimal-leading-zero); color: var(--gold); font-weight: 800; font-size: .78rem; padding-top: .1rem; }
.toc a:hover, .toc a.is-active { color: var(--ink); }
.guide-section { padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.guide-section:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-fig { margin: 1.4rem 0 1.6rem; }
.guide-fig img { width: 100%; border-radius: var(--radius); }

/* prose */
.prose h2 { margin-top: .2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 0; }
.prose ul li { padding-left: 1.4rem; position: relative; margin-bottom: .45rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; padding-left: 2rem; position: relative; margin-bottom: .5rem; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: .1rem; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* areas */
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: border-color .2s, transform .2s; }
.area:hover { border-color: var(--gold); transform: translateY(-3px); }
.area-name { font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.area-more { font-size: .88rem; font-weight: 700; color: var(--gold-dark); }
.other-areas { margin-top: 2rem; color: var(--muted); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; font-weight: 800; color: var(--ink); position: relative; line-height: 1.45; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-size: 1.5rem; font-weight: 400; color: var(--gold-dark); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.2rem; }

/* cta band */
.cta-band { background: var(--ink); color: #D9D4CA; padding: 4rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 36rem; }

/* inner pages */
.page-hero { background: var(--ink); color: #D9D4CA; padding: 3.5rem 0; }
.page-hero.slim { padding: 3rem 0; }
.page-hero h1 { color: #fff; margin: .4rem 0 .8rem; }
.page-hero .lead { font-size: 1.1rem; max-width: 40rem; margin-bottom: 1.5rem; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.page-hero-photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: right bottom; box-shadow: 0 24px 50px rgba(0,0,0,.35); }
.crumbs { font-size: .85rem; color: #A9A49A; margin: 0; }
.crumbs a { color: #E8C27A; text-decoration: none; }
.with-side { display: grid; grid-template-columns: 1fr 380px; gap: 3.5rem; align-items: start; }
.side-col { position: sticky; top: 110px; }
.checks li::before { content: "✓" !important; background: none !important; transform: none !important; color: var(--gold-dark); font-weight: 800; top: 0 !important; left: 0 !important; width: auto !important; height: auto !important; }
.best-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: .6rem 0 2rem; }
.best { background: var(--sand); border-radius: var(--radius); padding: 1.2rem; }
.best h3 { margin-top: 0 !important; font-size: 1rem; }
.best p { margin: 0; font-size: .93rem; color: var(--muted); }
.steps { margin-top: .6rem; }
.steps li h3 { margin: 0 0 .2rem !important; font-size: 1.02rem; }
.steps li p { margin-bottom: .4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-img img { border-radius: var(--radius); width: 100%; }
.note { background: var(--sand); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; margin: 1rem 0 1.4rem; line-height: 1.6; }

/* footer */
.site-footer { background: #12151D; color: #A9A49A; padding: 4rem 0 1.6rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 2.5rem; }
.footer-logo { background: var(--sand); border-radius: 12px; padding: .7rem 1rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 190px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul li { margin-bottom: .35rem; }
.site-footer a { color: #D9D4CA; text-decoration: none; }
.site-footer a:hover { color: #E8C27A; }
.footer-nap { line-height: 1.7; }
.footer-nap strong { color: #fff; }
.footer-bottom { border-top: 1px solid #2A2F3B; margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .84rem; }
.footer-bottom p { margin: 0; }
.floating-phone { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--gold); color: #fff; display: none; align-items: center; gap: .5rem; padding: .8rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 800; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.floating-phone.is-visible { display: flex; }

/* responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .guide { grid-template-columns: 1fr; }
  .toc { position: static; }
  .with-side { grid-template-columns: 1fr; }
  .side-col { position: static; }
}
@media (max-width: 980px) {
  .menu-btn { display: block; position: relative; z-index: 80; }
  .header-phone .phone-num { display: none; }
  .header-phone { padding: .7rem; }
  .main-nav { position: fixed; top: 0; right: -340px; width: 320px; height: 100%; background: var(--sand); padding: 5.5rem 1.5rem 2rem; transition: right .25s; z-index: 70; overflow-y: auto; box-shadow: -10px 0 30px rgba(0,0,0,.2); }
  .main-nav.is-open { right: 0; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .main-nav > ul > li > a { padding: .6rem 0; }
  .drop, .drop.mega { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 .5rem .8rem; min-width: 0; }
  .has-drop:hover .drop, .has-drop:hover .drop.mega { display: none; }
  .has-drop.is-open .drop, .has-drop.is-open:hover .drop { display: block; }
  .has-drop.is-open .drop.mega, .has-drop.is-open:hover .drop.mega { display: block; }
  .drop-label { margin-top: .6rem; }
  .nav-backdrop.is-visible { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 65; }
  .topbar-areas { display: none; }
  .hero-grid, .intro-grid, .page-hero-grid, .split { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; }
  .hero-photo { padding: 0 0 12px 12px; }
  .hero-photo::before { width: calc(100% - 12px); height: calc(100% - 12px); border-radius: 18px; }
  .hero-photo img { border-radius: 18px; }
  .doors { margin-top: 0; padding-top: 1.5rem; }
  .doors-grid { grid-template-columns: 1fr; }
  .best-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
  .brand img { width: 168px; }
  .header-inner { min-height: 72px; }
  .topbar { display: none; }
  .hero { padding: 1.5rem 0 3rem; }
  .btn-row { flex-direction: column; align-items: stretch; max-width: 420px; }
  .btn { width: 100%; }
  .door { min-height: 260px; }
  .door-text { max-width: 85%; padding: 1.5rem; }
  .door::after { background: linear-gradient(90deg, rgba(26,30,41,.9) 0%, rgba(26,30,41,.6) 60%, rgba(26,30,41,.25) 100%); }
  .svc-grid, .svc-grid.two, .svc-grid.three { grid-template-columns: 1fr; }
  .svc-grid.two .svc-card { flex-direction: column; }
  .svc-grid.two .svc-img img { aspect-ratio: 3 / 2; min-height: 0; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .form-checkbox-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.4rem; }
  .cta-band .btn-row { width: 100%; }
}
