/* ==========================================================================
   Chira's Handy Painters — Site Stylesheet
   ========================================================================== */

:root {
  --navy: #10264a;
  --navy-2: #16305c;
  --navy-3: #0b1c38;
  --red: #c41e28;
  --red-2: #96141c;
  --gold: #c9a227;
  --orange: #e68c1e;
  --green: #5a9628;
  --ink: #1b2230;
  --grey-700: #4a5164;
  --grey-500: #767d8c;
  --grey-300: #d7dbe3;
  --grey-100: #f4f5f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(16, 38, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(16, 38, 74, 0.12);
  --shadow-lg: 0 20px 50px rgba(16, 38, 74, 0.18);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--grey-700); }

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 12px 24px rgba(196, 30, 40, 0.32); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-300);
}
.btn-ghost:hover { border-color: var(--navy); }

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

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover { background: var(--grey-100); }

.btn-phone::before { content: "\260E\FE0F"; font-size: 0.9em; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-300);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 54px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-list > li > a:not(.btn) {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-list > li > a:not(.btn):hover { background: var(--grey-100); }
.nav-cta { margin-left: 4px; }
.nav-list .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero-title { color: var(--white); }
.hero-title .gold { color: var(--gold); }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.hero-trust.row3 { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-media { position: relative; }
.hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  width: 110px;
  height: 110px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.hero-badge img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- Section header ---------------- */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-header p { font-size: 1.05rem; }
.section-actions { text-align: center; margin-top: 36px; }

section { padding: 84px 0; }

/* ---------------- Trust strip ---------------- */
.trust-strip { background: var(--grey-100); padding: 56px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.trust-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.trust-item p { font-size: 0.88rem; margin: 0; }

/* ---------------- Services grid ---------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service, .svc {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service:hover, .svc:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.service h3, .svc h3 { margin-bottom: 8px; }
.service p, .svc p { margin: 0; font-size: 0.95rem; }

/* ---------------- Before / After ---------------- */
.ba { background: var(--grey-100); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.ba-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ba-card .ba-img { display: grid; grid-template-columns: 1fr 1fr; }
.ba-img { position: relative; }
.ba-img img { width: 100%; height: 190px; object-fit: cover; }
.ba-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(16,38,74,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}
.ba-label-gold { background: rgba(201,162,39,0.92); color: var(--navy); }
.ba-card figcaption { padding: 14px 18px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

/* ---------------- Process ---------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-head);
  margin-bottom: 14px;
}
.step-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-body p { font-size: 0.9rem; margin: 0; }

/* ---------------- Why us ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.why-list { margin: 18px 0 24px; }
.why-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--grey-700);
}
.why-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}

/* ---------------- Testimonials ---------------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi {
  margin: 0;
  background: var(--grey-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 26px 24px;
}
.testi p { color: var(--ink); font-style: italic; margin-bottom: 14px; }
.testi cite { font-style: normal; font-weight: 700; color: var(--navy); font-size: 0.9rem; }

.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--navy);
}
.google-rating strong { font-size: 1.15rem; }
.google-rating span[aria-hidden="true"] { letter-spacing: 2px; color: var(--gold); font-size: 1.05rem; }
.google-rating span:last-child { font-size: 0.9rem; color: var(--muted); }
.testi small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}
.testi-link { text-align: center; margin-top: 24px; }
.testi-link a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Final CTA ---------------- */
.final-cta {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  padding: 70px 0;
}
.final-cta .cta-card { text-align: center; }
.final-cta h2, .final-cta p { color: var(--white); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 20px; }
.cta-band .btn { margin: 0 8px; }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-3); color: rgba(255,255,255,0.8); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}
.footer-logo {
  height: 62px;
  width: auto;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.footer-brand p { color: rgba(255,255,255,0.7); }
.footer-links h4, .footer-contact h4 { color: var(--white); font-family: var(--font-body); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul li, .footer-contact p { margin-bottom: 10px; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,0.75); transition: color 0.18s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact p { color: rgba(255,255,255,0.75); line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom p { color: rgba(255,255,255,0.6); margin: 0; }

/* Simple footer used on inner pages */
.site-footer .footer-links:not(h4 + *) {}
.site-footer > .container > .footer-links {
  padding: 24px 0 8px;
  text-align: center;
  display: block;
}
.site-footer > .container > .footer-links a { color: rgba(255,255,255,0.8); }
.site-footer > .container > .footer-links a:hover { color: var(--gold); }
.site-footer > .container > p { text-align: center; margin: 0 0 6px; color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.site-footer > .container > p a { color: rgba(255,255,255,0.85); }
.site-footer > .container { padding-top: 8px; padding-bottom: 28px; }

/* ---------------- Inner page header ---------------- */
.page-header.inner {
  background: linear-gradient(160deg, var(--navy-3), var(--navy));
  padding: 64px 0 56px;
  text-align: center;
}
.page-header.inner h1 { color: var(--white); }
.page-header.inner .lede { color: rgba(255,255,255,0.82); max-width: 62ch; margin: 0 auto; font-size: 1.08rem; }

/* ---------------- About page ---------------- */
.about-section { padding: 84px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-grid figure { margin: 0; }
.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 4/4.6;
  object-fit: cover;
}
.values { background: var(--grey-100); padding: 70px 0; text-align: center; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.value-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow-sm);
}
.cta-band .btn + .btn { margin-left: 8px; }

/* ---------------- Gallery ---------------- */
.gallery { padding: 70px 0 90px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.gallery-grid img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption { padding: 14px 16px; font-weight: 600; color: var(--navy); font-size: 0.92rem; }

/* ---------------- Services page ---------------- */
.service-detail { padding: 70px 0 90px; }

/* ---------------- Contact page ---------------- */
.contact-layout { padding: 70px 0 90px; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
a.contact-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-icon { font-size: 1.5rem; }
.contact-card strong { display: block; color: var(--navy); margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 0.92rem; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 260px; border: 0; display: block; }

.quote-cta {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}
.quote-cta-badge {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.quote-cta h2 { color: var(--white); margin-bottom: 12px; }
.quote-cta p { color: rgba(255,255,255,.82); margin-bottom: 24px; }
.quote-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.quote-cta-list { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; display: grid; gap: 14px; }
.quote-cta-list div { display: flex; gap: 14px; align-items: center; }
.quote-cta-list strong { color: var(--gold); font-size: 0.82rem; min-width: 22px; }
.quote-cta-list span { color: rgba(255,255,255,.9); font-size: 0.9rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .why-media { order: -1; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-300);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 480px; }
  .primary-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 4px;
  }
  .nav-list > li > a:not(.btn) { padding: 12px 14px; }
  .nav-cta { margin-left: 0; }
  .nav-list .btn { width: 100%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { margin: 0 auto 16px; }
  .why-list li { text-align: left; }
  .gallery-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { padding: 44px 0 64px; }
}
