/* Pai Website Styles
   Based on the OnboardingTheme.swift color scheme and fonts */

:root {
    /* Primary Colors (Cream Yellow) */
    --primary-500: #f2f5a4; /* Main brand color */
    --primary-400: #f4f6b7; /* Lighter brand color */
    --primary-300: #f6f7ca; /* Even lighter */
    --primary-200: #f8f9dc; /* Very light */
    --primary-100: #fafbef; /* Extremely light */
    --primary-600: #dadc94; /* Darker brand color */
    --primary-700: #c2c483; /* Even darker */
    --primary-800: #aaac73; /* Much darker */
    --primary-900: #929462; /* Extremely dark */

    /* Secondary Colors (Mint) */
    --secondary-500: #8CE3B0; /* Main secondary color */
    --secondary-400: #a3e8be; /* Lighter secondary */
    --secondary-300: #b9eecc; /* Even lighter */
    --secondary-200: #d0f3db; /* Very light */
    --secondary-100: #e7f9e9; /* Extremely light */

    /* Accent Colors */
    --accent-primary: #aaac73; /* Success states */
    --accent-yellow: #FFEE82; /* Highlights */

    /* Text Colors */
    --primary-text: #3F3957; /* Primary text */
    --secondary-text: #756B9A; /* Secondary text */
    --placeholder-text: #B8ACD2; /* Placeholder text */

    /* Background Colors */
    --page-background: #FAF8FF; /* Page background */
    --light-background: rgba(250, 248, 255, 0.2); /* Light background */

    /* Button Colors */
    --primary-button-bg: var(--primary-500);
    --primary-button-shadow: rgba(242, 245, 164, 0.3);
    --primary-button-text: var(--primary-text);

    /* Layout */
    --horizontal-padding: 24px;
    --vertical-padding: 16px;
    --button-height: 56px;
    --button-radius: 28px;
}

/* Support Page Styles */
.support-hero {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
    text-align: center;
}

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

.support-hero p {
    font-size: 20px;
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.contact-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.contact-button {
    display: inline-block;
    background-color: var(--primary-button-bg);
    color: var(--primary-button-text);
    padding: 16px 32px;
    border-radius: var(--button-radius);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 4px 12px var(--primary-button-shadow);
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-button-shadow);
    color: var(--primary-text);
}

.faq-section {
    padding: 4rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question h3 {
    color: var(--primary-text);
    margin-bottom: 1rem;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active h3::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 500px; /* Adjust based on content length */
}

.faq-answer p {
    color: var(--secondary-text);
    line-height: 1.8;
}

/* Privacy Policy Styles */
.privacy-policy {
    padding: 3rem 0;
}

.privacy-policy h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 0.5rem;
}

.last-updated {
    text-align: center;
    color: var(--secondary-text);
    font-size: 16px;
    margin-bottom: 2rem;
}

.policy-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.policy-section h2 {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.policy-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
}

.policy-section a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.policy-section a:hover {
    color: var(--primary-500);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', cursive;
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary-text);
    background-color: var(--page-background);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 22px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--vertical-padding) var(--horizontal-padding);
}

/* Header Styles */
header {
    background-color: var(--page-background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-weight: 800;
    margin-bottom: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 18px;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-button-bg);
    color: var(--primary-button-text);
    padding: 12px 24px;
    border-radius: var(--button-radius);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-button-shadow);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--primary-button-shadow);
    color: var(--primary-text);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.placeholder-image {
    width: 225px; /* 9:16 aspect ratio based on 400px height */
    height: 400px;
    background-color: var(--primary-300);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center the placeholder */
}

.placeholder-image::after {
    content: "Pet Image";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--primary-text);
    opacity: 0.6;
}

/* Video Container Styles */
.video-container {
    width: 225px; /* Match placeholder width */
    height: 400px; /* Match placeholder height */
    background-color: var(--primary-300);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center the video */
}

.hero-video, .science-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--page-background);
}

.steps {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: var(--secondary-100);
}

.benefit-cards {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    flex: 1;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-text);
}

/* Science Section */
.science {
    padding: 5rem 0;
    background-color: var(--page-background);
}

.science-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.science-text {
    flex: 1.5;
}

.science-text p {
    margin-bottom: 1.5rem;
}

.science-text ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.science-text li {
    margin-bottom: 0.5rem;
}

.science-image {
    flex: 1;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--secondary-200), var(--primary-200));
    text-align: center;
}

.download p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.app-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--primary-text);
    color: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.app-button:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-text);
    color: white;
}

.app-button span {
    font-size: 14px;
    display: block;
}

.app-button strong {
    font-size: 20px;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--primary-800);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
}

.footer-logo h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.link-group h3 {
    font-size: 18px;
    margin-bottom: 1.5rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
}

.link-group a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container,
    .science-content {
        flex-direction: column;
    }
    
    .steps,
    .benefit-cards {
        flex-direction: column;
    }
    
    .step,
    .card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    nav ul {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .link-group {
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-logo h2 {
        text-align: center;
    }
}
