/* styles.css for JNA Enterprises */

/* --- Variables and Base Styles --- */
:root {
    --primary-color: #05090f;                   /* #0A4D68; /* Deep, trustworthy blue */
    --secondary-color: #3f88cc;                 /*  #088395; /* Brighter, active blue */
    --accent-color:    #cca144;                 /*  #F39C12; /* Warm, friendly orange/gold */
    --light-accent-color: #ffce1d;              /*  #FFD700; /* Softer gold for highlights */
    --text-color: #333333;
    --light-text-color: #f8f9fa;
    --background-color: #FFFFFF;
    --light-gray-bg: #f8f9fa;
    --futuristic-glow: rgba(10, 77, 104, 0.3); /* Subtle glow, matches primary */
    --futuristic-highlight: #3f88cc; /* A bright, clean blue for futuristic touches */

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Merriweather', serif;

    --product-card-height: 350px;

    --border-radius: 8px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Slightly more dynamic */
    --transition-fast: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth; /* Native smooth scroll for basic cases, JS for advanced */
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.nav-open {
    overflow: hidden;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.content-section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    animation: scaleUp 0.5s 0.5s forwards cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes scaleUp {
    to { transform: scaleX(1); }
}

.section-subtitle {
    font-size: 1.15rem;
    color: #555;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

.subsection-title {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover, a:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* --- Header & Navigation --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000; /* ensure header & mobile nav sit above overlays */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px); /* Subtle frosted glass effect */
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link { text-decoration: none; }
.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}
.logo-highlight { color: var(--accent-color); }
.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-color);
    display: block;
    margin-top: -5px;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav .nav-link {
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 18px;
    margin-left: 5px;
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius);
}
.main-nav .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(204, 161, 68, 0.6);
    border-radius: calc(var(--border-radius) + 2px);
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--light-accent-color));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--accent-color);
    /* background-color: rgba(10, 77, 104, 0.05); */
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    width: 70%;
}

.nav-toggle { /* Hamburger Menu */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1201;
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: var(--transition-smooth);
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

/* Active Hamburger State */
.nav-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 15, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1500; /* sits below the fixed header but above page content */
}
.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    padding: 200px 0 120px; /* Increased top padding to account for fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before { /* Subtle futuristic pattern overlay */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); */
    /* background-size: 20px 20px; */
    /* Or a subtle geometric line pattern */
    opacity: 0.5;
    animation: futuristicShimmer 20s linear infinite;
}
@keyframes futuristicShimmer { /* Example shimmer effect */
    0% { background-position: 0 0; }
    100% { background-position: 400px 400px; }
}

.hero-content {
    position: relative; /* Ensure content is above pseudo-elements */
    z-index: 1;
}
.hero-headline {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}
.highlight-futuristic { /* For words like "Care" and "Innovation" */
    /* color: var(--light-accent-color); */
    position: relative;
    display: inline-block;
}
.highlight-futuristic::after {
    content: '';
    position: absolute;
    left:0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--light-accent-color));
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 0.6s 1s forwards cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

.hero-subheadline {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin: 10px;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.cta-button::before { /* Shine effect for "futuristic" feel */
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.cta-button:hover::before {
    left: 150%;
}

.primary-cta {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(5, 9, 15, 0.25);
}
.primary-cta:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--light-text-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 24px rgba(63, 136, 204, 0.35);
}
.secondary-cta {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}
.secondary-cta:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.hero-scrolldown {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.hero-scrolldown svg {
    width: 32px;
    height: 32px;
    fill: var(--light-text-color);
    animation: bounceArrow 2s infinite;
}
@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Fade-in animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Back-out easing */
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

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

/* --- Services Section --- */
.services-section { background-color: var(--light-gray-bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.service-card {
    background-color: var(--background-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition-smooth);
    border-left: 5px solid transparent; /* Subtle accent */
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-left-color: var(--accent-color);
}
.service-icon {
    margin-bottom: 25px;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Elastic effect */
}
.service-icon svg {
    width: 50px;
    height: 50px;
    fill: var(--secondary-color);
    margin: 0 auto;
    transition: var(--transition-fast);
}
.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
}
.service-card:hover .service-icon svg {
    fill: var(--accent-color);
}
.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.service-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
.family-story-blurb {
    background-color: var(--background-color);
    padding: 40px;
    margin-top: 60px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}
.family-story-blurb::before { /* Subtle "watermark" style pattern */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%230a4d68' fill-opacity='0.04'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.blurb-title {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* --- Product Gallery Section --- */
.product-gallery-section { /* Default background */ }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.product-inquiry-note {
    margin-top: 35px;
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: rgba(5, 9, 15, 0.75);
}
.product-item {
    --product-image: none;
    --product-fit: cover;
    --product-position: center;
    --product-hover-overlay: linear-gradient(135deg, rgba(35, 35, 35, 0.78), rgba(130, 130, 130, 0.45));
    height: var(--product-card-height);
    border-radius: var(--border-radius);
    overflow: visible;
    position: relative;
    cursor: pointer;
    border: none;
    box-shadow: none;
    transition: var(--transition-smooth);
    background-color: transparent;
    isolation: isolate; /* Keep blur + gradient layers scoped */
}
.product-item::before {
    content: none;
}
.product-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    background: var(--product-hover-overlay);
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 2;
    pointer-events: none;
}
.product-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--product-image);
    background-position: var(--product-position, center);
    background-repeat: no-repeat;
    background-size: var(--product-fit, cover);
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    filter: none;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}
.product-item.loaded .product-photo {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    color: var(--text-color);
    width: 100%;
    transform: translateY(30px); /* Initially hidden */
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.1s, opacity 0.5s ease 0.1s;
    z-index: 3;
    text-shadow: 0 0 18px rgba(255,255,255,0.95);
}
.product-item:hover {
    transform: scale(1.03);
    box-shadow: var(--card-hover-shadow);
}
.product-item:hover::after {
    opacity: 1;
    transform: translateY(-8px) scale(1.03);
}
.product-item:hover .product-photo {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.25));
}
.product-item:hover .product-info {
    transform: translateY(0);
    opacity: 1;
    color: var(--light-text-color);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Lazy load placeholder appearance */
.product-item.lazy-load {
    /* background-image will be set by JS */
}

/* --- About & Trust Section --- */
.about-trust-section { background-color: var(--light-gray-bg); }
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 70px auto;
}
.timeline::after { /* The central line */
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0; /* For animation */
    transform: translateY(20px); /* For animation */
    animation: fadeInItem 0.6s forwards ease-out;
}
/* Stagger animation for timeline items */
.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

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

.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

/* The circles on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--background-color);
    border: 4px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: transform 0.3s ease;
}
.timeline-item:hover::after {
    transform: scale(1.2);
}
.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-year {
    position: absolute;
    top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    padding: 5px 10px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 4px;
    z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-year {
    right: 60px; /* Adjust to not overlap content */
}
.timeline-item:nth-child(even) .timeline-year {
    left: 60px; /* Adjust to not overlap content */
}

.timeline-content {
    padding: 35px 30px 25px;
    background-color: var(--background-color);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.timeline-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    margin-top: 60px;
    position: relative;
}
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 200px; /* Adjust based on typical content length */
    background-color: var(--background-color);
    padding: 30px 50px; /* Padding for controls */
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}
.testimonial-slide {
    display: none;
    text-align: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    position: absolute; /* For smooth transition */
    width: calc(100% - 100px); /* Account for padding */
    left: 50px;
    top: 30px;
}
.testimonial-slide.active {
    display: block;
    opacity: 1;
    position: relative; /* Take up space */
    transform: translateX(0);
}
.testimonial-slide.next-slide { /* For sliding out */
    transform: translateX(100%);
}
.testimonial-slide.prev-slide { /* For sliding in */
    transform: translateX(-100%);
}
.testimonial-carousel blockquote p {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.7;
}
.testimonial-carousel cite {
    font-weight: 600;
    color: var(--secondary-color);
    font-style: normal;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 77, 104, 0.7); /* primary color with alpha */
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    line-height: 25px; /* Center icon */
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}
.carousel-control:hover {
    background-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light-text-color);
    margin-bottom: 20px;
    position: relative;
}
.footer-column h4::after { /* Small underline accent */
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 5px;
}
.footer-column p, .footer-column ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.footer-column ul {
    list-style: none;
}
.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    padding-left: 5px; /* Subtle hover interaction */
}
.family-photo-nod p {
    font-style: italic;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icon {
    width: 24px; /* Adjust as needed */
    height: 24px;
    filter: none;
    transition: var(--transition-fast);
}
.social-icons a:hover .social-icon {
    filter: none; /* Keep original colors while adding motion feedback */
    transform: scale(1.1);
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* --- Contact Page Specific Styles --- */
.contact-hero.content-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--light-text-color);
    padding: 220px 0 80px; /* Extra space keeps hero content below fixed nav */
    text-align: center;
}
.contact-hero .section-title,
.contact-hero .section-subtitle {
    color: #fff;
}
@media (max-width: 1024px) {
    .contact-hero.content-section {
        padding: 180px 0 70px;
    }
}
@media (max-width: 768px) {
    .contact-hero.content-section {
        padding: 150px 0 60px;
    }
}
@media (max-width: 480px) {
    .contact-hero.content-section {
        padding: 130px 0 55px;
    }
}
.contact-details-section { padding: 60px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default for larger screens */
    gap: 50px;
}

.contact-form-container, .store-info-map {
    background-color: #fff;
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
}

.contact-form .form-group {
    margin-bottom: 25px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(8, 131, 149, 0.2); /* secondary-color with alpha */
    outline: none;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .cta-button {
    width: 100%;
    padding: 15px;
}
.error-message {
    display: block;
    color: #e74c3c; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 1em; /* Reserve space */
}
.form-status-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}
.form-status-message.success {
    background-color: #d4edda; /* Greenish */
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-status-message.error {
    background-color: #f8d7da; /* Reddish */
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.store-phone {
    display: flex;
    align-items: center;
    gap: 0.45em;
    flex-wrap: wrap;
}
.store-phone a {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}
.phone-flag-icon {
    height: 1em;
    width: auto;
    display: block;
}


.store-details p {
    margin-bottom: 12px;
    line-height: 1.6;
}
.store-details strong { color: var(--primary-color); }
.storefront-visual {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: #fff;
}
.storefront-visual img {
    width: 100%;
    height: auto;
    display: block;
}
.storefront-visual figcaption {
    padding: 15px 20px;
    font-size: 0.95rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(63, 136, 204, 0.08), rgba(5, 9, 15, 0.05));
}
.hours-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}
.business-hours-list {
    list-style: none;
    padding-left: 0;
}
.business-hours-list li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.map-container {
    margin-top: 30px;
    border-radius: var(--border-radius);
    overflow: hidden; /* To clip the iframe corners */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.map-iframe-wrapper {
    position: relative;
}
.map-container iframe {
    display: block; /* Remove extra space below iframe */
}
.map-link-overlay {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    text-indent: -9999px;
    background: transparent;
    cursor: pointer;
}
.map-link-overlay:focus-visible {
    outline: 3px solid var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.4rem; }
    .hero-headline { font-size: 2.8rem; }
    .hero-subheadline { font-size: 1.15rem; }

    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; margin-bottom: 30px; }
    .timeline-item:nth-child(even) { left: 0; } /* Stack all on left */
    .timeline-item::after { left: 10px; } /* Adjust circle position */
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: auto;
        right: calc(100% + 10px); /* Position year outside to the left */
        text-align: right;
        width: auto;
        white-space: nowrap;
        transform: translateX(-100%);
    }
    .timeline-item:nth-child(odd) .timeline-year {
      left: -70px; /* Adjust based on content */
      right:auto;
      transform: none;
    }
     .timeline-item:nth-child(even) .timeline-year {
        left: -70px; /* Adjust as needed */
        right: auto;
        transform:none;
    }
}

@media (max-width: 768px) {
    :root { --product-card-height: 300px; }
    body { font-size: 15px; }
    .content-section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; margin-bottom: 30px; }
    .subsection-title { font-size: 1.5rem; }

    .nav-toggle { display: block; }
    .main-nav {
        position: relative;
    }
    .main-nav .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: stretch;
        padding: 120px 32px 40px;
        gap: 18px;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        transform: translateX(100%);
        box-shadow: -8px 0 25px rgba(0,0,0,0.25);
        overflow-y: auto;
        z-index: 1100;
    }
    .main-nav .nav-links.active { transform: translateX(0); }
    .main-nav .nav-links li {
        width: 100%;
    }
    .main-nav .nav-link {
        color: var(--light-text-color);
        padding: 15px 25px;
        width: 100%;
        text-align: left;
        margin-left: 0;
    }
    .main-nav .nav-link:focus-visible {
        box-shadow: 0 0 0 2px rgba(255, 206, 29, 0.55);
    }
    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        background-color: var(--secondary-color);
        color: var(--light-text-color);
    }
    .main-nav .nav-link::after { display: none; } /* Remove underline in mobile menu */

    .hero { padding: 150px 0 80px; min-height: 70vh; }
    .hero-headline { font-size: 2.2rem; }
    .hero-subheadline { font-size: 1rem; }
    .cta-button { padding: 12px 25px; font-size: 0.9rem; margin: 8px; }

    .services-grid { grid-template-columns: 1fr; gap: 30px; }
    .product-grid { grid-template-columns: 1fr; gap: 25px; }

    .contact-grid { grid-template-columns: 1fr; } /* Stack form and info */
    .store-info-map { margin-top: 40px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-column { text-align: center; }
    .footer-column h4::after { margin-left: auto; margin-right: auto; }
    .social-icons { justify-content: center; }
}

@media (max-width: 600px) {
    .timeline { padding-left: 10px; }
    .timeline::after { left: 10px; }
    .timeline-item { padding-left: 40px; }
    .timeline-item::after { left: 2px; }
    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        position: relative;
        left: 0;
        right: auto;
        top: 0;
        transform: none;
        text-align: left;
        margin-bottom: 10px;
        display: inline-flex;
        background-color: rgba(255,255,255,0.95);
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .hero-headline { font-size: 1.9rem; }
    .section-title { font-size: 1.8rem; }
    .contact-form-container, .store-info-map { padding: 25px; }
}

.site-header.scrolled { 
  background-color: rgba(255, 255, 255, 0.98); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
