/* =========================================================
   Grandston Painting — stylesheet
   Colour theme: deep navy + brushed brass on warm ivory.
   Change the colours here and the whole site follows.
   ========================================================= */
:root {
  --navy: #142235;
  --navy-2: #1d3150;
  --navy-3: #2a4268;
  --gold: #c69c5d;
  --gold-dark: #a87f43;
  --ivory: #f7f4ef;
  --sand: #ece6dc;
  --ink: #1f2933;
  --muted: #5b6673;
  --line: #e2dbcf;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(20, 34, 53, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 1rem; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .9rem; }
.eyebrow a { color: inherit; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1.7rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; letter-spacing: .02em; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; font-family: var(--sans); }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-dark); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.link-arrow { font-weight: 600; color: var(--navy-3); display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after, .service-card:hover .link-arrow::after { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.75); font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.logo { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.logo:hover { color: var(--navy); }
.logo-mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 1.5rem; border-radius: 4px; }
.logo-text { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); margin-top: .3rem; }
.logo-light, .logo-light:hover { color: var(--white); }
.logo-light .logo-mark { background: var(--gold); color: var(--navy); }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav > a, .nav-drop > a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.main-nav > a:hover, .nav-drop > a:hover, .main-nav a.active { color: var(--navy); border-bottom-color: var(--gold); }
.main-nav .btn { border-bottom: 2px solid transparent; }
.main-nav .btn:hover { color: var(--white); }
.nav-phone { font-weight: 600 !important; color: var(--navy) !important; }
.nav-drop { position: relative; }
.drop-menu { position: absolute; top: 100%; left: -1rem; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); box-shadow: var(--shadow); padding: .5rem 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { opacity: 1; visibility: visible; transform: none; }
.drop-menu a { display: block; padding: .55rem 1.1rem; color: var(--ink); font-size: .93rem; }
.drop-menu a:hover { background: var(--ivory); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero, .page-hero, .cta-band { background-color: var(--navy); background-image: linear-gradient(100deg, rgba(20,34,53,.94) 0%, rgba(20,34,53,.78) 45%, rgba(20,34,53,.35) 100%), var(--bg); background-size: cover; background-position: center; color: var(--white); }
.hero { padding: clamp(5rem, 12vw, 9rem) 0; }
.hero-inner { max-width: 720px; margin-left: max(20px, (100% - 1180px) / 2); }
.hero h1, .page-hero h1, .cta-band h2 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 2rem; }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.page-hero { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.page-hero p:not(.eyebrow) { color: rgba(255,255,255,.85); max-width: 620px; font-size: 1.1rem; margin: 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--ivory); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 1.8rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.trust-grid span { font-size: .88rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-tint { background: var(--ivory); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-img { min-height: 440px; border-radius: var(--radius); background-color: var(--sand); background-image: var(--bg); background-size: cover; background-position: center; box-shadow: var(--shadow); position: relative; }
.split-img::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1; }
.service-row + .service-row { margin-top: 5rem; }
.split-reverse .split-img::after { inset: 18px 18px -18px -18px; }

.check-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23142235' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat; }

/* ---------- Services grid ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.service-img { aspect-ratio: 16 / 10; background-color: var(--navy-2); background-image: var(--bg); background-size: cover; background-position: center; transition: transform .5s; }
.service-card:hover .service-img { transform: scale(1.03); }
.service-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.service-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card-extra { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-card-extra h3 { color: var(--gold); }
.service-card-extra .link-arrow { color: var(--white); }
.mini-list { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.mini-list li { padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.85); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.feature { padding: 2rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature-num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.process li { counter-increment: step; position: relative; padding-top: 3.6rem; }
.process li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 1.15rem; }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 1.3rem; left: 3.4rem; right: -.8rem; height: 1px; background: var(--gold); opacity: .5; }
.process strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); margin-bottom: .3rem; font-weight: 600; }
.process span { color: var(--muted); font-size: .96rem; }

/* ---------- CTA ---------- */
.cta-band { padding: 4.5rem 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.value { background: var(--ivory); border-left: 3px solid var(--gold); padding: 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { font-size: 1.1rem; }
.value p { margin: 0; font-size: .95rem; color: var(--muted); }
.area-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.area-chips li { background: var(--white); border: 1px solid var(--line); padding: .55rem 1.2rem; border-radius: 999px; font-weight: 500; color: var(--navy); }

/* ---------- Service detail ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 360px; gap: 4rem; align-items: start; }
.side-card { position: sticky; top: 110px; background: var(--ivory); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); padding: 2rem; }
.side-card p { color: var(--muted); font-size: .96rem; }
.side-card h4 { margin-top: 2rem; color: var(--muted); }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links a { display: block; padding: .6rem 0; font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-info dl { margin: 2rem 0 0; }
.contact-info dt { font-size: .75rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--gold-dark); margin-top: 1.3rem; }
.contact-info dd { margin: .2rem 0 0; font-size: 1.1rem; font-weight: 500; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.form-card label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 1.1rem; }
.form-card input, .form-card select, .form-card textarea { display: block; width: 100%; margin-top: .4rem; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink); background: var(--ivory); transition: border-color .2s, background .2s; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(198,156,93,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.err { display: block; color: #b42318; font-weight: 500; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-ok { background: #e8f3ec; color: #1e5a35; border: 1px solid #b7dcc4; }
.alert-err { background: #fdecea; color: #8a1f17; border: 1px solid #f3c1bb; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding-top: 4.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; }
.site-footer h4 { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--gold); }
.footer-about { margin-top: 1.3rem; }
.areas-list { columns: 2; }
.social { display: flex; gap: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.mobile-call { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 20px 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; max-height: calc(100vh - 82px); overflow-y: auto; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > a, .nav-drop > a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; }
  .main-nav .btn { margin-top: 1rem; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .feature-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .side-card { position: static; }
}
@media (max-width: 820px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-reverse > :first-child { order: 0; }
  .split-img { min-height: 300px; }
  .split-img::after { display: none; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .topbar-right { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; padding-bottom: 56px; }
  .topbar { display: none; }
  .service-grid, .feature-grid, .process, .values, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .logo-text { font-size: 1.25rem; }
  .mobile-call { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--gold); color: var(--navy); text-align: center; font-weight: 600; padding: 1rem; }
  .mobile-call:hover { color: var(--navy); }
}

/* ---------- One-page additions ---------- */
section[id], article[id] { scroll-margin-top: 90px; }
.section-head .lead { margin-top: .5rem; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.check-list-sm { margin: .4rem 0 0; }
.check-list-sm li { font-size: .93rem; margin-bottom: .4rem; color: var(--muted); }
.service-body p { flex: 0 0 auto; }
.contact-band { padding: clamp(4rem, 9vw, 6.5rem) 0; background-color: var(--navy); background-image: linear-gradient(100deg, rgba(20,34,53,.96) 0%, rgba(20,34,53,.88) 55%, rgba(20,34,53,.7) 100%), var(--bg); background-size: cover; background-position: center; color: var(--white); }
.contact-band h2 { color: var(--white); }
.contact-band .eyebrow { color: var(--gold); }
.contact-band .contact-info p { color: rgba(255,255,255,.82); }
.contact-band .contact-info dt { color: var(--gold); }
.contact-band .contact-info dd a { color: var(--white); }
.contact-band .contact-info dd a:hover { color: var(--gold); }
.contact-band .form-card { box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 0; }

/* ---------- Minimal header ---------- */
.header-call { padding: .8rem 1.4rem; font-size: .98rem; }
.header-call svg { flex: 0 0 auto; }
@media (max-width: 560px) {
  .header-call { padding: .7rem 1rem; }
  .header-call-num { display: none; }
}

/* ---------- Centered, rounded call button ---------- */
.btn { border-radius: 999px; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-inner .logo { justify-self: start; }
.header-call { justify-self: center; padding: .85rem 1.9rem; box-shadow: 0 6px 18px rgba(198,156,93,.35); }
@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-call { justify-self: end; }
}
.header-inner { grid-template-columns: 1fr; }


/* ---------- Hero brand heading (big business name, smaller headline) ---------- */
.hero .eyebrow.hero-brand { font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 600; letter-spacing: -.01em; text-transform: none; line-height: 1.05; color: var(--white); margin-bottom: .35em; }
.hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }

@media (min-width: 900px) {
  .hero h1 { white-space: nowrap; font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
  .hero-inner { max-width: 900px; }
}

@media (min-width: 1000px) {
  .area-chips { flex-wrap: nowrap; gap: .5rem; }
  .area-chips li { white-space: nowrap; padding: .5rem 1rem; font-size: .95rem; }
}
