/* ========================================
   Torres Family Bakery — Custom Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-forest: #1a3c2a;
    --color-forest-light: #2d5a3f;
    --color-forest-dark: #0f2419;
    --color-cream: #f5f2eb;
    --color-cream-light: #faf8f4;
    --color-warm: #e8e2d6;
    --color-warm-dark: #d4cdbf;
    --color-text: #1a1a18;
    --color-text-light: #4a4a46;
    --color-text-muted: #7a7a74;
    --color-white: #ffffff;
    --color-border: rgba(26, 60, 42, 0.12);
    --color-border-light: rgba(26, 60, 42, 0.06);
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    
    --nav-height: 72px;
    --container-max: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-cream-light);
    line-height: 1.7;
    font-size: 15px;
    letter-spacing: 0.01em;
}

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

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

ul {
    list-style: none;
}

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

/* Section Labels */
.section-label {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-forest);
    margin-bottom: 16px;
}

/* Section Title */
.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
    color: var(--color-forest);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background: var(--color-forest-light);
    border-color: var(--color-forest-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 60, 42, 0.25);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 242, 235, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
    transition: all 0.4s ease;
}

.nav.scrolled {
    background: rgba(245, 242, 235, 0.97);
    box-shadow: 0 1px 0 var(--color-border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-forest);
    letter-spacing: -0.01em;
}

.nav-logo-icon {
    display: flex;
    align-items: center;
    color: var(--color-forest);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    transition: color 0.25s ease;
    position: relative;
}

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

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

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

.nav-cta {
    padding: 10px 24px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-forest);
    border: 1px solid var(--color-forest);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

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

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-forest);
}

/* ========================================
   Mobile Nav Overlay
   ======================================== */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--color-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-forest);
    padding: 8px;
}

.nav-overlay-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.nav-overlay-link {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-forest);
    letter-spacing: -0.01em;
    transition: opacity 0.25s ease;
}

.nav-overlay-link:hover {
    opacity: 0.6;
}

.nav-overlay-cta {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-forest);
    margin-top: 12px;
    padding: 12px 28px;
    border: 1px solid var(--color-forest);
    border-radius: var(--radius-sm);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: 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(15, 36, 25, 0.72) 0%,
        rgba(26, 60, 42, 0.65) 50%,
        rgba(15, 36, 25, 0.80) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 0 24px;
    padding-top: var(--nav-height);
}

.hero-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.hero-tagline-line {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-headline {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: var(--color-white);
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin: 0 auto 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ========================================
   Divider
   ======================================== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 24px;
}

.divider-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-forest);
    opacity: 0.4;
    flex-shrink: 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: var(--color-warm-dark);
}

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

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

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

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

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

.about-text {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

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

.stat-number {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--color-forest);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ========================================
   Offerings
   ======================================== */
.offerings {
    padding: 120px 0;
    background: var(--color-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

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

.offering-card {
    background: var(--color-cream-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.offering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 60, 42, 0.1);
}

.offering-image {
    aspect-ratio: 5/3.8;
    overflow: hidden;
}

.offering-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offering-card:hover .offering-image img {
    transform: scale(1.04);
}

.offering-content {
    padding: 28px 28px 32px;
}

.offering-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--color-forest);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.offering-content p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--color-text-light);
}

/* ========================================
   Craft
   ======================================== */
.craft {
    padding: 120px 0;
    background: var(--color-forest-dark);
}

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

.craft-content .section-label {
    color: rgba(255, 255, 255, 0.5);
}

.craft-content .section-title {
    color: var(--color-white);
}

.craft-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 48px;
}

.craft-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
}

.craft-item-number {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 4px;
}

.craft-item h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.craft-item p {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
}

.craft-images {
    position: relative;
    padding-bottom: 40px;
}

.craft-image-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.craft-image-small {
    position: absolute;
    bottom: 0;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 4px solid var(--color-forest-dark);
    aspect-ratio: 4/3;
    width: 55%;
}

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

/* ========================================
   CTA
   ======================================== */
.cta {
    padding: 120px 0;
    background: var(--color-cream);
    text-align: center;
}

.cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.cta-content .section-label {
    text-align: center;
}

.cta-headline {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    color: var(--color-forest);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

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

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

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

.visit-info .section-title {
    margin-bottom: 48px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit-detail svg {
    color: var(--color-forest);
    flex-shrink: 0;
    margin-top: 3px;
}

.visit-detail-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.visit-detail-value {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text);
}

.visit-detail-value a {
    color: var(--color-forest);
    transition: color 0.25s ease;
}

.visit-detail-value a:hover {
    color: var(--color-forest-light);
    text-decoration: underline;
}

.visit-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3.5;
    box-shadow: 0 4px 24px rgba(26, 60, 42, 0.08);
}

.visit-map iframe {
    width: 100%;
    height: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-forest-dark);
    color: var(--color-white);
    padding: 72px 0 40px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

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

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

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

.footer-phone {
    display: block;
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 8px;
    transition: opacity 0.25s ease;
}

.footer-phone:hover {
    opacity: 0.8;
}

.footer-address {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.04em;
}

/* ========================================
   Scroll Reveal (progressive enhancement)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .about-grid,
    .craft-grid,
    .visit-grid {
        gap: 48px;
    }
    
    .craft-image-small {
        right: -20px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-headline {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-sub {
        font-size: 14px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        aspect-ratio: 4/3;
    }
    
    .about-stats {
        gap: 24px;
    }
    
    .offerings {
        padding: 80px 0;
    }
    
    .offerings-grid {
        grid-template-columns: 1fr;
    }
    
    .craft {
        padding: 80px 0;
    }
    
    .craft-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .craft-images {
        order: -1;
        padding-bottom: 0;
    }
    
    .craft-image-small {
        right: 0;
        border-color: var(--color-forest-dark);
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .visit {
        padding: 80px 0;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .visit-map {
        aspect-ratio: 16/9;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 24px;
    }
}
