/* ============================================
   Emerson Hardware & Locksmith
   Clean Minimalist Design — Burgundy & Blush
   ============================================ */

/* CSS Custom Properties */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5C1F2B;
    --burgundy-light: #9A3D4E;
    --blush: #F5E6E0;
    --blush-light: #FAF3F0;
    --blush-dark: #E8D0C8;
    --cream: #FDFBF9;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-900: #2D2D2D;
    --gray-700: #555555;
    --gray-500: #888888;
    --gray-300: #C8C8C8;
    --gray-100: #F0EDE9;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--gray-900);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 249, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.nav.scrolled {
    box-shadow: 0 1px 20px rgba(123, 45, 59, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--burgundy);
    letter-spacing: 0.02em;
}

.nav-logo-icon {
    color: var(--burgundy);
}

.nav-logo-text {
    font-style: italic;
}

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

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

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--burgundy);
    background: var(--blush);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--burgundy);
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--gray-700);
    transition: var(--transition);
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--cream);
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-light) 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-md);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 520px;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero-title em {
    font-style: italic;
    color: var(--burgundy);
}

.hero-subtitle {
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 4px;
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--burgundy);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.3;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 45, 59, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--gray-900);
    border: 1px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

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

.btn-white:hover {
    background: var(--blush);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 300;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-line {
    width: 60px;
    height: 1px;
    background: var(--burgundy);
    margin: 0 auto;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

.service-card {
    padding: var(--space-lg);
    border: 1px solid var(--gray-100);
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    border-color: var(--blush-dark);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.08);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blush);
    border-radius: 50%;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: var(--space-sm);
}

.service-description {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    transition: var(--transition);
}

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

/* ============================================
   About Section
   ============================================ */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.about-image-col {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    width: 100%;
    height: 620px;
    object-fit: cover;
    border-radius: 4px;
}

.about-image-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

.about-content {
    max-width: 480px;
}

.about-content .section-header {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-content .section-line {
    margin: 0;
}

.about-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--burgundy);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: var(--space-3xl) 0;
    background: var(--white);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--burgundy);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-eyebrow {
    color: var(--blush);
}

.cta-title {
    color: var(--white);
}

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

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

/* ============================================
   Location Section
   ============================================ */
.location {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

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

.location-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--blush-dark);
    border-radius: 50%;
    color: var(--burgundy);
    flex-shrink: 0;
}

.location-detail h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.location-detail p {
    font-size: 0.9375rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.location-detail a {
    color: var(--burgundy);
    transition: var(--transition);
}

.location-detail a:hover {
    color: var(--burgundy-dark);
    text-decoration: underline;
}

.location-map {
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0 var(--space-md);
    background: var(--gray-900);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-500);
    transition: var(--transition);
}

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

.footer-contact p {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.footer-contact a {
    color: var(--blush);
    transition: var(--transition);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-bottom a {
    color: var(--blush);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal-hidden [data-reveal] {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-image img {
        height: 500px;
    }
    
    .hero-bg-pattern {
        width: 100%;
        clip-path: polygon(0 60%, 100% 40%, 100% 100%, 0% 100%);
        opacity: 0.5;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image-col {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 249, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-100);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .about-image-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: var(--space-sm);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
}
