@import url("./fonts.css");

@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("./barlow-semi-condensed-bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
:root {
    color-scheme: light;
    --bg: #f7f6f2;
    --paper: #fff;
    --ink: #1b1e24;
    --muted: #535965;
    --line: #dcdedc;
    --accent: #2147ba;
    --accent-hover: #17338d;
    --dark: #151920;
    --display: "Barlow Semi Condensed", "Barlow Condensed", "Arial Narrow", sans-serif;
    font-family: Inter, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: .99; overflow-wrap: break-word; }
h1 { font-size: clamp(3.4rem, 6.2vw, 6.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(2.3rem, 4vw, 4.1rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.65rem, 2.9vw, 3.15rem); }
p { line-height: 1.7; }
:focus-visible { outline: 2px solid #688bff; outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - 100px)); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: .5rem; left: 1rem; transform: translateY(-200%); background: var(--ink); color: #fff; padding: .75rem; }
.skip:focus { transform: translateY(0); }
main { min-height: 58vh; }

.site-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.brand { display: inline-flex; gap: .72rem; align-items: center; width: max-content; max-width: 100%; }
.brand img { width: auto; max-width: 78px; height: 45px; object-fit: contain; }
.brand-type { font: 700 1.55rem/.9 var(--display); white-space: nowrap; }
.brand-type small { display: block; color: var(--muted); font: 700 .55rem/1 Inter, sans-serif; letter-spacing: .2em; margin-top: .42rem; }
.main-nav { display: flex; gap: clamp(1rem, 2vw, 2.2rem); align-items: center; }
.main-nav a { padding-block: 1rem; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: .35em; }
.nav-toggle, .mobile-action { display: none; }
.nav-action { justify-self: end; white-space: nowrap; }

.button { display: inline-flex; align-items: center; gap: .7rem; justify-content: center; width: fit-content; max-width: 100%; padding: .78rem 1.1rem; font-size: .83rem; min-height: 46px; font-weight: 700; background: var(--accent); border: 1px solid var(--accent); color: #fff; transition: background .18s, border-color .18s; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.outline { background: transparent; color: var(--ink); border-color: #a8aeb9; }
.button.outline:hover { background: #e8edfa; border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.15rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding-block: .5rem; font-size: .86rem; font-weight: 700; color: var(--accent); border-bottom: 1px solid currentColor; }
.text-link:hover { color: var(--accent-hover); }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.hero-lead { color: var(--muted); max-width: 45ch; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; }

.hero { background: var(--dark); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); min-height: clamp(480px, 43vw, 650px); align-items: stretch; }
.hero-copy { align-self: center; position: relative; z-index: 1; padding: 3.6rem 1.8rem 3.6rem 0; }
.hero .eyebrow { color: #bccaff; }
.hero h1 { max-width: 10.5ch; margin: .85rem 0 1.35rem; }
.hero .hero-lead { color: #e0e4ec; }
.hero .actions { margin-top: 1.65rem; }
.hero .button.outline { border-color: #7e8797; color: #fff; }
.hero .button.outline:hover { background: #ffffff19; border-color: #fff; }
.hero-visual { position: relative; display: block; margin-right: calc(min(640px, 50vw - 50px) - 50vw); min-width: 0; }
.hero-visual img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 62% 52%; }
.hero-visual::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, var(--dark), transparent 24%); pointer-events: none; }

.segment { padding-block: clamp(3.25rem, 7.5vw, 7rem); }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: clamp(1.25rem, 3vw, 2.3rem); }
.card-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.featured-list { display: grid; gap: 1rem; }
.service-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); }
.service-card .card-image { display: block; overflow: hidden; }
.service-card img, .project-card > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card .card-content { display: grid; align-content: center; justify-items: start; gap: .7rem; padding: clamp(1.15rem, 3vw, 2.75rem); }
.service-card h3 a:hover { color: var(--accent); }
.card-content p, .project-content > p:not(.eyebrow) { color: var(--muted); font-size: .94rem; max-width: 58ch; }
.featured-list .service-card:not(.no-photo) { display: grid; grid-template-columns: 1fr 1fr; }
.featured-list .service-card img { height: 100%; min-height: 250px; max-height: 345px; }
.featured-list .service-card:nth-child(even) .card-image { order: 1; }
.featured-list .card-content { padding-inline: clamp(1.4rem, 5vw, 5rem); }
.featured-list .card-content .actions { margin-top: .45rem; }
.other-services { border-block: 1px solid var(--line); padding-block: clamp(2rem, 4vw, 3.8rem); }
.other-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; }
.other-inner h2 { font-size: clamp(2.1rem, 3.3vw, 3.15rem); }
.service-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.6rem; }
.service-links a { display: flex; gap: 1rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .75rem 0; font-size: .9rem; font-weight: 700; }
.service-links a:hover { color: var(--accent); }

.gallery-segment, .site-footer { background: var(--dark); color: #fff; --muted: #cacfd9; --line: #414752; }
.gallery-segment .text-link { color: #c2cfff; }
.gallery-segment .eyebrow { color: #c2cfff; }
.gallery-segment .project-card { background: #20252e; }
.portfolio-grid { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.portfolio-grid .project-card:first-child > img { aspect-ratio: 4 / 3; }
.project-card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.project-content { padding: 1.25rem; overflow-wrap: anywhere; }
.project-content h3 { margin-block: .35rem .6rem; font-size: clamp(1.65rem, 3vw, 2.4rem); }
.project-content details { margin-top: .75rem; border-top: 1px solid var(--line); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.comparison img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.comparison figcaption { color: var(--muted); font-size: .8rem; padding-top: .35rem; }
.about-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(1.5rem, 6vw, 6rem); align-items: center; }
.about-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.about-grid .eyebrow { margin-bottom: .65rem; }
.about-grid .actions, .about-grid .text-link { margin-top: 1.05rem; }
.contact-strip { background: #e9edf8; padding-block: clamp(2rem, 5vw, 4rem); }
.contact-strip h2 { font-size: clamp(2.1rem, 3.75vw, 3.5rem); margin-bottom: .6rem; }
.contact-strip-inner, .footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.site-footer { padding-block: 2.25rem; }
.footer-address, .footer-links { color: var(--muted); font-size: .82rem; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a:hover, .footer-address a:hover { color: #fff; text-decoration: underline; }

.page-head { padding-block: clamp(2.7rem, 6vw, 5.7rem) clamp(2.3rem, 5vw, 4.5rem); }
.page-head h1 { margin: .5rem 0 .75rem; }
.page-head .actions { margin-top: 1.3rem; }
.listing { padding-bottom: clamp(3rem, 6vw, 5rem); }
.listing h2 { margin-bottom: 1.2rem; }
.detail-base { border-bottom: 1px solid var(--line); background: #eeefed; }
.detail-head { padding-block: clamp(2.1rem, 5.2vw, 5rem); display: grid; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.detail-head.with-photo { grid-template-columns: .9fr 1.1fr; }
.detail-head h1 { margin: .7rem 0 1rem; }
.detail-head .button { margin-top: 1.25rem; }
.detail-photo { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.breadcrumb { color: var(--accent); font-size: .84rem; font-weight: 700; }
.breadcrumb:hover { text-decoration: underline; }
.service-info { display: grid; grid-template-columns: 1.13fr 1fr; gap: clamp(1.4rem, 6vw, 6rem); align-items: start; padding-block: clamp(2.7rem, 6vw, 5rem); }
.prose .preserve { white-space: pre-line; max-width: 68ch; color: var(--muted); line-height: 1.75; margin-top: .95rem; }
.steps { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.5rem); }
.steps h2, .service-info h2 { font-size: clamp(2.15rem, 3vw, 3.2rem); }
.steps ol { margin-bottom: 0; padding-left: 1.45rem; color: var(--muted); line-height: 1.6; }
.steps li + li { margin-top: .55rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.faq details { max-width: 78ch; border-bottom: 1px solid var(--line); }
summary { padding-block: .75rem; cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); padding-bottom: .88rem; }
.filters, .pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.filter { font-size: .83rem; display: inline-block; border: 1px solid #a8aeb9; padding: .62rem .85rem; }
.filter:hover, .filter[aria-current] { border-color: var(--accent); background: #e9edf8; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-panel { border: 1px solid var(--line); background: var(--paper); padding: clamp(1.3rem, 3vw, 2.6rem); }
.contact-panel h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); margin-bottom: .75rem; }
.contact-panel .actions { margin-top: 1.3rem; }
.phone-link { font-weight: 800; color: var(--accent); }
.hours { margin-bottom: 0; }
.hours > div { display: flex; justify-content: space-between; gap: .7rem; padding-block: .55rem; border-bottom: 1px solid var(--line); font-size: .87rem; }
.hours dd { margin: 0; text-align: right; color: var(--muted); }

@media (min-width: 1490px) { .hero-visual { margin-right: calc(640px - 50vw); } }
@media (max-width: 1050px) {
    .wrap { width: calc(100% - 64px); }
    .hero-visual { margin-right: -32px; }
    .main-nav { gap: 1rem; }
    .desktop-action { display: none; }
    .mobile-action { display: inline; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    .nav-shell { min-height: 68px; display: flex; flex-wrap: wrap; gap: .45rem; }
    .nav-shell .brand { margin-right: auto; }
    .brand img { height: 35px; }
    .brand-type { font-size: 1.25rem; }
    .nav-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #a8aeb9; color: var(--ink); background: var(--paper); min-height: 44px; padding: .45rem .55rem; font-size: .78rem; }
    .nav-action { min-height: 44px; padding-inline: .55rem; font-size: .78rem; }
    .nav-action .icon-arrow { display: none; }
    .main-nav { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
    .nav-toggle:not([hidden]) + .main-nav { display: none; position: absolute; inset: 100% 0 auto; padding: .5rem 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
    .nav-toggle:not([hidden]) + .main-nav.is-open { display: grid; }
    .hero-inner, .featured-list .service-card:not(.no-photo), .about-grid, .other-inner, .detail-head.with-photo, .contact-grid, .service-info { grid-template-columns: 1fr; }
    .hero-copy { padding: 2rem 0 1.65rem; }
    .hero h1 { max-width: 13ch; margin-block: .55rem .85rem; font-size: clamp(3.1rem, 11.6vw, 4.9rem); }
    .hero .actions { margin-top: 1.15rem; gap: .5rem; }
    .hero .button { padding-inline: .68rem; }
    .hero-visual { margin-inline: -18px; height: clamp(220px, 58vw, 400px); }
    .hero-visual::after { background: linear-gradient(180deg, var(--dark), transparent 23%); }
    .section-heading { align-items: start; flex-direction: column; gap: .55rem; }
    .featured-list .service-card:nth-child(even) .card-image { order: 0; }
    .featured-list .service-card img { min-height: 0; max-height: 270px; }
    .card-grid, .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-strip-inner, .footer-inner { flex-direction: column; align-items: start; }
    .other-inner { gap: .8rem; }
    .detail-photo { max-height: 360px; }
}
@media (max-width: 470px) {
    .card-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .hero .actions .icon-arrow { display: none; }
    .about-grid { gap: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.icon-arrow { display: inline-block; flex: 0 0 auto; width: .75rem; height: .75rem; position: relative; vertical-align: -.04rem; }
.icon-arrow::before { content: ""; position: absolute; top: 1px; right: 1px; width: 62%; height: 62%; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.icon-arrow::after { content: ""; position: absolute; top: 1px; right: 1px; width: 100%; height: 1.5px; background: currentColor; transform-origin: 100% 0; transform: rotate(-45deg); }
.arrow-down { transform: rotate(90deg); }
.menu-icon { width: 12px; height: 10px; border-top: 1px solid; border-bottom: 1px solid; position: relative; }
.menu-icon::after { content: ""; position: absolute; inset: 3.5px 0 auto; border-top: 1px solid; }

