/* -------------------------
   Global Variables & Reset
------------------------- */
:root {
    /* Core brand and text colors */
    --primary: #173f6b;
    --accent: #1c4fb3;
    --accent-hover: #4f7fe0;
    --text-main: #33465a;
    --text-muted: #6a7a89;

    /* Backgrounds and borders */
    --bg-card: #fbfcfe;
    --bg-light: #f1f4f8;
    --border-color: #d8e0e8;
    --color-white: #ffffff;
    --color-transparent: transparent;

    /* Hero and footer colors */
    --hero-gradient-start: #edf3fb;
    --hero-gradient-end: #c8d8ef;
    --banner-text: #f2f6fb;
    --footer-text: #e7eef6;
    --footer-muted: #b9c7d6;

    /* Navigation and dropdown colors */
    --nav-text: rgba(255, 255, 255, 0.96);
    --nav-divider: rgba(255, 255, 255, 0.12);
    --dropdown-text: #33465a;
    --dropdown-border: #e0e6ec;

    /* Contact page colors */
    --contact-panel-bg: #f3f6fa;
    --contact-accent: #e8a509;
    --contact-divider: #d9e2eb;

    /* Gold supporting accents */
    --gold: #e8a509;
    --gold-hover: #f0b62f;
    --gold-soft: #fff6dc;
    --gold-border: #dfbd67;

    /* Focus and shadow colors */
    --focus-ring: rgba(28, 79, 179, 0.18);
    --shadow-card-faint: rgba(18, 53, 91, 0.025);
    --shadow-card-soft: rgba(18, 53, 91, 0.055);
    --shadow-nav: rgba(18, 53, 91, 0.12);
    --shadow-dropdown: rgba(18, 53, 91, 0.16);
    --shadow-navy-faint: rgba(18, 53, 91, 0.025);
    --shadow-navy-soft: rgba(18, 53, 91, 0.055);
    --shadow-navy-medium: rgba(18, 53, 91, 0.09);
    --shadow-navy-strong: rgba(18, 53, 91, 0.14);

    /* Form icon */
    --select-arrow-icon: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7a89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

    --radius: 8px;
    --transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
} *,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-card);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 0px;
}

/* Fluid Layout Structure */
.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

.container.narrow {
    width: 780px;
}

/* Global Section Utility spacing */
.section {
    padding: 80px 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

/* -------------------------
   Typography / Global Items
------------------------- */
.eyebrow {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 10px;
}

/* Button UI Components */
.button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    transition: var(--transition);
}

.primary-button {
    background: var(--accent);
    color: var(--color-white);
}

.primary-button:hover {
    background: var(--primary);
}

.secondary-button {
    background: var(--color-transparent);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-button:hover {
    background: var(--primary);
    color: var(--color-white);
}

.text-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    transition: var(--transition);
}

.text-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* -------------------------
   Top Bar
------------------------- */
.topbar {
    background: var(--accent);
    color: var(--color-white);
    padding: 10px 0;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;
}

.topbar .container {
    display: flex;
    justify-content: center;
}

.topbar a {
    color: var(--color-white);
    text-decoration: none;
}

.topbar a:hover {
    text-decoration: underline;
}

.phone {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* -------------------------
   Header and Navigation
------------------------- */

.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 44px;
    z-index: 900;
    box-shadow: 0 4px 12px var(--shadow-card-soft);
}

.header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 110px;
    gap: 40px;
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
}

.logo {
    display: block;
    width: auto;
    height: 80px;
}

.nav {
    background: var(--color-transparent);
    position: static;
    box-shadow: none;
}

.nav > ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav > ul > li {
    position: relative;
}

.nav a {
    display: block;
    padding: 14px 16px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--accent);
    background: var(--color-transparent);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--dropdown-border);
    box-shadow: 0 10px 30px var(--shadow-dropdown);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    padding: 13px 18px;
    color: var(--dropdown-text);
    border-bottom: 1px solid var(--dropdown-border);
    white-space: nowrap;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--accent);
    color: var(--color-white);
}

@media (max-width: 900px) {
    .header-layout {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 22px 0;
    }

    .nav > ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .logo {
        height: 65px;
    }

    .nav > ul {
        flex-direction: column;
        width: 100%;
    }

    .nav > ul > li {
        width: 100%;
    }

    .nav a {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
}

.nav a.nav-quote-button {
    margin-left: 14px;
    padding: 16px 26px;
    background: var(--gold);
    color: var(--color-white);
    border-radius: var(--radius);
    font-weight: 700;
    letter-spacing: 1.5px;
}

.nav a.nav-quote-button:hover,
.nav a.nav-quote-button.active {
    background: var(--gold-hover);
    color: var(--primary);
}


/* -------------------------
   Hero Section
------------------------- */
.hero-home {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 650px;
}

.hero-content h2 {
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* -------------------------
   Intro Section
------------------------- */
.intro-section {
    background: var(--bg-light); /* Deepened off-white */
    text-align: center;
}

.intro-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.intro-section p {
    font-size: 18px;
    color: var(--text-main);
}

/* -------------------------
   Services Grid
------------------------- */
.services-section {
    background: var(--bg-card);
}

.services-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px var(--shadow-card-faint);
    transition: var(--transition);

    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--shadow-navy-medium);
}

.service-card h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: var(--accent);
}

.service-card p {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    flex-grow: 1; /* Pushes links to sit neatly at bottom */
}

.card-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.service-card:hover .card-link {
    color: var(--accent-hover);
}

.service-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* -------------------------
   Why Choose Us Section
------------------------- */
.why-section {
    background: var(--bg-light);
}

.why-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-box {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    box-shadow: 0 4px 12px var(--shadow-card-soft);
}

.feature-box h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--primary);
}

.feature-box p {
    margin: 0;
    color: var(--text-muted);
}

/* -------------------------
   Emergency Banner
------------------------- */
.emergency-banner {
    background: var(--primary);
    color: var(--color-white);
    text-align: center;
    padding: 60px 0;
}

.emergency-banner h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px;
}

.emergency-banner p {
    font-size: 18px;
    color: var(--banner-text);
    margin: 0 0 25px;
}

.emergency-banner .primary-button {
    background: var(--color-white);
    color: var(--primary);
}

.emergency-banner .primary-button:hover {
    background: var(--bg-light);
}

/* -------------------------
   History Preview
------------------------- */
.history-preview {
    background: var(--bg-card);
    text-align: center;
}

.history-preview h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.history-preview p {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 25px;
}

/* -------------------------
   Footer
------------------------- */
footer {
    padding: 60px 0;
    background: var(--primary);
    color: var(--footer-text);
    font-size: 15px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--footer-muted);
    font-size: 13px;
}

/* -------------------------
   Responsive Design
------------------------- */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .hero-home {
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .card-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
}

/* Scroll Reveal Animation */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Request a Quote / Contact Page Custom Additions
   ========================================================================== */

/* -------------------------
   Inner Page Sub-Hero
------------------------- */
.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------
   Form / Sidebar Asymmetric Layout
------------------------- */
.quote-section {
    background: var(--bg-card);
}

.quote-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* -------------------------
   Interactive Quote Form Formats
------------------------- */
.quote-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow-navy-faint);
}

.quote-form h3 {
    font-size: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 35px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.quote-form h3:first-of-type {
    margin-top: 0;
}

.quote-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Unified Dropdowns and Text fields */
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    font: inherit;
    color: var(--text-main);
    transition: var(--transition);
    appearance: none; /* Resets native select styling controls */
}

/* Re-apply subtle browser arrow indicators for dropdowns */
.quote-form select {
    background-image: var(--select-arrow-icon);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.quote-form textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 30px;
}

.quote-form .button {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

/* -------------------------
   Quote Sidebar & Utility Info Cards
------------------------- */
.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--bg-light); /* Clean deep off-white background */
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-card-faint);
}

.info-card h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--primary);
    position: relative;
}

.info-card p {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-card p strong {
    color: var(--text-main);
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--accent-hover);
}

.info-card .secondary-button {
    width: 100%;
    text-align: center;
    background: var(--bg-card);
    margin-bottom: 0;
}

/* -------------------------
   Intersection Observer Animations (.reveal)
------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Responsive Adaptations (Append updates inside existing media queries)
   ========================================================================== */
@media (max-width: 992px) {
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 30px;
    }
    
    .quote-form {
        padding: 25px 20px;
    }
}

/* ==========================================================================
   Request a Quote / Contact Page Custom Additions
   ========================================================================== */

/* -------------------------
   Inner Page Sub-Hero
------------------------- */
.page-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0;
    letter-spacing: -0.5px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
}

/* -------------------------
   Form / Sidebar Asymmetric Layout
------------------------- */
.quote-section {
    background: var(--bg-card);
}

.quote-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

/* -------------------------
   Interactive Quote Form Formats
------------------------- */
.quote-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px var(--shadow-navy-faint);
}

.quote-form h3 {
    font-size: 20px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 35px 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-light);
}

.quote-form h3:first-of-type {
    margin-top: 0;
}

.quote-form label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

/* Unified Dropdowns and Text fields */
.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-card);
    font: inherit;
    color: var(--text-main);
    transition: var(--transition);
    appearance: none; /* Resets native select styling controls */
}

/* Re-apply subtle browser arrow indicators for dropdowns */
.quote-form select {
    background-image: var(--select-arrow-icon);
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.quote-form textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 30px;
}

.quote-form .button {
    width: 100%;
    padding: 16px;
    font-size: 15px;
    cursor: pointer;
    border: none;
}

/* -------------------------
   Quote Sidebar & Utility Info Cards
------------------------- */
.quote-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--bg-light); /* Clean deep off-white background */
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px var(--shadow-card-faint);
}

.info-card h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--primary);
    position: relative;
}

.info-card p {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-card p strong {
    color: var(--text-main);
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--accent-hover);
}

.info-card .secondary-button {
    width: 100%;
    text-align: center;
    background: var(--bg-card);
    margin-bottom: 0;
}

/* -------------------------
   Intersection Observer Animations (.reveal)
------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   Responsive Adaptations (Append updates inside existing media queries)
   ========================================================================== */
@media (max-width: 992px) {
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .page-hero h2 {
        font-size: 30px;
    }
    
    .quote-form {
        padding: 25px 20px;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
    margin: 60px 0;
}

.contact-panel {
    background: var(--contact-panel-bg);
    border-radius: 12px;
    padding: 40px;
    border-left: 5px solid var(--contact-accent);
    box-shadow: 0 8px 24px var(--shadow-nav);
    display: flex;
    flex-direction: column;
}

.contact-info,
.contact-cta {
    background: var(--contact-panel-bg);
}

.contact-panel h2 {
    margin-top: 0;
}

.contact-panel hr {
    border: none;
    border-top: 1px solid var(--contact-divider);
    margin: 18px 0;
}

.contact-card {
    margin-top: 20px;
}

.contact-card p {
    margin: 0;
    line-height: 1.7;
}

.contact-card strong {
    color: var(--contact-accent);
}

.contact-panel a:not(.button) {
    color: var(--contact-accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-panel a:not(.button):hover {
    text-decoration: underline;
}

.hero-buttons {
    margin-top: auto;
    padding-top: 30px;
}

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

footer a {
    color: inherit;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* IMAGES */
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr);
    gap: 50px;
    align-items: center;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-image img {
        height: auto;
    }
}

/* ==========================================================================
   Service Detail Pages
   ========================================================================== */
.service-detail-section {
    background: var(--bg-card);
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr);
    gap: 50px;
    align-items: start;
}

.service-detail-text h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0 22px;
}

.service-detail-text p {
    font-size: 17px;
    color: var(--text-main);
    margin: 0 0 22px;
}

.service-detail-image img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px var(--shadow-navy-strong);
}

/* ==========================================================================
   History Gallery
   ========================================================================== */
.history-gallery-section {
    background: var(--bg-light);
}

.history-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.history-gallery-item {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-navy-soft);
}

.history-gallery-item img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.history-gallery-item figcaption {
    padding: 18px 20px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .history-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-detail-text h2 {
        font-size: 30px;
    }

    .service-detail-image img {
        height: auto;
    }

    .history-gallery-grid {
        grid-template-columns: 1fr;
    }
}