/* ========================================
   Heavenly Corn Creations — Custom Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --navy-900: #0D1B2A;
    --navy-800: #1B2A4A;
    --gold-500: #D4A017;
    --gold-400: #E8B930;
    --gold-300: #F0CC5C;
    --warm-50: #FFFCF5;
    --warm-100: #FFF8E7;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========================================
   Geometric Background Shapes
   ======================================== */
.geo-shapes {
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: var(--gold-500);
    top: -100px;
    right: -100px;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: var(--navy-800);
    bottom: 20%;
    left: -50px;
}

.geo-triangle {
    position: absolute;
    opacity: 0.04;
}

.geo-triangle--1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid var(--gold-500);
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.geo-square {
    position: absolute;
    opacity: 0.05;
    background: var(--gold-500);
    transform: rotate(45deg);
}

.geo-square--1 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 8%;
}

.geo-dots {
    position: absolute;
    opacity: 0.08;
}

.geo-dots--1 {
    bottom: 15%;
    right: 10%;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    background: rgba(255, 252, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
    transition: all duration-500;
}

.nav.scrolled {
    background: rgba(255, 252, 245, 0.98);
    box-shadow: 0 4px 30px rgba(13, 27, 42, 0.08);
}

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

.nav-logo-icon circle {
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon circle {
    transform: scale(1.05);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2A4A 40%, #2C3E6B 70%, #1B2A4A 100%);
}

.hero-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(212, 160, 23, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 160, 23, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 60% 80%, rgba(44, 62, 107, 0.3) 0%, transparent 50%);
}

.hero-geo {
    animation: float 6s ease-in-out infinite;
}

.hero-geo--corn {
    animation-delay: 0s;
}

.hero-geo--circle {
    animation-delay: 1s;
    animation-duration: 8s;
}

.hero-geo--triangle {
    animation-delay: 2s;
    animation-duration: 7s;
}

.hero-geo--dots {
    animation-delay: 0.5s;
    animation-duration: 9s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Buttons */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.35);
}

.btn-hero-primary:hover {
    background: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 160, 23, 0.45);
}

.btn-hero-arrow {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover .btn-hero-arrow {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--gold-400);
    color: var(--gold-300);
    background: rgba(212, 160, 23, 0.1);
}

/* ========================================
   Features Strip
   ======================================== */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Section Styles
   ======================================== */
.section-label {
    letter-spacing: 0.15em;
}

.section-title {
    line-height: 1.15;
}

.section-desc {
    line-height: 1.7;
}

/* ========================================
   Menu Section
   ======================================== */
.menu-tab {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-700);
    background: transparent;
    border: 2px solid var(--navy-200, #E2E8F0);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    border-color: var(--gold-500);
    color: var(--gold-500);
}

.menu-tab.active-btn {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: white;
}

.menu-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(13, 27, 42, 0.04);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.12);
}

.menu-card-img-inner {
    transition: transform 0.6s ease;
}

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

.menu-card-tag {
    flex-shrink: 0;
}

/* ========================================
   About Section
   ======================================== */
.about-bg-shape {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.about-image-grid {
    position: relative;
}

.about-img-float {
    border: 4px solid var(--warm-50);
}

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

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

.about-feature-icon {
    display: flex;
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 20px;
}

.gallery-img-inner {
    transition: transform 0.6s ease;
}

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

.gallery-item {
    box-shadow: 0 4px 20px rgba(13, 27, 42, 0.08);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: 0 12px 40px rgba(13, 27, 42, 0.15);
}

/* ========================================
   Visit Section
   ======================================== */
.visit-shape {
    transition: transform 0.3s ease;
}

.visit-info-item {
    transition: transform 0.3s ease;
}

.visit-info-item:hover {
    transform: translateX(4px);
}

.map-container {
    position: relative;
}

/* ========================================
   Contact Section
   ======================================== */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}

.btn-gold {
    background: var(--gold-500);
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: var(--gold-400);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
}

.footer-logo:hover .footer-logo-text {
    color: var(--gold-400);
}

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
    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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    box-shadow: -10px 0 40px rgba(13, 27, 42, 0.1);
}

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

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

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .hero-geo--corn {
        width: 80px;
        height: 80px;
        top: 15%;
        left: 5%;
    }

    .hero-geo--circle {
        width: 50px;
        height: 50px;
        top: 25%;
        right: 10%;
    }

    .hero-geo--triangle {
        width: 60px;
        height: 60px;
        bottom: 25%;
        left: 10%;
    }

    .about-img-float {
        display: none;
    }

    .about-stat-float {
        position: relative;
        margin-top: 16px;
        display: inline-block;
    }

    .about-bg-shape {
        clip-path: none;
        position: relative;
        width: 100%;
        height: 200px;
        margin-top: 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 4rem;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .nav, .back-to-top, .geo-shapes, .hero-scroll {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
