/* ============================================
   TERRY'S CAFE & CATERING — CUSTOM STYLES
   ============================================ */

/* --- Base --- */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* --- Header --- */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(11, 61, 44, 0.08);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #16a34a !important;
}

.cta-btn {
    background: #166534;
    color: #FFFDF7 !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

/* --- Mobile Menu --- */
.mobile-link {
    transition: all 0.3s ease;
}

.mobile-link:hover {
    transform: scale(1.05);
}

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

/* --- Hero --- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-images {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-img-card {
    box-shadow: 0 20px 60px rgba(11, 61, 44, 0.15);
}

.hero-img-card:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: 2rem;
    left: -1rem;
    background: white;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(11, 61, 44, 0.15);
    z-index: 10;
    animation: float 3s ease-in-out infinite;
}

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

/* --- Geometric Shapes --- */
.geo-shape {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    background: #166534;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: #22c55e;
    border-radius: 50%;
    bottom: 10%;
    left: 5%;
}

.shape-circle-3 {
    width: 120px;
    height: 120px;
    background: #86efac;
    border-radius: 50%;
    top: 40%;
    right: 15%;
}

.shape-square-1 {
    width: 150px;
    height: 150px;
    background: #166534;
    top: 20%;
    left: 60%;
    transform: rotate(45deg);
    border-radius: 20px;
}

.shape-diamond {
    width: 80px;
    height: 80px;
    background: #22c55e;
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
    border-radius: 12px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #166534;
    top: 15%;
    left: 45%;
    opacity: 0.04;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #166534;
    color: #FFFDF7;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #166534;
}

.btn-primary:hover {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 101, 52, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #0B3D2C;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #0B3D2C;
}

.btn-secondary:hover {
    background: #0B3D2C;
    color: #FFFDF7;
    transform: translateY(-2px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FFFDF7;
    color: #166534;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #FFFDF7;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 253, 247, 0.5);
}

.btn-white-outline:hover {
    background: rgba(255, 253, 247, 0.1);
    border-color: #FFFDF7;
    transform: translateY(-2px);
}

/* --- Info Pills --- */
.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Section Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- About --- */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-image-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-text-wrapper {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-text-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-stat-card {
    animation: float 4s ease-in-out infinite;
}

.about-feature {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.about-feature.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Menu --- */
.menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Catering --- */
.catering-text-wrapper {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.catering-text-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.catering-image-wrapper {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.catering-image-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

.catering-img-main {
    box-shadow: 0 20px 60px rgba(11, 61, 44, 0.2);
}

.catering-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
}

.catering-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Gallery --- */
.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- Contact --- */
.contact-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form --- */
.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.input-field:focus {
    border-color: #16a34a;
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-field:hover {
    border-color: #d1d5db;
}

/* --- Keyframes --- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .floating-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        animation: none;
    }

    .floating-badge p {
        margin: 0;
    }

    .hero-images {
        margin-top: 2rem;
    }

    .about-stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1.5rem;
        animation: none;
    }

    .about-image-wrapper,
    .about-text-wrapper,
    .catering-text-wrapper,
    .catering-image-wrapper {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .geo-shape {
        display: none;
    }

    #hero h1 {
        font-size: 2.75rem !important;
    }
}
