:root {
    --ink: #1d1d1f;
    --paper: #f6f5f2;
    --orange: #f5680c;
    --muted: #666568;
}

html { scroll-behavior: smooth; }
body { font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
.align-items-start > main { padding-top: 88px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* Blazor focuses the page heading on navigation for screen readers. */
h1:focus-visible { outline: none; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
a.cta-button, a.service-card, a.contact-item { text-decoration: none; }

/* Site navigation */
.navbar {
    display: flex;
    min-height: 88px;
    padding: 0 max(2rem, calc((100vw - 1320px) / 2));
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid #e8e6e2;
    gap: 2rem;
}
.navbar-brand { gap: .7rem; flex-shrink: 0; color: var(--ink); }
.navbar-brand .logo { height: 65px; width: 65px; border-radius: 0; object-fit: contain; }
.navbar .nav-list-container { display: flex; }
.brand-name { display: flex; flex-direction: column; font-size: 1.65rem; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.brand-name small { font-size: .55rem; font-weight: 800; letter-spacing: .19em; margin-top: .4rem; }
.nav-list { gap: .15rem; align-items: center; }
.nav-link {
    color: var(--ink) !important;
    border-radius: 0;
    font-size: .86rem;
    font-weight: 700;
    padding: .8rem .75rem;
    transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { background: transparent; box-shadow: none; color: var(--orange) !important; transform: none; }
.nav-list li:last-child .nav-link { background: var(--ink); color: #fff !important; padding: .8rem 1.15rem; margin-left: .5rem; gap: .7rem; }
.nav-list li:last-child .nav-link:hover, .nav-list li:last-child .nav-link.active { background: var(--orange); color: #fff !important; }
.navbar-toggler-icon, .navbar-toggler-icon::before, .navbar-toggler-icon::after { background-color: var(--ink); }

/* Home */
.hero {
    min-height: min(760px, calc(100svh - 88px));
    background: var(--ink);
    isolation: isolate;
}
.hero::before {
    content: none;
}
.hero::after {
    content: "";
    position: absolute;
    right: 0;
    top: -2rem;
    width: 16rem;
    height: 19rem;
    background: url('/images/paint-splash.svg') right top / contain no-repeat;
    transform: scaleX(-1);
    opacity: .75;
    z-index: -1;
}
.hero-content {
    width: 100%;
    max-width: 1320px;
    padding: 6rem 2rem 7rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 4rem;
}
.hero-text { color: #fff; }
.eyebrow, .section-kicker {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--orange);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 1.4rem;
}
.eyebrow span { display: inline-block; width: 28px; height: 2px; background: var(--orange); }
.hero-text h1 {
    color: #fff;
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
    line-height: 1.01;
    letter-spacing: -.065em;
    text-shadow: none;
    margin-bottom: 2rem;
    animation: none;
}
.hero-text h1 span { position: relative; display: inline-block; z-index: 0; }
.hero-text h1 span::after {
    content: "";
    position: absolute;
    left: .06em;
    right: .14em;
    bottom: -.12em;
    height: .08em;
    background: var(--orange);
    transform: skewX(-20deg) rotate(-2deg);
    z-index: -1;
}
.hero-text .tagline { max-width: 31rem; color: #d3d1cf; font-size: 1.15rem; line-height: 1.7; margin: 3rem 0 2.3rem; animation: none; }
.hero-text .cta-button, .cta-section .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1rem 1.35rem;
    background: var(--orange);
    color: #fff;
    border-radius: 0;
    box-shadow: none;
    font-size: .95rem;
    font-weight: 800;
    animation: none;
}
.hero-text .cta-button:hover, .cta-section .cta-button:hover { background: #df5600; color: #fff; box-shadow: none; transform: translateY(-2px); }
.hero-secondary { display: inline-flex; gap: .8rem; align-items: center; color: #fff; font-size: .9rem; font-weight: 700; margin-left: 1.7rem; text-decoration: none; }
.hero-secondary:hover { color: var(--orange); }
.hero-logo { animation: none; }
.hero-brand-card { position: relative; background: #fff; padding: 1.3rem 1.6rem; box-shadow: 18px 18px 0 var(--orange); transform: rotate(2deg); }
.hero-card-label { display: block; font-size: .65rem; font-weight: 900; letter-spacing: .25em; text-align: left; }
.hero-brand-card img { display: block; width: min(100%, 450px); height: auto; margin: 0 auto; }
.hero-card-caption { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #ddd; padding-top: 1rem; font-size: .75rem; font-weight: 900; letter-spacing: .13em; }
.hero-card-caption span { color: var(--orange); font-size: 1.2rem; }

.services, .content-section { background: var(--paper); padding: 6rem 2rem 7rem; }
.services, .content-section { position: relative; isolation: isolate; overflow: hidden; }
.services::before, .content-section::before {
    content: "";
    position: absolute;
    top: -2rem;
    left: -.5rem;
    width: 14rem;
    height: 17rem;
    background: url('/images/paint-splash.svg') left top / contain no-repeat;
    pointer-events: none;
}
.services > .container, .content-section > .container { position: relative; z-index: 1; }
.container { max-width: 1200px; }
.section-kicker { justify-content: center; margin-bottom: .5rem; }
.section-title { font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.1; font-weight: 900; letter-spacing: -.055em; color: var(--ink); margin-bottom: 1rem; }
.section-title::after { display: none; }
.section-intro { max-width: 35rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 1.05rem; }
.services-grid { gap: 1.25rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.service-card, .service-detail {
    background: #fff;
    color: var(--ink);
    border-radius: 0;
    border: 1px solid #e9e7e3;
    box-shadow: none;
    text-align: left;
    padding: 2rem;
}
.service-card { min-height: 300px; display: flex; flex-direction: column; }
.service-card::before { display: none; }
.service-card:hover, .service-card:focus-visible, .service-detail:hover { transform: translateY(-4px); box-shadow: 8px 8px 0 var(--orange); }
.service-card .service-icon, .service-detail .service-icon {
    width: 54px;
    height: 54px;
    background: #fff0e6;
    color: var(--orange);
    border-radius: 0;
    font-size: 1.4rem;
    margin: 0 0 2.5rem;
    box-shadow: none;
}
.service-card h3, .service-detail h3 { color: var(--ink); font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .8rem; }
.service-card p, .service-detail p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.service-card-overlay { position: static; transform: none; background: none; color: var(--orange); padding: 1.4rem 0 0; margin-top: auto; font-size: .84rem; }
.service-card:hover .service-card-overlay, .service-card:focus-visible .service-card-overlay { transform: none; }
.click-hint { justify-content: flex-start; }

.contact, .cta-section { background: var(--ink); color: #fff; padding: 6rem 2rem; overflow: hidden; }
.contact::before, .cta-section::before {
    inset: auto 0 -2rem auto;
    width: 16rem;
    height: 19rem;
    background: url('/images/paint-splash.svg') right bottom / contain no-repeat;
    transform: scale(-1);
    opacity: .55;
}
.contact-content { gap: clamp(2rem, 8vw, 8rem); align-items: center; }
.contact-info .section-kicker { justify-content: flex-start; }
.contact-info h2 { font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -.05em; color: #fff; margin-bottom: .6rem; }
.contact-lead { max-width: 26rem; color: #c6c5c3; margin-bottom: 2rem; }
.contact-details { gap: .4rem; }
.contact-item { background: none; padding: .75rem 0; border-radius: 0; color: #e4e2e0; font-size: .95rem; cursor: default; }
a.contact-item { cursor: pointer; }
a.contact-item:hover, a.contact-item:focus-visible { background: none; color: var(--orange); transform: translateX(4px); }
.contact-icon { width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--orange); background: none; color: var(--orange); border-radius: 0; font-size: 1rem; }
.contact-item strong { color: #fff; }
.contact-feature { position: relative; padding: 3rem; border: 1px solid #5b5855; }
.contact-feature::after { content: ""; position: absolute; right: -1rem; bottom: -1rem; width: 72%; height: 1rem; background: var(--orange); }
.contact-feature-mark { color: var(--orange); font-size: 5rem; font-weight: 900; line-height: .7; }
.contact-feature p { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.14; margin: 1rem 0 2.5rem; }
.contact-feature em { color: var(--orange); font-style: normal; }
.contact-feature a { color: #fff; text-decoration: none; font-weight: 800; border-bottom: 2px solid var(--orange); padding-bottom: .4rem; }
.contact-feature a:hover { color: var(--orange); }
.footer { position: relative; isolation: isolate; overflow: hidden; padding: 2.75rem 2rem; background: #141416; color: #b8b5b2; text-align: left; border-top: 1px solid #343434; }
.footer::before, .footer::after {
    content: "";
    position: absolute;
    width: 12rem;
    height: 14.2rem;
    background: url('/images/paint-splash.svg') left top / contain no-repeat;
    pointer-events: none;
}
.footer::before { left: -1rem; top: -2rem; }
.footer::after { right: -1rem; top: -2rem; transform: scaleX(-1); }
.footer-inner { position: relative; z-index: 1; max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
.footer-brand span { color: var(--orange); }
.footer-brand small { font-size: .65rem; letter-spacing: .12em; vertical-align: middle; }
.footer p { margin: 0; font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer a { color: #e6e3e1; text-decoration: none; }
.footer a:hover { color: var(--orange); }

/* Service pages and carousel */
.page-header { background: var(--ink); padding: 5rem 2rem; }
.page-header::before { inset: -2rem 0 auto auto; width: 16rem; height: 19rem; background: url('/images/paint-splash.svg') right top / contain no-repeat; animation: none; transform: scaleX(-1); opacity: .8; }
.header-content { text-align: left; }
.page-title { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; letter-spacing: -.06em; text-shadow: none; animation: none; }
.page-subtitle { font-size: 1.15rem; opacity: 1; color: #d6d4d2; animation: none; }
.slider-container { border-radius: 0; margin: 3rem auto; box-shadow: 10px 10px 0 var(--orange); }
.slide-content { border-radius: 0; }
.slider-nav:hover { background: var(--orange); }
.dot.active { background: var(--orange); }
.content-section .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service-detail::before { height: 4px; background: var(--orange); }
.service-list li::before { color: var(--orange); }
.info-box { margin-top: 3rem; padding: 2.5rem; background: #fff; border-left: 5px solid var(--orange); }
.info-box h3 { font-weight: 800; margin-bottom: 1rem; }
.info-box p { color: var(--muted); margin-bottom: 1rem; }
.cta-title { color: #fff; font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 900; letter-spacing: -.05em; }
.cta-text { color: #d6d4d2; }

/* Contact form and legal pages */
.contact-page, .legal-page { background: var(--paper); }
.contact-page .contact-card, .contact-page .contact-info-card, .contact-page .success-card, .legal-card { border-radius: 0; box-shadow: none; border: 1px solid #e9e7e3; }
.contact-page .contact-intro h2, .contact-page .success-card h2 { color: var(--ink); font-weight: 900; letter-spacing: -.04em; }
.contact-page .contact-info-card { background: var(--ink); }
.contact-page .contact-info-card h3, .contact-page .method-details strong { color: var(--orange); }
.contact-page .contact-method { border-radius: 0; }
.contact-page .method-icon { border-radius: 0; background: var(--orange); }
.contact-page .modern-input, .contact-page .modern-textarea, .contact-page .file-upload-label { border-radius: 0; background: var(--paper); }
.contact-page .modern-input:focus, .contact-page .modern-textarea:focus, .contact-page .file-upload-label:hover { border-color: var(--orange); }
.contact-page .btn-submit { background: var(--orange); border-radius: 0; box-shadow: none; }
.contact-page .btn-submit:hover:not(:disabled) { background: #df5600; box-shadow: none; }
.contact-page .btn-secondary { color: var(--orange); border-color: var(--orange); border-radius: 0; }
.contact-page .btn-secondary:hover { background: var(--orange); color: #fff; }
.legal-title { color: var(--ink); font-weight: 900; letter-spacing: -.05em; }
.legal-title::after, .legal-card::before { background: var(--orange); border-radius: 0; }
.legal-section { border-radius: 0; background: var(--paper); border-left: 3px solid var(--orange); }
.legal-icon { background: var(--orange); border-radius: 0; box-shadow: none; color: #fff; }

@media (max-width: 1200px) {
    .navbar { padding: 0 1.5rem; gap: 1rem; }
    .nav-link { padding: .8rem .5rem; font-size: .78rem; }
}
@media (max-width: 1024px) {
    .align-items-start > main { padding-top: 72px; }
    .navbar { min-height: 72px; padding: .3rem 1.5rem; }
    .navbar-brand .logo { height: 55px; width: 55px; }
    .navbar-toggler { display: block; }
    .nav-list-container { background: var(--ink); width: min(340px, 85vw); padding: 6rem 1.5rem 2rem; }
    .nav-list { align-items: stretch; }
    .nav-link { color: #fff !important; padding: 1rem; font-size: 1rem; }
    .nav-list li:last-child .nav-link { margin: .8rem 0 0; background: var(--orange); }
    .page-header, .content-section, .contact-page, .legal-page { margin-top: 0; }
    .hero { min-height: 0; }
    .hero-content { padding-top: 9rem; }
}
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; text-align: left; gap: 3rem; padding: 8rem 1.5rem 5rem; }
    .hero-text h1 { font-size: clamp(3.4rem, 12vw, 5rem); }
    .hero-text .tagline { margin: 2.5rem 0 2rem; }
    .hero-logo { width: min(100%, 420px); margin: 0 auto; }
    .hero-brand-card { box-shadow: 10px 10px 0 var(--orange); }
    .services, .content-section, .contact, .cta-section { padding: 4rem 1.5rem; }
    .services-grid, .content-section .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-content { grid-template-columns: 1fr; }
    .page-header { padding: 8rem 1.5rem 3rem; }
    .slider-container { margin: 2rem 1rem; }
    .slider-nav, .slider-controls { opacity: 1; pointer-events: auto; transition-delay: 0s; }
    .slider-controls { transform: translate(-50%, 0); }
}
@media (max-width: 480px) {
    .services::before, .content-section::before { width: 10rem; height: 12rem; top: -1rem; }
    .footer::before { left: -3rem; width: 7rem; height: 8.3rem; }
    .footer::after { right: -3rem; width: 7rem; height: 8.3rem; }
    .brand-name { font-size: 1.35rem; }
    .hero-secondary { display: flex; margin: 1.5rem 0 0; }
    .hero-card-caption { font-size: .6rem; }
    .service-detail, .contact-feature { padding: 1.5rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .contact-page .contact-card, .legal-card { padding: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
