:root {
    /* Colors */
    --primary-color: #0E2A47;
    /* Deep Blue from brand */
    --accent-color: #8B1E3F;
    /* Burgundy from brand */
    --text-color: #333333;
    --light-bg: #F9FAFB;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 20px;
}

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

html {
    scroll-padding-top: 95px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 30, 63, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 30, 63, 0.4);
    background-color: #A02349;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: shrinkHeader 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.animated-logo {
    animation: shrinkLogo 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    transform-origin: center center;
}

.nav-links {
    display: flex;
    gap: 30px;
    animation: fadeIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 600px;
    /* Uses the high res image from user */
    background: linear-gradient(rgba(14, 42, 71, 0.8), rgba(14, 42, 71, 0.6)), url('../assets/images/HomePageBackgroundPhoto.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    max-width: 150px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-size: 4rem;
}

.hero h2 {
    /* Tagline styling */
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .btn {
    margin-bottom: 40px;
}

.hero p {
    margin-top: 0;
}

/* About Section */
.about {
    padding: var(--section-padding);
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(14, 42, 71, 0.15);
}

.about-text h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 0;
    /* Remove padding to let image bleed */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    /* Contain the image */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.service-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image-container img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Removed .service-icon as it's replaced by images */

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Horton Section */
.horton {
    padding: var(--section-padding);
    background-color: var(--white);
    text-align: center;
}

.horton-logo-container {
    max-width: 1000px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.horton-logo-container img {
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.horton h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.horton-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

.horton-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.horton-parts-box {
    background-color: var(--light-bg);
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horton-parts-box h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.horton-parts-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    align-self: flex-start;
    margin-top: 20px;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a,
.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Contact Page Specifics */
.contact-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(14, 42, 71, 0.8), rgba(14, 42, 71, 0.7)), url('../assets/images/IMG_8093.JPG') no-repeat center 35%/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.contact-section {
    padding: var(--section-padding);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px;
}

.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.1rem;
}

.contact-form-wrapper {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(139, 30, 63, 0.1);
}

/* Animations & Mobile */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1050px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar {
        background-color: var(--primary-color);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding: 0;
        gap: 40px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 60px 15px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shrinkHeader {
    0% {
        padding-top: 5vh;
        padding-bottom: 5vh;
        background: var(--white);
    }
    80% {
        padding-top: 10px;
        padding-bottom: 10px;
        background: var(--white);
    }
    100% {
        padding-top: 10px;
        padding-bottom: 10px;
        background: var(--glass-bg);
    }
}

@keyframes shrinkLogo {
    0% {
        height: 150px;
    }
    100% {
        height: 65px;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.contact-hero-logo {
    opacity: 0;
    animation: slowFadeIn 3s ease-in-out 2s forwards;
}

@keyframes slowFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 0.5;
    }
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.02);
}

.masonry-label {
    padding: 15px;
    text-align: center;
    font-size: 0.95rem;
    color: #444;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }
}