﻿/* A1 Painters — static site styles (red brand) */
:root {
  --primary: #d02127;
  --primary-dark: #a0181e;
  --primary-light: #ef4444;
  --primary-fg: #ffffff;
  --primary-soft: rgba(208, 33, 39, 0.1);
  --primary-ring: rgba(208, 33, 39, 0.18);
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #f4f4f5;
  --muted-fg: #71717a;
  --card: #ffffff;
  --border: #e4e4e7;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --header-h: 4.25rem;
  --max: 72rem;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--muted-fg); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-muted { background: var(--muted); }
.section-dark {
  background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 100%);
  color: #fff;
}
.section-dark p { color: rgba(255,255,255,.8); }
.section-dark h2 { color: #fff; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }
.section-head p { font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
  position: relative;
  overflow: visible;
}
/* Badge logo only — larger than the bar; ~20% of logo height hangs above the header onto the page */
.logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  /* reserve space in the flex row so nav doesn’t collide */
  width: 5.5rem;
  height: 100%;
}
.logo:hover { opacity: 0.95; }
.logo img {
  --logo-h: calc(var(--header-h) * 1.6);
  position: absolute;
  left: 0;
  /* Scooted down so top of badge is fully visible (no clip under browser chrome) */
  top: 0;
  height: var(--logo-h);
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}
@media (min-width: 768px) {
  .logo { width: 7rem; }
  .logo img {
    --logo-h: calc(var(--header-h) * 1.85);
    top: 0;
  }
}
/* Hide header wordmark; footer may still show brand text */
.header-inner .logo-text,
.site-header .logo-text { display: none; }
.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
.nav-desktop a {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.15rem;
  margin: 0 0.55rem;
  border-radius: 0;
  background: transparent;
  /* underline sits only under the word, not a full pill/box */
  box-shadow: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-desktop a:hover {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
  box-shadow: none;
}
.nav-desktop a.active {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
  box-shadow: none;
}
.nav-desktop a.active:hover {
  background: transparent;
  color: var(--primary);
  border-bottom-color: var(--primary);
  box-shadow: none;
}
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--primary); }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--fg);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fg);
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-weight: 600;
  font-size: 1.1rem;
}
.mobile-nav a:hover {
  color: var(--primary);
  background: transparent;
}
.mobile-nav .btn { margin-top: 1.25rem; width: 100%; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}
.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover { background: #fef2f2; color: var(--primary-dark); }
.btn-ghost-white {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }

/* Hero — matches original a1painters.com: bright house photo, dark type, frosted copy panel */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  color: var(--fg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* Light left-side wash only — keep the house photo clear (no heavy color cast) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.45) 32%,
    rgba(255, 255, 255, 0.08) 55%,
    rgba(255, 255, 255, 0) 72%
  );
}
/* Full-width content rail (same as header .container) so copy left edge matches logo */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 4.5rem 1.25rem 5rem;
  box-sizing: border-box;
  /* left-align the text column (do not center a narrow block) */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-content > * {
  max-width: 36rem;
}
.hero h1 {
  color: #1a1a1a;
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.hero-panel {
  /* More translucent so the house photo shows through */
  background: rgba(55, 58, 64, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  padding: 1.15rem 1.35rem;
  border-radius: 1rem;
  max-width: 30rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.hero-panel p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
}
.hero-panel strong {
  color: #fff;
  font-weight: 700;
}
.hero-panel .brand-red {
  color: #ffffff;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 1.15rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.hero-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid #666;
  box-sizing: border-box;
  flex-shrink: 0;
}
/* Secondary CTA on light/photo hero */
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.btn-hero-secondary:hover {
  background: #fff;
  color: var(--primary);
  border-color: rgba(208, 33, 39, 0.35);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  stroke: currentColor;
}
/* About values: last card full-width on desktop like original layout */
@media (min-width: 640px) {
  .values-about-wide {
    grid-column: 1 / -1;
  }
}
/* About — meet the team panel */
.section-team {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}
.team-panel {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  background: #f4f4f5;
  border-radius: 1.25rem;
  padding: 2.5rem 1.75rem 2.75rem;
}
.team-panel .team-icon {
  margin: 0 auto 1.25rem;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.team-panel h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.team-panel p {
  margin: 0 auto;
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.65;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Grids */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .nav-desktop { display: flex; }
  .header-phone { display: inline-flex; }
  .menu-toggle { display: none; }
  .header-actions .btn-quote-mobile { display: none; }
}

/* Features / values */
.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row.reverse { direction: rtl; }
  .feature-row.reverse > * { direction: ltr; }
}
.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--muted);
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
/* Smaller owner/portrait photo (About page) */
.feature-img-sm {
  aspect-ratio: 1 / 1;
  max-width: 280px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* About story + portrait: tighter gap between text and photo */
.section-about-story {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}
.feature-row-about {
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feature-row-about {
    gap: 1.5rem;
    align-items: center;
  }
  .feature-img-sm {
    max-width: 260px;
    margin-left: auto;
    margin-right: 0;
  }
}

/* Testimonials */
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
}
.stars { color: #f59e0b; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-size: 0.95rem; }
.testimonial blockquote {
  margin: 0 0 1.25rem;
  color: var(--fg);
  font-size: 0.98rem;
  line-height: 1.65;
}
.testimonial-author { font-weight: 600; color: var(--fg); }
.testimonial-loc { font-size: 0.85rem; color: var(--muted-fg); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stat { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { font-size: 0.9rem; color: var(--muted-fg); margin-top: 0.25rem; }

/* Process steps */
.steps { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  /* Match faded icon chip backgrounds; solid red numeral like the icons */
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Portfolio before/after */
.ba-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.ba-slider {
  position: relative;
  height: 260px;
  background: var(--muted);
  user-select: none;
  touch-action: none;
}
@media (min-width: 700px) { .ba-slider { height: 300px; } }
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-slider .ba-after { clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.ba-handle::after {
  content: "\2194"; /* ↔ */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.25rem;
  height: 2.25rem;
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #334155;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
  margin: 0;
}
.ba-tag {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.ba-body { padding: 1.25rem 1.35rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ba-body h3 { font-size: 1.1rem; min-height: 2.6rem; }
.ba-body p {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ba-body p.expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.ba-more {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0;
  margin-top: 0.5rem;
  cursor: pointer;
  align-self: flex-start;
  font-family: inherit;
}
.ba-more:hover { text-decoration: underline; }

.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  color: var(--fg);
  display: block;
  text-decoration: none;
}
.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(208, 33, 39, 0.25);
  color: var(--fg);
}
.gallery-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
/* Legacy simple cards only (direct child span label) */
.gallery-card > span {
  display: block;
  padding: 1rem 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
/* Enhanced gallery cards (image + title + arrow) */
.gallery-card-media {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #0f172a;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-card:hover .gallery-card-media img {
  transform: scale(1.08);
}
.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
}
.gallery-card-title {
  display: block;
  padding: 0;
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.gallery-card:hover .gallery-card-title {
  color: var(--primary);
}
/* Perfect optical center for arrow glyph inside circle */
.gallery-card-arrow {
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--fg);
  display: grid;
  place-items: center;
  padding: 0 !important;
  margin: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.gallery-card-arrow svg {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  /* Optical center at rest */
  transform: translate(0, 0);
  transition: transform 0.32s ease;
}
.gallery-card:hover .gallery-card-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
/* Slide farther right on hover — still contained in the circle */
.gallery-card:hover .gallery-card-arrow svg {
  transform: translate(4.5px, 0);
}

/* Service gallery project cards (Interior Painting, etc.) */
.project-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .project-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .project-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.project-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0f172a;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}
.project-card-media:disabled {
  cursor: default;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.project-card:hover .project-card-media img {
  transform: scale(1.05);
}
.project-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.project-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--fg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.project-card-body {
  padding: 1.25rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}
.project-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}
.project-card-title-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.project-card-title-btn:hover:not(:disabled) {
  color: var(--primary);
}
.project-card-title-btn:disabled {
  cursor: default;
}
.project-card-desc {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-card-desc.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.project-read-more {
  display: inline-block;
  align-self: flex-start;
  margin: 0.15rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.project-read-more:hover {
  text-decoration: underline;
}
.project-gallery-btn {
  width: 100%;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--secondary, #f4f4f5);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.project-gallery-btn:hover:not(:disabled),
.project-card:hover .project-gallery-btn:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.project-gallery-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.project-gallery-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
/* Gallery lightbox popup */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gallery-lightbox[hidden] {
  display: none !important;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.gallery-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gallery-lightbox-title {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  padding: 0 3rem;
}
.gallery-lightbox-stage {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gallery-lightbox-frame {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  max-height: 75vh;
}
.gallery-lightbox-frame img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: #111;
}
.gallery-lightbox-nav {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.gallery-lightbox-counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
@media (max-width: 640px) {
  .gallery-lightbox-nav {
    width: 2.25rem;
    height: 2.25rem;
  }
  .gallery-lightbox-frame {
    min-height: 40vh;
    max-height: 60vh;
  }
  .gallery-lightbox-frame img {
    max-height: 60vh;
  }
}

.project-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .project-video-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
.project-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-video-wrap {
  aspect-ratio: 16/9;
  background: #000;
}
.project-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.project-video-card h3 {
  padding: 1rem 1.15rem 1.15rem;
  margin: 0;
  font-size: 1.1rem;
}

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #7f1d1d 100%);
  color: #fff;
  /* Extra top padding so the title clears the oversized logo */
  padding: 5.75rem 0 2.75rem;
}
.page-hero h1 {
  color: #fff;
  margin-top: 0.35rem;
}
.page-hero p { color: rgba(255,255,255,.85); max-width: 36rem; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: #fff; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group label .req {
  color: #d02127;
  font-weight: 700;
  margin-left: 0.1em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  color: var(--fg);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}
.form-group .error {
  display: none;
  color: #d02127;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #d02127;
  background: #fff5f5;
}
.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  border-color: #d02127;
  box-shadow: 0 0 0 3px rgba(208, 33, 39, 0.2);
}
.form-group.has-error .error {
  display: block;
}
/* Live email validation — invalid while typing */
.form-group[data-field="email"] input[aria-invalid="true"] {
  border-color: #d02127;
  background: #fff5f5;
}
.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1.1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(6, 95, 70, 0.06);
}
.form-success.show {
  display: block;
}
.form-success strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: #047857;
}
.form-error {
  display: none;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 1.1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}
.form-error.show {
  display: block;
}
.form-card button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}
.form-card.is-sent #quote-form {
  display: none;
}
.contact-info-card {
  background: var(--muted);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-only {
  max-width: 48rem;
  margin: 0 auto;
}
/* Contact page: info card + quote form */
.contact-page-layout {
  display: grid;
  gap: 1.75rem;
  max-width: 72rem;
  margin: 0 auto;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem;
  }
}
.form-row-2 {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-info-card-lg {
  padding: 2rem 1.75rem 2.25rem;
}
.contact-lines-grid {
  display: grid;
  gap: 0.25rem 1.5rem;
}
@media (min-width: 700px) {
  .contact-lines-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.quote-layout {
  max-width: 36rem;
  margin: 0 auto;
}
.quote-layout .form-card a {
  font-weight: 600;
}
.contact-info-card h3 { margin-bottom: 1.25rem; }
.contact-line {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  align-items: flex-start;
}
.contact-line strong { display: block; color: var(--fg); font-size: 0.9rem; }
.contact-line a, .contact-line span { color: var(--muted-fg); font-size: 0.95rem; }
.contact-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Feature list */
.check-list { display: grid; gap: 0.55rem; margin: 1rem 0 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "\2713"; /* ✓ checkmark — ASCII-safe unicode escape */
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1em;
  line-height: 1.2;
}

/* Legal */
.legal { max-width: 48rem; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted-fg); }
.legal ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.legal li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer {
  background: #0a0a0a;
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.site-footer a {
  color: rgba(255,255,255,.7);
  display: block;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}
.site-footer a:hover { color: #fff; }
/* Logo badge centered over "A1 Painters", that centered over tagline; whole stack left-aligned in footer */
.footer-brand .logo {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0 0 1rem;
  gap: 0.55rem;
  text-align: center;
}
.footer-brand .logo img {
  position: static;
  top: auto;
  left: auto;
  height: 72px;
  width: auto;
  max-width: none;
  filter: none;
  margin: 0 auto;
}
.footer-brand .logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  width: 100%;
}
.footer-brand .logo-text small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: left;
  margin: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { display: inline; padding: 0; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 4rem 0;
}
.cta-band .hero-actions { justify-content: center; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
