/* ===========================
   Vacation Planner Website
   CSS Stylesheet
   =========================== */

/* --- CSS Variables --- */
:root {
    --color-primary: #007AFF;
    --color-primary-dark: #0056b3;
    --color-secondary: #5856D6;
    --color-accent: #FF9500;
    --color-success: #34C759;
    --color-background: #f5f7fa;
    --color-surface: #ffffff;
    --color-text: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-border: #d2d2d7;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

a:hover {
    color: var(--color-primary-dark);
}

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

ul, ol {
    padding-left: 1.5rem;
}

/* --- Header & Navigation --- */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
}

nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-text);
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    padding: 0;
}

.nav-links a {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}

/* --- Main Content --- */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 540px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin: 1.5rem 0 2rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-badge img,
.mac-store-badge img {
    height: 48px;
    width: auto;
}

.platforms {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* --- Features Section --- */
.features {
    background: var(--color-surface);
    margin: 0 -2rem;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--color-background);
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

/* --- How It Works Section --- */
.how-it-works {
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.step {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 280px;
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-arrow {
    color: var(--color-border);
}

/* --- Screenshots Section --- */
.screenshots {
    text-align: center;
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.screenshot img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e5ec, #d0d5dc);
}

.screenshot p {
    padding: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* --- Download Section --- */
.download {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    margin: 0 -2rem;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    color: white;
}

.download h2 {
    color: white;
}

.download p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

/* --- Legal Pages (Privacy, Support) --- */
.legal-page {
    padding: 2rem 0 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.legal-content section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.legal-content section:last-child {
    border-bottom: none;
}

.legal-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content ul, .legal-content ol {
    margin: 1rem 0;
}

.legal-content li {
    margin: 0.5rem 0;
}

/* --- Support Page --- */
.support-page {
    padding: 2rem 0 4rem;
}

.support-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.support-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.support-hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

/* --- FAQ Section --- */
.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq h2 {
    margin-bottom: 2rem;
}

.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.faq-item {
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-secondary);
}

.faq-answer ul, .faq-answer ol {
    margin: 0.75rem 0;
}

/* --- Contact Support --- */
.contact-support {
    text-align: center;
    background: var(--color-surface);
    max-width: 600px;
    margin: 2rem auto;
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-options {
    margin: 2rem 0 1rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.contact-button:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
}

.response-time {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* --- App Info --- */
.app-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.app-info h2 {
    margin-bottom: 1.5rem;
}

.app-info dl {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.app-info dt {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.app-info dd {
    margin: 0;
}

/* --- Footer --- */
footer {
    background: var(--color-text);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.legal {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.875rem;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

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

    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .legal-content {
        padding: 1.5rem;
    }

    .features {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }

    section {
        padding: 2rem 0;
    }

    .app-store-badge img,
    .mac-store-badge img {
        height: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Utility Classes --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
