/* Montenegro's Painting & Construction: homepage preview.
   Colors from their logo: black, white and bright yellow #FFEF00. */
:root {
  --ink: #161616;
  --ink-2: #242424;
  --charcoal: #3a3a3a;
  --yellow: #ffef00;
  --yellow-dark: #e6d700;
  --cream: #f6f5ef;
  --line: #e2e0d6;
  --muted: #55534c;
  --white: #fff;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --pad: 2.5rem;
  --section: 6.5rem;
  --radius: 12px;
  --ribbon-h: 28px;
}
@media (max-width: 991px) { :root { --pad: 1.75rem; --section: 5rem; } }
@media (max-width: 479px) { :root { --pad: 1rem; --section: 4rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); 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; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.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(--cream); }
.s-white { background: var(--white); }
.s-dark { background: var(--ink); color: var(--white); }
.tagline { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .6rem; }
.tagline::before { content: ""; width: 1.75rem; height: 4px; background: var(--yellow); border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.s-dark .tagline, .hero .tagline { color: var(--yellow); }
.s-dark .tagline::before, .hero .tagline::before { box-shadow: none; }
.muted { color: var(--muted); }
.measure { max-width: 38rem; }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3.5rem; }
.section-head .tagline { margin-bottom: 0; }
.section-head.center { align-items: center; text-align: center; }

/* Ribbon */
.ribbon { position: fixed; inset: 0 0 auto; z-index: 70; height: var(--ribbon-h); display: flex; align-items: center; justify-content: center; padding: 0 .75rem; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .ribbon { font-size: .6875rem; white-space: normal; height: auto; min-height: var(--ribbon-h); padding-block: .25rem; } :root { --ribbon-h: 34px; } }

/* Buttons */
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: .85rem 1.6rem; border-radius: 8px; font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { color: var(--white); border-color: rgb(255 255 255 / .75); background: rgb(0 0 0 / .2); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.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: fixed; top: var(--ribbon-h); left: 0; right: 0; z-index: 60; background: rgb(22 22 22 / .96); border-bottom: 1px solid rgb(255 255 255 / .08); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 5.5rem; }
.logo img { height: 4.6rem; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; padding-block: .5rem; border-bottom: 2px solid transparent; }
.nav-links a:hover { border-color: var(--yellow); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav-bar { height: 4.25rem; }
  .logo img { height: 3.6rem; }
  .nav-call { min-height: 2.6rem; padding: .45rem .9rem; font-size: .9rem; }
}

/* Hero */
.hero { position: relative; min-height: max(36rem, min(calc(100vh - 7rem), 52rem)); display: flex; align-items: flex-end; padding-top: calc(var(--ribbon-h) + 5.5rem); color: var(--white); background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(12 12 12 / .88) 0%, rgb(12 12 12 / .62) 45%, rgb(12 12 12 / .1) 80%), linear-gradient(0deg, rgb(12 12 12 / .55), transparent 45%); }
.hero-inner { position: relative; z-index: 1; padding-block: 3rem 4.5rem; }
.hero-copy { max-width: 40rem; display: flex; flex-direction: column; gap: 1.25rem; }
.hero-copy .tagline { margin-bottom: 0; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; }
.lead { font-size: 1.2rem; line-height: 1.55; color: rgb(255 255 255 / .92); max-width: 34rem; }
.hero .btn-row { margin-top: .5rem; }
@media (max-width: 860px) {
  .hero { min-height: auto; padding-top: calc(var(--ribbon-h) + 4.25rem); }
  .hero-img { object-position: 70% 70%; }
  .hero-inner { padding-block: 5.5rem 2rem; }
  .hero-copy { gap: 1rem; }
  .hero::after { background: linear-gradient(0deg, rgb(12 12 12 / .92) 0%, rgb(12 12 12 / .7) 55%, rgb(12 12 12 / .25) 100%); }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .lead { font-size: 1rem; }
  .hero .btn { min-height: 3rem; }
  .hero .btn { flex: 1 1 100%; }
}

/* Trust strip */
.trust { background: var(--yellow); color: var(--ink); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: .1rem; padding: 1.5rem 1.25rem; text-decoration: none; border-left: 1px solid rgb(0 0 0 / .14); font-size: .9375rem; font-weight: 500; line-height: 1.35; }
.trust-item:first-child { border-left: 0; padding-left: 0; }
a.trust-item:hover span:last-child { text-decoration: underline; }
.trust-big { font-family: var(--display); font-weight: 700; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; }
.star { color: var(--ink); }
@media (max-width: 860px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1.1rem .9rem; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid rgb(0 0 0 / .14); }
  .trust-big { font-size: 1.4rem; }
}

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.svc-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.svc-card p { color: var(--muted); font-size: .975rem; }
.commercial { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 2.5rem; }
.commercial h3 { font-size: 1.8rem; margin-bottom: .75rem; }
.commercial .tagline { color: var(--yellow); }
.commercial .muted { color: rgb(255 255 255 / .8); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { border: 1.5px solid rgb(255 239 0 / .7); color: var(--white); border-radius: 999px; padding: .45rem 1rem; font-size: .9375rem; font-weight: 600; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: 1fr 1fr; } .commercial { grid-template-columns: 1fr; padding: 2rem 1.5rem; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 15rem; grid-auto-flow: dense; gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-wide { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-span2 { grid-column: span 2; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 11rem; gap: .6rem; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: none; }
.steps li { background: var(--ink-2); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); padding: 2rem 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.steps p { color: rgb(255 255 255 / .8); }
.step-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin-bottom: .5rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Area */
.area { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.area h2 { margin-bottom: 1rem; }
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.towns li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 8px; padding: .7rem .9rem; font-weight: 600; font-size: .975rem; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; gap: 2rem; } .towns { grid-template-columns: 1fr 1fr; } }

/* Estimate */
.estimate { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
.estimate-copy h2 { margin-bottom: 1rem; }
.big-phone { display: inline-block; margin-top: 1.75rem; font-family: var(--display); font-size: 2.25rem; font-weight: 700; text-decoration: none; border-bottom: 4px solid var(--yellow); }
.email { display: block; margin-top: .75rem; color: var(--muted); }
.form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .9375rem; }
input, textarea { font: inherit; font-size: 1rem; width: 100%; padding: .8rem .9rem; border: 1.5px solid #b9b6aa; border-radius: 8px; background: var(--white); color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 239 0 / .7); }
textarea { resize: vertical; }
.btn-primary.btn-block { background: var(--ink); color: var(--yellow); }
.btn-primary.btn-block:hover { background: #000; }
.form-note { background: var(--white); border-left: 4px solid var(--yellow); padding: .8rem 1rem; border-radius: 6px; font-weight: 600; font-size: .9375rem; }
@media (max-width: 860px) { .estimate { grid-template-columns: 1fr; gap: 2.5rem; } .form { padding: 1.4rem; } }
@media (max-width: 479px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--ink); color: rgb(255 255 255 / .82); padding-top: 3.5rem; font-size: .975rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer img { width: 11rem; height: auto; }
.footer h3 { color: var(--white); font-size: 1rem; letter-spacing: .08em; margin-bottom: .75rem; }
.footer p + p { margin-top: .35rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-base { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .875rem; color: rgb(255 255 255 / .6); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }

/* 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: .6rem; position: fixed; inset: auto 0 0; z-index: 65; padding: .65rem .9rem calc(.75rem + env(safe-area-inset-bottom)); background: rgb(22 22 22 / .95); border-top: 1px solid rgb(255 255 255 / .12); }
  .call-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; border-radius: 8px; font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
  .call-bar-call { background: var(--yellow); color: var(--ink); }
  .call-bar-quote { border: 1.5px solid rgb(255 255 255 / .85); color: var(--white); }
}
