/* ============================================
   The Worn Whisk Bakery — Custom Styles
   ============================================ */

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

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

body {
    margin: 0;
}

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

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #C0603A 0%, #a84e2d 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d1704a 0%, #C0603A 100%);
}

.btn-secondary {
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* --- Navbar --- */
.nav-header {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 180, 160, 0.2);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-header.scrolled {
    background: rgba(253, 248, 240, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    z-index: 40;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}

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

/* --- Geometric Decorative Shapes --- */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(228, 145, 110, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 15%;
    right: -80px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 168, 96, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
}

.shape-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(192, 96, 58, 0.08);
    border-radius: 24px;
    top: 40%;
    left: 5%;
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(228, 145, 110, 0.1);
    bottom: 30%;
    right: 8%;
    transform: rotate(-15deg);
}

.shape-arch {
    width: 160px;
    height: 80px;
    background: rgba(201, 168, 96, 0.1);
    border-radius: 80px 80px 0 0;
    top: 60%;
    right: 3%;
}

/* Hero geometric shapes */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(192, 96, 58, 0.2);
    animation: float 6s ease-in-out infinite;
}

.geo-circle {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(228, 145, 110, 0.4);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.geo-square {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 96, 0.3);
    border-radius: 12px;
    animation: spin 12s linear infinite;
}

/* --- Menu Cards --- */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Gallery --- */
.gallery-item {
    cursor: pointer;
}

/* --- Scroll Animations (progressive enhancement) --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Indicator --- */
@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* --- Floating Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Pulse Animation --- */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(192, 96, 58, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(192, 96, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(192, 96, 58, 0); }
}

/* --- Mobile Menu Button --- */
.menu-line {
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 5px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .hero-geo {
        display: none !important;
    }
}
