/*
====================================
Ben's Farm – Storage
Beautiful Modern Stylesheet
====================================
Premium rural aesthetic with smooth animations
and polished UI elements.
*/

/* ====================================
   CSS Variables (Beautiful Color Palette)
   ==================================== */
:root {
    /* Enhanced Color Palette */
    --color-primary: #2d5f3f;        /* Rich forest green */
    --color-primary-light: #3a7a4f;  /* Lighter green */
    --color-primary-dark: #1e4029;   /* Deep forest */
    --color-secondary: #8b6f47;      /* Warm brown */
    --color-accent: #7ba05b;         /* Fresh sage green */
    --color-accent-light: #9bc179;   /* Light sage */

    /* Status Colors */
    --color-success: #10b981;        /* Green for available */
    --color-warning: #f59e0b;        /* Amber for limited */
    --color-danger: #ef4444;         /* Red for sold out */
    --color-info: #3b82f6;           /* Blue for info */

    /* Neutrals */
    --color-bg-main: #fdfcfa;        /* Warm off-white */
    --color-bg-alt: #f5f3ef;         /* Subtle beige */
    --color-bg-dark: #2c2c2c;        /* Dark gray */
    --color-text-primary: #1f2937;   /* Rich black */
    --color-text-secondary: #6b7280; /* Medium gray */
    --color-border: #e5e2dc;         /* Soft border */
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2d5f3f 0%, #3a7a4f 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 95, 63, 0.95) 0%, rgba(58, 122, 79, 0.9) 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #fdfcfa 100%);

    /* Typography */
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Georgia", "Times New Roman", serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: var(--line-height-base);
    color: var(--color-text-primary);
    background-color: var(--color-bg-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary-light);
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-md);
}

/* ====================================
   Layout - Container
   ==================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Reduce padding on mobile for better use of screen space */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ====================================
   Header & Navigation
   ==================================== */
.site-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: transform 0.3s ease-in-out;
}

/* Hide header on scroll down (desktop only) */
@media (min-width: 769px) {
    .site-header.header-hidden {
        transform: translateY(-100%);
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-block;
    transition: transform var(--transition-base);
    line-height: 0; /* Remove extra spacing around image */
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo img {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
    transition: transform var(--transition-base);
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    position: relative;
    transition: background-color var(--transition-base);
    border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--color-primary);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-text-primary);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-menu a:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 700;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg-alt) 100%);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-md);
        min-height: 48px; /* Touch-friendly tap target */
        display: flex;
        align-items: center;
        font-size: 1.125rem;
    }

    /* Better mobile menu toggle button */
    .mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7a4f 0%, #2d5f3f 100%);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: #6f5d45;
    color: var(--color-white);
}

/* Mobile button improvements - larger touch targets */
@media (max-width: 768px) {
    .btn {
        padding: 1.125rem 2rem;
        font-size: 1.0625rem;
        min-height: 48px; /* Ensure minimum touch target size */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Prevent hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    background: var(--gradient-hero);
    background-image:
        linear-gradient(135deg, rgba(45, 95, 63, 0.95) 0%, rgba(58, 122, 79, 0.9) 100%),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--container-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

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

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 1.375rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero {
        padding: 6rem var(--container-padding);
    }
}

/* Mobile hero improvements */
@media (max-width: 768px) {
    .hero {
        padding: 3rem var(--container-padding);
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-md);
    }

    .hero::before {
        width: 300px;
        height: 300px;
        top: -30%;
        right: -20%;
    }
}

/* ====================================
   Section Styles
   ==================================== */
section {
    padding: var(--spacing-xl) 0;
}

section:nth-child(even) {
    background-color: var(--color-bg-alt);
}

.section-intro {
    font-size: 1.1875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 800px;
}

/* ====================================
   Feature Cards / Grids
   ==================================== */
.features-grid,
.storage-types-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .storage-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .storage-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card,
.storage-type-card {
    background: var(--gradient-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.storage-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover::before,
.storage-type-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover,
.storage-type-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-light);
}

.feature-card h3,
.storage-type-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.feature-card h3::before,
.storage-type-card h3::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.125rem;
    flex-shrink: 0;
}

/* ====================================
   Storage Locations Section
   ==================================== */
.storage-locations {
    padding: var(--spacing-xl) 0;
}

.location-block {
    background: var(--gradient-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.location-block::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(123, 160, 91, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.location-block:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.location-block:last-child {
    margin-bottom: 0;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    position: relative;
}

.location-header h3 {
    margin: 0;
    color: var(--color-primary-dark);
    font-size: 1.75rem;
    font-family: var(--font-display);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-weight: 700;
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s infinite;
}

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

.availability-badge::before {
    content: '●';
    font-size: 1.25rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Bright red styling for SOLD OUT badges */
.availability-badge.sold-out {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: var(--color-white);
    animation: pulse-urgent 1.5s infinite;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.availability-badge.sold-out::before {
    content: '✕';
    animation: none;
}

@keyframes pulse-urgent {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.location-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {
    .location-details {
        grid-template-columns: 1fr 1fr;
    }
}

.specs,
.rental-terms {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
}

.location-details h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-accent-light);
    padding-bottom: var(--spacing-xs);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.specs h4::before {
    content: '📋';
    font-size: 1.25rem;
}

.rental-terms h4::before {
    content: '📝';
    font-size: 1.25rem;
}

.location-details ul {
    list-style: none;
    padding: 0;
}

.location-details li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-bg-alt);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.location-details li::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.location-details li:last-child {
    border-bottom: none;
}

.status-text {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-style: italic;
    font-weight: 600;
}

/* Custom Items Grid */
.custom-items {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 2px dashed var(--color-border);
}

.custom-items h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

.items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
}

@media (min-width: 600px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.item-placeholder {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.item-placeholder:hover {
    border-color: var(--color-accent);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-bg-alt) 100%);
    transform: scale(1.02);
}

.item-placeholder p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* ====================================
   How It Works - Steps
   ==================================== */
.steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: var(--spacing-lg);
    position: relative;
    background: var(--gradient-card);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 6.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

/* Reduce padding on smaller screens */
@media (max-width: 600px) {
    .steps-list li {
        padding: var(--spacing-md) var(--spacing-sm) var(--spacing-md) 5.5rem;
    }

    .steps-list li::before {
        left: var(--spacing-sm);
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

.steps-list li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-md);
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    font-family: var(--font-display);
    flex-shrink: 0;
}

.steps-list h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

/* ====================================
   Service Area List
   ==================================== */
.service-area-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    max-width: 800px;
}

@media (min-width: 600px) {
    .service-area-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-area-list li {
    padding: var(--spacing-md);
    background: var(--gradient-card);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    font-weight: 600;
    color: var(--color-primary-dark);
}

.service-area-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
}

.service-area-list li::before {
    content: '📍 ';
    margin-right: var(--spacing-xs);
}

/* ====================================
   Call to Action Section
   ==================================== */
.cta {
    background: var(--gradient-primary);
    background-image:
        var(--gradient-primary),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    color: var(--color-white);
    text-align: center;
    padding: var(--spacing-xl) var(--container-padding);
    border-radius: var(--radius-xl);
    margin: var(--spacing-xl) var(--container-padding);
    box-shadow: var(--shadow-xl);
}

.cta h2 {
    color: var(--color-white);
}

.cta p {
    font-size: 1.1875rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

/* ====================================
   Footer
   ==================================== */
.site-footer {
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr;
    }
}

.footer-main h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-display);
}

.footer-location,
.footer-contact {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
    display: inline-block;
}

.footer-contact a:hover {
    color: var(--color-accent-light);
    transform: translateX(4px);
}

.footer-links h4 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: var(--spacing-xs);
}

.footer-disclaimer {
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ====================================
   Legal Pages
   ==================================== */
.legal-page {
    padding: var(--spacing-xl) 0;
}

.legal-page .container {
    max-width: 900px;
}

.legal-page h1 {
    margin-bottom: var(--spacing-md);
}

.legal-page h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
    font-size: 1.75rem;
}

.legal-disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid var(--color-warning);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.legal-page ul,
.legal-page ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.legal-page li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

/* ====================================
   Contact Page
   ==================================== */
.contact-page {
    padding: var(--spacing-xl) 0;
}

.intro-text {
    font-size: 1.1875rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Availability Section */
.availability-section {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--color-success);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.availability-section h2 {
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.availability-section h2::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}

.availability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.availability-list li {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background-color: var(--color-white);
    border-left: 4px solid var(--color-success);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    font-weight: 600;
}

.availability-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.availability-list li:last-child {
    margin-bottom: 0;
}

.availability-note {
    margin-top: var(--spacing-md);
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    font-style: italic;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.contact-info {
    background: var(--gradient-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.contact-info h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.contact-location,
.contact-details,
.service-area-note {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.contact-details a {
    display: inline-block;
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-base);
    font-weight: 600;
}

.contact-details a:hover {
    transform: translateX(4px);
}

/* Contact Form */
.contact-form-wrapper h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.form-note {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
    border-left: 4px solid var(--color-info);
}

.contact-form {
    background: var(--gradient-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.required {
    color: var(--color-danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all var(--transition-base);
    background-color: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

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

/* Honeypot field */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Form Messages */
.form-success-message,
.form-error-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.form-success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid var(--color-success);
    color: #065f46;
}

.form-success-message h3 {
    color: #065f46;
    margin-bottom: var(--spacing-sm);
}

.form-error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid var(--color-danger);
    color: #991b1b;
}

.form-error-message h4 {
    color: #991b1b;
    margin-bottom: var(--spacing-sm);
}

/* ====================================
   Error Page (404)
   ==================================== */
.error-page {
    text-align: center;
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page h1 {
    font-size: 5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.error-message {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.error-actions {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   Utility Classes
   ==================================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ====================================
   Accessibility
   ==================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ====================================
   Smooth Animations
   ==================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   Alert Messages (Form Feedback)
   ==================================== */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
}

.alert h3 {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.25rem;
}

.alert p {
    margin: 0;
}

.alert ul {
    margin: var(--spacing-xs) 0 0 0;
    padding-left: var(--spacing-md);
}

.alert ul li {
    margin-bottom: var(--spacing-xs);
}

.alert-success {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
    color: #166534;
}

.alert-success h3 {
    color: #15803d;
}

.alert-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.alert-error h3 {
    color: #dc2626;
}

/* Mobile alert adjustments */
@media (max-width: 768px) {
    .alert {
        padding: var(--spacing-sm);
    }

    .alert h3 {
        font-size: 1.125rem;
    }
}

/* ====================================
   Payment Page
   ==================================== */
.payment-page {
    padding: var(--spacing-xl) 0;
    background: var(--color-bg-light);
}

.payment-page .container {
    max-width: 800px;
}

.payment-page h1 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.payment-page .intro-text {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.payment-notice {
    background: var(--color-bg-white);
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.payment-notice h3 {
    margin-top: 0;
    color: var(--color-primary-dark);
    font-size: 1.25rem;
}

.payment-notice ul {
    margin: var(--spacing-sm) 0 0;
    padding-left: var(--spacing-md);
}

.payment-notice li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

.payment-notice a {
    color: var(--color-primary);
    text-decoration: none;
}

.payment-notice a:hover {
    text-decoration: underline;
}

.payment-form-wrapper {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-lg);
}

.payment-form .form-group {
    margin-bottom: var(--spacing-md);
}

.payment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.payment-form .required {
    color: var(--color-danger);
}

.payment-form input[type="text"],
.payment-form input[type="number"] {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-base);
    box-sizing: border-box;
}

.payment-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.payment-form .help-text {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: var(--spacing-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 1rem;
    pointer-events: none;
}

.amount-input-wrapper input {
    padding-left: calc(var(--spacing-sm) + 1rem);
}

/* Stripe Elements styling */
.stripe-element {
    background: var(--color-bg-white);
    padding: var(--spacing-sm);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-base);
}

.stripe-element:focus-within {
    border-color: var(--color-primary);
}

.card-errors {
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    min-height: 20px;
}

/* Payment button */
.btn-large {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
}

.btn-large .spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-large:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    text-align: center;
}

.security-notice svg {
    flex-shrink: 0;
}

.alternative-payment {
    background: var(--color-bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.alternative-payment h3 {
    margin-top: 0;
    color: var(--color-primary-dark);
}

.alternative-payment a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.alternative-payment a:hover {
    text-decoration: underline;
}

/* Mobile payment page adjustments */
@media (max-width: 768px) {
    .payment-page {
        padding: var(--spacing-md) 0;
    }

    .payment-form-wrapper,
    .alternative-payment,
    .payment-notice {
        padding: var(--spacing-md);
    }

    .payment-page h1 {
        font-size: 1.75rem;
    }
}
