/* Revival Kitchen & Bath — site styles */

:root {
  --ink: #17232c;
  --ink-2: #3a4853;
  --muted: #6a7680;
  --slate: #305874;
  --slate-deep: #1e3b50;
  --slate-ink: #13283a;
  --brass: #b08d57;
  --brass-soft: #d9c39c;
  --ivory: #f8f6f1;
  --sand: #efe9df;
  --stone: #e2dbcf;
  --white: #fff;
  --line: rgba(23, 35, 44, .12);
  --line-light: rgba(255, 255, 255, .16);

  --sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --display: var(--sans); /* headlines use the logo's geometric face */

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(19, 40, 58, .06), 0 12px 32px rgba(19, 40, 58, .08);
  --shadow-lg: 0 2px 4px rgba(19, 40, 58, .06), 0 30px 60px rgba(19, 40, 58, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 84px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(84px, 10vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--slate); color: #fff; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--slate); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.bg-sand { background: var(--sand); }
.bg-white { background: var(--white); }
.bg-slate { background: var(--slate-ink); color: #fff; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font: 600 12px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--slate);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.bg-slate .eyebrow, .cta-band .eyebrow { color: var(--brass-soft); }
h1, h2, h3 { margin: 0; font-weight: 400; color: inherit; }
.display {
  font: 300 clamp(46px, 6.4vw, 92px)/1 var(--display); letter-spacing: -.04em;
}
/* <em> in a headline = the words that pop: semibold, brand blue, never italic. */
.display em, .h2 em, .statement em, .form-card h2 em { font-style: normal; font-weight: 600; color: var(--slate); }
.bg-slate .h2 em, .promo .h2 em, .cta-band .h2 em { color: var(--brass-soft); }
.h2 { font: 300 clamp(34px, 4.2vw, 56px)/1.08 var(--display); letter-spacing: -.035em; }
.h3 { font: 500 22px/1.25 var(--sans); letter-spacing: -.01em; }
.lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 36em; margin: 24px 0 0; }
.bg-slate .lede { color: rgba(255, 255, 255, .78); }
.muted { color: var(--muted); }
.prose p { margin: 0 0 1.1em; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.section-head { display: grid; gap: 0; max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr; gap: 24px; align-items: end; }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .section-head.split .lede { margin: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--slate); color: #fff; box-shadow: 0 10px 24px -10px rgba(48, 88, 116, .7); }
.btn-primary:hover { background: var(--slate-deep); }
.btn-outline { border-color: rgba(23, 35, 44, .22); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--slate-ink); }
.btn-light:hover { background: var(--brass-soft); }
.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--slate-ink); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--slate); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(248, 246, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(19, 40, 58, .05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--slate); text-decoration: none; flex: none; }
.brand { align-self: flex-start; margin-top: 10px; position: relative; z-index: 2; }
/* Large logo that hangs below the header bar at the top of the page (header height is unchanged,
   so content doesn't move); it shrinks back into the bar once the page scrolls. */
.brand img { height: 112px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand img { height: 64px; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a {
  position: relative; display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; transition: color .2s;
}
.nav a::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--slate);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--slate); }
.header-cta { display: none; }
.menu-toggle {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer;
}
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background .2s; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--ivory); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a.m-link {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0; text-decoration: none;
  font: 300 30px/1.15 var(--display); letter-spacing: -.03em;
}
.mobile-menu a.m-link svg { width: 22px; height: 22px; flex: none; color: var(--slate); opacity: .7; }
.mobile-menu a.m-link[aria-current="page"] { color: var(--slate); font-weight: 600; }
.mobile-menu .btn { width: 100%; }
.menu-open { overflow: hidden; }

/* Six nav items + the CTA need ~1200px; below that, use the menu button. */
@media (min-width: 1200px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (max-width: 599px) {
  :root { --header-h: 72px; }
  .brand { margin-top: 8px; }
  .brand img { height: 84px; }
  .site-header.scrolled .brand img { height: 54px; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 112px); overflow: clip; }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero .display { margin-top: 4px; }
.hero-media { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch { position: absolute; inset: -24px -24px auto auto; width: 62%; aspect-ratio: 1; border: 1px solid var(--brass); border-radius: 50%; opacity: .35; z-index: -1; }
.hero-card {
  position: absolute; left: clamp(-56px, -4vw, -16px); bottom: 40px; width: min(340px, 78%);
  background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-lg);
}
.hero-card blockquote { margin: 0; font: 400 18px/1.45 var(--display); letter-spacing: -.01em; color: var(--ink); }
.hero-card cite { display: block; margin-top: 12px; font: 500 13px/1.3 var(--sans); font-style: normal; color: var(--muted); letter-spacing: .02em; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--brass); }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-frame { aspect-ratio: 4 / 4.6; }
}
@media (max-width: 959px) {
  .hero-card { left: 16px; bottom: 16px; }
  .hero-arch { display: none; }
}

/* ---------- Trust bar ---------- */
.trust { background: var(--slate-ink); color: #fff; }
.trust ul {
  list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px;
}
.trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--brass-soft); }
@media (min-width: 900px) {
  .trust ul { grid-template-columns: repeat(5, auto); justify-content: space-between; }
}

/* ---------- Service cards ---------- */
.services-grid { display: grid; gap: 22px; }
.service-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .media { aspect-ratio: 4 / 3; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .body { padding: 26px 26px 30px; display: grid; gap: 12px; flex: 1; align-content: start; }
.service-card .num { font: 600 13px/1 var(--display); letter-spacing: .14em; color: var(--brass); }
.service-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
@media (min-width: 680px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Before / after ---------- */
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); user-select: none; touch-action: pan-y;
  aspect-ratio: 4 / 3; --pos: 50%;
}
/* Photos never size the box: the frame's aspect ratio (or grid cell) does. */
.ba img, .ba-toggle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba .ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .25);
}
.ba .ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23305874' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.ba.settling .ba-before { transition: clip-path .6s var(--ease); }
.ba.settling .ba-handle { transition: left .6s var(--ease); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-tag {
  position: absolute; top: 16px; z-index: 2; padding: 7px 12px; border-radius: 999px; pointer-events: none;
  background: rgba(19, 40, 58, .62); backdrop-filter: blur(6px); color: #fff; font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.ba-tag.l { left: 16px; }
.ba-tag.r { right: 16px; }

/* Toggle variant for photo pairs that weren't shot from the same spot */
.ba-toggle { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); aspect-ratio: 4 / 3; }
.ba-toggle img { transition: opacity .6s var(--ease); }
.ba-toggle .t-before { opacity: 0; }
.ba-toggle.show-before .t-before { opacity: 1; }
.ba-switch {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; padding: 4px; border-radius: 999px;
  background: rgba(19, 40, 58, .62); backdrop-filter: blur(6px);
}
.ba-switch button {
  border: 0; background: none; color: rgba(255, 255, 255, .8); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.ba-switch button[aria-pressed="true"] { background: #fff; color: var(--slate-ink); }

/* ---------- Home: transformations ---------- */
.transform-grid { display: grid; gap: 22px; }
.transform-grid .ba, .transform-grid .ba-toggle { aspect-ratio: 4 / 3; }
.transform-grid .feature { aspect-ratio: 16 / 11; }
@media (min-width: 960px) {
  /* The feature's 4:3 frame sets the height; the two side frames split it. */
  .transform-grid { grid-template-columns: 1.6fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .transform-grid .feature { grid-row: span 2; aspect-ratio: 4 / 3; }
  .transform-grid > :not(.feature) { aspect-ratio: auto; height: 100%; }
}
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.caption strong { font-weight: 500; color: var(--ink); }

/* ---------- Split feature ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame.wide { aspect-ratio: 3 / 2; }
.split-media .inset {
  position: absolute; right: -24px; bottom: -32px; width: 44%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  border: 8px solid var(--ivory); box-shadow: var(--shadow-lg);
}
.bg-sand .split-media .inset { border-color: var(--sand); }
.bg-white .split-media .inset { border-color: #fff; }
.split-media .inset img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media { order: 2; }
}
@media (max-width: 959px) {
  .split-media .inset { right: 12px; bottom: -24px; width: 40%; }
}

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); grid-row: span 2;
  font: 300 30px/1 var(--display); letter-spacing: -.02em; color: var(--brass);
}
.steps h3 { font: 500 19px/1.3 var(--sans); }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.bg-slate .steps li { border-color: var(--line-light); }
.bg-slate .steps p { color: rgba(255, 255, 255, .72); }

/* ---------- Feature grid (icons) ---------- */
.feature-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-grid > div { background: var(--ivory); padding: clamp(28px, 3vw, 40px); display: grid; gap: 12px; align-content: start; }
.bg-sand .feature-grid > div { background: var(--sand); }
.feature-grid svg { width: 32px; height: 32px; color: var(--slate); margin-bottom: 8px; }
.feature-grid h3 { font: 500 19px/1.3 var(--sans); }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Visualizer promo ---------- */
.promo {
  position: relative; display: grid; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius-lg); background: var(--slate); color: #fff; overflow: hidden;
}
.promo::before {
  content: ''; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
}
.promo .h2 { font-size: clamp(36px, 4vw, 54px); }
.promo .lede { color: rgba(255, 255, 255, .8); }
.promo .eyebrow { color: var(--brass-soft); }
.promo .ba { aspect-ratio: 3 / 2; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.promo-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.promo-steps span { display: inline-flex; align-items: center; gap: 8px; }
.promo-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); font-size: 12px; font-weight: 600; }
@media (min-width: 960px) { .promo { grid-template-columns: 1fr 1.1fr; } }

/* ---------- Testimonial ---------- */
.testimonial { text-align: center; max-width: 980px; margin-inline: auto; }
.testimonial .mark { font: 600 96px/0.7 var(--display); color: var(--brass); height: 48px; }
.testimonial blockquote { margin: 0; font: 300 clamp(24px, 2.8vw, 38px)/1.32 var(--display); letter-spacing: -.025em; }
.testimonial cite { display: block; margin-top: 32px; font: 500 14px/1.4 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.testimonial cite span { display: block; margin-top: 6px; letter-spacing: .06em; text-transform: none; font-weight: 400; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--slate-ink); color: #fff; display: grid; }
.cta-band .copy { position: relative; z-index: 1; padding: clamp(36px, 5vw, 72px); display: grid; align-content: center; }
.cta-band .media { position: relative; min-height: 300px; }
.cta-band .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 50%; }
.cta-band .lede { color: rgba(255, 255, 255, .78); }
.cta-band .fine { margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cta-band .fine span { white-space: nowrap; }
@media (min-width: 960px) {
  .cta-band { grid-template-columns: 1.15fr .85fr; }
  .cta-band .media { min-height: 520px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-hero .display { font-size: clamp(48px, 6.6vw, 92px); max-width: 13em; }
.page-hero-grid { display: grid; gap: 28px; align-items: end; }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: 1.3fr .7fr; gap: 64px; }
  .page-hero-grid .lede { margin: 0 0 10px; }
}
.page-banner { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lg); }
.page-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 679px) { .page-banner { aspect-ratio: 4 / 3; } }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--slate); }

/* ---------- Services page ---------- */
.service-row { display: grid; gap: clamp(36px, 5vw, 88px); align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row .media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.service-row .media img { width: 100%; height: 100%; object-fit: cover; }
.service-row .label { font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 20px; display: block; }
.service-row .h2 { font-size: clamp(36px, 4vw, 54px); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 16px; }
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--slate); }
@media (min-width: 960px) {
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row.reverse .media { order: 2; }
}

/* ---------- About ---------- */
.statement { font: 300 clamp(32px, 4vw, 54px)/1.1 var(--display); letter-spacing: -.035em; max-width: 22em; }
.bg-slate .statement em { color: var(--brass-soft); }
.audience { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.audience span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-section + .gallery-section { padding-top: 0; }
.bento { display: grid; gap: 22px; }
.bento figure { margin: 0; }
.bento .ba, .bento .ba-toggle { aspect-ratio: 4 / 3; }
.bento .tall .ba, .bento .tall .ba-toggle { aspect-ratio: 3 / 4; }
@media (min-width: 960px) {
  .bento.kitchens { grid-template-columns: repeat(12, 1fr); }
  /* Wide/narrow, then narrow/wide, repeating as more projects are posted; a last odd one goes full width. */
  .bento.kitchens > :nth-child(4n+1), .bento.kitchens > :nth-child(4n) { grid-column: span 7; }
  .bento.kitchens > :nth-child(4n+2), .bento.kitchens > :nth-child(4n+3) { grid-column: span 5; }
  .bento.kitchens > :last-child:nth-child(odd) { grid-column: span 12; }
  .bento.kitchens .ba, .bento.kitchens .ba-toggle { aspect-ratio: auto; height: 560px; }
}
.bento.baths { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1040px) { .bento.baths { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 559px) { .bento.baths { grid-template-columns: 1fr; } }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 18px; }
.hint svg { width: 18px; height: 18px; color: var(--slate); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
/* Phones: intro, then the form, then the details. Desktop: intro + details left, form right. */
.contact-grid { grid-template-areas: "intro" "form" "details"; }
.contact-intro { grid-area: intro; display: grid; gap: 28px; }
.contact-details { grid-area: details; display: grid; gap: 28px; }
.contact-grid .form-card { grid-area: form; }
@media (min-width: 1040px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; grid-template-areas: "intro form" "details form"; row-gap: 40px; }
}
.info-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; }
.info-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); color: var(--slate); }
.info-list .ic svg { width: 20px; height: 20px; }
.info-list small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-list a, .info-list span { font-size: 17px; font-weight: 500; text-decoration: none; }
.info-list a:hover { color: var(--slate); }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-lg); }
.form-card h2 { font: 300 clamp(28px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -.03em; }
.form-card .form-sub { margin: 12px 0 32px; color: var(--muted); }
.fields { display: grid; gap: 18px; }
@media (min-width: 680px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: var(--brass); }
.field input {
  height: 54px; padding: 0 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--ivory);
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:hover { border-color: rgba(23, 35, 44, .25); }
.field input:focus { outline: none; border-color: var(--slate); background: #fff; box-shadow: 0 0 0 4px rgba(48, 88, 116, .12); }
.field input:user-invalid { border-color: #b4483c; }
.consent { display: grid; gap: 14px; margin: 26px 0 30px; }
.consent label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13.5px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--slate); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-foot a { font-size: 14px; color: var(--muted); }
.form-msg { margin: 18px 0 0; font-size: 15px; min-height: 1.4em; }
.form-done { text-align: center; padding: 40px 0; display: grid; gap: 14px; justify-items: center; }
.form-done svg { width: 56px; height: 56px; color: var(--slate); }

.next-steps { display: grid; gap: 18px; margin-top: 8px; }
.next-steps > div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.next-steps b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: #fff; font: 600 16px/1 var(--display); }
.next-steps h3 { font: 500 17px/1.3 var(--sans); margin-top: 8px; }
.next-steps p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-ink); color: rgba(255, 255, 255, .72); padding: clamp(64px, 8vw, 104px) 0 32px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 24px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-brand, .footer-col:last-child { grid-column: 1 / -1; }
.footer-brand img { width: 132px; }
.footer-brand p { margin: 22px 0 0; max-width: 24em; }
.footer-tag { margin-top: 18px; font: 600 12px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--brass-soft); }
.footer-col h3 { font: 600 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
  .footer-brand, .footer-col:last-child { grid-column: auto; }
}

/* ---------- Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.myth {
  margin: 0 0 14px; font: 300 clamp(22px, 2.2vw, 30px)/1.3 var(--display); letter-spacing: -.02em; color: rgba(255, 255, 255, .88);
  text-decoration: line-through; text-decoration-color: var(--brass); text-decoration-thickness: 2px;
}

/* ---------- Nav badge, call link, phone CTAs ---------- */
.nav-badge {
  display: inline-block; margin-left: 6px; padding: 3px 7px 2px; border-radius: 999px; vertical-align: 2px;
  background: var(--brass); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.nav a:hover .nav-badge, .nav a[aria-current="page"] .nav-badge { background: var(--slate); }
.header-call { display: none; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); }
.header-call svg { width: 18px; height: 18px; color: var(--slate); }
.header-call:hover { color: var(--slate); }
@media (min-width: 1360px) { .header-call { display: inline-flex; } }
.mobile-menu-ctas { display: grid; gap: 10px; }
.btn svg:first-child:not(:last-child) { transition: none; }
.btn:hover svg:first-child:not(:last-child) { transform: none; }

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; gap: 10px; padding: 8px; border-radius: 999px;
  background: rgba(248, 246, 241, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 34px rgba(19, 40, 58, .22);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.mobile-cta .btn { flex: 1; min-height: 50px; }
.mobile-cta .btn-outline { flex: 0 0 auto; background: #fff; }
.mobile-cta.show { transform: none; }
@media (min-width: 1200px) { .mobile-cta { display: none; } }

/* ---------- Kitchen Visualizer page ---------- */
.vis-hero .breadcrumb { margin-bottom: 24px; }
.vis-hero .display { font-size: clamp(42px, 5.4vw, 78px); }
.vis-hero .hero-media .ba { aspect-ratio: 3 / 2; box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); }
.vis-hero .hint { margin-top: 16px; }
.vis-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: vstep; }
.vis-steps li {
  position: relative; padding: 36px 30px 32px; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line);
}
.vis-steps li::before {
  counter-increment: vstep; content: counter(vstep, decimal-leading-zero); position: absolute; top: 30px; right: 30px;
  font: 300 34px/1 var(--display); color: var(--brass); letter-spacing: -.02em;
}
.vis-steps svg { width: 34px; height: 34px; color: var(--slate); margin-bottom: 22px; }
.vis-steps h3 { font: 500 20px/1.3 var(--display); margin-bottom: 8px; }
.vis-steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 900px) { .vis-steps { grid-template-columns: repeat(3, 1fr); } }

.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; } }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; font: 500 19px/1.35 var(--display); letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }
.faq-item summary span::before, .faq-item summary span::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--slate);
  transform: translate(-50%, -50%); transition: transform .3s var(--ease);
}
.faq-item summary span::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary span::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { margin: 0 0 24px; max-width: 46em; color: var(--ink-2); }

/* ---------- Form additions ---------- */
.field select, .field textarea {
  padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--ivory);
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field select {
  height: 54px; padding-block: 0; appearance: none; cursor: pointer; padding-right: 44px;
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23305874' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); background-color: #fff; box-shadow: 0 0 0 4px rgba(48, 88, 116, .12); }
.field .opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field-error { font-size: 13px; color: #a8412f; min-height: 0; }
.field.invalid input, .consent label.invalid input { border-color: #b4483c; outline-color: #b4483c; }
.consent label.invalid span { color: #a8412f; }
.btn[disabled] { opacity: .65; cursor: progress; }
.form-msg a { color: var(--slate); }
