/* ROOT VARIABLES */
:root {
    --primary: #1a5f7a;
    --secondary: #c96a33;
    --accent: #f2a950;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #fefdfb;
    --bg-cream: #f9f6f1;
    --success: #5a9367;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --radius: 8px;
    --shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

html {
    scroll-behavior: smooth; /* Smooth scroll to anchors - eliminates flash */
}

body {
    font-family: 'Albert Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
}

h1, h2, h3 { font-family: 'Crimson Pro', serif; font-weight:700; }

a { color: var(--primary); text-decoration:none; }
a:hover { color: var(--secondary); }

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

/* HEADER */
header {
    position:fixed;
    top:0; left:0; right:0;
    background:rgba(255,255,255,0.98);
    backdrop-filter:blur(10px);
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
    z-index:1000;
}


/* ===== Premium Header ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    z-index: 1000;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.nav-logo img {
    height: clamp(38px, 4vw, 55px);
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.03);
}

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

.nav-links a {
    position: relative;
    font-weight: 500;
    padding: 0.3rem 0;
    color: var(--text-dark);
}

/* Elegant underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

/* CTA Button */
.cta-button {
    background: var(--secondary);
    color: white !important;
    padding: 0.6rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Mobile */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 968px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        display: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }
}



/*
nav {
    max-width:1400px;
    margin:0 auto;
    padding:1rem 2rem;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
*/

.logo { font-size:1.6rem; font-weight:700; color:var(--primary); }

/*
.nav-links {
    display:flex;
    gap:1.5rem;
    list-style:none;
}

.nav-links a { padding:0.5rem 1rem; border-radius:var(--radius); }
*/

/*
.cta-button {
    background:var(--secondary);
    color:white !important;
    padding:0.8rem 1.8rem !important;
    border-radius:50px;
    font-weight:600;
}
*/

/* Removed duplicate .menu-toggle rule to prevent conflicts */

/* TOP RIBBON — styled inline in header.html */

/* MAIN OFFSET */
main { margin-top:135px; }

/* SECTIONS */
section {
    padding:var(--spacing-xl) var(--spacing-md);
    max-width:1400px;
    margin:0 auto;
}

.section-header {
    text-align:center;
    margin-bottom:var(--spacing-lg);
}

.section-header h2 {
    font-size:2.8rem;
    color:var(--primary);
}

.section-header .subtitle {
    font-size:1.2rem;
    color:var(--text-light);
    max-width:700px;
    margin:0.5rem auto 0;
}

/* WHAT I DO CARDS */
#services .services-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:var(--spacing-md);
    margin-top:var(--spacing-lg);
}

.service-card {
    background:white;
    border-radius:var(--radius);
    padding:var(--spacing-md);
    box-shadow:var(--shadow);
    transition:all 0.3s ease;
    border:1px solid var(--border-color);
    display:flex;
    flex-direction:column;
}

.service-card:hover {
    transform:translateY(-8px);
    box-shadow:0 12px 32px rgba(0,0,0,0.15);
    border-color:var(--primary);
}

.service-icon { font-size:3rem; margin-bottom:var(--spacing-sm); color:var(--secondary); }

.service-card h3 {
    font-size:1.5rem;
    margin-bottom:var(--spacing-sm);
    color:var(--primary);
}

.service-card p {
    color:var(--text-light);
    margin-bottom:var(--spacing-sm);
    flex-grow:1;
}

.learn-more {
    color:var(--secondary);
    font-weight:600;
    display:inline-flex;
    align-items:center;
    gap:0.5rem;
    margin-top:auto;
}

.learn-more:hover { gap:0.75rem; }

/* FEATURE SECTIONS */
.feature-section {
    background:var(--bg-cream);
    margin:var(--spacing-xl) auto;
    max-width:1200px;
}

.feature-content {
    max-width:1100px;
    margin:0 auto;
    display:flex;
    justify-content:center;
    gap:var(--spacing-xl);
    align-items:center;
    flex-wrap:wrap;
}

.feature-content.reverse { flex-direction:row-reverse; }

.feature-content > * { flex:1 1 45%; min-width:320px; }

.feature-text h2 { font-size:2.5rem; color:var(--primary); margin-bottom:1rem; }

.feature-text ul { list-style:none; margin:1.5rem 0; }

.feature-text ul li {
    padding-left:2rem;
    position:relative;
    margin-bottom:0.8rem;
}

.feature-text ul li::before {
    content:"✓";
    position:absolute;
    left:0;
    color:var(--success);
    font-weight:bold;
}

.feature-image img {
    max-width:520px;
    width:100%;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    margin:0 auto;
}

/* Center buttons in features */
.feature-text .btn,
.feature-text a.btn-primary,
.feature-text a[href="#contact"] {
    display:block;
    width:fit-content;
    margin:2rem auto 1rem auto;
    text-align:center;
}

/* STATS BAR */
.stats {
    background:var(--primary);
    color:white;
    text-align:center;
    padding:var(--spacing-lg) var(--spacing-md);
    margin:var(--spacing-xl) auto;
    max-width:1200px;
}

.stats-grid {
    max-width:1000px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:var(--spacing-lg);
}

.stat-item h3 {
    font-size:3.5rem;
    color:var(--accent);
    margin-bottom:0.3rem;
}

.stat-item p { font-size:1.1rem; opacity:0.9; }

/* TESTIMONIALS */
.testimonials {
    background:white;
}

.testimonial-grid {
    max-width:1200px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:var(--spacing-md);
}

.testimonial-card {
    background:var(--bg-cream);
    padding:var(--spacing-md);
    border-radius:var(--radius);
    border-left:4px solid var(--secondary);
}

/* BUTTONS */
.btn, .btn-primary, .btn-hero {
    display:inline-block;
    padding:1rem 2rem;
    border-radius:50px;
    font-weight:600;
    transition:all 0.3s ease;
    cursor:pointer;
}

.btn-primary, .btn-hero {
    background:var(--secondary);
    color:white;
    box-shadow:0 4px 12px rgba(0,0,0,0.2);
}

.btn-primary:hover, .btn-hero:hover {
    background:var(--primary);
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
}

/* FOOTER (basic) */
footer {
    background:var(--text-dark);
    color:white;
    padding:var(--spacing-lg) var(--spacing-md);
    text-align:center;
}

.footer-content {
    max-width:1200px;
    margin:0 auto 2rem;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:3rem;
}

.footer-section h3 { color:var(--accent); margin-bottom:1rem; }

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

.social-links {
    display:flex;
    gap:1rem;
    margin-top:1.2rem;
    justify-content:flex-start;
}

.social-links a {
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    background:rgba(255,255,255,0.15);
    border-radius:50%;
    color:white;
    font-size:1.4rem;
    transition:all 0.3s ease;
}

.social-links a:hover {
    background:var(--secondary);
    transform:translateY(-3px);
}

/* MEDIA QUERIES */
@media (max-width:968px) {
    .nav-links {
        position:absolute;
        top:100%; left:0; right:0;
        background:white;
        flex-direction:column;
        padding:1rem;
        display:none;
    }
    .nav-links.active { display:flex; }
    .menu-toggle { display:block; }
    main { margin-top:115px; }
    .hero { min-height:70vh; }
    .services-grid, .testimonial-grid { grid-template-columns:1fr; }
    .feature-content, .feature-content.reverse { flex-direction:column; }
}

/* ===================================================
   OPTIMIZED HERO SECTION
   =================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 92vh;
    min-height: 620px;
    overflow: hidden;
    background: #0a0e14;
    display: flex;
    align-items: flex-end; /* Align text near the bottom */
    justify-content: center;
    padding-bottom: clamp(3rem, 8vh, 6rem);
}

/* Background image wrapper for Ken Burns effect */
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Default desktop: Keep upper body prominent, crop base */
    transform-origin: center center;
    animation: kenBurnsEffect 20s ease-out infinite alternate;
}

/* Slow, elegant zoom */
@keyframes kenBurnsEffect {
    0% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Premium gradient overlay and subtle vignette */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Rich dark gradient from bottom, with subtle vignette overlay */
    background: linear-gradient(
        to top,
        rgba(10, 14, 20, 0.9) 0%,
        rgba(10, 14, 20, 0.45) 50%,
        rgba(10, 14, 20, 0.15) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero Content Area */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    text-align: center;
    color: white;
    padding: 0 2rem;
    opacity: 0;
    animation: heroFadeUpText 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

/* Smooth fade-up animation */
@keyframes heroFadeUpText {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headline: Bold modern sans (Poppins) */
.hero-headline {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Subheadline: Clean sans (Inter) */
.hero-subheadline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2.2rem;
    opacity: 0.95;
    color: #e2e8f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

/* Buttons Wrapper */
.hero-btns-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* High contrast orange/red CTA from bag */
.btn-hero-cta {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 700;
    color: #ffffff;
    background: #ff5722; /* Vibrant orange-red from bag */
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.btn-hero-cta:hover {
    background: #e64a19; /* Slightly deeper energetic orange-red */
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(255, 87, 34, 0.6);
    /* Teal/blue from the water as the hover accent color */
    border-color: #0ea5e9;
}

/* RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .hero-section {
        height: 85vh; /* slightly shorter on mobile but keeping it tall */
        min-height: 520px;
        padding-bottom: 4rem;
        align-items: flex-end;
    }

    .hero-bg {
        /* Crop for mobile portrait: Shift image to center Andy's face/upper body (42%)
           and position vertically higher (18%) to crop excess bottom scooter base */
        object-position: 42% 18%;
    }

    .hero-headline {
        letter-spacing: -0.01em;
        margin-bottom: 1rem;
    }

    .hero-subheadline {
        letter-spacing: 0.02em;
        margin-bottom: 2rem;
        gap: 0.3rem 0.6rem;
    }

    .btn-hero-cta {
        padding: 1rem 2.2rem;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .hero-section {
        height: 88vh; /* ensure good presence */
    }
    
    .hero-bg {
        object-position: 40% 15%; /* more focus on upper body */
    }
}
