/* ==========================================================================
   Magnolia Austin Cabinets, Countertops & More — Site Stylesheet
   Plain CSS, no build step, no external requests, system fonts only.
   Airy, Apple-inspired light theme built from the client's real logo
   palette (navy circular badge, vintage-truck red, blush magnolia,
   foliage green). Navy is reserved for contrast sections + footer.
   ========================================================================== */

:root {
  /* Brand palette, sourced from the logo: navy badge, red pickup truck,
     white/blush magnolia blossoms, green foliage. */
  --navy-900: #16213e;
  --navy-800: #1c2c4f;
  --navy-700: #253a64;
  --red-600: #ac3226;
  --red-700: #8f281e;
  --red-500: #c2402f;
  --blush-50: #fbf3ef;
  --blush-100: #f5e3db;
  --blush-200: #ecd0c4;
  --ivory: #fbf9f5;
  --white: #ffffff;
  --green-600: #6e8b6a;
  --ink: #1f2430;
  --ink-soft: #5b6070;
  --gold: #c99a4b;
  --hairline: rgba(22, 33, 62, 0.09);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", sans-serif;

  /* 8pt spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --corner: 2px; /* signature corner radius echoed across the icon set */
  --shadow-sm: 0 1px 3px rgba(22, 33, 62, 0.05);
  --shadow-md: 0 8px 28px rgba(22, 33, 62, 0.07);
  --shadow-lg: 0 24px 64px rgba(22, 33, 62, 0.14);
  --shadow-xl: 0 40px 96px rgba(22, 33, 62, 0.20);
  --header-h: 76px;
  --mobile-bar-h: 64px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
main { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy-900);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.5rem); font-weight: 580; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 600; letter-spacing: -0.012em; }
p, li { font-size: 1.0625rem; line-height: 1.65; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; font-weight: 400; line-height: 1.62; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: clamp(64px, 11vw, 152px) 0; }
.section-tight { padding: clamp(48px, 6vw, 96px) 0; }
.section-navy { background: var(--navy-900); color: var(--blush-100); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-blush { background: var(--blush-50); }
.section-cream { background: var(--white); }

.text-center { text-align: center; }
.center-head { max-width: 720px; margin: 0 auto var(--space-6); text-align: center; }
.center-head .eyebrow { justify-content: center; }
.center-head .eyebrow::before { display: none; }
.center-head .lede { margin: 0 auto; }

/* Numbered editorial section marker — 01 / 02 / 03 */
.marker-head { display: flex; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-3); }
.section-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  opacity: 0.1;
  font-variant-numeric: tabular-nums;
}
.section-navy .section-num { color: #fff; opacity: 0.16; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus states */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Scroll-reveal (respects prefers-reduced-motion) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--red-700); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); box-shadow: var(--shadow-sm); }
.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--hairline);
}
.btn-secondary:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn-secondary:active { transform: scale(0.98); }
.section-navy .btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.35); }
.section-navy .btn-secondary:hover { background: var(--white); color: var(--navy-900); }
.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.microcopy {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.section-navy .microcopy { color: var(--blush-200); }
.cta-stack { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

/* ---------- Header (frosted glass, sticky) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 249, 245, 0.6);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.86);
  border-bottom-color: var(--hairline);
  box-shadow: 0 1px 0 rgba(22,33,62,0.03), 0 12px 24px -18px rgba(22,33,62,0.18);
}
/* Transparent-over-hero variant: header rides on top of a photographic hero until scrolled */
.site-header.header-on-photo:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header.header-on-photo:not(.is-scrolled) .logo,
.site-header.header-on-photo:not(.is-scrolled) .main-nav a,
.site-header.header-on-photo:not(.is-scrolled) .header-phone,
.site-header.header-on-photo:not(.is-scrolled) .logo-text span { color: #fff; }
.site-header.header-on-photo:not(.is-scrolled) .header-phone svg { color: var(--blush-100); }
.site-header.header-on-photo:not(.is-scrolled) .main-nav a:hover { background: rgba(255,255,255,0.12); }
.site-header.header-on-photo:not(.is-scrolled) .nav-toggle { border-color: rgba(255,255,255,0.4); }
.site-header.header-on-photo:not(.is-scrolled) .nav-toggle svg { color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: var(--ivory); }
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  flex-shrink: 0;
}
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
.logo-text span { font-family: var(--font-sans); font-size: 0.63rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }

.main-nav { display: flex; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--navy-800);
}
.main-nav a:hover { background: rgba(22,33,62,0.05); }
.main-nav a[aria-current="page"] { color: var(--red-600); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.94rem;
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; color: var(--red-600); flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy-900); }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(251, 249, 245, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--hairline);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--hairline); }
  .header-phone span { display: none; }
  .header-actions .btn-primary.header-cta-btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero (full-bleed photo, navy scrim, Apple-style restraint) ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--ivory);
  overflow: hidden;
  padding: calc(var(--space-8) + 24px) 0 var(--space-8);
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero.hero-compact { min-height: 0; padding: var(--space-8) 0; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 38%; display: block; }
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,16,36,0.92) 0%, rgba(10,16,36,0.78) 30%, rgba(10,16,36,0.4) 55%, rgba(10,16,36,0.1) 80%),
    linear-gradient(0deg, rgba(10,16,36,0.42) 0%, rgba(10,16,36,0) 26%);
}
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .lede { text-shadow: 0 2px 20px rgba(8,12,28,0.4); }
.hero-bloom {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .lede { color: var(--blush-100); font-size: 1.22rem; }
.hero-stars { display: flex; align-items: center; gap: 10px; margin: var(--space-3) 0; color: var(--blush-100); font-weight: 500; font-size: 0.95rem; }
.hero-stars svg { width: 17px; height: 17px; color: var(--gold); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding: calc(var(--space-7) + var(--header-h)) 0 var(--space-6); text-align: left; }
}

/* ---------- Real photography frames ---------- */
.media-frame {
  position: relative;
  display: block;
  aspect-ratio: var(--mf-ratio, 4 / 3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--blush-100);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.media-frame:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .media-frame img { transition: none; } .media-frame:hover img { transform: none; } }
.media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(22,33,62,0.62), rgba(22,33,62,0));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Editorial layout system ---------- */

/* Asymmetric split: image bleeds to the viewport edge, text sits in the container gutter */
.bleed-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 560px;
}
.bleed-split .bleed-media { position: relative; overflow: hidden; }
.bleed-split .bleed-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed-split .bleed-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-7) clamp(28px, 6vw, 96px) var(--space-7) max(28px, calc((100vw - 1180px) / 2 + 24px));
}
.bleed-split.bleed-reverse { direction: rtl; }
.bleed-split.bleed-reverse > * { direction: ltr; }
.bleed-split.bleed-reverse .bleed-content { padding: var(--space-7) max(28px, calc((100vw - 1180px) / 2 + 24px)) var(--space-7) clamp(28px, 6vw, 96px); }
@media (max-width: 900px) {
  .bleed-split { grid-template-columns: 1fr; min-height: 0; }
  .bleed-split .bleed-media { min-height: 320px; }
  .bleed-split .bleed-content, .bleed-split.bleed-reverse .bleed-content { padding: var(--space-6) 24px; }
}

/* Full-bleed atmosphere band: a photographic divider between two content sections */
.fullbleed-band {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.fullbleed-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.fullbleed-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,23,48,0.72) 0%, rgba(15,23,48,0.55) 50%, rgba(15,23,48,0.78) 100%);
}
.fullbleed-band .container { position: relative; z-index: 2; }
.fullbleed-band .eyebrow { color: var(--blush-100); }
.fullbleed-band .eyebrow::before { background: var(--blush-100); }
.fullbleed-band h2 { color: #fff; }
.fullbleed-band .lede { color: var(--blush-100); margin: 0 auto; }
@media (max-width: 620px) { .fullbleed-band { min-height: 38vh; padding: var(--space-6) 0; } }

/* Sticky-image + scrolling text */
.sticky-scroll { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-6); align-items: start; }
.sticky-scroll .sticky-media {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sticky-scroll .sticky-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticky-scroll .scroll-text > .scroll-block + .scroll-block {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 900px) {
  .sticky-scroll { grid-template-columns: 1fr; }
  .sticky-scroll .sticky-media { position: relative; top: 0; aspect-ratio: 4/3; margin-bottom: var(--space-4); }
}

/* Offset / overlapping image + card pair */
.offset-pair { position: relative; padding-bottom: var(--space-5); padding-right: clamp(0px, 6vw, 64px); }
.offset-pair .offset-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.offset-pair .offset-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offset-pair .offset-card {
  position: absolute;
  right: clamp(-16px, -4vw, 0px);
  bottom: 0;
  max-width: 280px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  border: 1px solid var(--hairline);
}
.offset-pair .offset-card strong { display: block; font-size: 2.2rem; font-weight: 600; color: var(--navy-900); letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; }
.offset-pair .offset-card span { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 620px) {
  .offset-pair { padding-right: 0; padding-bottom: var(--space-6); }
  .offset-pair .offset-card { right: 12px; left: 12px; max-width: none; }
}

/* ---------- Placeholder visuals (branded, no photography yet) ---------- */
.ph {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: var(--ph-ratio, 4 / 3);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ph-bg, linear-gradient(150deg, var(--navy-800), var(--navy-900)));
  isolation: isolate;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 18% 20%, rgba(255,255,255,0.10), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(255,255,255,0.06), transparent 50%);
  z-index: 0;
}
.ph-motif {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 56%;
  color: #fff;
  opacity: 0.22;
  z-index: 0;
}
.ph-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(0deg, rgba(22,33,62,0.65), rgba(22,33,62,0));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-end;
}
.ph-label .ph-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.16);
  padding: 4px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.ph-hero { --ph-bg: linear-gradient(150deg, #223452, #16213e 75%); --ph-ratio: 5/4; }
.ph-blush { --ph-bg: linear-gradient(150deg, #f5e3db, #ecd0c4 85%); }
.ph-blush .ph-motif { color: var(--navy-900); opacity: 0.16; }
.ph-blush .ph-label { color: var(--navy-900); background: linear-gradient(0deg, rgba(255,255,255,0.8), rgba(255,255,255,0)); }
.ph-red { --ph-bg: linear-gradient(150deg, #c2402f, #8f281e 85%); }
.ph-green { --ph-bg: linear-gradient(150deg, #7c9a78, #4f6a4c 85%); }

/* "Photography coming soon" — an honest, elevated stand-in for real project photos not yet in hand */
.ph-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  border: 1px solid rgba(255,255,255,0.14);
}
.ph-soon-inner { position: relative; z-index: 1; color: #fff; }
.ph-soon .ph-motif { opacity: 0.14; }
.ph-soon-icon { width: 30px; height: 30px; margin: 0 auto 14px; opacity: 0.55; }
.ph-soon-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
.ph-soon-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  opacity: 0.85;
}
.ph-blush.ph-soon { border-color: rgba(22,33,62,0.1); }
.ph-blush .ph-soon-inner { color: var(--navy-900); }
.ph-blush .ph-soon-tag { border-color: rgba(22,33,62,0.28); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--hairline);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card { display: flex; flex-direction: column; gap: 12px; padding: var(--space-5) var(--space-4); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(22,33,62,0.14); }
.service-card .icon-badge {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--blush-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.service-card .icon-badge svg { width: 30px; height: 30px; color: var(--red-600); }
.service-card a.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--red-600); margin-top: auto; }
.service-card a.card-link svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.service-card a.card-link:hover svg { transform: translateX(3px); }
.service-card a.card-link:hover { text-decoration: underline; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; }
.steps ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); list-style: none; }
@media (max-width: 900px) { .steps ol { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps ol { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding-top: 8px; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 650;
  font-size: 1.05rem;
  margin-bottom: var(--space-2);
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--white);
  border-left: 3px solid var(--red-600);
  border-radius: 4px 18px 18px 4px;
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.section-navy .quote-card { background: rgba(255,255,255,0.06); border-left-color: var(--red-500); box-shadow: none; }
.quote-card p.quote-text { font-family: var(--font-sans); font-size: 1.06rem; color: var(--navy-900); font-style: italic; font-weight: 400; }
.section-navy .quote-card p.quote-text { color: var(--white); }
.quote-attr { font-weight: 600; font-size: 0.88rem; color: var(--ink-soft); }
.section-navy .quote-attr { color: var(--blush-200); }
.stars-row { display: flex; gap: 3px; margin-bottom: 10px; }
.stars-row svg { width: 17px; height: 17px; color: var(--gold); }

/* ---------- Showroom / map block ---------- */
.showroom-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .showroom-block { grid-template-columns: 1fr; } }
.nap-list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-4) 0 var(--space-5); }
.nap-item { display: flex; gap: 12px; align-items: flex-start; }
.nap-item svg { width: 21px; height: 21px; color: var(--red-600); flex-shrink: 0; margin-top: 2px; }
.nap-item strong { display: block; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hairline);
  aspect-ratio: 4/3;
  background: linear-gradient(150deg, var(--blush-50), var(--blush-100));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.map-frame svg { width: 44%; opacity: 0.7; color: var(--navy-900); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--blush-100);
  padding: var(--space-7) 0 var(--space-4);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); font-weight: 600; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: var(--blush-200); font-size: 0.95rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.footer-logo strong { color: #fff; font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
.footer-tagline { color: var(--blush-200); font-style: italic; margin-bottom: var(--space-2); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-2); }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red-600); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.84rem;
  color: var(--blush-200);
}

/* ---------- Mobile sticky bar ---------- */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 600;
  height: var(--mobile-bar-h);
  background: rgba(22, 33, 62, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-sticky-bar .bar-inner { display: flex; height: 100%; }
.mobile-sticky-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
}
.mobile-sticky-bar a svg { width: 18px; height: 18px; }
.mobile-sticky-bar .bar-call { background: rgba(255,255,255,0.06); }
.mobile-sticky-bar .bar-cta { background: var(--red-600); }
@media (max-width: 900px) {
  .mobile-sticky-bar { display: block; }
  body { padding-bottom: var(--mobile-bar-h); }
}

/* ---------- Promo banner ---------- */
.promo-banner {
  background: var(--blush-100);
  color: var(--navy-900);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
}
.promo-banner a { text-decoration: underline; color: var(--red-600); }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(22,33,62,0.95), rgba(22,33,62,0.9)),
    var(--page-hero-img, none) center / cover no-repeat;
  color: #fff;
  padding: var(--space-6) 0 var(--space-6);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero h2 { color: #fff; }
.page-hero .lede { color: var(--blush-100); }
.breadcrumb { font-size: 0.85rem; color: var(--blush-200); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--blush-200); text-decoration: underline; }
.page-hero--about { --page-hero-img: url("../images/craft-stone-cutting.jpg"); }
.page-hero--services { --page-hero-img: url("../images/texture-wood-dark.jpg"); }
.page-hero--portfolio { --page-hero-img: url("../images/texture-marble-veins.jpg"); }
.page-hero--contact { --page-hero-img: url("../images/texture-marble-white.jpg"); }

/* ---------- Filters (portfolio) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-5); }
.filter-btn {
  border: 1.5px solid var(--hairline);
  background: var(--white);
  color: var(--navy-800);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
}
.filter-btn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-btn:hover { border-color: var(--navy-900); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { display: none; }
.gallery-item.is-visible { display: block; }
.gallery-item figcaption { padding-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.gallery-item figcaption strong { color: var(--navy-900); display: block; font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: var(--space-3); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-900); font-size: 0.94rem; }
.field .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 4px; }
.field-error { font-size: 0.82rem; color: var(--red-700); margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-3);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: #eef3ed; border: 1px solid var(--green-600); color: #2f472f; }
.form-status.is-error { background: var(--blush-50); border: 1px solid var(--red-600); color: var(--red-700); }
.form-status h3 { color: inherit; margin-bottom: 6px; }

/* ---------- Utility ---------- */
.divider-flower { display: flex; justify-content: center; margin: 8px 0 var(--space-5); color: var(--red-600); opacity: 0.55; }
.divider-flower svg { width: 34px; height: 34px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blush-50);
  color: var(--navy-800);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.stat-row { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: 10px; }
.stat { min-width: 120px; }
.stat strong { display: block; font-size: 2rem; font-weight: 650; color: var(--navy-900); letter-spacing: -0.02em; }
.stat span { font-size: 0.86rem; color: var(--ink-soft); }

.cta-band {
  background: linear-gradient(150deg, var(--blush-50), var(--blush-100));
  color: var(--navy-900);
  padding: var(--space-7) 0;
  text-align: center;
}
.textured-cta {
  background:
    linear-gradient(150deg, rgba(251,243,239,0.94), rgba(236,208,196,0.9)),
    url("../images/texture-wood-oak.jpg") center / cover no-repeat;
}
.textured-navy {
  background:
    linear-gradient(165deg, rgba(22,33,62,0.96), rgba(22,33,62,0.9)),
    url("../images/texture-marble-brown.jpg") center / cover no-repeat;
}
.cta-band h2 { color: var(--navy-900); }
.cta-band .lede { color: var(--ink-soft); margin: 0 auto var(--space-4); }
.cta-band .btn-secondary { border-color: var(--hairline); color: var(--navy-900); }
.cta-band .btn-secondary:hover { background: var(--navy-900); color: #fff; }

.timeline { border-left: 2px solid var(--hairline); padding-left: var(--space-3); display: flex; flex-direction: column; gap: var(--space-4); }
.timeline .tl-item strong { display: block; color: var(--navy-900); font-size: 1.1rem; font-weight: 650; }

/* ---------- Check list (service feature bullets) ---------- */
.check-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list svg { width: 18px; height: 18px; color: var(--red-600); flex-shrink: 0; margin-top: 3px; }

@media (max-width: 620px) {
  section { padding: var(--space-5) 0; }
  h1 { line-height: 1.1; }
}

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