/* Cardinal Fine Painting — shared styles */

:root {
  --cardinal: #8C2130;
  --cardinal-deep: #6B1823;
  --cream: #F5F1E6;
  --cream-warm: #EDE7D6;
  --gold: #C9A84C;
  --ink: #2A2420;
  --stone: #8A8078;
  --white: #FFFFFF;

  --display: 'Bitter', Georgia, serif;
  --body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 1140px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cardinal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.15em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- Signature: the split rule ---- */
/* Echoes the pressure-wash line: clean meets dirty. */
.split-rule {
  height: 3px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    to right,
    var(--gold) 0%,
    var(--gold) 42%,
    var(--stone) 42%,
    var(--stone) 100%
  );
  opacity: 0.9;
}

.split-rule--short {
  width: 88px;
  margin: 0 0 28px;
}

.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin: 0 0 10px;
}

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(42,36,32,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { height: 52px; width: auto; }

.brand-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand-text span {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s, color 0.18s;
}
.nav a:hover,
.nav a:focus-visible { border-bottom-color: var(--gold); }
.nav a[aria-current="page"] {
  color: var(--cardinal);
  border-bottom-color: var(--cardinal);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cardinal);
  color: var(--white) !important;
  padding: 10px 18px !important;
  border-radius: 2px;
  border-bottom: none !important;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s;
}
.nav-phone:hover,
.nav-phone:focus-visible { background: var(--cardinal-deep); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(42,36,32,0.2);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid rgba(42,36,32,0.1);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(42,36,32,0.07);
  }
  .nav-phone {
    margin-top: 12px;
    justify-content: center;
    text-align: center;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 2px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary {
  background: var(--cardinal);
  color: var(--white);
  border-color: var(--cardinal);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cardinal-deep);
  border-color: var(--cardinal-deep);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(42,36,32,0.28);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  border-color: var(--ink);
  background: rgba(42,36,32,0.04);
}

.btn-light {
  background: var(--white);
  color: var(--cardinal);
  border-color: var(--white);
}
.btn-light:hover,
.btn-light:focus-visible { background: var(--cream-warm); border-color: var(--cream-warm); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

/* ---- Sections ---- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--cream-warm); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .split-rule--short { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--stone); font-size: 1.08rem; margin-bottom: 0; }
.section--ink .section-head p { color: rgba(245,241,230,0.72); }

/* ---- Page banner (interior pages) ---- */
.page-banner {
  background: var(--cardinal);
  color: var(--white);
  padding: 68px 0 60px;
}
.page-banner h1 { color: var(--white); margin-bottom: 14px; }
.page-banner p {
  color: rgba(255,255,255,0.82);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0;
}
.page-banner .eyebrow { color: var(--gold); }

/* ---- Cards ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid rgba(42,36,32,0.09);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-media {
  aspect-ratio: 4 / 3;
  background: var(--cream-warm);
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-body { padding: 26px 26px 30px; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { margin-bottom: 0; color: var(--stone); font-size: 1rem; }

.card-num {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

/* ---- Testimonials ---- */
.quote {
  background: var(--white);
  border-left: 3px solid var(--cardinal);
  padding: 30px 32px;
  border-radius: 0 2px 2px 0;
}
.quote p {
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.quote footer {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--stone);
}

.stars {
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* ---- Stat strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}
.stat {
  background: var(--ink);
  padding: 34px 22px;
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,241,230,0.68);
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--stone);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid rgba(42,36,32,0.24);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.18s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cardinal);
}
.field textarea { min-height: 130px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.form-note {
  font-size: 0.9rem;
  color: var(--stone);
  margin-top: 18px;
}

/* ---- Contact rows ---- */
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(42,36,32,0.1);
}
.contact-line:last-child { border-bottom: 0; }
.contact-line dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  min-width: 92px;
  margin: 0;
}
.contact-line dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.contact-line dd a { text-decoration: none; }
.contact-line dd a:hover { text-decoration: underline; }

/* ---- Gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.shot {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--cream-warm);
  aspect-ratio: 4 / 3;
}
.shot--tall { aspect-ratio: 3 / 4; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(to top, rgba(42,36,32,0.82), transparent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ---- Service area list ---- */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.towns li {
  background: var(--white);
  border: 1px solid rgba(42,36,32,0.12);
  padding: 9px 16px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--cardinal);
  color: var(--white);
  padding: 74px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 30px;
}
.cta-band .btn-row { justify-content: center; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: rgba(245,241,230,0.66);
  padding: 60px 0 28px;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--body);
  font-weight: 700;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(245,241,230,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-brand p { margin-bottom: 0.7em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(245,241,230,0.45);
}

/* ---- Mobile sticky call bar ---- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--white);
  border-top: 1px solid rgba(42,36,32,0.12);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.callbar a {
  flex: 1;
  padding: 13px 10px;
  font-size: 0.98rem;
}
@media (max-width: 700px) {
  .callbar { display: flex; }
  body { padding-bottom: 78px; }
  .section { padding: 60px 0; }
  .page-banner { padding: 50px 0 44px; }
}

/* ---- Articles ---- */
.article-hero {
  background: var(--cardinal);
  color: var(--white);
  padding: 60px 0 54px;
}
.article-hero .eyebrow { color: var(--gold); }
.article-hero h1 { color: var(--white); max-width: 820px; margin-bottom: 16px; }
.article-hero .meta {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}

.article-body { padding: 64px 0 72px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose p { font-size: 1.12rem; line-height: 1.75; margin-bottom: 1.4em; }
.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}
.prose h2:first-of-type { margin-top: 0; }
.prose ul { margin: 0 0 1.4em; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 1.08rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(42,36,32,0.07);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 13px; height: 2px;
  background: var(--gold);
}
.prose strong { color: var(--ink); }

.prose-lede {
  font-family: var(--display);
  font-size: 1.4rem !important;
  line-height: 1.5 !important;
  color: var(--ink);
  margin-bottom: 1.1em !important;
}

.article-cta {
  background: var(--cream-warm);
  border-left: 3px solid var(--cardinal);
  padding: 32px 34px;
  margin: 44px auto 0;
  max-width: 720px;
  border-radius: 0 2px 2px 0;
}
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { font-size: 1.05rem; margin-bottom: 18px; color: var(--stone); }

.article-nav {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(42,36,32,0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}
.article-nav a { text-decoration: none; font-weight: 600; }
.article-nav a:hover { text-decoration: underline; }

/* Article cards (index + homepage) */
.article-card {
  background: var(--white);
  border: 1px solid rgba(42,36,32,0.1);
  border-radius: 2px;
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s, transform 0.18s;
}
.article-card:hover { border-color: var(--cardinal); transform: translateY(-2px); }
.article-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.article-card h3 { font-size: 1.22rem; margin-bottom: 10px; line-height: 1.25; }
.article-card p { color: var(--stone); font-size: 1rem; margin-bottom: 18px; flex: 1; }
.article-card .read {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cardinal);
  letter-spacing: 0.03em;
}
.article-card .read::after { content: " \2192"; }
