/* Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-fg);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 1rem;
}

/* Typography */

.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

/* Color Utilities */

.bg-light-gray {
    background-color: var(--color-bg);
}

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

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

.bg-blue-light {
    background-color: var(--color-surface-blue);
}

.bg-green-light {
    background-color: var(--color-accent-green);
}

.text-primary {
    color: var(--color-primary);
}

.text-gray-900 {
    color: var(--color-gray-900);
}

.text-gray-700 {
    color: var(--color-gray-700);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-white {
    color: var(--color-white);
}

/* Link Styles */

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
}

/* Button Styles */

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Elements */

input, textarea, select {
    font-family: var(--font-body);
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 16, 40, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Header Styles */

header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

nav a {
    transition: color var(--transition-base);
}

nav a:hover {
    text-decoration: none;
    color: var(--color-primary);
}

/* Hero Section */

.hero-content h1 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Service Cards */

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Lifestyle Cards */

.lifestyle-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 1 / 1.2;
}

.lifestyle-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

/* Testimonial Cards */

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.star {
    color: var(--color-yellow-400);
    display: inline-block;
    font-size: 1.2rem;
}

/* FAQ Accordion */

.faq-item {
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--color-primary);
    background-color: rgba(8, 16, 40, 0.02);
}

.faq-toggle {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform var(--transition-base);
    display: inline-block;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    margin-top: 1rem;
    color: var(--color-gray-700);
}

.faq-answer.active {
    display: block;
}

/* CTA Section */

.cta-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4rem 2rem;
    border-radius: 0;
}

/* Footer */

footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
}

footer a {
    transition: color var(--transition-base);
}

footer a:hover {
    text-decoration: none;
    color: var(--color-white);
}

/* Responsive Typography */

@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip Link (for accessibility) */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading State */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility Classes */

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

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

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.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;
}

/* Flex Utilities */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* Grid Utilities */

.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

/* Image Styles */

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

/* Aspect Ratio Utilities */

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Print Styles */

@media print {
    header, footer, .cta-section, button {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }
}

/* Mobile-first responsive design */

@media (min-width: 640px) {
    .sm\:inline-block {
        display: inline-block;
    }

    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\:flex-row {
        flex-direction: row;
    }
}

@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\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .md\:flex {
        display: flex;
    }

    .md\:hidden {
        display: none;
    }

    .md\:pt-32 {
        padding-top: 8rem;
    }

    .md\:pb-20 {
        padding-bottom: 5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .lg\:text-6xl {
        font-size: 3.75rem;
    }
}

/* Ensure no horizontal scroll on mobile */

@media (max-width: 375px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .max-w-7xl,
    .max-w-4xl,
    .max-w-3xl,
    .max-w-2xl {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
