:root {
    /* Brand Colors — Silver Noir */
    --primary: #B0B0B0;             /* Matte Silver */
    --secondary: #0B0C10;           /* Deep Graphite */
    --accent: #FF3B3F;              /* Lava Red */
    --dark: #121212;                /* Carbon Black */
    --light: #E6E6E6;               /* Silver-White */
    --text: #E0E0E0;                /* Light Grey for body text */
    --text-light: rgba(255, 255, 255, 0.85);

    /* Font Styling */
    --title-font: 'Chloe', sans-serif;
    --subtitle-font: 'Cooper BT', sans-serif;
    --heading-font: 'Gill Sans', sans-serif;

    /* Spacing */
    --section-padding: clamp(2rem, 5vw, 4rem);
    --container-width: min(1200px, 90%);

    /* Fixed header height for offsets (used by .services-hero) */
    --header-h: 84px;

    /* Subtle glass surfaces (optional use in components) */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--heading-font);
    line-height: 1.6;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2 {
    font-family: var(--title-font);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light);
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Layout */
.section {
    padding: var(--section-padding) 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

/* Buttons */
a.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(180deg, #1A1B1E, #0B0C10);
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

a.button:hover, a.button:focus {
    background: linear-gradient(180deg, #202126, #0B0C10);
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px rgba(255, 59, 63, 0.45),
        0 8px 18px rgba(255, 59, 63, 0.30),
        0 6px 16px rgba(0,0,0,0.5);
    color: var(--light);
}

/* Header & Navigation */
header {
    background: linear-gradient(90deg, #0B0C10, #121212);
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding: 0.5rem 0;
}

.logo img {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 150px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: bold;
    padding: 0.5rem;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-links a:hover, 
.nav-links a:focus {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(255, 59, 63, 0.5);
}

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

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

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1100;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--light);
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Footer */
footer {
    background: linear-gradient(90deg, #0B0C10, #121212);
    color: var(--light);
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: left;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--light);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    box-shadow: 0 0 10px rgba(255,59,63,0.5);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-section ul li a:hover,
.footer-section ul li a:focus {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255,59,63,0.45);
}

/* Copyright Section */
.copyright {
    background-color: #0B0C10;
    color: var(--light);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--dark);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(255,255,255,0.06);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.5s ease-out;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--light);
    padding: 0.5rem 1rem;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Add to your CSS */
img.lazyload {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazyloaded {
    opacity: 1;
}

/* Add to your existing global.css */

/* Carousel Styles */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    padding: 0 1rem;
    scroll-snap-type: x proximity;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    position: relative;
    scroll-snap-align: start;
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 280px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    border: 1px solid var(--glass-border);
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(18,18,18,0.85), rgba(18,18,18,0.05));
    color: var(--light);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 0 1px rgba(255,59,63,0.35),
        0 10px 24px rgba(255,59,63,0.25),
        0 10px 24px rgba(0,0,0,0.55);
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-item:hover .carousel-caption {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 calc(100% - 1rem);
    }
}

/* Enhanced Header for Tablets */
@media (max-width: 1024px) {
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        padding: 0.5rem 0.3rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        max-height: 40px;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    /* [Keep your existing mobile menu styles] */
}

/* Enhanced Carousel for Tablets */
.carousel-item {
    aspect-ratio: 1/1; /* Makes items square */
    display: flex;
    flex-direction: column;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-grow: 1;
}

@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(50% - 1rem);
        min-width: 200px;
    }
    
    .carousel-caption {
        padding: 0.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        flex: 0 0 calc(100% - 1rem);
    }
}

/* ---------- Services Pages: hero offset to clear fixed header ---------- */
@media (max-width: 768px) {
    :root { --header-h: 64px; }
}

/* Apply to the hero section on services pages */
.services-hero {
    padding-top: var(--header-h);
    /* if an anchor links directly to the hero, prevent it from hiding */
    scroll-margin-top: calc(var(--header-h) + 16px);
}
