/* Burns Plastering – single stylesheet, no build step. Fonts are self-hosted (SIL OFL). */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-normal-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-normal-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-normal-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-italic-latin-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #003b61;
  --blue: #004c9c;
  --ink: #262b2e;
  --muted: #5d6265;
  --line: #dde1e4;
  --tint: #f3f5f6;
  --white: #fff;
  --error: #a02b20;
  --ok: #1e6b3a;
  --radius: 4px;
  --wrap: 1180px;
  --serif: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, .hero-heading { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p, ul, dl { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--navy); }
.center { text-align: center; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--tint); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.button { display: inline-block; padding: .8em 1.6em; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; font: 700 .9rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; margin: .25em; }
.button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.button-ghost { background: transparent; color: var(--navy); }
.button-ghost:hover { background: var(--navy); color: #fff; }
.button-light { background: #fff; border-color: #fff; color: var(--navy); }
.button-light:hover { background: transparent; color: #fff; border-color: #fff; }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.button-outline-light:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { flex: 0 0 auto; }
.brand img { width: 300px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; font: 600 .95rem/1 var(--serif); letter-spacing: .06em; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }
.header-phone { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover { background: var(--blue); color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { padding: 10px; }
}
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; min-height: 64px; gap: 12px; }
  .brand img { width: 220px; }
  .header-phone { margin-left: auto; }
  .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; order: 3; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { order: 4; flex-basis: 100%; margin: 0; }
  .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 8px; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); border-left: 3px solid var(--navy); padding-left: 10px; }
  .js .site-nav:not(.is-open) { display: none; }
}

/* Hero slider */
.hero { position: relative; overflow: hidden; background: var(--tint); }
.hero-track { position: relative; height: clamp(360px, 62vh, 640px); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero-slide.is-active .hero-img { animation: kenburns 9s ease-out forwards; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.5); }
.hero-text { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 5%; }
.hero-text h1, .hero-text .hero-heading { font-size: clamp(2rem, 6.5vw, 4.4rem); color: #000; margin-bottom: .2em; }
.hero-text p:not(.hero-heading) { max-width: 36em; font-size: clamp(1rem, 1.8vw, 1.25rem); color: #000; font-weight: 700; margin: 0; }
.hero-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.hero-controls[hidden] { display: none; }
.hero-prev, .hero-next { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: rgba(255,255,255,.8); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: var(--navy); }
@keyframes kenburns { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .hero-slide.is-active { transition: none; }
  .hero-slide.is-active .hero-img { animation: none; }
}

/* Intro */
.intro h2 { text-align: center; }
.intro .lead { text-align: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,59,97,.14); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 6px; }
.card-body p { color: var(--muted); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 32px 0; }
.quote { margin: 0; padding: 28px 28px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: 4px; right: 18px; font: 600 4rem/1 var(--serif); color: var(--line); }
.quote blockquote { margin: 0; font-style: italic; }
.quote blockquote p:last-child { margin-bottom: .8em; }
.quote figcaption { font: 600 1rem/1.3 var(--serif); color: var(--navy); }
.testimonial-grid { columns: 2 380px; column-gap: 24px; }
.testimonial-grid .quote { break-inside: avoid; margin-bottom: 24px; }
.testimonial-grid .quote:target { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,76,156,.2); }

/* Mini gallery (home) */
.mini-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 32px 0; }
.mini-gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* Page header */
.page-head { background: linear-gradient(135deg, var(--navy) 30%, var(--blue) 100%); color: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { max-width: 46em; margin: .8em 0 0; font-size: 1.1rem; color: rgba(255,255,255,.9); }

/* Split layouts */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-media, .portrait { margin: 0; }
.split-media img, .portrait img { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.portrait img { max-height: 640px; object-fit: cover; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.ticks { list-style: none; padding: 0; columns: 2 220px; column-gap: 32px; }
.ticks li { position: relative; padding: 6px 0 6px 30px; break-inside: avoid; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 12px; height: 7px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,22,.94); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
body.no-scroll { overflow: hidden; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy) 30%, var(--blue) 100%); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { margin: 0; color: rgba(255,255,255,.9); }
.cta-actions { margin: -.25em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-details dl { margin: 0; }
.contact-details dt { font: 600 1rem/1.3 var(--serif); color: var(--navy); margin-top: 1.2em; }
.contact-details dd { margin: .2em 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.badge { width: 170px; height: 170px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-transform: uppercase; font: 700 .85rem/1.3 var(--sans); letter-spacing: .06em; box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--navy); margin: 8px 8px 16px; }
.badge span { font: 600 1.7rem/1.1 var(--serif); }
.contact-form { background: var(--tint); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #b9c0c5; border-radius: var(--radius); background: #fff; font: inherit; color: inherit; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0,76,156,.3); border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .95rem; margin: 4px 0 0; }
.form-note { font-size: .95rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; border-left: 4px solid; background: #fff; }
.notice h2 { font-size: 1.3rem; }
.notice p:last-child { margin: 0; }
.notice-success { border-color: var(--ok); }
.notice-error { border-color: var(--error); color: var(--error); }

/* Footer */
.site-footer { background: #0f1d27; color: rgba(255,255,255,.82); font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 32px; padding: 56px 0 32px; }
.footer-name, .footer-heading { font: 600 1.1rem/1.3 var(--serif); color: #fff; margin-bottom: .6em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 24px; font-size: .9rem; }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .cards, .quotes { grid-template-columns: 1fr; }
  .mini-gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .field-row { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 8px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 8px; transform: none; }
  .badge { width: 140px; height: 140px; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
}
