/**
 * Zahara Consultancy Theme - Main Stylesheet
 * Replicates the Tailwind CSS design system exactly
 * 
 * @package Zahara_Theme
 * @author The Free Website Guys
 */

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    /* Colors - Using Customizer values with fallbacks */
    --zahara-background: #ffffff;
    --zahara-foreground: #1f3326;
    --zahara-primary: #8ab48c;
    --zahara-primary-foreground: #ffffff;
    --zahara-secondary: #1f3d29;
    --zahara-secondary-foreground: #ffffff;
    --zahara-muted: #f0f5f1;
    --zahara-muted-foreground: #5a7360;
    --zahara-accent: #dbeedd;
    --zahara-accent-foreground: #1f3d29;
    --zahara-border: #d4e5d6;
    --zahara-sage: #8ab48c;
    --zahara-sage-light: #dbeedd;
    --zahara-sage-dark: #6a9a6c;
    --zahara-forest: #1f3d29;
    --zahara-forest-light: #2d5a3a;
    --zahara-cream: #faf9f7;
    
    /* Spacing & Sizing */
    --radius: 0.75rem;
    --container-max: 1400px;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--zahara-background);
    color: var(--zahara-foreground);
    line-height: 1.6;
}

/* Align with Lovable: no underline on links, no bullets on lists */
a {
    text-decoration: none;
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

/* Font sizes */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.2; }
.text-6xl { font-size: 3.75rem; line-height: 1.1; }

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Letter spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-wider-custom { letter-spacing: 0.3em; }

/* Text colors */
.text-forest { color: var(--zahara-forest); }
.text-primary { color: var(--zahara-primary); }
.text-sage { color: var(--zahara-sage); }
.text-muted-foreground { color: var(--zahara-muted-foreground); }
.text-foreground { color: var(--zahara-foreground); }
.text-white { color: #ffffff; }
.text-white-50 { color: rgba(255, 255, 255, 0.5); }
.text-white-60 { color: rgba(255, 255, 255, 0.6); }
.text-white-70 { color: rgba(255, 255, 255, 0.7); }
.text-white-80 { color: rgba(255, 255, 255, 0.8); }
.text-white-90 { color: rgba(255, 255, 255, 0.9); }
.text-white-30 { color: rgba(255, 255, 255, 0.3); }

/* ============================================================
   LAYOUT & CONTAINERS
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.mx-auto { margin-left: auto; margin-right: auto; }

/* Max widths */
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

/* Padding */
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-20 { padding-top: 5rem; }

/* Margin */
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.-mt-1 { margin-top: -0.25rem; }
.ml-2 { margin-left: 0.5rem; }

/* Gap */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ============================================================
   FLEXBOX & GRID
   ============================================================ */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   BACKGROUNDS
   ============================================================ */
.bg-background { background-color: var(--zahara-background); }
.bg-muted { background-color: var(--zahara-muted); }
.bg-forest { background-color: var(--zahara-forest); }
.bg-forest-light { background-color: var(--zahara-forest-light); }
.bg-primary { background-color: var(--zahara-primary); }
.bg-sage-light { background-color: var(--zahara-sage-light); }
.bg-accent { background-color: var(--zahara-accent); }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-white-5 { background-color: rgba(255, 255, 255, 0.05); }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white-15 { background-color: rgba(255, 255, 255, 0.15); }
.bg-white-80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-primary-20 { background-color: rgba(138, 180, 140, 0.2); }
.bg-sage-10 { background-color: rgba(138, 180, 140, 0.1); }
.bg-sage-20 { background-color: rgba(138, 180, 140, 0.2); }
.bg-sage-30 { background-color: rgba(138, 180, 140, 0.3); }
.bg-sage-light-50 { background-color: rgba(219, 238, 221, 0.5); }
.bg-background-50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-sage-bubble { background-color: #D4E5D6; }
.bg-forest-20 { background-color: rgba(31, 61, 41, 0.2); }

/* Gradients */
.bg-gradient-to-t {
    background: linear-gradient(to top, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
    background: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-background { --tw-gradient-from: var(--zahara-background); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-transparent { --tw-gradient-to: transparent; }
.from-sage-light { --tw-gradient-from: var(--zahara-sage-light); }
.via-primary { --tw-gradient-via: var(--zahara-primary); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to, transparent); }

/* ============================================================
   BORDERS & SHADOWS
   ============================================================ */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: var(--zahara-border); }
.border-border-50 { border-color: rgba(212, 229, 214, 0.5); }
.border-sage-light { border-color: var(--zahara-sage-light); }
.border-forest { border-color: var(--zahara-forest); }
.border-primary { border-color: var(--zahara-primary); }
.border-dashed { border-style: dashed; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-lg { border-radius: var(--radius); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.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); }

/* ============================================================
   POSITIONING
   ============================================================ */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.top-20 { top: 5rem; }
.top-24 { top: 6rem; }
.-top-2 { top: -0.5rem; }
.-top-4 { top: -0.75rem; }
.-top-20 { top: -5rem; }
.-top-32 { top: -8rem; }
.-top-40 { top: -10rem; }
.-right-2 { right: -0.5rem; }
.-right-4 { right: -0.75rem; }
.-right-20 { right: -5rem; }
.-right-32 { right: -8rem; }
.-right-40 { right: -10rem; }
.-bottom-6 { bottom: -1.5rem; }
.-bottom-32 { bottom: -8rem; }
.bottom-20 { bottom: 5rem; }
.bottom-40 { bottom: 10rem; }
.-left-6 { left: -1.5rem; }
.-left-16 { left: -4rem; }
.-left-20 { left: -5rem; }
.-left-24 { left: -6rem; }
.-left-32 { left: -8rem; }

/* Position percentages for impact animation */
.bottom-8p { bottom: 8%; }
.bottom-28p { bottom: 28%; }
.bottom-48p { bottom: 48%; }
.bottom-68p { bottom: 68%; }
.left-5p { left: 5%; }
.left-10p { left: 10%; }
.right-10p { right: 10%; }
.left-20p { left: 20%; }
.left-38p { left: 38%; }
.left-53p { left: 53%; }
.top-2p { top: 2%; }
.right-3p { right: 3%; }
.top-1\/2 { top: 50%; }
.top-1\/3 { top: 33.333%; }
.right-1\/4 { right: 25%; }

.-translate-y-1\/2 { transform: translateY(-50%); }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

/* ============================================================
   SIZING
   ============================================================ */
.w-0 { width: 0; }
.w-2 { width: 0.5rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-28 { width: 7rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }
.w-full { width: 100%; }

.h-0\.5 { height: 0.125rem; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-72 { height: 18rem; }
.h-80 { height: 20rem; }
.h-96 { height: 24rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.min-h-screen { min-height: 100vh; }

/* Aspect ratios */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }

/* ============================================================
   DISPLAY & VISIBILITY
   ============================================================ */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.30; }
.opacity-40 { opacity: 0.40; }
.opacity-50 { opacity: 0.50; }
.opacity-60 { opacity: 0.60; }
.shrink-0 { flex-shrink: 0; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

/* ============================================================
   TEXT UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ============================================================
   TRANSITIONS & ANIMATIONS
   ============================================================ */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes draw-arrow-line {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

@keyframes bubble-appear {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(15px);
    }
    60% {
        opacity: 1;
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(138, 180, 140, 0.4); }
    50% { box-shadow: 0 0 40px rgba(138, 180, 140, 0.8); }
}

.animate-fade-in-up { animation: fade-in-up 0.6s ease-out forwards; }
.animate-fade-in { animation: fade-in 0.5s ease-out forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-bubble { animation: bubble-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-draw-arrow {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-arrow-line 2.5s ease-out forwards;
}

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-800 { animation-delay: 800ms; }
.animation-delay-1000 { animation-delay: 1000ms; }

/* ============================================================
   ORGANIC SHAPES
   ============================================================ */
.organic-blob {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-blob-alt {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
}

.btn-primary {
    background-color: var(--zahara-forest);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--zahara-forest-light);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--zahara-forest);
    color: var(--zahara-forest);
}

.btn-outline:hover {
    background-color: var(--zahara-sage-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--zahara-border);
    background-color: var(--zahara-background);
    color: var(--zahara-forest);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-icon:hover {
    background-color: var(--zahara-sage-light);
    border-color: var(--zahara-primary);
}

/* Cards */
.card {
    background-color: var(--zahara-background);
    border: 1px solid rgba(212, 229, 214, 0.5);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-dashed {
    border-style: dashed;
    border-width: 2px;
}

.card-content {
    padding: 1.5rem;
}

/* Navbar */
.navbar {
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================================
   CAROUSEL
   ============================================================ */
.carousel-container {
    position: relative;
    overflow: hidden;
    container-type: inline-size;
    container-name: carousel;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

/* ============================================================
   IMPACT SECTION SPECIFIC
   ============================================================ */
.impact-measure-section .impact-bubble,
.impact-measure-section .impact-final-bubble {
    opacity: 0;
}

.impact-measure-section.animated .impact-bubble {
    animation: bubble-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.impact-measure-section.animated .impact-final-bubble {
    animation: bubble-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.impact-measure-section.animated .impact-arrow-line {
    animation: draw-arrow-line 2.5s ease-out forwards;
}

/* ============================================================
   HOVER STATES
   ============================================================ */
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.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\:bg-forest-light:hover { background-color: var(--zahara-forest-light); }
.hover\:bg-sage-light:hover { background-color: var(--zahara-sage-light); }
.hover\:bg-white-15:hover { background-color: rgba(255, 255, 255, 0.15); }
.hover\:bg-primary-20:hover { background-color: rgba(138, 180, 140, 0.2); }
.hover\:text-forest:hover { color: var(--zahara-forest); }
.hover\:text-primary:hover { color: var(--zahara-primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:border-primary:hover { border-color: var(--zahara-primary); }
.hover\:border-primary-30:hover { border-color: rgba(138, 180, 140, 0.3); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

.group:hover .group-hover\:w-full { width: 100%; }
.group:hover .group-hover\:bg-primary-20 { background-color: rgba(138, 180, 140, 0.2); }
.group:hover .group-hover\:bg-sage-30 { background-color: rgba(138, 180, 140, 0.3); }
.group:hover .group-hover\:border-primary { border-color: var(--zahara-primary); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* Small screens (sm: 640px+) */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:text-base { font-size: 1rem; }
    .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .sm\:break-normal { word-break: normal; }
    .sm\:gap-3 { gap: 0.75rem; }
    .sm\:block { display: block; }
}

/* Medium screens (md: 768px+) */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:text-4xl { font-size: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-xl { font-size: 1.25rem; }
    .md\:text-3xl { font-size: 1.875rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:p-12 { padding: 3rem; }
    .md\:gap-6 { gap: 1.5rem; }
    .md\:gap-4 { gap: 1rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:block { display: block; }
    .md\:hidden { display: none; }
    .md\:h-auto { height: auto; }
    .md\:inline { display: inline; }
    .md\:w-32 { width: 8rem; }
    .md\:h-32 { height: 8rem; }

    .carousel-slide {
        flex: 0 0 calc((100cqw - 1rem) / 2);
    }
}

/* Large screens (lg: 1024px+) */
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:text-6xl { font-size: 3.75rem; }
    .lg\:text-left { text-align: left; }
    .lg\:justify-start { justify-content: flex-start; }
    .lg\:mx-0 { margin-left: 0; margin-right: 0; }
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
    .lg\:h-auto { height: auto; }

    .lg\:bg-gradient-to-r {
        background: linear-gradient(to right, var(--tw-gradient-stops));
    }

    .carousel-slide {
        flex: 0 0 calc((100cqw - 2rem) / 3);
    }
}

/* Extra large screens (xl: 1280px+) */
@media (min-width: 1280px) {
    /* Additional styles if needed */
}

/* ============================================================
   UTILITY CLASSES FOR LAST CHILD
   ============================================================ */
.last\:border-b-0:last-child {
    border-bottom-width: 0;
}

/* Object fit */
.object-cover { object-fit: cover; }
