/* ========================================
   The Old Frontier Bakery Shop
   Premium Dark Luxury Design System
   ======================================== */

/* CSS Custom Properties */
:root {
    --navy-950: #050d1a;
    --navy-900: #0a1628;
    --navy-800: #0f1f35;
    --navy-700: #162a45;
    --navy-600: #1e3a5c;
    --gold-500: #c9a84c;
    --gold-400: #d4b85e;
    --gold-300: #e0c970;
    --gold-200: #e8d99a;
    --cream-100: #f5f0e8;
    --cream-200: #ebe4d6;
    --cream-300: #ddd4c4;
    --text-primary: #f5f0e8;
    --text-secondary: #a89b8c;
    --text-muted: #6b5f52;
    --overlay-dark: rgba(5, 13, 26, 0.85);
    --overlay-medium: rgba(10, 22, 40, 0.75);
    --transition-fast: 0.2s ease;
    --transition-base: 0.35s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--navy-950);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Label */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

.section-label::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--gold-500);
}

/* Section Title */
.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.gold {
    color: var(--gold-500);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 4px;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-950);
}

.btn-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(201, 168, 76, 0.4);
}

.btn-secondary:hover {
    border-color: var(--gold-500);
    color: var(--gold-400);
    transform: translateY(-2px);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(5, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-500);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.nav-cta {
    padding: 0.6rem 1.25rem !important;
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
    border-radius: 4px;
    color: var(--gold-500) !important;
    transition: all var(--transition-base) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: rgba(201, 168, 76, 0.1) !important;
    border-color: var(--gold-500) !important;
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

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

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

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

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 13, 26, 0.7) 0%,
        rgba(10, 22, 40, 0.8) 50%,
        rgba(5, 13, 26, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    padding: 0 2rem;
    padding-top: 5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 2rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 100px;
    background: rgba(201, 168, 76, 0.05);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-accent {
    color: var(--gold-500);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--gold-500);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(201, 168, 76, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--gold-500);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll:hover {
    opacity: 1;
}

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

/* ========================================
   About
   ======================================== */
.about {
    padding: 8rem 0;
    background: var(--navy-950);
}

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

.about-images {
    position: relative;
    height: 600px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 80%;
    border-radius: 4px;
    overflow: hidden;
}

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

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    border-radius: 4px;
    overflow: hidden;
    border: 4px solid var(--navy-950);
}

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

.about-img-accent {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    background: var(--navy-800);
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.about-content {
    padding: 1rem 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 4px;
}

.about-feature strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.about-feature span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.about-feature-divider {
    width: 100%;
    height: 1px;
    background: rgba(201, 168, 76, 0.1);
    margin-top: 0.5rem;
}

.about-feature:last-child .about-feature-divider {
    display: none;
}

/* ========================================
   Products
   ======================================== */
.products {
    padding: 8rem 0;
    background: var(--navy-900);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--navy-800);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.08);
    transition: all var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-950);
    background: var(--gold-500);
    border-radius: 2px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   Craft
   ======================================== */
.craft {
    padding: 8rem 0;
    background: var(--navy-950);
}

.craft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.craft-content {
    order: 1;
}

.craft-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.craft-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.craft-step {
    position: relative;
}

.craft-step-num {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-500);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.craft-step h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.craft-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.craft-visual {
    order: 2;
    position: relative;
}

.craft-img-wrap {
    border-radius: 4px;
    overflow: hidden;
    height: 550px;
}

.craft-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craft-quote {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    right: -1rem;
    background: var(--navy-800);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 4px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.craft-quote svg {
    color: var(--gold-500);
    flex-shrink: 0;
}

.craft-quote blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
}

.craft-quote cite {
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ========================================
   Visit
   ======================================== */
.visit {
    padding: 8rem 0;
    background: var(--navy-900);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.visit-info {
    padding: 2rem 0;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2.5rem 0;
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-500);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px;
}

.visit-detail strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.visit-detail a {
    color: var(--gold-400);
    transition: color var(--transition-fast);
}

.visit-detail a:hover {
    color: var(--gold-300);
}

.visit-hours h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.hours-row span:first-child {
    color: var(--text-secondary);
}

.hours-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.visit-map {
    border-radius: 6px;
    overflow: hidden;
    min-height: 500px;
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.visit-map iframe {
    filter: grayscale(0.6) brightness(0.7) contrast(1.1);
    transition: filter var(--transition-base);
}

.visit-map:hover iframe {
    filter: grayscale(0.3) brightness(0.8) contrast(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 5rem 0 0;
    background: var(--navy-950);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo-icon {
    color: var(--gold-500);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.25rem;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

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

.footer-contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-contact a {
    color: var(--gold-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid rgba(201, 168, 76, 0.08);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom p:last-child {
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 13, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--text-primary);
    padding: 0.5rem;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--gold-500);
}

.mobile-menu-cta {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--gold-500);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 4px;
    transition: all var(--transition-base);
}

.mobile-menu-cta:hover {
    background: rgba(201, 168, 76, 0.1);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .craft-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .craft-content {
        order: 2;
    }

    .craft-visual {
        order: 1;
    }

    .craft-img-wrap {
        height: 400px;
    }

    .craft-quote {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        margin-top: 1.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-number {
        font-size: 1.5rem;
    }

    .about-images {
        height: 400px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .craft-steps {
        grid-template-columns: 1fr;
    }

    .visit-map {
        min-height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat-divider {
        width: 2.5rem;
        height: 1px;
    }

    .about-images {
        height: 320px;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
