/* ============================================
   GRAND LAKE POWER EQUIPMENT — STYLES
   Palette: Emerald #0B4F3A / Cream #F5F0E8
   Fonts: Cormorant Garamond + Inter
   ============================================ */

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

:root {
    --emerald: #0B4F3A;
    --emerald-dark: #073628;
    --emerald-light: #1A6B4F;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --cream-dark: #E8E0D0;
    --text-dark: #1A1A1A;
    --text-mid: #4A4A4A;
    --text-light: #7A7A7A;
    --white: #FFFFFF;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--emerald);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    z-index: 200;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: var(--space-sm);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 79, 58, 0.08);
    transition: box-shadow var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(11, 79, 58, 0.08);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--emerald);
}

.nav-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--emerald);
    border-radius: var(--radius-sm);
    letter-spacing: -0.02em;
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--emerald);
}

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--emerald);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-cta:hover {
    background: var(--emerald-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--emerald);
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    background: var(--cream-light);
    display: flex;
    align-items: center;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 5.5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.hero-headline em {
    font-style: italic;
    color: var(--emerald);
    font-weight: 300;
}

.hero-desc {
    font-size: 1.0625rem;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--emerald);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--emerald);
    color: var(--white);
    border-color: var(--emerald);
}

.btn-primary:hover {
    background: var(--emerald-dark);
    border-color: var(--emerald-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--emerald);
    border-color: var(--emerald);
}

.btn-ghost:hover {
    background: var(--emerald);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--emerald);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--cream);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--emerald);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    box-shadow: 0 25px 60px rgba(11, 79, 58, 0.12);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-accent-line {
    position: absolute;
    bottom: -20px;
    left: -30px;
    width: 120px;
    height: 1px;
    background: var(--emerald);
    opacity: 0.4;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-header {
    margin-bottom: var(--space-lg);
}

.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--emerald);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.service-card {
    padding: var(--space-md);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--emerald);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 8px 30px rgba(11, 79, 58, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-num {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    color: var(--emerald);
    opacity: 0.5;
    display: block;
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--emerald);
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link svg {
    transition: transform var(--transition);
}

.service-link:hover svg {
    transform: translateX(2px);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-2xl) 0;
    background: var(--cream-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image-col {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-title {
    margin-bottom: var(--space-md);
}

.about-content > p {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.about-values {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-value {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.about-value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    color: var(--emerald);
}

.about-value strong {
    display: block;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.about-value span {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-sm);
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item--wide {
    grid-column: span 7;
    aspect-ratio: 9/5;
}

.gallery-item:not(.gallery-item--wide) {
    aspect-ratio: 1;
}

.gallery-item:nth-child(3) {
    grid-column: span 5;
    aspect-ratio: 1;
}

.gallery-item:nth-child(4) {
    grid-column: span 5;
    aspect-ratio: 3/4;
}

.gallery-item:nth-child(5) {
    grid-column: span 5;
    aspect-ratio: 3/4;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    background: linear-gradient(transparent, rgba(11, 79, 58, 0.7));
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: var(--space-2xl) 0;
    background: var(--emerald);
}

.cta-inner {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--space-sm);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.cta-desc {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.cta-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-2xl) 0;
    background: var(--cream-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

.contact-details {
    margin-top: var(--space-lg);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-detail svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--emerald);
}

.contact-detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-detail span,
.contact-detail a {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.contact-detail a:hover {
    color: var(--emerald);
}

.contact-detail address {
    font-style: normal;
}

/* Form */
.contact-form {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cream-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.form-group {
    margin-bottom: var(--space-sm);
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream-light);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(11, 79, 58, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: var(--space-sm);
    padding: 1rem;
    background: rgba(11, 79, 58, 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--emerald);
}

.form-success svg {
    flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--emerald-dark);
    color: rgba(255,255,255,0.7);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-sm);
}

.footer-logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links strong,
.footer-contact strong {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: var(--space-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 0.6fr;
        gap: var(--space-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .about-image-col {
        aspect-ratio: 16/9;
    }
    
    .gallery-item--wide {
        grid-column: span 12;
    }
    
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(245, 240, 232, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        border-bottom: 1px solid rgba(11, 79, 58, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: var(--space-lg);
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-image-wrapper {
        aspect-ratio: 4/3;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 12;
        aspect-ratio: 4/3;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}
