/* ================================================
   LOLO'S ICE CREAM - CUSTOM STYLES
   ================================================ */

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Bebas Neue', sans-serif;
    color: #4D2E22;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ================================================
   CUSTOM COLORS
   ================================================ */

.text-white {
    color: #FFF9F6 !important;
}

.text-gray-800 {
    color: #4D2E22 !important;
}

.text-gray-700 {
    color: #5A3426 !important;
}

.text-gray-600 {
    color: #6B4235 !important;
}

.text-gray-500 {
    color: #7D5244 !important;
}

/* Background Colors */
.bg-white {
    background-color: #FFF9F6 !important;
}

.bg-brown {
    background-color: #4D2E22;
}

.bg-pink-100,
.bg-pink-200,
.bg-pink-300,
.bg-pink-400,
.bg-pink-500 {
    background-color: #F6C9DE !important;
}

/* ================================================
   DRIPPING BORDER EFFECTS
   ================================================ */

.drip-border {
    position: relative;
    padding-bottom: 30px;
}

.drip-border::after {
    content: '';
    position: absolute;
    bottom: -29px;
    left: 0;
    right: 0;
    height: 30px;
    background-image: url("images/drip-pink.png");
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: center bottom;
    z-index: 10;
}

.pink-drip::after {
    background-image: url("images/drip-pink.png");
}

.brown-drip::after {
    background-image: url("images/drip-brown.png");
}

/* Desktop drip adjustments */
@media (min-width: 768px) {
    .drip-border {
        padding-bottom: 50px;
    }

    .drip-border::after {
        bottom: -49px;
        height: 50px;
    }
}

/* ================================================
   BUTTONS
   ================================================ */

.btn-pink {
    background: linear-gradient(135deg, #F08AB6 0%, #E46A9E 100%);
    border-radius: 50px;
    padding: 12px 28px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #E46A9E;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(228, 106, 158, 0.3);
    font-size: 0.875rem;
}

.btn-pink:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(228, 106, 158, 0.5);
    background: linear-gradient(135deg, #E46A9E 0%, #F08AB6 100%);
}

.btn-pink:active {
    transform: translateY(-1px);
}

.btn-white {
    background: linear-gradient(135deg, #fff 0%, #FFF9F6 100%);
    border-radius: 50px;
    padding: 12px 28px;
    color: #E46A9E;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid #E46A9E;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(228, 106, 158, 0.3);
    font-size: 0.875rem;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(228, 106, 158, 0.5);
    background: linear-gradient(135deg, #FFF9F6 0%, #fff 100%);
}

.btn-white:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 3px solid #E46A9E;
    color: #E46A9E;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    font-size: 0.875rem;
}

.btn-outline:hover {
    background: #E46A9E;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(228, 106, 158, 0.4);
}

/* Desktop button sizing */
@media (min-width: 768px) {

    .btn-pink,
    .btn-white,
    .btn-outline {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* ================================================
   ICE CREAM CARDS
   ================================================ */

.ice-cream-card {
    transition: transform 0.3s ease;
}

.ice-cream-card:hover {
    transform: translateY(-10px);
}

.ice-cream-card img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes floatDelayed {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: floatDelayed 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   NAVIGATION
   ================================================ */

nav {
    transition: all 0.3s ease;
}

nav a {
    position: relative;
}

a {
    color: #4D2E22!important;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #E46A9E;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ================================================
   HERO SECTION
   ================================================ */

.bg-hero {
    background-image: url('images/bg-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Mobile: Adjust background for better visibility */
@media (max-width: 768px) {
    .bg-hero {
        background-position: center top;
    }
}

/* ================================================
   FORM STYLING
   ================================================ */

input:focus,
textarea:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

/* Custom Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E46A9E;
    cursor: pointer;
}

/* Form Success/Error Messages */
.form-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

#booking {
    position: relative;
}

#booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/Section.png');
    background-repeat: repeat;
    background-size: 75%;
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

#booking>* {
    position: relative;
    z-index: 1;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Mobile First Approach */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.25rem !important;
    }
    .bg-hero {
        min-height: 700px;
    }
    #booking::before {
        background-size: 300%
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Ensure container has proper padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
}

/* ================================================
   UTILITY CLASSES
   ================================================ */

.shadow-glow {
    box-shadow: 0 0 20px rgba(228, 106, 158, 0.5);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Disable text selection for buttons */
button,
.btn-pink,
.btn-white,
.btn-outline {
    user-select: none;
    -webkit-user-select: none;
}

/* Smooth transitions for all interactive elements */
a,
button,
input,
textarea {
    transition: all 0.3s ease;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ================================================
   PRINT STYLES
   ================================================ */

@media print {

    nav,
    footer,
    #scroll-top,
    .btn-pink,
    .btn-white,
    .btn-outline {
        display: none;
    }

    .drip-border::after {
        display: none;
    }

    body {
        background: white;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #F6C9DE;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E46A9E;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .btn-pink,
    .btn-white {
        border-width: 4px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   IMAGE OPTIMIZATION
   ================================================ */

/* Prevent layout shift */
img {
    display: block;
}

/* Better image rendering on retina displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ================================================
   MOBILE MENU FIXES
   ================================================ */

#mobile-menu {
    transition: max-height 0.3s ease-out;
}

/* ================================================
   CONTAINER CONSISTENCY
   ================================================ */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent content from touching edges on very small screens */
@media (max-width: 430px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .drip-border::after {
        background-size: 150% 100% !important;
    }
}