@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --page-gutter: clamp(16px, 4.2vw, 28px);
    --page-gutter-sm: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));

    --page-bg: #F2F3F5; /* main background */

    --card-bg: #FFFFFF; /* cards */
    --card-bg-alt: #F9F9F9; /* optional alternate card */
    --card-border: rgba(17, 17, 17, 0.10);

    --text: #111111; /* main text */
    --text-2: #1A1A1A; /* slightly softer/secondary */
    --text-muted: rgba(17, 17, 17, 0.70);

    --panel-bg: rgba(255, 255, 255, 0.65);
    --panel-border: rgba(17, 17, 17, 0.10);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
        "Apple Color Emoji", "Segoe UI Emoji";
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --text-size-base: 1rem; /* 16px when browser default is 16px */
    --text-line-height: 1.5;

    --brand-amber: #f0a500;
    --brand-amber-bright: #ffb62a;
}

html {
    scroll-behavior: smooth;
    background-color: var(--page-bg);
    font-family: var(--font-sans);
    font-size: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
    background-color: var(--page-bg);
    font-family: var(--font-sans);
    font-size: var(--text-size-base);
    line-height: var(--text-line-height);
    font-weight: var(--font-weight-regular);
    color: var(--text);
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth edge gradient / vignette */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

body > * {
    position: relative;
    z-index: 1;
}

/* Header styling */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
    color: #111111;
    padding: 14px clamp(18px, 3.5vw, 32px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: clamp(18px, 2.8vw, 36px);
    row-gap: 10px;
}

.logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-inline-end: 4px;
}

.logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 0;
    /* Keep it subtle so it doesn't "stand out" too much */
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.25));
}

header nav {
    display: flex;
    justify-content: center;
    justify-self: center;
    min-width: 0;
    padding-block: 2px;
    margin-inline: clamp(4px, 1.5vw, 12px);
}

.header-phone-btn {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.15em;
    font-size: clamp(0.82rem, 1.05vw, 0.98rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    color: #111;
    background: #f0a500;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.header-phone-btn:hover {
    background: #ffb62a;
    transform: translateY(-1px);
}

.header-phone-btn:active {
    transform: translateY(0);
}

/* Hero — full viewport width (outside main); engine photo only here */
.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    padding: clamp(20px, 5vh, 48px) clamp(20px, 4vw, 40px);
    /* Matches body — photo + masks fade into page navy at edges */
    background-color: var(--page-bg);
    box-sizing: border-box;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("hero-engine.png") center center / cover no-repeat;
    
    transform: scale(1.08);
    /* Softer, wider fade at edges so it meets the page / services strip cleanly */
    -webkit-mask-image: radial-gradient(
        ellipse 125% 112% at 50% 44%,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.55) 65%,
        rgba(0, 0, 0, 0.18) 86%,
        transparent 100%
    );
    mask-image: radial-gradient(
        ellipse 125% 112% at 50% 44%,
        #000 0%,
        #000 36%,
        rgba(0, 0, 0, 0.55) 65%,
        rgba(0, 0, 0, 0.18) 86%,
        transparent 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Soft spotlight center + smooth edge/bottom blend into page bg */
    background:
        radial-gradient(
            ellipse 70% 55% at 50% 40%,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.06) 28%,
            rgba(255, 255, 255, 0.00) 60%
        ),
       
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.44) 0%,
            rgba(0, 0, 0, 0.46) 38%,
            rgba(0, 0, 0, 0.32) 62%,
            rgba(0, 0, 0, 0.08) 82%,
            transparent 100%
        );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    justify-self: center;
    width: min(100%, 1000px);
    max-width: 1000px;
    min-width: 0;
    padding-inline: 0;
}

.hero-title {
    font-size: clamp(1.85rem, 4.2vw + 0.4rem, 3.15rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0 0 1.125rem;
    font-weight: var(--font-weight-bold);
    color: #fff;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.35),
        0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-title-accent {
    display: inline;
    color: var(--brand-amber-bright);
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 0 24px rgba(240, 165, 0, 0.22);
}

.hero-sublead {
    margin: 0;
    font-size: clamp(0.98rem, 1.35vw + 0.35rem, 1.14rem);
    line-height: 1.62;
    font-weight: var(--font-weight-medium);
    color: rgba(255, 248, 235, 0.88);
    max-width: min(52ch, 100%);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
    padding-left: 0.65rem;
    border-left: 3px solid var(--brand-amber);
    overflow-wrap: break-word;
}

.hero-actions {
    margin-top: 1.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: #f0a500;
    color: #111;
}

.btn-primary:hover {
    background: #ffb62a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Navigation menu */
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 28px);
    row-gap: 8px;
}

.nav-links li {
    margin: 0;
}

.nav-links li a {
    display: inline-block;
    color: #111111;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.2rem);
    line-height: 1.25;
    letter-spacing: 0.01em;
    padding: 0.45em 0.6em;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links li a:hover {
    color: #f0a500;
    background-color: rgba(240, 165, 0, 0.08);
}

/* Main sections */
main {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: none;
    margin: 0;
}

section {
    margin-bottom: 0;
}

main > section {
    background: var(--card-bg);
    border-radius: 14px;
    padding: 24px 26px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

h2 {
    margin-bottom: 10px;
    color: var(--text-2);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.01em;
}
/* Services section — full-width, no boxed container */
#services {
    min-height: 85vh;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 26px 0;
    background: var(--page-bg);
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.services-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 54px 26px 62px;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#about {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 0 40px;
    background: var(--page-bg);
    box-sizing: border-box;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#about::before {
    content: "";
    display: block;
    width: 60%;
    max-width: 42rem;
    height: 1px;
    margin: 40px auto;
    background: linear-gradient(
        90deg,
        rgba(17, 17, 17, 0) 0%,
        rgba(17, 17, 17, 0.08) 18%,
        rgba(17, 17, 17, 0.16) 50%,
        rgba(17, 17, 17, 0.08) 82%,
        rgba(17, 17, 17, 0) 100%
    );
}

.about-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 54px 26px 62px;
}

/* About + location: two columns */
.about-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    min-width: 0;
}

.location-col {
    min-width: 0;
}

.about-text-col {
    min-width: 0;
}

.about-text-col h2 {
    color: var(--text-2);
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    font-weight: var(--font-weight-bold);
}

.about-lead {
    color: var(--text-2);
    font-size: 1.08rem;
    line-height: 1.6;
    margin-bottom: 16px;
    max-width: 58ch;
}

.about-text-col p:not(.about-lead) {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 58ch;
}

.about-text-col p:not(.about-lead):last-of-type {
    margin-bottom: 20px;
}

.about-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-width: 58ch;
    border-top: 1px solid var(--card-border);
    padding-top: 20px;
}

.about-highlights li {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
    padding-left: 14px;
    border-left: 3px solid #f0a500;
}

.about-highlights strong {
    color: var(--text-2);
    font-weight: var(--font-weight-semibold);
}

.location-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.map-embed-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    background: var(--card-bg-alt);
    border-bottom: 1px solid var(--card-border);
}

.map-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.location-details {
    padding: 22px 24px 24px;
    display: grid;
    gap: 16px;
    min-width: 0;
}

.location-address,
.location-hours {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.0;
    margin: 0;
}

.location-address strong,
.location-hours strong {
    color: var(--text-2);
    font-weight: var(--font-weight-semibold);
    display: block;
    margin-bottom: 4px;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    color: #111;
    background: #f0a500;
    border: 1px solid rgba(17, 17, 17, 0.08);
    transition: transform 120ms ease, background-color 120ms ease;
    width: fit-content;
    margin-top: 4px;
}

.btn-maps:hover {
    background: #ffb62a;
    transform: translateY(-1px);
}

/* Footer — contact strip */
.site-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: linear-gradient(180deg, #E8EAED 0%, #E2E5EA 100%);
    box-sizing: border-box;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
    color: var(--text);
    padding: 0;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 26px 28px;
}

.footer-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.footer-contact-info {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-heading {
    color: var(--text-2);
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    font-weight: var(--font-weight-bold);
    text-align: center;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 42ch;
    text-align: center;
}

.footer-direct {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
}

.footer-contact-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-contact-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-contact-lines .contact-link {
    display: inline-block;
}

.footer-contact-info .contact-link {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.footer-label {
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(17, 17, 17, 0.55);
}

.footer-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px 24px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.footer-form-title {
    color: var(--text-2);
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.footer-submit {
    width: 100%;
    margin-top: 4px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(17, 17, 17, 0.55);
}

.contact-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    row-gap: 14px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    text-decoration: none;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: color 160ms ease, transform 160ms ease;
    max-width: 100%;
    min-width: 0;
}

.social-link i {
    font-size: 1.15rem;
    color: var(--text-2);
    opacity: 0.88;
    transition: color 160ms ease, opacity 160ms ease;
}

.social-link .social-username {
    color: var(--text-2);
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: start;
}

.social-link:hover {
    color: var(--text-2);
    transform: translateY(-1px);
}

.social-link:hover i {
    color: #f0a500;
    opacity: 1;
}

.social-link:hover .social-username {
    color: #f0a500;
}

.social-link:focus-visible {
    outline: 2px solid #f0a500;
    outline-offset: 4px;
    border-radius: 4px;
}

.footer-copyright {
    margin: 26px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 17, 0.10);
    max-width: 36rem;
    padding-inline: var(--page-gutter-sm);
    box-sizing: border-box;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.52);
}

@media (max-width: 900px) {
    .about-location-grid {
        grid-template-columns: 1fr;
    }

    .footer-contact-grid {
        gap: 32px;
    }

    .contact-socials {
        gap: 14px 20px;
        margin-top: 24px;
        padding-top: 24px;
    }

    .social-link {
        font-size: 0.9rem;
    }

    .social-link i {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    #services {
        min-height: unset;
        padding-top: 20px;
        padding-bottom: 8px;
    }

    .services-inner {
        padding: 40px var(--page-gutter) 48px;
    }

    .section-head {
        margin-bottom: 28px;
        padding-inline: 2px;
    }

    #services h2 {
        margin-bottom: 10px;
    }

    #services .section-head p {
        font-size: 1rem;
        max-width: 100%;
        padding-inline: 0;
    }

    #about {
        padding: 0 0 32px;
    }

    #about::before {
        margin: 36px auto;
    }

    .about-inner {
        padding: 40px var(--page-gutter) 44px;
    }

    .about-location-grid {
        gap: 28px;
    }

    .about-lead,
    .about-text-col p:not(.about-lead) {
        max-width: 100%;
    }

    .about-highlights {
        max-width: 100%;
    }

    .location-details {
        padding: 18px var(--page-gutter) 22px;
    }

    .btn-maps {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero {
        padding-top: max(24px, env(safe-area-inset-top, 0px));
        padding-right: max(var(--page-gutter), env(safe-area-inset-right, 0px));
        padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
        padding-left: max(var(--page-gutter), env(safe-area-inset-left, 0px));
    }

    .hero-title {
        font-size: clamp(1.65rem, 5.2vw + 0.35rem, 2.4rem);
        margin-bottom: 1rem;
    }

    .hero-sublead {
        font-size: clamp(0.94rem, 2.8vw + 0.25rem, 1.08rem);
        max-width: 100%;
    }

    .hero-actions {
        margin-top: 1.35rem;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        box-sizing: border-box;
    }

    .footer-inner {
        padding: 40px var(--page-gutter) 26px;
    }

    .footer-tagline {
        margin-bottom: 22px;
        max-width: 100%;
        padding-inline: 4px;
    }

    .footer-direct {
        gap: 22px;
    }

    .contact-socials {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        row-gap: 12px;
        margin-top: 22px;
        padding-top: 22px;
    }

    .social-link {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        box-sizing: border-box;
        font-size: 0.95rem;
    }

    .social-link i {
        font-size: 1.1rem;
    }

    .social-link .social-username {
        text-align: center;
    }
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 22px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    color: var(--text);
}

.info-card h3 {
    color: var(--text-2);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    font-weight: var(--font-weight-semibold);
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.info-card p + p {
    margin-top: 8px;
}

.contact-link {
    color: #f0a500;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-form {
    display: grid;
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
}

.contact-form label span {
    color: var(--text-2);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--card-bg-alt);
    color: var(--text);
    padding: 10px 12px;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(17, 17, 17, 0.50);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(240, 165, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.14);
}

#services h2 {
    color: var(--text-2);
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    font-weight: var(--font-weight-bold);
}

#services .section-head p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

.section-head {
    margin-bottom: 34px;
    text-align: center;
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
    grid-auto-rows: 1fr;
    background: transparent;
}

.service-card {
    position: relative;
    height: 100%;
    min-height: 300px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    gap: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    transition:
        transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 300ms cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 300ms ease,
        background-color 300ms ease;
}

.service-card .service-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 34px;
    height: 34px;
    color: rgba(240, 165, 0, 1);
    opacity: 0.9;
    pointer-events: none;
}

.service-card h3 {
    color: var(--text-2);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    margin: 0;
    font-weight: var(--font-weight-semibold);
    padding-right: 40px;
    padding-left: 40px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.service-card .service-subtitle {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    justify-items: center;
    color: #f0a500;
    font-weight: var(--font-weight-medium);
}

.service-card .service-subtitle li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.service-card .service-subtitle li::before {
    content: "•";
    color: #f0a500;
}

.service-card .service-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 62ch;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(240, 165, 0, 0.28),
        0 0 18px rgba(240, 165, 0, 0.10);
    border-color: rgba(240, 165, 0, 0.34);
    background: var(--card-bg);
}

.service-card:focus-visible {
    outline: none;
    transform: translateY(-3px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(240, 165, 0, 0.36),
        0 0 18px rgba(240, 165, 0, 0.12);
    border-color: rgba(240, 165, 0, 0.42);
}

/* After base .services-grid / .service-card — single column stack on small screens */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        width: 100%;
        max-width: 100%;
        grid-auto-rows: auto;
    }

    .service-card {
        justify-self: center;
        width: 100%;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        min-height: 0;
        height: auto;
        padding: 22px calc(16px + env(safe-area-inset-right, 0px)) 24px
            calc(16px + env(safe-area-inset-left, 0px));
        gap: 12px;
    }

    .service-card .service-icon {
        top: 18px;
        right: max(16px, env(safe-area-inset-right, 0px));
    }

    .service-card h3 {
        padding-right: 38px;
        padding-left: 38px;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        text-wrap: balance;
    }

    .service-card .service-subtitle {
        font-size: 0.88rem;
        gap: 6px;
    }

    .service-card .service-subtitle li {
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .service-card .service-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        max-width: 100%;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
}

main > section p {
    color: var(--text-2);
    line-height: 1.6;
}

@media (max-width: 640px) {
    header {
        grid-template-columns: auto 1fr auto;
        column-gap: 10px;
        row-gap: 10px;
        padding: 12px max(14px, env(safe-area-inset-right, 0px)) 12px
            max(14px, env(safe-area-inset-left, 0px));
    }

    .logo {
        width: 92px;
    }

    .logo-container {
        margin-inline-end: 0;
    }

    header nav {
        margin-inline: 0;
        padding-block: 0;
    }

    .nav-links {
        gap: 4px 8px;
        justify-content: center;
    }

    .nav-links li a {
        font-size: clamp(0.92rem, 3.2vw, 1.02rem);
        padding: 0.4em 0.42em;
    }

    .header-phone-btn {
        padding: 0.52em 0.65em;
        font-size: 0.76rem;
    }

    .services-inner {
        padding: 32px var(--page-gutter) 40px;
    }

    .about-inner {
        padding: 32px var(--page-gutter) 40px;
    }

    .section-head {
        margin-bottom: 22px;
    }

    .service-card {
        padding: 20px max(14px, env(safe-area-inset-right, 0px)) 22px
            max(14px, env(safe-area-inset-left, 0px));
    }

    .service-card .service-icon {
        top: 16px;
        right: max(14px, env(safe-area-inset-right, 0px));
    }

    .service-card h3 {
        padding-right: 34px;
        padding-left: 34px;
        font-size: 0.92rem;
    }

    .service-card .service-desc {
        font-size: 0.875rem;
    }

    .service-card .service-subtitle {
        font-size: 0.85rem;
    }

    .footer-inner {
        padding: 32px var(--page-gutter) 26px;
    }

    .footer-heading {
        margin-bottom: 10px;
    }

    .footer-copyright {
        margin-top: 20px;
        padding-top: 16px;
        font-size: 0.76rem;
    }
}

@media (max-width: 520px) {
    header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "logo phone"
            "nav nav";
        align-items: center;
        column-gap: 12px;
        row-gap: 12px;
    }

    .logo-container {
        grid-area: logo;
        justify-self: start;
    }

    .header-phone-btn {
        grid-area: phone;
        justify-self: end;
    }

    header nav {
        grid-area: nav;
        width: 100%;
        justify-self: stretch;
        padding-top: 10px;
        margin-top: 2px;
        border-top: 1px solid rgba(17, 17, 17, 0.08);
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .nav-links li {
        flex: 1 1 0;
        min-width: 0;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        font-size: clamp(0.88rem, 2.9vw, 0.98rem);
        padding: 0.55em 0.35em;
        line-height: 1.2;
    }
}
.logo-wrapper {
    background: rgba(0,0,0,0.03);
    padding: 6px 10px;
    border-radius: 6px;
  }