/* ============================================================
   Just Painting Services — shared stylesheet
   Palette: white / grey / navy
   ============================================================ */

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

:root {
  --navy:       #102a4c;
  --navy-deep:  #0a1d36;
  --steel:      #2f5d8f;
  --ink:        #16202e;
  --grey:       #5d6675;
  --grey-100:   #f5f7fa;
  --grey-200:   #eceff4;
  --border:     #e0e5ec;
  --gold:       #f5b301;
  --white:      #ffffff;

  --radius:     12px;
  --radius-lg:  18px;
  --shadow-sm:  0 1px 3px rgba(16,42,76,.08), 0 1px 2px rgba(16,42,76,.05);
  --shadow:     0 12px 32px rgba(16,42,76,.10);
  --shadow-lg:  0 24px 60px rgba(16,42,76,.16);

  --maxw:       1180px;
  --font-head:  'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:  'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -.01em;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.4rem; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-grey { background: var(--grey-100); }
.section-navy { background: var(--navy); color: #dbe4f0; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: .75rem;
}
.section-navy .eyebrow { color: #8fb4e6; }
h2.section-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--grey); font-size: 1.08rem; margin-top: .85rem; }
.section-navy .section-head p { color: #b9c7da; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .9rem 1.6rem; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--grey-200); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

.stars { color: var(--gold); letter-spacing: 1px; }

/* ===== Top bar ===== */
.topbar { background: var(--navy-deep); color: #c6d3e4; font-size: .86rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.topbar .rating strong { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 1.4rem; }
.topbar-right a { color: #fff; font-weight: 600; }
.topbar-right a:hover { color: var(--gold); }
.topbar .dot { opacity: .5; }

/* ===== Header / nav ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.02rem; box-shadow: var(--shadow-sm); }
.brand-text em { font-style: normal; color: var(--steel); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--navy); transition: width .2s ease; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: .4rem; color: #fff; box-shadow: 0 4px 14px rgba(16,42,76,.28); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .2s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #1c3f6b 0%, transparent 55%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 100% 56px; opacity: .5; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: .4rem .9rem; border-radius: 50px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.4rem; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hero h1 span { color: #7fb0ef; }
.hero p.lead { color: #c4d3e6; font-size: 1.15rem; max-width: 36ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.hero-trust { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: #c4d3e6; }
.hero-trust strong { color: #fff; }

.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 1.8rem; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.hero-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.2rem; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-stat { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1.1rem; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: #fff; line-height: 1; }
.hero-stat .lbl { font-size: .82rem; color: #aebfd6; margin-top: .35rem; }

/* ===== Trust strip ===== */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--border); }
.trust-strip-inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1rem 2rem; padding-block: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .98rem; }
.trust-item svg { width: 22px; height: 22px; color: var(--steel); flex: none; }

/* ===== Cards grid (services) ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfd8e6; }
.card .icon { width: 54px; height: 54px; border-radius: 14px; background: var(--grey-100); color: var(--navy); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.card p { color: var(--grey); font-size: .98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.card .card-link svg { width: 16px; height: 16px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ===== Feature / split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.feature-list li { display: flex; gap: .85rem; align-items: flex-start; }
.feature-list .tick { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-top: .15rem; }
.feature-list .tick svg { width: 15px; height: 15px; }
.feature-list h4 { font-size: 1.02rem; margin-bottom: .15rem; }
.feature-list p { color: var(--grey); font-size: .95rem; }
.media-panel { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius-lg); padding: 2.4rem; color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.media-panel::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.06); }
.media-panel .big-rating { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: #fff; }
.media-panel .muted { color: #b9c7da; }

/* ===== Service detail rows ===== */
.svc-row { display: grid; grid-template-columns: 80px 1fr; gap: 1.6rem; padding: 2rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.svc-row + .svc-row { margin-top: 1.4rem; }
.svc-row .icon { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.svc-row .icon svg { width: 32px; height: 32px; }
.svc-row h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.svc-row p { color: var(--grey); }
.svc-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.svc-tags span { background: var(--grey-100); border: 1px solid var(--border); color: var(--navy); font-size: .85rem; font-weight: 500; padding: .35rem .8rem; border-radius: 50px; }

/* ===== Stats band ===== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1; }
.stat .lbl { color: #b9c7da; margin-top: .4rem; font-size: .95rem; }

/* ===== Testimonials ===== */
.review-head { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-bottom: 2.4rem; }
.review-head .score { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--navy); line-height: 1; }
.review-head .meta { color: var(--grey); }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; }
.review-card .stars { font-size: 1.05rem; margin-bottom: .9rem; }
.review-card blockquote { color: var(--ink); font-size: 1rem; line-height: 1.6; flex: 1; }
.review-card .who { margin-top: 1.2rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.review-card .who span { display: block; color: var(--grey); font-weight: 400; font-size: .85rem; }

/* Platform badges (Google / Airtasker / Hipages) */
.platform-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.5rem; }
.platform-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--grey-100); border: 1px solid var(--border); border-radius: 50px; padding: .55rem 1.15rem; font-size: .92rem; color: var(--grey); box-shadow: var(--shadow-sm); }
.platform-badge strong { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
a.platform-badge { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.platform-badge:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.platform-badge .ext { font-size: .85em; opacity: .6; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 3.5rem); text-align: center; color: #fff; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: .8rem; }
.cta-band p { color: #c4d3e6; max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* ===== Page header (inner pages) ===== */
.page-header { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; text-align: center; padding-block: clamp(3rem, 6vw, 5rem); position: relative; }
.page-header h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .7rem; }
.page-header p { color: #c4d3e6; max-width: 56ch; margin: 0 auto; font-size: 1.1rem; }
.breadcrumb { font-size: .88rem; color: #9fb4d2; margin-bottom: 1rem; }
.breadcrumb a { color: #c4d3e6; }
.breadcrumb a:hover { color: #fff; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start; }
.info-card + .info-card { margin-top: 1.1rem; }
.info-card .icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--grey-100); color: var(--navy); display: grid; place-items: center; }
.info-card .icon svg { width: 24px; height: 24px; }
.info-card h4 { font-size: 1.02rem; margin-bottom: .15rem; }
.info-card a, .info-card p { color: var(--grey); font-size: .98rem; }
.info-card a:hover { color: var(--navy); }

/* ===== Form ===== */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--navy); margin-bottom: .4rem; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .95rem; border: 1.5px solid var(--border); border-radius: 10px; background: #fdfdfe;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(47,93,143,.14); background: #fff; }
.form-note { display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 10px; background: #e8f4ec; border: 1px solid #b6dcc4; color: #1d6b3b; font-size: .95rem; }
.form-note.error { background: #fdeaea; border-color: #f1b6b6; color: #a62828; }
.form-note a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-hint { color: var(--grey); font-size: .9rem; margin-top: 1rem; text-align: center; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-deep); color: #aebfd6; padding-block: 3.5rem 1.6rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand .brand-text em { color: #7fb0ef; }
.footer-about p { max-width: 38ch; color: #9fb0c8; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin-top: 1.3rem; font-size: .9rem; }
.footer-socials > span { color: #8195b2; }
.footer-socials a { color: #fff; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: .35rem .85rem; border-radius: 50px; }
.footer-socials a:hover { background: rgba(255,255,255,.16); }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #aebfd6; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; }
.footer-contact svg { width: 18px; height: 18px; color: #7fb0ef; flex: none; margin-top: .2rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; padding-top: 1.6rem; color: #8195b2; font-size: .88rem; }
.footer-bottom .stars { font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-card { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: .6rem 1.4rem 1.2rem; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--grey-200); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: .9rem 0 0; padding-block: .85rem; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 1.1rem; }
  .topbar-right { gap: 1rem; }
  .topbar .hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-bottom { justify-content: flex-start; }
}
