/*
Theme Name: The Womens Golf Hub
Theme URI: https://womensgolfhub.co.uk
Author: The Developer
Author URI: https://thedeveloper.co.uk
Description: Custom WordPress theme for The Womens Golf Hub - Women's golf coaching and community by PGA Professional Hannah Crump
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: Private
License URI: https://womensgolfhub.co.uk
Text Domain: womensgolfhub
Tags: one-column, custom-menu, custom-logo, featured-images, full-width-template, theme-options

The Womens Golf Hub - Custom WordPress Theme
A community-focused website for women's golf coaching, programmes, and holidays.
*/

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Colors - matching DaisyUI theme */
    --color-base-100: #ffffff;
    --color-base-200: #f8faf5;
    --color-base-300: #e8ebe3;
    --color-primary: #3d574a;
    --color-primary-content: #ffffff;
    --color-secondary: #ebe2d6;
    --color-secondary-content: #ffffff;
    --color-accent: #0d9488;
    --color-accent-content: #ffffff;
    --color-neutral: #6b7280;
    --color-base-content: #1a3126;
    
    /* Typography */
    --font-heading: 'Zain', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem;
    --container-max: 80rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}
p.text-sm.text-neutral {
    color: #1a3126;
}

/* Utility color classes fallback */
.bg-base-100 { background-color: #ebe2d6; }
.bg-base-200 { background-color: #ebe2d6; }
.bg-base-300 { background-color: #ebe2d6; }
.bg-primary { background-color: #3d574a; }
.bg-secondary { background-color: #ebe2d6; }
.bg-accent { background-color: #0d9488; }

.text-base-content { color: #1a3126; }
.text-primary { color: #3d574a; }
.text-secondary { color: #3d574a; }
.text-accent { color: #0d9488; }
.text-neutral { color: #6b7280; }
.text-primary-content { color: #ffffff; }
.text-secondary-content { color: #ffffff; }
.text-accent-content { color: #ffffff; }

.border-base-300 { border-color: #e8ebe3; }
.border-primary { border-color: #3d574a; }

/* Gradient utilities */
.from-purple-500 { --tw-gradient-from: #a855f7; }
.via-pink-500 { --tw-gradient-via: #ec4899; }
.to-orange-400 { --tw-gradient-to: #fb923c; }
.from-base-100 { --tw-gradient-from: #ffffff; }
.to-base-100 { --tw-gradient-to: #ffffff; }
.to-transparent { --tw-gradient-to: transparent; }

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to));
}

.bg-gradient-to-r {
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
nav li {
    list-style: none;
}

.bg-gradient-to-t {
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

/* Alpha gradient stops for overlays */
.from-base-100\/95 {
/*     --tw-gradient-from: rgba(255, 255, 255, 0.95); */
}

.via-base-100\/80 {
    --tw-gradient-via: #ebe2d6;
    --tw-gradient-stops: #ebe2d6, #ebe2d6, var(--tw-gradient-to);
}

.from-base-content\/60 {
    --tw-gradient-from: rgba(31, 41, 55, 0.60);
}

/* Hover scale */
.hover\:scale-110:hover {
    transform: scale(1.1);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Shadow utilities */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ============================================
   Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent horizontal overflow on all elements */
*, *::before, *::after {
    max-width: 100%;
    box-sizing: border-box;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Override any legacy Outfit utility usage */
.font-\[Outfit\] {
    font-family: var(--font-heading);
}

/* Menu typography */
.navbar,
.menu,
.drawer-side .menu,
.footer nav {
    font-family: var(--font-heading);
}

/* Header styling */
.site-navbar {
    background-color: #3d574a;
    color: #f1e0d8;
}

.site-navbar a {
    color: #f1e0d8;
}

.site-navbar a:hover {
    color: #ffffff;
}

.site-navbar .text-primary {
    color: #f1e0d8;
}

.site-navbar .text-secondary {
    color: #f1e0d8;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-primary-content);
}

/* ============================================
   Animation Keyframes
   ============================================ */

/* Fade Up Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale Up Animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Animation Classes
   ============================================ */

/* Fade Up */
.animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
}

/* Animation Delays */
.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-125 {
    animation-delay: 125ms;
}

.animation-delay-150 {
    animation-delay: 150ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-500 {
    animation-delay: 500ms;
}

/* Scroll Animations - Hidden by default */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children animations */
.scroll-animate.animate-in .stagger-child {
    animation: fadeUp 0.6s ease forwards;
}

.scroll-animate.animate-in .stagger-child:nth-child(1) { animation-delay: 0ms; }
.scroll-animate.animate-in .stagger-child:nth-child(2) { animation-delay: 100ms; }
.scroll-animate.animate-in .stagger-child:nth-child(3) { animation-delay: 200ms; }
.scroll-animate.animate-in .stagger-child:nth-child(4) { animation-delay: 300ms; }
.scroll-animate.animate-in .stagger-child:nth-child(5) { animation-delay: 400ms; }
.scroll-animate.animate-in .stagger-child:nth-child(6) { animation-delay: 500ms; }

/* ============================================
   Hero Section
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 80rem; 
}

h1, h2, h3, h4 {
    color: #3d574a;
    font-weight: 800;
}

#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
}

/* Hero image parallax effect */
#hero > .absolute > img {
    will-change: transform;
}

.hero-content h1{
    line-height: 1;
}

/* Desktop: Semi-transparent backdrop for text legibility */
@media (min-width: 1024px) {
    .hero-text-backdrop {
        display: inline-block;
        background-color: rgba(255, 255, 255, 0.85);
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        backdrop-filter: blur(4px);
    }
    
    .hero-stats-backdrop {
        background-color: rgba(255, 255, 255, 0.85);
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        backdrop-filter: blur(4px);
    }
}

/* Mobile hero image card */
.hero-mobile-card {
    margin: 1.5rem auto 0;
    max-width: 22rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.45);
    background-color: #ffffff;
}

.hero-mobile-card-image {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
}

/* Mobile hero layout adjustments */
@media (max-width: 1023px) {
    .m-text-small {
        font-size: 0.875rem;
    }
    #hero {
        flex-direction: column;
        min-height: auto;
        padding: 0;
    }
    
    #hero .hero-content {
        padding-top: 7rem;
        padding-bottom: 3rem;
        background-color: #ebe2d6;
    }
}

/* ============================================
   Navbar Styles
   ============================================ */
.navbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 4rem; 
    transition: background-color var(--transition-normal), 
                box-shadow var(--transition-normal);
}

.navbar-start {
    display: flex;
    align-items: center;
    flex: 1;
}

.navbar-center {
    display: flex;
    align-items: center;
    flex: none;
}

.navbar-end {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.navbar.scrolled {
    background-color: #3d574a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Active nav link */
.navbar a.active {
    color: #f1e0d8;
}

/* Menu styles */
.menu {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.menu-horizontal {
    flex-direction: row;
    align-items: center;
}

.menu li {
    list-style: none;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #f1e0d8;
    transition: all 0.2s ease;
}

/* ============================================
   Card Styles
   ============================================ */
.card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal),
                border-color var(--transition-normal);
}

/* Allow explicit background colors to override default card background */
.card.bg-primary {
    background-color: #3d574a;
}

.card:hover {
    transform: translateY(-4px);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a3126;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

/* Card image zoom on hover */
.card figure {
    overflow: hidden;
}

.card figure img {
    transition: transform var(--transition-slow);
}

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

/* ============================================
   Button Enhancements
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}

.btn-primary {
    background-color: #3d574a;
    border-color: #3d574a;
    color: #ffffff;
}
.drawer-side 
.btn-primary {
    background-color: #ebe2d6;
    border-color: #ebe2d6;
    color: #3d574a;
}

.drawer-side 
.btn-primary:hover {
    background-color: #aea79d;
    border-color: #aea79d;
    color: #3d574a;
}

/* Drawer side social icons - cream color */
.drawer-side .btn-ghost.btn-circle {
    color: #ebe2d6;
}

.drawer-side .btn-ghost.btn-circle:hover {
    color: #d4c9bb;
    background-color: rgba(235, 226, 214, 0.1);
}

/* Menu open button (hamburger) - cream color */
.navbar .btn-ghost.btn-square {
    color: #ebe2d6;
}

.navbar .btn-ghost.btn-square:hover {
    color: #d4c9bb;
    background-color: rgba(235, 226, 214, 0.1);
}

/* Drawer close button - cream color */
.drawer-side .btn-ghost.btn-square {
    color: #ebe2d6;
}

.drawer-side .btn-ghost.btn-square:hover {
    color: #d4c9bb;
    background-color: rgba(235, 226, 214, 0.1);
}

.btn{
    font-weight: 800;
}

.btn-secondary {
    background-color: #ebe2d6;
    border-color: #ebe2d6;
    color: #3d574a !important;
}

.btn-secondary:hover {
    background-color: #e0d5c8;
    border-color: #e0d5c8;
    box-shadow: 0 10px 25px -5px rgba(235, 226, 214, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-width: 2px;
    border-color: currentColor;
}

.btn-outline:hover {
    background-color: #3d574a;
    border-color: #3d574a;
    color: #ffffff;
}

.btn-outline.btn-primary {
    color: #3d574a;
    border-color: #3d574a;
}

.btn-outline.btn-primary:hover {
    background-color: #3d574a;
    color: #ffffff;
}

.btn-ghost {
    background-color: transparent;
    border: none;
    color: #1a3126;
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-square {
    width: 3rem;
    height: 3rem;
    padding: 0;
}

.btn-circle {
    width: 3rem;
    height: 3rem;
    padding: 0;
    border-radius: 9999px;
}

.btn-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-height: 2rem;
    height: auto;
}

.btn-sm.btn-square,
.btn-sm.btn-circle {
    width: 2rem;
    height: 2rem;
}

.btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    min-height: 3.5rem;
}

.btn-block {
    width: 100%;
}

/* ============================================
   Carousel Styles
   ============================================ */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-item {
    flex-shrink: 0;
    scroll-snap-align: start;
}

#testimonial-carousel {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

#testimonial-carousel .carousel-item {
    scroll-snap-align: start;
    flex-shrink: 0;
    /* Mobile: full width */
    width: 100%;
    min-width: 100%;
}

/* Tablet: two items */
@media (min-width: 768px) {
    #testimonial-carousel .carousel-item {
        width: calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

/* Desktop: three items */
@media (min-width: 1024px) {
    #testimonial-carousel .carousel-item {
        width: calc(33.333% - 1rem);
        min-width: calc(33.333% - 1rem);
    }
    
    .hero-content .hero-content-left {
        background: #ebe2d6c7;
        padding: 25px;
        border-radius: 20px;
    }
}

/* Hide scrollbar but keep functionality */
#testimonial-carousel::-webkit-scrollbar {
    display: none;
}

#testimonial-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   Stats Display
   ============================================ */
.stats-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-primary);
}

.stats-label {
    font-size: 0.875rem;
    color: var(--color-neutral);
}

/* ============================================
   Form Styles
   ============================================ */
.form-control {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.label {
    display: flex;
    padding: 0.5rem 0;
}

.label-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.text-dark {
    color: #1f2937;
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #1a3126;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: #3d574a;
    box-shadow: 0 0 0 3px rgba(61, 87, 74, 0.1);
}

.input-bordered,
.select-bordered,
.textarea-bordered {
    border: 1px solid #d1d5db;
}

.input-lg,
.select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   Newsletter Section
   ============================================ */
#newsletter {
    background: linear-gradient(135deg, #3d574a 0%, #1f5c36 100%);
}

#newsletter input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

#newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#newsletter input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* White text utilities for newsletter */
.text-white { color: #ffffff; }
.placeholder-white\/60::placeholder { color: rgba(255, 255, 255, 0.6); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white { border-color: #ffffff; }
.focus\:border-white:focus { border-color: #ffffff; }
.focus\:bg-white\/20:focus { background-color: rgba(255, 255, 255, 0.2); }

/* ============================================
   Badge Styles
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: #e5e7eb;
    color: #1a3126;
}

.badge-primary {
    background-color: #3d574a;
    color: #ffffff;
}

.badge-secondary {
    background-color: #ebe2d6;
    border: 1px solid #3d574a;
    color: #3d574a;
}

.badge-accent {
    background-color: #ebe2d6;
    border: 1px solid #3d574a;
    color: #3d574a;
}

.badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

.badge-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

/* ============================================
   Drawer Styles
   ============================================ */
.drawer {
    display: grid;
    width: 100%;
    overflow: hidden;
}

.drawer-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.drawer-side {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.drawer-toggle:checked ~ .drawer-side {
    pointer-events: auto;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.drawer-toggle:checked ~ .drawer-side .drawer-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.drawer-side > *:not(.drawer-overlay) {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    background-color: #3d574a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.drawer-toggle:checked ~ .drawer-side > *:not(.drawer-overlay) {
    transform: translateX(0);
}

/* ============================================
   Avatar Placeholder Colors
   ============================================ */
.avatar.placeholder > div {
    font-family: var(--font-heading);
}

/* ============================================
   Image Treatments
   ============================================ */
.image-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Decorative shapes */
.decorative-shape {
    position: absolute;
    border-radius: 1rem;
    z-index: -1;
}

/* ============================================
   Footer Styles
   ============================================ */
.footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 1rem; 
    color: #1a3126;
}

.footer-center {
    align-items: center;
    text-align: center;
}

.footer nav {
    display: flex;
    gap: 1rem;
}

footer a {
    transition: color var(--transition-fast);
    text-decoration: none;
    color: #6b7280;
}

footer a:hover {
    color: #3d574a;
}

.link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.link:hover,
.link-hover:hover {
    text-decoration: underline;
}

/* ============================================
   Avatar Styles
   ============================================ */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar.placeholder > div {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
}

.avatar > div {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
}

/* ============================================
   Utility Classes
   ============================================ */

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Backdrop blur fallback */
@supports not (backdrop-filter: blur(8px)) {
    .backdrop-blur-sm {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Mobile (max-width: 1023px) */
@media (max-width: 1023px) {
    #hero h1 {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Stack stats on mobile */
    #hero .flex.items-center.gap-6 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Full width cards on mobile */
    .card {
        width: 100%;
    }
    
    /* Prevent grid overflow on mobile */
    .grid {
        grid-template-columns: 1fr !important;
    }
    .calendar-section .calendar-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    }
    
    /* Ensure images don't overflow - but exclude hero background and certification logos */
    img:not(.hero-bg-image):not(.certification-logo):not(.hero-mobile-card-image) {
        max-width: 100%;
        height: auto;
    }
    nav img:not(.hero-bg-image):not(.certification-logo),
    .drawer-side img:not(.hero-bg-image):not(.certification-logo) {
        max-width:120px !important;
        height: auto;
    }
    
    /* Hero background image must maintain cover behavior */
    .hero-bg-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Certification logos - explicit sizing on mobile */
    .certification-logo {
        height: auto;
        max-height: 2rem; /* h-8 equivalent */
        width: auto;
    }
    
    /* Newsletter form stack on mobile */
    #newsletter form {
        flex-direction: column;
    }
    
    /* Footer links wrap */
    .footer nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Hide hero floating image on mobile */
    .hero-profile-card {
        display: none;
    }
}

/* Mobile menu fixes */
@media (max-width: 1023px) {
    /* Hide desktop menu on mobile/tablet */
    .navbar-center {
        display: none !important;
    }
    .navbar-start a {
        font-size: 17px !important;
    }
    /* Ensure mobile menu button is visible */
    .navbar-end label[for="mobile-drawer"] {
        display: inline-flex !important;
    }
}

/* Desktop - hide mobile menu button */
@media (min-width: 1024px) {
    .navbar-end label[for="mobile-drawer"] {
        display: none !important;
    }
    
    .navbar-center {
        display: flex !important;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Adjust grid gaps */
    .grid {
        gap: 1.5rem;
    }
}

/* Large screens (min-width: 1280px) */
@media (min-width: 1280px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .drawer-side,
    .btn,
    #newsletter,
    footer nav {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

.text-light {
    color: #f1e0d8;
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Users who prefer dark mode will see the light theme
       as designed, but this is here for future enhancement */
}

/* ============================================
   Hero Floating Profile Card
   ============================================ */
.hero-profile-card {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    animation: float 4s ease-in-out infinite;
}

.hero-profile-card .profile-image-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(61, 87, 74, 0.1);
    background: linear-gradient(135deg, #3d574a, #0d9488);
    padding: 4px;
}

.hero-profile-card .profile-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Decorative elements around profile */
.hero-profile-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background-color: #ebe2d6;
    border-radius: 50%;
    opacity: 0.8;
    z-index: -1;
}

.hero-profile-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    background-color: #3d574a;
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

/* Responsive adjustments for hero profile card */
@media (max-width: 1279px) {
    .hero-profile-card {
        right: 2%;
    }
    
    .hero-profile-card .profile-image-wrapper {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 1023px) {
    .hero-profile-card {
        display: none;
    }
}

/* ============================================
   Additional Mobile Fixes
   ============================================ */

/* Ensure container doesn't overflow */
.max-w-7xl {
    max-width: min(80rem, 100vw - 2rem);
}

/* Fix newsletter section inputs on small screens */
@media (max-width: 480px) {
    #newsletter .input-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Smaller stats on very small screens */
    #hero .text-3xl {
        font-size: 1.5rem;
    }
    
    #hero .text-sm {
        font-size: 0.75rem;
    }
    
    /* Reduce section padding on mobile */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix badge wrapping */
    .badge {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Ensure drawer closes when clicking overlay */
.drawer-overlay {
    cursor: pointer;
}

/* ============================================
   Modal/Dialog Styles
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
}

.modal-container {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.2s ease;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover {
    background-color: #f3f4f6;
    color: #1a3126;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Legacy DaisyUI modal styles for fallback */
.modal-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    max-width: 28rem;
    width: calc(100% - 2rem);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-action {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.d-none{
    display: none !important;
}

/* ============================================
   WooCommerce Customizations
   ============================================ */
.woocommerce .product-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.woocommerce .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.woocommerce .add_to_cart_button {
    background-color: #3d574a;
    border-color: #3d574a;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 800;
}

.woocommerce .add_to_cart_button:hover {
    background-color: #2d4138;
}

/* Sold Out Card Styling */
.sold-out-card {
    position: relative;
}

.sold-out-card:hover {
    transform: none;
}

.sold-out-ribbon {
    position: absolute;
    top: 24px;
    left: -40px;
    z-index: 10;
    width: 160px;
    text-align: center;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #3d574a 0%, #2d4138 100%);
    box-shadow: 0 4px 12px -2px rgba(61, 87, 74, 0.5);
}

.sold-out-ribbon span {
    display: block;
    padding: 10px 0;
    color: #ebe2d6;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Pulse animation for limited spots badge */
@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

.badge.animate-pulse {
    animation: pulse-badge 2s ease-in-out infinite;
}

/* Stock quantity badge styles */
.badge-neutral {
    background-color: #374151;
    color: #ffffff;
}

/* ============================================
   WooCommerce Single Product Page
   ============================================ */
.woocommerce-page {
    background-color: #ebe2d6;
}

.woocommerce div.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce div.product div.images {
    width: 50%;
    float: left;
}

.woocommerce div.product div.images img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.woocommerce div.product div.summary {
    width: 45%;
    float: right;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .product_title {
    font-family: 'Zain', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #3d574a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.woocommerce div.product p.price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3d574a;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description p {
    margin-bottom: 1rem;
}

.woocommerce div.product form.cart {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 1rem;
}

.woocommerce div.product form.cart .quantity input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-align: center;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    background-color: #3d574a;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: #2d4138;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 87, 74, 0.3);
}

/* Out of stock message */
.woocommerce div.product .stock.out-of-stock {
    background: linear-gradient(135deg, #3d574a 0%, #2d4138 100%);
    color: #ebe2d6;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    margin: 1.5rem 0;
}

/* In stock message */
.woocommerce div.product .stock.in-stock {
    background: #ebe2d6;
    color: #3d574a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Product description tabs */
.woocommerce div.product .woocommerce-tabs {
    clear: both;
    padding-top: 3rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #6b7280;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #3d574a;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #3d574a;
    border-bottom-color: #3d574a;
}

.woocommerce div.product .woocommerce-tabs .panel {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-family: 'Zain', sans-serif;
    font-size: 1.5rem;
    color: #3d574a;
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-tabs .panel p,
.woocommerce div.product .woocommerce-tabs .panel h3 {
    color: #374151;
    line-height: 1.7;
}

.woocommerce div.product .woocommerce-tabs .panel h3 {
    font-family: 'Zain', sans-serif;
    font-size: 1.25rem;
    color: #3d574a;
    margin: 1.5rem 0 0.75rem;
}

/* Related products */
.woocommerce div.product .related.products {
    clear: both;
    padding-top: 3rem;
}

.woocommerce div.product .related.products h2 {
    font-family: 'Zain', sans-serif;
    font-size: 1.75rem;
    color: #3d574a;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce div.product .related.products ul.products li.product {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px -5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce div.product .related.products ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.15);
}

.woocommerce div.product .related.products ul.products li.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.woocommerce div.product .related.products ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Zain', sans-serif;
    font-size: 1.1rem;
    color: #3d574a;
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

.woocommerce div.product .related.products ul.products li.product .price {
    padding: 0 1rem 1rem;
    font-weight: 600;
    color: #3d574a;
}

/* Responsive adjustments for product page */
@media (max-width: 768px) {
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        width: 100%;
        float: none;
    }
    
    .woocommerce div.product div.summary {
        margin-top: 1.5rem;
    }
    
    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }
    
    .woocommerce div.product p.price {
        font-size: 1.5rem;
    }
}

/* ============================================
   WordPress Admin Bar Fix
   ============================================ */
body.admin-bar .navbar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}


.sold-out-ribbon {
    position: absolute;
    top: 15px;
    left: -40px;
    z-index: 10;
    width: 160px;
    text-align: center;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #e9e0d4 0%, #ebe2d6 100%);
    box-shadow: 0 4px 12px -2px rgba(61, 87, 74, 0.5);
    border: 2px solid;
}

.sold-out-ribbon span {
    display: block;
    padding: 10px 0;
    color: #3d574a;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Zain';
    font-size: 0.9em;
}
