/* =========================================================
   Ameria's Painting — ameriaspainting.com
   Brand: navy #163c61, blue #06518b (from logo), cool gray #ced8d8
   One self-hosted font: Montserrat 700 (headings). Body: system fonts.
   ========================================================= */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #163c61;
  --navy-dark: #0e2740;
  --blue: #06518b;
  --blue-bright: #1f7bc4;
  --gray: #ced8d8;
  --alt: #f1f5f7;
  --ink: #1d2733;
  --muted: #55626f;
  --line: #dbe3e8;
  --white: #fff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(14, 39, 64, .10);
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hdr-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* Only left/right padding here (never shorthand) so media queries don't wipe vertical padding */
.wrap { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* Section heading pattern: small label + slogan in one h2 */
.h-label { display: block; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: .55em; }
.eyebrow { font-family: var(--head); font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: .9em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--head); font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--gray); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); transition: transform .3s ease; }
.site-header.hide { transform: translateY(-100%); }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.brand img { width: 210px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; padding: .55em .8em; border-radius: 6px; }
.nav a:hover { color: var(--blue); background: var(--alt); }
.nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); border-radius: 0; }
.hdr-right { display: flex; align-items: center; gap: 16px; }
.hdr-hours { font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; color: var(--muted); line-height: 1; white-space: nowrap; }
.btn-call { background: var(--blue); color: #fff; padding: .7em 1.1em; white-space: nowrap; }
.btn-call:hover { background: var(--navy); color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; border-radius: 8px; }
.menu-btn span { display: block; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (full background photo) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-dark); color: #fff; padding-top: 110px; padding-bottom: 110px; min-height: 600px; display: flex; align-items: center; }
.hero-grid { position: static; display: block; width: 100%; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,39,64,.94) 0%, rgba(14,39,64,.82) 42%, rgba(14,39,64,.45) 75%, rgba(14,39,64,.25) 100%); }
.hero-media.flip img { transform: scaleX(-1); } /* mirror the photo left-to-right */
.hero-text { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--gray); }
.lead { font-size: 1.12rem; color: #dbe5ee; max-width: 40em; }
.hero-page { padding-top: 80px; padding-bottom: 80px; min-height: 440px; }
.hero-page h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4em; }
.jump a { font-family: var(--head); font-weight: 700; font-size: .85rem; text-decoration: none; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.55); padding: .5em 1em; border-radius: 999px; }
.jump a:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Info strip ---------- */
.strip { background: var(--navy); color: #fff; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-top: 22px; padding-bottom: 22px; }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 6px 18px; border-left: 1px solid rgba(255,255,255,.18); }
.strip-item:first-child { border-left: 0; padding-left: 0; }
.strip-item .ico { width: 30px; height: 30px; color: var(--gray); }
.strip-item strong { display: block; font-family: var(--head); font-size: .95rem; line-height: 1.3; }
.strip-item strong a { color: #fff; text-decoration: none; }
.strip-item span { font-size: .85rem; color: #c9d6e2; }

/* ---------- Sections ---------- */
.section { padding-top: 80px; padding-bottom: 80px; }
.section.alt { background: var(--alt); }
.sec-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.sec-head p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-rev .split-text { order: 0; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media.framed img { background: #fff; }
.split-text p { color: var(--muted); }

.check-list { list-style: none; margin: 1.2em 0 1.6em; display: grid; gap: .7em; }
.check-list li { display: flex; gap: .7em; align-items: flex-start; }
.check-list .ico { color: var(--blue); margin-top: .22em; }
.check-list.cols { grid-template-columns: 1fr 1fr; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 1.1em; margin-top: 1.2em; }
.steps li { counter-increment: step; position: relative; padding-left: 3.1em; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1em; width: 2.1em; height: 2.1em; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; display: grid; place-items: center; }
.steps strong { color: var(--ink); }

/* Call button at the end of each service section */
.svc-section .check-list { margin-bottom: 1.4em; }
.svc-cta { margin-top: .2em; }

/* Service cards */
.svc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.svc-grid > .svc-card { flex: 0 1 calc((100% - 48px) / 3); }
.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(14,39,64,.05); transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.svc-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-body { display: flex; flex-direction: column; gap: .5em; padding: 22px 22px 24px; flex: 1; }
.svc-title { font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.svc-text { color: var(--muted); font-size: .97rem; flex: 1; }
.svc-more { display: inline-flex; align-items: center; gap: .4em; font-family: var(--head); font-weight: 700; font-size: .88rem; color: var(--blue); }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-grid.three { grid-template-columns: repeat(3, 1fr); }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.value-card .ico { width: 34px; height: 34px; color: var(--blue); margin-bottom: 14px; }
.value-card p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Areas */
.areas-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 36px; }
.area-mini { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.town-list { list-style: none; display: grid; gap: .4em; }
.town-list li { display: flex; align-items: center; gap: .5em; }
.town-list .ico { color: var(--blue); width: 1em; height: 1em; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.area-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; box-shadow: 0 2px 10px rgba(14,39,64,.05); }
.area-card h2 { font-size: 1.35rem; }
.area-card p { color: var(--muted); }
.area-card .town-list { grid-template-columns: 1fr 1fr; }
.note-box { margin-top: 36px; background: var(--alt); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 28px 32px; }
.note-box h2 { font-size: 1.35rem; }
.note-box p { margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: var(--alt); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ — all visible, no accordions */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.faq-item { background: var(--alt); border-radius: var(--radius); padding: 24px 26px; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: .45em; }
.faq-item p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.contact-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(14,39,64,.05); }
a.contact-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.contact-card .ico { width: 34px; height: 34px; color: var(--blue); margin-bottom: 12px; }
.contact-card p { color: var(--muted); margin: 0 0 .5em; font-size: .97rem; }
.contact-card .big { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.2rem; }
.contact-card .big.email { font-size: .98rem; overflow-wrap: anywhere; }
.hours { border-collapse: collapse; width: 100%; font-size: .95rem; }
.hours th, .hours td { white-space: nowrap; text-align: left; padding: .35em 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-weight: 600; color: var(--navy); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-dark), var(--blue)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band .h-label { color: var(--gray); }
.cta-band p { margin: 0; color: #d9e4ee; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; gap: 40px; padding-top: 60px; padding-bottom: 40px; }
.foot-brand img { width: 230px; margin-bottom: 18px; }
.foot-brand p { color: #fff; font-size: .95rem; opacity: .9; }
.foot-h { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.foot-list { list-style: none; display: grid; gap: .55em; font-size: .95rem; }
.foot-contact li { display: flex; gap: .6em; align-items: flex-start; }
.foot-contact .ico { margin-top: .25em; color: var(--gray); }
.foot-contact a { overflow-wrap: anywhere; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }
.foot-bottom p { margin: 0; color: #fff; opacity: .85; }
.foot-right { text-align: right; }
.site-footer .credit { margin-top: 6px; font-size: .75rem; color: #8fa5bb; opacity: 1; }
.site-footer .credit a { color: #8fa5bb; text-decoration: none; }
.site-footer .credit a:hover { color: #c9d6e2; text-decoration: underline; }
@media (max-width: 900px) { .foot-right { text-align: left; } .foot-bottom { padding-bottom: 80px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hdr-hours { display: none; }
}
@media (max-width: 1060px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14,39,64,.12); padding: 8px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9em .4em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blue); padding-left: .9em; }
  .hdr-right { margin-left: auto; }
  .hdr-hours { display: inline; }
}
@media (max-width: 1000px) {
  .svc-grid > .svc-card { flex-basis: calc((100% - 24px) / 2); }
  .value-grid, .areas-mini-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .hero { min-height: 0; padding-top: 80px; padding-bottom: 80px; }
  .hero-media::after { background: linear-gradient(180deg, rgba(14,39,64,.88) 0%, rgba(14,39,64,.78) 100%); }
  .split-rev .split-text { order: 2; }
  .split-rev .split-media { order: 1; }
  .area-grid, .faq-grid { grid-template-columns: 1fr; }
  .value-grid.three { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .map-frame { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .hdr-hours { display: none; }
}
@media (max-width: 600px) {
  :root { --hdr-h: 66px; }
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand img { width: 168px; }
  .btn-call { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  .btn-call .call-num { display: none; }
  .btn-call .ico { width: 20px; height: 20px; }
  .hdr-right { gap: 8px; }
  .hero, .hero-page { padding-top: 56px; padding-bottom: 60px; }
  .svc-grid > .svc-card { flex-basis: 100%; }
  .value-grid, .contact-grid, .areas-mini-grid, .foot-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-left: 0; padding-left: 0; }
  .check-list.cols, .area-card .town-list { grid-template-columns: 1fr 1fr; }
  .area-card, .note-box { padding: 24px 20px; }
  .btn-row .btn, .cta-btns .btn { flex: 1 1 100%; }
  .svc-cta { display: flex; width: 100%; }
  .cta-btns { width: 100%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --hdr-h: 58px; }
  .brand img { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* 404 page */
.nf-logo { width: 260px; margin: 0 auto 32px; }
.nf-btns { justify-content: center; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14,39,64,.3); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { background: var(--navy); color: #fff; }
.to-top .ico { width: 24px; height: 24px; }
@media (max-width: 600px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
