/* ========================================
   Finally, A Men's Boutique
   Bold Editorial — Forest Green + Off-White
   ======================================== */

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

:root {
    --forest: #1a3a2a;
    --forest-light: #2d5a3f;
    --forest-deep: #0f2419;
    --cream: #f5f2eb;
    --cream-dark: #e8e3d9;
    --white: #fefdfb;
    --text-dark: #1a1a18;
    --text-muted: #5c5a55;
    --text-light: #8a8780;
    --accent: #c8a86e;
    --accent-light: #dfc08a;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--forest);
    margin-bottom: 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 235, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.08);
    transition: background 0.3s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(245, 242, 235, 0.95);
    box-shadow: 0 1px 20px rgba(26, 58, 42, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--forest);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
}

.logo-text {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--forest);
    transition: width 0.3s var(--ease-out);
}

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

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

.nav-cta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cream);
    background: var(--forest);
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest);
    position: relative;
    transition: transform 0.3s var(--ease-out), background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--forest);
    transition: transform 0.3s var(--ease-out);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        var(--forest-deep) 0%,
        var(--forest) 35%,
        var(--forest-light) 65%,
        #3d7a52 100%
    );
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45, 90, 63, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(200, 168, 110, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 90% 70% at 50% 50%, rgba(15, 36, 25, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(rgba(245, 242, 235, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 242, 235, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--cream);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(245, 242, 235, 0.75);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 48px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--cream);
    color: var(--forest);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(245, 242, 235, 0.35);
}

.btn-secondary:hover {
    border-color: var(--cream);
    background: rgba(245, 242, 235, 0.08);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 242, 235, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: var(--sans);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(245, 242, 235, 0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* About */
.about {
    padding: 120px 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(26, 58, 42, 0.08);
    pointer-events: none;
}

.about-text {
    padding: 20px 0;
}

.about-text p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 58, 42, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--forest);
    line-height: 1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Services */
.services {
    padding: 120px 0;
    background: var(--forest);
}

.services .section-headline {
    color: var(--cream);
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: rgba(245, 242, 235, 0.06);
    border: 1px solid rgba(245, 242, 235, 0.1);
    border-radius: 16px;
    padding: 48px 40px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    background: rgba(245, 242, 235, 0.1);
    border-color: rgba(245, 242, 235, 0.18);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(200, 168, 110, 0.15);
    color: var(--accent-light);
    margin-bottom: 24px;
}

.service-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.6);
    line-height: 1.75;
}

/* Gallery */
.gallery {
    padding: 120px 0;
    background: var(--cream);
}

.gallery-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 72px;
}

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

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

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

.gallery-item:nth-child(2) {
    grid-column: 6 / 9;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1;
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(4) {
    grid-column: 6 / 10;
    grid-row: 2;
    aspect-ratio: 5/4;
}

.gallery-item:nth-child(5) {
    grid-column: 10 / 13;
    grid-row: 2;
    aspect-ratio: 5/4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(to top, rgba(15, 36, 25, 0.7), transparent);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Visit */
.visit {
    padding: 120px 0;
    background: var(--cream-dark);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.visit-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--forest);
    color: var(--cream);
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--forest);
    font-weight: 500;
}

.contact-link {
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.visit-map {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

.map-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.map-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(26, 58, 42, 0.6);
    color: var(--cream);
    transition: background 0.3s ease;
}

.map-overlay svg {
    opacity: 0.9;
}

.map-overlay span {
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-link:hover .map-overlay {
    background: rgba(26, 58, 42, 0.75);
}

/* Footer */
.footer {
    background: var(--forest-deep);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    color: rgba(245, 242, 235, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
}

.footer-logo .logo-text,
.footer-logo span:last-child {
    font-family: var(--serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--cream);
}

.footer h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.55);
    transition: color 0.2s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact a {
    font-size: 0.9375rem;
    color: rgba(245, 242, 235, 0.55);
    transition: color 0.2s ease;
}

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

.footer-contact p {
    font-size: 0.875rem;
    color: rgba(245, 242, 235, 0.4);
    line-height: 1.6;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(245, 242, 235, 0.08);
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(245, 242, 235, 0.3);
    text-align: center;
}

/* Mobile Menu */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.125rem;
        color: var(--text-dark);
    }

    .nav-cta {
        font-size: 1rem;
        padding: 14px 28px;
        text-align: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-wrapper {
        aspect-ratio: 4/3;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

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

    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3) {
        grid-column: span 1;
        grid-row: auto;
        aspect-ratio: 4/3;
    }

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

    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .about,
    .services,
    .gallery,
    .visit {
        padding: 80px 0;
    }

    .about-stats {
        flex-direction: column;
        gap: 24px;
    }

    .service-card {
        padding: 36px 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
