/**
 * The Black Studio - Custom Styles
 * Luxury Photography Brand
 */

/* ================================
   CSS Variables
   ================================ */
:root {
    --black: #0a0a0a;
    --black-50: #1a1a1a;
    --black-100: #111111;
    --gold: #C69941;
    --gold-light: #D4AF37;
    --gold-dark: #996515;
    --gold-bronze: #C1A263;
    --gold-fade: rgba(198, 153, 65, 0.3);
    --gold-glow: rgba(198, 153, 65, 0.2);
    --cream: #EFE3D1;
    --cream-dark: #B8A589;
}

/* ================================
   Box Sizing Reset
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--cream);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Selection */
::selection {
    background: var(--gold);
    color: var(--black);
}

/* Prevent layout shifts and overflow */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* Ensure all major containers are width-constrained */
section,
footer,
main,
article,
aside {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Prevent specific problematic elements from overflowing */
table {
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    overflow-x: auto;
    display: block;
}

pre,
code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-fade);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Navigation Links */
.nav-link {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

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

/* ================================
   Buttons
   ================================ */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    color: var(--black);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var (--gold-glow);
    white-space: nowrap;
    max-width: 100%;
}

.btn-gold:hover {
    box-shadow: 0 0 40px var(--gold-glow);
    transform: translateY(-2px);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--gold-fade);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* ================================
   Hero Section
   ================================ */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    z-index: 10;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .hero-content {
        padding: 2rem;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.7s;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* ================================
   Sections
   ================================ */
.section {
    padding: 6rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--cream-dark);
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    margin: 0 auto 3rem;
}

/* Gold Line Separator */
.gold-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-fade), transparent);
}

/* ================================
   Cards
   ================================ */
.card {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--cream-dark);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ================================
   Portfolio Gallery
   ================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================
   Services
   ================================ */
.service-card {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.service-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--gold-fade);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

.service-price {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
    margin: 1rem 0;
}

/* Package Tiers */
.package-basic {
    border-top: 3px solid var(--gold-bronze);
}

.package-pro {
    border-top: 3px solid var(--gold);
}

.package-premium {
    border-top: 3px solid var(--gold-light);
}

/* ================================
   Products / Shop
   ================================ */
.product-card {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

.product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px var(--gold-glow);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--black);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--gold);
}

/* ================================
   Mockup Tool
   ================================ */
.mockup-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 1024px) {
    .mockup-container {
        grid-template-columns: 1fr 1fr;
    }
}

.mockup-canvas {
    background: var(--black-50);
    border: 2px dashed var(--gold-fade);
    border-radius: 8px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.mockup-canvas.has-image {
    border-style: solid;
}

.mockup-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mockup-controls {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
}

.product-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.product-option {
    padding: 1rem;
    background: var(--black);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-option:hover,
.product-option.active {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

/* Canvas specific styles */
#mockup-canvas {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
}

#product-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

canvas {
    image-rendering: high-quality;
}

/* ================================
   Testimonials
   ================================ */
.testimonial-card {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.testimonial-quote {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--gold-fade);
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-text {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-top: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    object-fit: cover;
}

.testimonial-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--cream-dark);
}

/* ================================
   Forms
   ================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--cream-dark);
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C69941' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-checkbox-label,
.form-radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

/* ================================
   Cart
   ================================ */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gold-fade);
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .cart-item {
        grid-template-columns: 100px 1fr auto auto;
        gap: 1.5rem;
    }
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--gold-fade);
}

@media (min-width: 640px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gold-fade);
    background: transparent;
    color: var(--cream);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-quantity button:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

.cart-quantity span {
    width: 40px;
    text-align: center;
    font-weight: 600;
}

.cart-summary {
    background: var(--black-50);
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    padding: 2rem;
    width: 100%;
    max-width: 100%;
}

.cart-total {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold);
}

/* ================================
   Booking Calendar
   ================================ */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    border-color: var(--gold);
}

.calendar-day.selected {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-day.today {
    border-color: var(--gold-light);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: 1rem;
    width: 100%;
}

.time-slot {
    padding: 1rem;
    border: 1px solid var(--gold-fade);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--gold);
}

.time-slot.selected {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ================================
   Lightbox
   ================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--cream);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold);
}

/* ================================
   Animations
   ================================ */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Stagger Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ================================
   Utility Classes
   ================================ */
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-cream-dark { color: var(--cream-dark); }

.bg-black { background-color: var(--black); }
.bg-black-50 { background-color: var(--black-50); }

.border-gold { border-color: var(--gold-fade); }

.gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Aspect Ratios */
.aspect-square { aspect-ratio: 1; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-portrait { aspect-ratio: 3/4; }

/* Responsive utilities */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px var(--gold-glow);
}

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

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Container constraints */
.max-w-7xl,
.max-w-4xl,
.max-w-2xl {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .max-w-7xl,
    .max-w-4xl,
    .max-w-2xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 768px) {
    .max-w-2xl {
        max-width: 42rem;
    }
    .max-w-4xl {
        max-width: 56rem;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 4rem 0;
    }
    
    .max-w-7xl {
        max-width: 80rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    /* Fix hero section */
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.875rem, 2vw, 1.25rem);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-gold,
    .hero-cta .btn-outline-gold {
        width: 100%;
        max-width: 280px;
    }

    /* Ensure section titles are responsive */
    .section-title {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }

    /* Fix grid layouts */
    .grid {
        width: 100%;
        max-width: 100%;
    }

    /* Product selector mobile */
    .product-selector {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Form adjustments */
    .form-group {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    /* Button groups */
    .flex-wrap {
        justify-content: center;
    }

    /* Stats grid */
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Ensure all grids are constrained */
    [class*="grid-cols"] {
        width: 100%;
        max-width: 100%;
    }

    /* Fix shop filter/sort section */
    .flex.flex-wrap.justify-between {
        flex-direction: column;
        gap: 1rem;
    }

    /* Service tabs */
    .service-tab-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    /* Filter buttons */
    .filter-btn,
    .filter-shop-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .cart-quantity {
        grid-column: span 2;
        justify-self: start;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-overlay {
        opacity: 1;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    /* Fix filter buttons */
    .flex.flex-wrap.gap-4,
    .flex.flex-wrap.gap-2 {
        width: 100%;
        gap: 0.5rem;
    }

    /* Slider navigation */
    .slider-nav {
        bottom: 1rem;
    }

    /* Testimonials */
    .testimonial-text {
        font-size: 1rem;
    }

    /* Service icons */
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Fixed buttons positioning */
    #back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        left: 1rem;
    }

    .fixed.bottom-6.right-6 {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    /* Product actions */
    .product-actions {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .product-actions .btn-gold,
    .product-actions .btn-outline-gold {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    /* Footer adjustments */
    footer .grid {
        gap: 2rem;
    }

    /* Newsletter form */
    footer form {
        width: 100%;
    }

    footer form input[type="email"] {
        min-width: 0;
        width: 100%;
    }

    footer form button {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 0.1em;
    }

    /* Adjust padding for very small screens */
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    /* Button text sizing */
    .btn-gold,
    .btn-outline-gold {
        padding: 0.625rem 1.5rem;
        font-size: 0.8125rem;
    }

    /* Calendar days smaller */
    .calendar-day {
        font-size: 0.875rem;
        padding: 0.25rem;
    }

    /* Gallery category spacing */
    .gallery-category {
        font-size: 0.625rem;
    }

    /* Page headers */
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* Service pricing */
    .service-price {
        font-size: 1.5rem;
    }

    /* Product info */
    .product-info {
        padding: 1rem;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.125rem;
    }

    /* Testimonial card */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-quote {
        font-size: 3rem;
        top: 0.5rem;
        left: 1rem;
    }

    /* Service card */
    .service-card {
        padding: 1.5rem;
    }

    /* Mockup sections */
    .mockup-controls {
        padding: 1.5rem;
    }

    /* Card body */
    .card-body {
        padding: 1rem;
    }

    /* Footer padding */
    footer .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    footer .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}
