/* Salmeron Treasure Valley Painter: homepage mockup.
   Colors from their logo: brush blue #1a5dc8, teal #13a6a8, paint green #5ccb6a, with a deep navy for text. */

:root {
  --blue: #1a5dc8;
  --blue-dark: #134a9f;
  --teal: #0e7a80;
  --teal-bright: #13a6a8;
  --green: #5ccb6a;
  --green-dark: #47b556;
  --navy: #0b2a4a;
  --ink: #0f1d2c;
  --slate: #475569;
  --light: #f3f8fa;
  --tint: #e1eff1;
  --white: #fff;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Poppins", var(--font);
  --pad: 2.5rem;
  --container: 76rem;
  --section-pad: 6rem;
  --radius: 12px;
  --radius-lg: 20px;
  --ribbon-h: 28px;
}
@media (max-width: 991px) { :root { --pad: 2rem; --section-pad: 4.5rem; } }
@media (max-width: 479px) { :root { --pad: 1.25rem; --section-pad: 3.5rem; --ribbon-h: 34px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--ribbon-h) + 5rem); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--light); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.i { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; letter-spacing: -0.015em; color: var(--heading, var(--navy)); text-wrap: balance; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.25rem; line-height: 1.25; }
.tagline { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--teal)); }
.muted { color: var(--muted, var(--slate)); }
.measure { max-width: 38rem; }
.lead { font-size: 1.1875rem; line-height: 1.5; }

.container { width: 100%; max-width: calc(var(--container) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-pad); }
.section-head { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 1.125rem; align-items: flex-start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 991px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }

.s-light { background: var(--light); }
.s-white { background: var(--white); }
.s-tint { background: var(--tint); --muted: #3b4a5a; }
.s-dark { background: var(--navy); color: var(--white); --heading: var(--white); --muted: rgb(255 255 255 / .8); --accent: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary, .btn-sm { background: var(--blue); color: var(--white); }
.btn-primary:hover, .btn-sm:hover { background: var(--blue-dark); }
.btn-accent { background: var(--green); color: var(--navy); }
.btn-accent:hover { background: var(--green-dark); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--tint); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.15rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Preview ribbon */
.ribbon { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon-h); display: flex; align-items: center; justify-content: center; padding: 0 .75rem; background: var(--ink); color: rgb(255 255 255 / .88); font-size: .75rem; line-height: 1.25; text-align: center; }

/* Header */
.nav { position: sticky; top: var(--ribbon-h); z-index: 50; margin-top: var(--ribbon-h); background: rgb(255 255 255 / .96); border-bottom: 1px solid rgb(11 42 74 / .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5rem; }
.logo img { height: 3.75rem; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: .9375rem; text-decoration: none; color: var(--navy); }
.nav-links a:hover { color: var(--blue); }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 479px) {
  .ribbon { font-size: .6875rem; }
  .nav-bar { height: 4.25rem; }
  .logo img { height: 3.1rem; }
  .nav-call { padding-inline: .9rem; font-size: .875rem; }
}

/* Hero */
.hero { padding: 1rem 1rem 0; }
.hero-card { position: relative; isolation: isolate; overflow: hidden; min-height: min(40rem, calc(100svh - 8rem)); border-radius: 24px; display: flex; align-items: flex-end; padding: 6rem 4rem 3.5rem; color: var(--white); background: var(--navy); }
.hero-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 28 50 / .86) 0%, rgb(8 28 50 / .6) 42%, rgb(8 28 50 / .08) 75%), linear-gradient(0deg, rgb(8 28 50 / .45) 0%, rgb(8 28 50 / 0) 40%); }
.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; max-width: 40rem; }
.tagline.on-dark { color: var(--green); }
.hero h1 { color: var(--white); font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.06; }
.hero .lead { color: rgb(255 255 255 / .94); max-width: 32rem; }
.hero .btn-row { margin-top: .5rem; }
@media (max-width: 767px) {
  .hero { padding: .625rem .625rem 0; }
  .hero-card { min-height: 0; padding: 8.5rem 1.25rem 1.5rem; border-radius: 18px; }
  .hero .tagline { display: none; }
  .hero-copy { gap: 1rem; }
  .hero-card > img { object-position: 30% center; }
  .hero-card::before { background: linear-gradient(180deg, rgb(8 28 50 / .05) 0%, rgb(8 28 50 / .45) 25%, rgb(8 28 50 / .88) 50%, rgb(8 28 50 / .95) 100%); }
  .hero h1 { font-size: 1.875rem; }
  .hero .lead { font-size: 1.0625rem; }
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
}

/* Trust strip */
.trust { padding: 2rem 0 .5rem; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: .625rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid rgb(11 42 74 / .1); border-radius: var(--radius); font-size: .9375rem; line-height: 1.35; color: var(--navy); text-decoration: none; }
.trust-item .i { color: var(--teal); width: 1.5rem; height: 1.5rem; }
.trust-google:hover { border-color: var(--blue); }
.trust-google strong { color: var(--navy); }
.stars { color: #c98a00; letter-spacing: .05em; font-size: 1.05rem; }
@media (max-width: 991px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) {
  .trust { padding-top: 1rem; }
  .trust-row { gap: .5rem; }
  .trust-item { padding: .75rem .625rem; font-size: .8125rem; gap: .4rem; }
  .trust-google { grid-column: 1 / -1; font-size: .9375rem; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgb(11 42 74 / .08); box-shadow: 0 10px 30px rgb(11 42 74 / .06); }
.svc-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem 1.4rem 1.6rem; border-top: 4px solid var(--teal-bright); }
.svc-body p { color: var(--slate); font-size: .9688rem; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 17rem; gap: 1rem; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--navy); font-size: .8125rem; font-weight: 600; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 12rem; gap: .625rem; }
  .gallery figcaption { left: .5rem; bottom: .5rem; font-size: .75rem; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.step { display: flex; flex-direction: column; gap: .625rem; padding: 2rem; background: var(--white); border-radius: var(--radius-lg); }
.step-num { font-family: var(--head); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--blue); }
.step p { color: var(--slate); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; gap: 1rem; } .step { padding: 1.5rem; } }

/* Service area */
.towns { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: .5rem; }
.towns li { padding: .45rem 1rem; border: 1.5px solid rgb(255 255 255 / .35); border-radius: 999px; font-weight: 600; font-size: .9375rem; }
.area-card { display: flex; flex-direction: column; gap: .875rem; align-items: flex-start; padding: 2.25rem; border-radius: var(--radius-lg); background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); }
.area-card p { color: rgb(255 255 255 / .82); }

/* Form */
.form-wrap { align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: .875rem; margin-top: .5rem; width: 100%; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list strong { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); }
.contact-list a, .contact-list span { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.quote-form { display: flex; flex-direction: column; gap: 1.1rem; padding: 2.25rem; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgb(11 42 74 / .1); border-top: 6px solid var(--green); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid #b9c6d3; border-radius: 10px; background: var(--white); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(26 93 200 / .18); }
.field textarea { resize: vertical; }
.form-note { padding: .875rem 1rem; border-radius: 10px; background: #e7f7ea; color: #1d5a28; font-weight: 600; font-size: .9375rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } .quote-form { padding: 1.5rem 1.25rem; } }

/* Footer */
.footer { background: var(--ink); color: rgb(255 255 255 / .85); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 3rem; align-items: start; }
.footer-logo { display: inline-block; padding: .5rem .875rem; background: var(--white); border-radius: var(--radius); }
.footer-logo img { height: 4rem; width: auto; }
.footer-name { font-weight: 600; color: var(--white); }
.footer-details { display: flex; flex-direction: column; gap: 1rem; }
.footer-details li { display: flex; flex-direction: column; }
.footer-details strong { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--green); }
.footer-details a, .footer-details span { color: var(--white); overflow-wrap: anywhere; text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }
.footer-cta { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.footer-heading { font-family: var(--head); font-weight: 700; font-size: 1.125rem; color: var(--white); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .8125rem; color: rgb(255 255 255 / .6); }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .call-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; position: fixed; inset: auto 0 0; z-index: 55; padding: .625rem .875rem calc(.75rem + env(safe-area-inset-bottom)); background: rgb(11 42 74 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -4px 20px rgb(11 42 74 / .25); }
  .call-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; border-radius: 10px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .call-bar-call { background: var(--green); color: var(--navy); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); color: var(--white); }
}
