/* Phase 4 — Canway logo palette: red, brown, charcoal and warm ivory. */
:root {
    color-scheme: light;
    --brand-red: #990102;
    --brand-red-dark: #760102;
    --brand-brown: #663201;
    --charcoal: #262020;
    --cream: #ffe7ca;
    --cream-hover: #fff2e3;
    --rose: #f6e5df;
    --sand: #fff0df;
    --tint: #faf5f2;
    --line: #e4d2c8;
    --ink: #262020;
    --muted: #62534c;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); font: 16px/1.65 "Segoe UI", system-ui, sans-serif; background: #fff; }
a { color: var(--brand-red); text-underline-offset: .2em; }
a:hover { color: var(--brand-brown); }
:focus-visible { outline: 3px solid #fff7ed; outline-offset: 3px; box-shadow: 0 0 0 6px var(--brand-red); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .58em; line-height: 1.15; letter-spacing: -.035em; font-weight: 800; }
h1 { font-size: clamp(2.45rem, 1.9rem + 2.75vw, 4.8rem); letter-spacing: -.047em; max-width: 21ch; }
h2 { font-size: clamp(1.55rem, 1.16rem + 1.35vw, 2.5rem); }
h3 { font-size: 1.24rem; }
p { margin: 0 0 .85em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 78ch; }
.section { padding-block: clamp(32px, 5vw, 68px); }
.tint { background: var(--tint); }
.eyebrow { margin-bottom: 9px; font-size: .78rem; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; color: var(--brand-red); }
.skip { position: absolute; left: 8px; top: -50px; background: #fff; padding: 6px 12px; z-index: 8; }
.skip:focus { top: 8px; }
.brandline { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.brand { flex-shrink: 1; }
.brand img { width: min(215px, 42vw); height: auto; }
.brand-phone { flex-shrink: 0; display: grid; line-height: 1.35; text-align: right; text-decoration: none; }
.brand-phone span { font-size: .75rem; color: var(--muted); }
.brand-phone strong { font-size: 1.05rem; white-space: nowrap; }
.navigation { background: linear-gradient(105deg, var(--brand-red), #7c1b0a); color: white; position: relative; z-index: 4; }
.nav-inner { min-height: 55px; }
#main-menu, #main-menu ul { list-style: none; margin: 0; padding: 0; }
#main-menu { display: flex; justify-content: space-between; align-items: stretch; gap: 3px; }
#main-menu a, #main-menu summary { display: flex; align-items: center; min-height: 55px; padding: 8px 12px; text-decoration: none; color: white; font-weight: 630; white-space: nowrap; }
#main-menu summary { color: var(--cream); cursor: pointer; list-style: none; }
#main-menu summary::-webkit-details-marker { display: none; }
#main-menu summary::after { content: "⌄"; margin-left: 6px; line-height: 1; font-size: .92em; }
#main-menu a:hover, #main-menu a:focus-visible { background: var(--brand-red-dark); }
.service-menu { position: relative; }
#main-menu .service-menu ul { position: absolute; top: 100%; left: 0; min-width: 176px; background: var(--brand-red-dark); box-shadow: 0 7px 18px #30120c40; }
#main-menu .service-menu li a { min-height: 44px; }
#main-menu [aria-current="page"] { color: var(--cream); }
.nav-toggle { display: none; }
.directory-hero, .landing-hero { color: white; background: radial-gradient(ellipse at 88% 16%, #773018, #411c1b 66%, var(--charcoal)); padding-block: clamp(25px, 4.7vw, 64px); }
.directory-hero .eyebrow, .landing-hero .eyebrow { color: var(--cream); }
.directory-hero-inner, .landing-grid, .split { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; gap: clamp(19px, 4vw, 52px); }
.directory-hero p, .landing-hero .hero-copy p { color: #f9eae3; font-size: 1.08rem; max-width: 54ch; }
.marketing-image { width: 100%; border-radius: 14px; object-fit: contain; border: 1px solid #ffffff45; box-shadow: 0 12px 22px #24151077; }
.landing-hero .marketing-image { margin-top: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: #ead4c9; margin-bottom: 14px; font-size: .85rem; }
.crumbs a { color: #fff; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 760; text-decoration: none; text-align: center; cursor: pointer; }
.gold { background: var(--cream); color: var(--brand-brown); }
.gold:hover { color: var(--brand-brown); background: var(--cream-hover); }
.outline { border-color: #d9a98c; color: white; }
.outline:hover { background: #6a2a1a; color: white; }
.dark { background: var(--brand-red); color: white; }
.dark:hover { background: var(--brand-red-dark); color: white; }
.service-strip { background: var(--sand); border-bottom: 1px solid #e3c9af; }
.strip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; padding-block: 12px; font-weight: 700; font-size: .9rem; }
.strip-grid span::before { content: "✓"; color: var(--brand-red); margin-right: 7px; }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.directory-search { width: min(320px, 100%); }
.directory-search label, .fields label { display: grid; gap: 4px; font-size: .86rem; font-weight: 740; min-width: 0; }
.directory-search p { margin: 0; font-size: .79rem; color: var(--muted); }
input, textarea { width: 100%; min-width: 0; border: 1px solid #9a7b68; background: white; color: var(--ink); font: inherit; border-radius: 7px; padding: 8px 10px; }
input { min-height: 42px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b5a51; opacity: 1; }
.location-grid, .cards, .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.location-card, .info-card { min-width: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.location-card { overflow: hidden; box-shadow: 0 7px 20px #4624190d; transition: box-shadow .2s, transform .2s; }
.location-card:hover, .location-card:focus-within { box-shadow: 0 12px 30px #46241926; transform: translateY(-2px); }
.location-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.location-card > a:focus-visible { outline-offset: -4px; }
.location-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--charcoal); }
.location-card-body { flex: 1; display: flex; flex-direction: column; align-items: start; padding: 15px 17px; }
.location-card-body h3 { margin: 7px 0; font-size: 1.42rem; }
.location-card-body p, .info-card p { color: var(--muted); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--rose); color: var(--brand-red-dark); font-size: .74rem; font-weight: 750; }
.card-link, .text-link { color: var(--brand-red); font-weight: 750; overflow-wrap: anywhere; }
.card-link { display: block; margin-top: auto; }
.quote { min-width: 0; color: var(--ink); padding: clamp(15px, 2.7vw, 27px); border: 1px solid #d5a283; border-radius: 15px; background: linear-gradient(143deg, #fcece2, #edc8af 85%); box-shadow: 0 9px 24px #29130e63; }
.quote .eyebrow { color: var(--brand-brown); }
.quote h2 { font-size: clamp(1.5rem, 1.24rem + 1.1vw, 2.15rem); }
.quote input, .quote textarea { background: #fffaf5; border-color: #9a725a; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 11px; }
.fields .full { grid-column: 1 / -1; }
.fields .full span { display: inline; }
.trap { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.submit { width: 100%; margin-top: 10px; }
.form-note { margin: 7px 0 0; font-size: .79rem; }
.form-error { padding: 8px 10px; background: #fff4ea; color: #7a1610; border: 1px solid #a94936; border-radius: 6px; }
.callout, .cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 14px; padding: clamp(15px, 3.5vw, 32px); }
.callout { background: linear-gradient(115deg, #fbece2, #ecd0b7); }
.cta { background: linear-gradient(115deg, var(--brand-red-dark), var(--brand-brown)); color: white; }
.callout p, .cta p { margin: 0; }
.callout .button { flex: 0 0 auto; }
.info-card { border-top: 3px solid var(--brand-red); padding: 15px 17px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card a { overflow-wrap: anywhere; }
.estimate-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; background: var(--sand); border-radius: 5px; font-weight: 750; }
.estimate-total output { color: var(--brand-red); font-size: 1.3rem; }
.night { background: var(--charcoal); color: white; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 10px; }
.steps li { display: grid; padding: 12px; gap: 4px; background: #47312b; border-radius: 7px; border-top: 3px solid var(--cream); }
.steps span { color: #f4e6de; font-size: .9rem; }
.checks { padding-inline-start: 1.25em; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
.gallery img { width: 100%; object-fit: contain; }
.gallery figcaption { padding: 7px 10px; font-weight: 650; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 11px; vertical-align: top; overflow-wrap: anywhere; }
thead th { color: white; background: var(--brand-brown); }
tbody tr:nth-child(even) { background: var(--tint); }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pills > * { padding: 6px 10px; background: white; border: 1px solid #d4b6a4; border-radius: 50px; max-width: 100%; overflow-wrap: anywhere; }
.faq details { border: 1px solid var(--line); margin-bottom: 8px; border-radius: 7px; padding: 10px 12px; }
.faq summary { font-weight: 750; cursor: pointer; }
.faq p { margin: 7px 0 0; }
.map { display: block; width: 100%; height: clamp(250px, 35vw, 420px); border: 1px solid var(--line); border-radius: 10px; }
.site-footer { padding-block: 25px; background: var(--charcoal); color: #f7eee8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: 20px; }
.footer-grid h2, .footer-brand { font-size: 1.08rem; margin: 0 0 6px; font-weight: 760; }
.footer-grid a { display: block; color: var(--cream); overflow-wrap: anywhere; }
@media (max-width: 850px) {
    #main-menu > li > a, #main-menu summary { padding-inline: 7px; }
    .location-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .wrap { width: min(1160px, 100% - 26px); }
    .directory-hero-inner, .landing-grid, .split { grid-template-columns: minmax(0, 1fr); }
    .nav-inner { min-height: 49px; }
    .nav-toggle { display: flex; width: 100%; min-height: 49px; justify-content: space-between; align-items: center; background: transparent; padding: 6px 0; border: 0; color: white; font: inherit; font-weight: 750; cursor: pointer; }
    #main-menu { display: block; }
    #main-menu.collapsible:not(.is-open) { display: none; }
    #main-menu a, #main-menu summary { min-height: 42px; }
    #main-menu .service-menu ul { position: static; }
    .strip-grid, .cards, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .callout, .cta, .directory-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 460px) {
    .location-grid, .cards, .gallery, .footer-grid { grid-template-columns: 1fr; }
    body { font-size: 15px; }
}
@media (max-width: 350px) {
    .fields { grid-template-columns: 1fr; }
}
