/* Idaho Paint Solutions preview. Colors from their logo: Idaho blue #013893, red #DC143B. */
:root {
  --blue: #013893;
  --blue-dark: #0a1f4d;
  --blue-900: #071637;
  --red: #c8102e;
  --red-dark: #a50d26;
  --ink: #141b2b;
  --muted: #4a5468;
  --tint: #eef2f9;
  --cream: #fbfaf7;
  --white: #fff;
  --radius: 10px;
  --radius-lg: 20px;
  --pad: 2.5rem;
  --section: 6rem;
  --ribbon-h: 26px;
  --head: "Comfortaa", "Inter", system-ui, sans-serif;
}
@media (max-width: 991px) { :root { --pad: 2rem; --section: 4.5rem; } }
@media (max-width: 479px) { :root { --pad: 1rem; --section: 3.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.625rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.container { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }
.muted { color: var(--muted); }
.tagline { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem; }
.tagline-light { color: #ffd2da; }

/* 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: #111; color: #e8e8e8; font-size: .75rem; line-height: 1.2; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.25rem; padding: .75rem 1.5rem; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: 1rem; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--tint); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

/* Header */
.nav { position: fixed; top: var(--ribbon-h); inset-inline: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 16px rgb(7 22 55 / .08); }
.nav-bar { display: flex; align-items: center; gap: 2rem; height: 4.5rem; }
.logo { display: flex; align-items: center; gap: .625rem; text-decoration: none; color: var(--blue); }
.logo img { height: 3rem; width: auto; }
.logo-word { font-family: var(--head); font-weight: 700; font-size: 1.125rem; line-height: 1.05; }
.logo-word span { color: var(--red); }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .9875rem; color: var(--ink); }
.nav-links a:hover { color: var(--blue); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-call { margin-left: auto; }
  .nav-bar { height: 4rem; }
  .logo img { height: 2.5rem; }
  .logo-word { font-size: 1rem; }
}

/* Hero */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: flex-end; padding: calc(var(--ribbon-h) + 4.5rem + 4rem) 0 4.5rem; color: var(--white); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(7 22 55 / .88) 0%, rgb(7 22 55 / .6) 50%, rgb(7 22 55 / .1) 100%), linear-gradient(0deg, rgb(7 22 55 / .5), transparent 50%); }
.hero-inner { position: relative; }
.hero h1 { font-size: clamp(2.25rem, 5.6vw, 4.25rem); max-width: 16ch; margin-bottom: 1.25rem; }
.hero .lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34rem; margin-bottom: 2rem; color: #e9eefa; }
@media (max-width: 767px) {
  .hero { min-height: 0; padding: calc(var(--ribbon-h) + 4rem + 5rem) 0 2.5rem; }
  .hero-shade { background: linear-gradient(0deg, rgb(7 22 55 / .95) 0%, rgb(7 22 55 / .75) 55%, rgb(7 22 55 / .2) 100%); }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Trust strip */
.trust { background: var(--white); border-bottom: 1px solid #e3e7ef; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; justify-content: center; gap: .125rem; padding: 1.5rem 1.25rem; border-left: 1px solid #e3e7ef; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong { color: var(--blue); font-size: 1.0625rem; }
.trust-google span:last-child { color: var(--ink); }
.trust-google:hover strong { text-decoration: underline; }
.stars { color: #e0a100; letter-spacing: .1em; font-size: 1.125rem; }
@media (max-width: 860px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1rem .75rem; border-left: 0; border-top: 1px solid #e3e7ef; }
  .trust-item:first-child { padding-left: .75rem; }
  .trust-item:nth-child(-n+2) { border-top: 0; }
  .trust-item:nth-child(odd) { padding-left: 0; }
}

/* Sections */
.section { padding: var(--section) 0; }
.s-navy { background: var(--blue-dark); color: var(--white); }
.s-tint { background: var(--tint); }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; max-width: 42rem; margin-inline: auto; }
.section-head p { margin-top: 1rem; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px rgb(7 22 55 / .08); border: 1px solid #e8ebf2; }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-body { padding: 1.25rem 1.5rem 1.5rem; border-top: 4px solid var(--blue); }
.svc-body h3 { color: var(--blue); margin-bottom: .5rem; }
.svc-body p { color: var(--muted); font-size: 1rem; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.work-head p { max-width: 26rem; color: #cfd8ea; margin: 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; gap: 1rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-span { grid-column: span 2; }
@media (max-width: 767px) {
  .work-head { flex-direction: column; align-items: start; gap: 1rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 9.5rem; gap: .625rem; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 700; margin-bottom: 1.25rem; }
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--muted); }
@media (max-width: 767px) { .steps { grid-template-columns: 1fr; } .step { padding: 1.5rem; } }

/* Service area */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.area h2 { margin-bottom: 1rem; }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.towns li { background: var(--white); border: 1px solid #e3e7ef; border-left: 4px solid var(--red); border-radius: var(--radius); padding: .875rem 1rem; font-weight: 600; color: var(--blue); }
@media (max-width: 767px) { .area { grid-template-columns: 1fr; gap: 2rem; } }

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.quote-copy p { color: #cfd8ea; margin: 1rem 0 1.5rem; max-width: 28rem; }
.quote-phone { display: block; font-family: var(--head); font-size: 2rem; font-weight: 700; text-decoration: none; margin-bottom: .5rem; }
.quote-email { color: #cfd8ea; overflow-wrap: anywhere; }
.quote-form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1rem; }
.quote-form label { display: grid; gap: .375rem; font-weight: 600; font-size: .9375rem; }
.quote-form input, .quote-form textarea { font: inherit; font-weight: 400; padding: .75rem .875rem; border: 1.5px solid #c9d0de; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgb(1 56 147 / .15); }
.form-note { background: var(--tint); color: var(--blue); border-radius: 8px; padding: .875rem 1rem; font-weight: 600; font-size: .9375rem; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; gap: 2rem; } .quote-form { padding: 1.25rem; } }

/* Footer */
.footer { background: var(--blue-900); color: #cfd8ea; padding: 3.5rem 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer h3 { font-family: "Inter", sans-serif; color: var(--white); font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.footer a { color: var(--white); text-decoration: none; overflow-wrap: anywhere; }
.logo-footer { color: var(--white); margin-bottom: 1rem; }
.logo-footer .logo-word span { color: #ff8fa3; }
.footer-small { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .8125rem; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* Phone call bar */
.call-bar { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .625rem;
    position: fixed; inset: auto 0 0; z-index: 40;
    padding: .625rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgb(7 22 55 / .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgb(7 22 55 / .25);
    transform: translateY(110%); opacity: 0; pointer-events: none; transition: transform .35s ease, opacity .35s ease;
  }
  .call-bar.is-visible { transform: none; opacity: 1; pointer-events: auto; }
  .call-bar a { display: flex; align-items: center; justify-content: center; min-height: 3.25rem; border-radius: var(--radius); font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--white); }
  .call-bar-call { background: var(--red); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); }
}
@media (max-width: 599px) {
  :root { --ribbon-h: 30px; }
  .ribbon { font-size: .6875rem; white-space: normal; line-height: 1.25; }
}
