﻿:root {
    --blue-950: #0d2438;
    --blue-800: #123f63;
    --blue-600: #1f6fa8;
    --blue-100: #eaf4fb;
    --grey-900: #1f2933;
    --grey-700: #536170;
    --grey-300: #cdd7e1;
    --grey-100: #f4f7fa;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(13, 36, 56, 0.12);
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--grey-900);
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 14px 7%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--grey-300);
    box-shadow: 0 8px 24px rgba(13, 36, 56, 0.05);
    overflow: hidden;
}

.brand,
.main-nav {
    position: relative;
    z-index: 1;
}

.brand img {
    width: 260px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--grey-700);
    font-weight: 700;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue-950);
    background: var(--blue-100);
}

.hero,
.page-hero,
.section,
.split-section,
.cta-section,
.contact-section,
.location-section {
    padding-left: 7%;
    padding-right: 7%;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 76px;
    background: linear-gradient(135deg, var(--grey-100), var(--blue-100));
}

.page-home .hero-content {
    animation: heroTextIn 0.8s ease both;
}

.page-home .hero-image {
    animation: heroImageIn 0.9s ease 0.15s both;
}

.page-home .hero-image img {
    animation: imageFloat 4.5s ease-in-out 1.1s infinite;
}

.hero-content h1,
.page-hero h1 {
    max-width: 850px;
    color: var(--blue-950);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.lead,
.page-hero p,
.section-heading p,
.split-section p,
.cta-section p,
.service-card p,
.blog-post p,
.form-card label,
.location-section p,
.info-panel p {
    color: var(--grey-700);
}

.lead,
.page-hero p {
    max-width: 680px;
    margin-top: 18px;
    font-size: 1.15rem;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-image img,
.image-page-hero img {
    width: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.image-page-hero img.full-image {
    min-height: 0;
    max-height: 420px;
    object-fit: contain;
    background: var(--white);
}

.button-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    color: var(--white);
    background: var(--blue-800);
}

.btn-primary:hover {
    background: var(--blue-950);
}

.btn-secondary {
    color: var(--blue-950);
    background: var(--white);
    border-color: var(--blue-800);
}

.btn-secondary:hover {
    background: var(--blue-100);
}

.section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.section-light {
    background: var(--grey-100);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2,
.split-section h2,
.cta-section h2,
.location-section h2,
.form-card h2 {
    color: var(--blue-950);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.card-grid {
    display: grid;
    gap: 20px;
}

.four-columns {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.info-panel,
.blog-post,
.form-card {
    padding: 26px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(13, 36, 56, 0.06);
}

.service-card h3,
.info-panel h3,
.blog-post h2 {
    margin-bottom: 10px;
    color: var(--blue-950);
}

.detailed-card {
    min-height: 190px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
    gap: 42px;
    align-items: center;
    padding-top: 70px;
    padding-bottom: 70px;
    background: var(--blue-950);
}

.split-section h2,
.split-section .eyebrow,
.split-section p {
    color: var(--white);
}

.white-bg {
    background: var(--white);
}

.white-bg h2,
.white-bg .eyebrow {
    color: var(--blue-950);
}

.white-bg p {
    color: var(--grey-700);
}

.check-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 18px 20px 18px 50px;
    border-radius: 8px;
    color: var(--blue-950);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 20px;
    color: var(--blue-600);
    font-weight: 900;
}

.cta-section {
    padding-top: 70px;
    padding-bottom: 70px;
    text-align: center;
}

.cta-section.compact {
    background: var(--grey-100);
}

.cta-section p {
    max-width: 620px;
    margin: 12px auto 24px;
}

.page-hero {
    padding-top: 70px;
    padding-bottom: 70px;
    background: var(--grey-100);
}

.image-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 42px;
    align-items: center;
}

.blog-list {
    display: grid;
    gap: 20px;
    max-width: 940px;
    margin: 0 auto;
}

.blog-post summary {
    width: fit-content;
    margin-top: 12px;
    color: var(--blue-800);
    font-weight: 800;
    cursor: pointer;
}

.blog-post details p {
    margin-top: 12px;
}

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

.gallery-grid figure {
    overflow: hidden;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(13, 36, 56, 0.06);
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 14px 16px;
    color: var(--blue-950);
    font-weight: 800;
}

.contact-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
    padding-top: 70px;
    padding-bottom: 70px;
}

.form-card label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 800;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    padding: 13px 14px;
    font: inherit;
    color: var(--grey-900);
    background: var(--white);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: 3px solid rgba(31, 111, 168, 0.18);
    border-color: var(--blue-600);
}

.form-card > .btn {
    margin-top: 18px;
}

.location-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.45fr) minmax(320px, 1fr);
    gap: 30px;
    align-items: stretch;
    padding-top: 60px;
    padding-bottom: 70px;
    background: var(--grey-100);
}

.location-section iframe {
    width: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 24px 7%;
    text-align: center;
    color: var(--grey-700);
    border-top: 1px solid var(--grey-300);
    background: var(--white);
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .image-page-hero,
    .split-section,
    .contact-section,
    .location-section {
        grid-template-columns: 1fr;
    }

    .site-header {
        display: grid;
        justify-items: start;
    }

    .main-nav {
        justify-content: flex-start;
    }

    .four-columns,
    .three-columns,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .hero,
    .page-hero,
    .section,
    .split-section,
    .cta-section,
    .contact-section,
    .location-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .site-header {
        padding-left: 22px;
        padding-right: 22px;
    }

    .brand img {
        width: 210px;
    }

    .main-nav a {
        padding: 8px 10px;
    }

    .four-columns,
    .three-columns,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-image img,
    .image-page-hero img {
        min-height: 260px;
    }
}




/* PART 3: JAVASCRIPT AND FORM ENHANCEMENTS */
.service-tools {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 0.5fr);
    gap: 12px 18px;
    align-items: end;
    margin: 0 0 28px;
}

.page-services .service-tools {
    animation: fadeSlideUp 0.65s ease both;
}

.page-services #services-list .service-card {
    animation: fadeSlideUp 0.55s ease both;
}

.page-services #services-list .service-card:nth-child(2) {
    animation-delay: 0.08s;
}

.page-services #services-list .service-card:nth-child(3) {
    animation-delay: 0.16s;
}

.page-services #services-list .service-card:nth-child(4) {
    animation-delay: 0.24s;
}

.page-services #services-list .service-card:nth-child(5) {
    animation-delay: 0.32s;
}

.page-services #services-list .service-card:nth-child(6) {
    animation-delay: 0.4s;
}

.service-tools label {
    color: var(--blue-950);
    font-weight: 800;
}

.service-tools input,
.service-tools select {
    width: 100%;
    border: 1px solid var(--grey-300);
    border-radius: 6px;
    padding: 13px 14px;
    font: inherit;
}

.price-tag {
    display: block;
    margin-top: 14px;
    color: var(--blue-800);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 24px;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    background: var(--grey-100);
    color: var(--grey-700);
}

.single-form-section {
    grid-template-columns: minmax(280px, 760px);
    justify-content: center;
}

.form-intro {
    margin-top: 8px;
    color: var(--grey-700);
}

.error-message {
    display: block;
    min-height: 20px;
    margin-top: 5px;
    color: #b42318;
    font-size: 0.88rem;
}

.input-error {
    border-color: #b42318 !important;
    background: #fff7f6;
}

.form-response,
.quote-result {
    margin-top: 16px;
    padding: 14px;
    border-radius: 6px;
    background: var(--blue-100);
    color: var(--blue-950);
}

.form-response:empty,
.quote-result:empty {
    display: none;
}

.clickable-image {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(13, 36, 56, 0.82);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(980px, 92vw);
    max-height: 82vh;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.lightbox button {
    position: absolute;
    top: 22px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: var(--blue-950);
    background: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

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

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

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroImageIn {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes imageFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero-content,
    .page-home .hero-image,
    .page-home .hero-image img,
    .page-services .service-tools,
    .page-services #services-list .service-card {
        animation: none;
    }
}

@media (max-width: 620px) {
    .service-tools {
        grid-template-columns: 1fr;
    }
}
