/* Western Idaho Cabinets homepage preview.
   Colours from their logo: black #000, navy #205278, sky blue #83B9DB. */
:root {
  --ink: #0f1b26;
  --black: #0b0f13;
  --navy: #205278;
  --navy-dark: #173d5a;
  --sky: #83b9db;
  --sky-light: #a9cfe8;
  --light: #f2f6f9;
  --line: #dbe5ec;
  --white: #fff;
  --muted: #4a5866;
  --head: "Montserrat", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 2.5rem;
  --section: 6rem;
  --radius: 10px;
  --radius-lg: 16px;
  --ribbon: 26px;
}
@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: calc(var(--ribbon) + 5rem); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--ribbon); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); -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; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.15; color: var(--heading, var(--ink)); text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.175rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.i { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: calc(76rem + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.s-light { background: var(--light); }
.s-white { background: var(--white); }
.s-dark { background: var(--black); color: #dfe8ef; --heading: #fff; }
.tagline { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.s-dark .tagline { color: var(--sky); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.measure { max-width: 44rem; }
.section-head { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 3rem; }
.section-head.center { align-items: center; text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Ribbon */
.ribbon { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--ribbon); display: flex; align-items: center; justify-content: center; padding: 0 .75rem; background: #111; color: #dfe4e8; font-size: .75rem; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) { :root { --ribbon: 32px; } .ribbon { font-size: .6875rem; white-space: normal; text-overflow: clip; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .8rem 1.6rem; border-radius: 8px; border: 2px solid transparent; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn-sky { background: var(--sky); color: var(--black); }
.btn-sky:hover { background: var(--sky-light); }
.btn-outline-light { border-color: rgb(255 255 255 / .9); color: #fff; background: rgb(0 0 0 / .15); }
.btn-outline-light:hover { background: #fff; color: var(--black); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.nav { position: sticky; top: var(--ribbon); z-index: 50; background: rgb(255 255 255 / .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }
.logo { display: flex; text-decoration: none; }
.logo img { width: 170px; height: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 991px) { .nav-links { display: none; } }
@media (max-width: 479px) {
  .nav-bar { min-height: 4rem; gap: .75rem; }
  .logo img { width: 132px; }
  .nav-call span { display: none; }
  .nav-call { width: 2.75rem; padding: 0; }
}

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: min(44rem, calc(100vh - var(--ribbon) - 4.75rem)); padding-block: 5rem 4.5rem; color: #fff; background: var(--black); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 14 20 / .88) 0%, rgb(8 14 20 / .7) 38%, rgb(8 14 20 / .15) 75%), linear-gradient(0deg, rgb(8 14 20 / .55), rgb(8 14 20 / 0) 45%); }
.hero-inner { display: flex; flex-direction: column; gap: 1.1rem; }
.hero .tagline { color: var(--sky); }
.hero h1 { max-width: 40rem; font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.015em; color: #fff; }
.lead { max-width: 32rem; font-size: 1.1875rem; line-height: 1.55; color: #e6edf2; }
.hero .btn-row { margin-top: .5rem; }
@media (max-width: 767px) {
  .hero { min-height: 0; padding-block: 12rem 2.25rem; }
  .hero-inner { gap: .875rem; }
  .hero-bg { height: 14rem; object-position: 55% 60%; }
  .hero::before { background: linear-gradient(180deg, rgb(8 14 20 / 0) 0, rgb(8 14 20 / .15) 8rem, var(--black) 14rem); }
  .hero .tagline { font-size: .75rem; }
  .hero h1 { font-size: 1.875rem; }
  .lead { font-size: 1rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Trust strip */
.trust { background: var(--navy); color: #e3edf5; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .2rem; padding: 1.6rem 1.5rem; text-decoration: none; }
.trust-item + .trust-item { border-left: 1px solid rgb(255 255 255 / .18); }
.trust-item strong { font-family: var(--head); font-size: 1.0625rem; color: #fff; }
.trust-item span { font-size: .9375rem; color: #d6e3ee; line-height: 1.4; }
.trust-google span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / .4); }
.trust-google:hover span { text-decoration-color: #fff; }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .18); }
}
@media (max-width: 479px) { .trust-item { padding: 1.1rem .875rem; } .trust-item strong { font-size: 1rem; } .trust-item span { font-size: .875rem; } }

/* 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 var(--line); box-shadow: 0 10px 30px rgb(15 27 38 / .06); }
.svc-photo { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc-card:hover .svc-photo img { transform: scale(1.04); }
.svc-crown { background: #000; }
.svc-crown img { object-fit: contain; }
.svc-body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; border-top: 4px solid var(--sky); }
.svc-body p { font-size: .9688rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.work-head > div { display: flex; flex-direction: column; gap: .875rem; }
.work-head p { max-width: 24rem; color: #c3d0db; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14rem; gap: 1rem; }
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); background: #1a2530; }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { position: absolute; inset: auto 0 0; padding: 2.5rem 1rem .875rem; background: linear-gradient(180deg, rgb(5 10 15 / 0), rgb(5 10 15 / .85)); color: #fff; font-size: .9375rem; font-weight: 600; }
@media (max-width: 860px) {
  .work-head { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; }
  .g-wide { grid-column: auto; }
  .g-last { grid-column: span 2; }
}
@media (max-width: 479px) { .gallery { grid-auto-rows: 9.5rem; gap: .625rem; } .g-item figcaption { font-size: .8125rem; padding: 2rem .75rem .625rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { display: flex; flex-direction: column; gap: .75rem; padding: 2rem 1.75rem; border-radius: var(--radius-lg); background: var(--light); border: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .9688rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .step { padding: 1.5rem; } }

/* Service area */
.area { display: flex; flex-direction: column; gap: 1.25rem; }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; }
.towns li { padding: .45rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.contact-list { display: grid; gap: .75rem; margin-top: .5rem; }
.contact-list > * { display: flex; flex-direction: column; padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: 1.0625rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { border-color: var(--navy); }
.contact-list strong { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }

/* Quote form */
.quote { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 20px 50px rgb(15 27 38 / .1); border-top: 5px solid var(--navy); }
.quote-title { font-size: 1.75rem; }
.quote label { display: flex; flex-direction: column; gap: .35rem; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.quote input, .quote textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #b8c6d1; border-radius: 8px; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: #fbfdfe; }
.quote input:focus, .quote textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.quote textarea { resize: vertical; }
.form-note { padding: .875rem 1rem; border-radius: 8px; background: #e3eff7; color: var(--navy-dark); font-weight: 600; font-size: .9375rem; }
@media (max-width: 479px) { .quote { padding: 1.5rem 1.125rem; } }

/* Footer */
.footer { background: var(--black); color: #c3d0db; padding-block: 3rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid p + p { margin-top: .25rem; }
.footer-name { font-family: var(--head); font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { text-decoration: underline; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1rem; } }

/* 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 1rem calc(.75rem + env(safe-area-inset-bottom)); background: rgb(11 15 19 / .94); border-top: 1px solid rgb(255 255 255 / .1); backdrop-filter: blur(10px); }
  .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(--sky); color: var(--black); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); color: #fff; }
}
