:root {
    color-scheme: light;
    --ink: #102843;
    --body: #405269;
    --red: #b61e31;
    --red-dark: #921629;
    --blue: #143c65;
    --wash: #edf4f9;
    --line: #cbd9e5;
    --paper: #fff;
    --container: 1216px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 100%;
    line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--body); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: var(--blue); text-underline-offset: .23em; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid #1871af; outline-offset: 4px; }
html { scroll-padding-top: 1.5rem; }

h1, h2, h3 {
    color: var(--ink);
    line-height: 1.08;
    letter-spacing: -.038em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.25rem); font-weight: 800; letter-spacing: -.065em; }
h1 span { color: var(--red); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.8rem); font-weight: 760; }
h3 { font-size: 1.3rem; }

.container { width: min(var(--container), calc(100% - 3rem)); margin-inline: auto; }
.section { padding-block: clamp(2.8rem, 6vw, 5.15rem); }
.skip-link { position: absolute; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--paper); z-index: 2; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-banner {
    background: linear-gradient(to bottom, #ef1c24 68%, #0675b6 68%);
}
.header-banner .container { display: flex; align-items: center; min-height: 76px; }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: clamp(1rem, 3.8vw, 3.5rem); min-height: 60px; }
.brand { flex: 0 0 auto; }
.brand img { width: clamp(142px, 15vw, 182px); border-radius: 3px; }
.nav-list { display: flex; gap: clamp(.65rem, 1.8vw, 1.5rem); flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-list a:hover, .nav-list [aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .7rem 1.2rem;
    border: 1px solid var(--red);
    border-radius: 6px;
    color: var(--paper);
    background: var(--red);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    line-height: 1.3;
    cursor: pointer;
}
.button:hover { color: var(--paper); border-color: var(--red-dark); background: var(--red-dark); }
.button-small { min-height: 44px; padding-inline: .95rem; }
.button-outline { color: var(--ink); border-color: #92abc1; background: transparent; }
.button-outline:hover { color: var(--ink); background: #e1eaf3; border-color: var(--blue); }
.text-link { color: var(--blue); font-weight: 720; }

.hero, .page-intro { background: var(--wash); border-bottom: 1px solid var(--line); }
.hero { padding-block: clamp(2.75rem, 6vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(1.8rem, 5vw, 5rem); }
.hero h1 { font-size: clamp(2rem, 5vw, 5.25rem); }
.hero-title-line { display: block; color: inherit; }
.eyebrow { color: var(--red); font-weight: 780; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-description { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; max-width: 35rem; margin-top: 1.4rem; }
.hero-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.hero-contacts li { min-width: 0; }
.hero-contacts a { font-weight: 700; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .85rem; }
.social-links { display: inline-flex; flex-wrap: wrap; vertical-align: middle; }
.social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.social-links img { width: 30px; }
.hero-photo { width: min(100%, 27rem); justify-self: end; background: var(--ink); border-radius: 12px; overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 42%; }

.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.55rem; }
.service-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-preview article { padding-top: 1.25rem; border-top: 2px solid var(--line); }
.service-preview h3 a { color: var(--ink); text-decoration: none; }
.service-preview h3 a:hover { color: var(--red); text-decoration: underline; }
.service-preview p, .service-row p { margin-top: .65rem; }

.about-panel { padding-block: clamp(2.75rem, 6vw, 5rem); background: var(--wash); }
.about-grid { display: grid; grid-template-columns: 1fr .88fr; align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.about-grid img { width: 100%; border-radius: 9px; }
.about-card { border: 1px solid var(--line); border-radius: 9px; background: var(--paper); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.about-grid p { max-width: 39rem; margin-block: 1rem; }

.page-intro { padding-block: clamp(2.5rem, 5vw, 4.75rem); }
.page-intro h1 { font-size: clamp(2.55rem, 6vw, 4.65rem); }
.page-intro p { max-width: 40rem; margin-top: .8rem; font-size: 1.15rem; }
.service-list { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem 2rem; padding-block: 1.4rem; border-bottom: 1px solid var(--line); }
.service-row h2 { font-size: clamp(1.3rem, 2.5vw, 1.85rem); }
.service-row p { max-width: 52rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); }
.gallery-grid figure { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: clamp(1.4rem, 5vw, 4rem); }
.quote-panel {
    background: var(--paper);
    padding: clamp(1.15rem, 3.2vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: 12px;
}
.quote-panel h2, .contact-details h2 { font-size: clamp(1.55rem, 2.9vw, 2.35rem); margin-bottom: 1.2rem; }
.quote-panel form { display: grid; gap: 1rem; }
.quote-panel button[type="submit"] { justify-self: start; }
.field { display: grid; align-content: start; gap: .25rem; min-width: 0; }
.field label, .quote-panel legend { color: var(--ink); font-weight: 700; }
.field label span { color: var(--body); font-weight: 400; }
.field input, .field textarea, .field select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: .55rem .7rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #839ab0;
    border-radius: 5px;
}
.field textarea { resize: vertical; }
.field select {
    appearance: none;
    padding-right: 2.35rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}
.field [aria-invalid="true"] { border: 2px solid var(--red); }
.field-error { color: var(--red-dark); font-weight: 650; }
.field-hint, .form-privacy { font-size: .94rem; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.quote-panel fieldset { border: 1px solid var(--line); border-radius: 6px; margin: 0; min-width: 0; padding: .65rem .85rem .85rem; }
.quote-panel fieldset p { margin-bottom: .65rem; }
.quote-panel legend { padding-inline: .25rem; }
.notice { padding: .85rem 1rem; border: 1px solid; border-radius: 5px; margin-bottom: 1rem; }
.notice-error { color: #821629; background: #fff1f3; border-color: #d797a1; }
.notice-success { color: #10492f; background: #ebf8f0; border-color: #8dbca3; }
.contact-details { padding-top: .8rem; }
.contact-details strong { color: var(--ink); }
.contact-list { display: grid; gap: .65rem; margin-block: 1.15rem 1.5rem; }
.contact-list div { display: grid; grid-template-columns: 7.3rem minmax(0, 1fr); gap: .5rem; }
.contact-list dt { color: var(--ink); font-weight: 650; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }
.contact-social { align-items: center; }
.map-panel { background: var(--wash); border-radius: 8px; overflow: hidden; }
.map-panel iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-actions { display: grid; justify-items: start; gap: .45rem; padding: 1rem; }
.map-preferences, .footer-preferences { padding: 0; border: 0; color: inherit; background: transparent; text-decoration: underline; text-underline-offset: .23em; cursor: pointer; }
.map-preferences:hover { color: var(--red); }

.prose { max-width: 770px; }
.prose h2 { font-size: clamp(1.25rem, 2.75vw, 1.75rem); margin-bottom: .6rem; }
.prose h2:not(:first-child) { margin-top: 2rem; }
.prose p + p { margin-top: .8rem; }
.policy-content h1 { font-size: clamp(2.15rem, 5vw, 3.8rem); margin-bottom: 1.35rem; }
.policy-content a { overflow-wrap: anywhere; }
.policy-content table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.policy-content th, .policy-content td { padding: .65rem; border: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
.policy-content th { background: var(--wash); color: var(--ink); }
.visit-stats { max-width: 850px; }
.visit-stats-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.visit-stats-card { padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.visit-stats-card h2 { font-size: 1rem; letter-spacing: 0; }
.visit-stats-card p { margin-top: .5rem; color: var(--ink); font-size: 2rem; font-weight: 750; }
.visit-stats > h2 { font-size: 1.5rem; }
.visit-stats-note { margin-top: .55rem; }
.visit-stats-table-wrap { overflow-x: auto; }
.visit-stats table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.visit-stats th, .visit-stats td { padding: .65rem; border: 1px solid var(--line); text-align: left; }
.visit-stats thead th { background: var(--wash); color: var(--ink); }
.error-page { min-height: 350px; }
.error-page p { margin-block: 1rem 1.35rem; }

.site-footer { background: var(--ink); color: #d7e4ee; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffd0d7; }
.footer-main { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1.2rem 2.5rem; padding-block: 2.1rem; }
.footer-brand { color: var(--paper); font-size: 1.25rem; font-weight: 750; margin-bottom: .35rem; }
.footer-contact { display: grid; gap: .4rem; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.75rem; padding-block: .9rem; border-top: 1px solid #53697f; font-size: .9rem; }
.footer-policy-links { display: flex; gap: .5rem 1rem; flex-wrap: wrap; }
.footer-preferences { color: #fff; }
.footer-preferences:hover { color: #ffd0d7; }

.preferences-dialog {
    width: min(calc(100% - 2rem), 36rem);
    max-height: calc(100dvh - 2rem);
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--body);
    background: var(--paper);
}
.preferences-dialog:not([open]) { display: none; }
.preferences-dialog::backdrop { background: rgb(16 40 67 / 65%); }
.preferences-dialog h2 { padding-right: 2.5rem; margin-bottom: .8rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.preferences-close { position: absolute; top: .6rem; right: .65rem; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font-size: 1.9rem; cursor: pointer; }
.preferences-close:hover { background: var(--wash); }
.preferences-policies { margin-top: .8rem; }
.preferences-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.preferences-actions .button { flex: 1 1 12rem; }

@media (max-width: 920px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 730px) {
    .container { width: calc(100% - 2rem); }
    .header-banner .container { min-height: 64px; }
    .header-inner { min-height: 48px; }
    .header-inner nav { width: 100%; }
    .header-quote { display: none; }
    .nav-list { justify-content: space-between; }
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(2rem, 7.5vw, 3.5rem); }
    .hero-photo { justify-self: start; }
    .service-preview { grid-template-columns: 1fr; }
}

@media (max-width: 490px) {
    .brand img { width: 132px; }
    .service-row, .field-pair, .gallery-grid { grid-template-columns: 1fr; }
    .contact-list div { grid-template-columns: 1fr; gap: 0; }
}
