/*
 * PetSuite 360 - Premium Legal Pages
 * Design: "Warm Haven" - Cozy, premium pet care aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    /* Warm color palette */
    --coral: #E8786D;
    --coral-light: #F5A99A;
    --coral-dark: #D65A4E;
    --sage: #7FB685;
    --sage-light: #A8D4AE;
    --cream: #FDF8F3;
    --cream-dark: #F5EDE4;
    --warm-white: #FFFCF9;
    --text-primary: #3D3535;
    --text-secondary: #6B5E5E;
    --text-muted: #9A8D8D;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(61, 53, 53, 0.06);
    --shadow-medium: 0 8px 32px rgba(61, 53, 53, 0.1);
    --shadow-glow: 0 0 40px rgba(232, 120, 109, 0.15);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode - warm and cozy */
@media (prefers-color-scheme: dark) {
    :root {
        --cream: #1E1A18;
        --cream-dark: #2A2422;
        --warm-white: #151211;
        --text-primary: #F5EDE4;
        --text-secondary: #C4B8B0;
        --text-muted: #8A7F79;
        --coral: #F5A99A;
        --coral-light: #E8786D;
        --coral-dark: #FFB8AD;
        --sage: #A8D4AE;
        --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
        --shadow-medium: 0 8px 32px rgba(0, 0, 0, 0.3);
        --shadow-glow: 0 0 60px rgba(245, 169, 154, 0.1);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--warm-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(232, 120, 109, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(127, 182, 133, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Floating paw prints decoration */
.paw-decoration {
    position: fixed;
    font-size: 120px;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.paw-1 { top: 10%; left: 5%; animation-delay: 0s; }
.paw-2 { top: 60%; right: 5%; animation-delay: -7s; transform: rotate(30deg); }
.paw-3 { bottom: 15%; left: 15%; animation-delay: -14s; transform: rotate(-20deg); }

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

/* Container */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    position: relative;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeInDown 0.8s var(--ease-out-expo);
}

.logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    margin-bottom: 20px;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

h1 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.last-updated {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: var(--cream);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Main content card */
main {
    background: var(--cream);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    position: relative;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--sage));
    border-radius: 0 0 4px 4px;
}

/* Typography */
h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--coral);
}

h2:first-child {
    margin-top: 0;
}

h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--coral-light);
    border-radius: 50%;
}

/* Links */
a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Contact card */
.contact-card {
    background: linear-gradient(135deg, var(--warm-white), var(--cream-dark));
    border-radius: 20px;
    padding: 28px;
    margin-top: 32px;
    border: 1px solid rgba(232, 120, 109, 0.1);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--coral), var(--coral-dark));
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(232, 120, 109, 0.3);
    transition: all 0.3s var(--ease-out-back);
}

.contact-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(232, 120, 109, 0.4);
    color: white;
}

/* FAQ Accordion */
.faq-item {
    background: var(--warm-white);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid rgba(61, 53, 53, 0.05);
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 20px 24px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(232, 120, 109, 0.04);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--coral);
    font-weight: 400;
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(61, 53, 53, 0.05);
    padding-top: 16px;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(61, 53, 53, 0.06);
    animation: fadeIn 0.8s var(--ease-out-expo) 0.3s both;
}

footer nav {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

footer nav a {
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

footer nav a:hover {
    color: var(--coral);
    background: var(--cream);
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero section (index page) */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    animation: fadeIn 0.8s var(--ease-out-expo);
}

.hero .logo {
    width: 120px;
    height: 120px;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.app-store-badge {
    height: 56px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    transition: all 0.3s var(--ease-out-back);
}

.app-store-badge:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 48px 0;
    padding: 0 20px;
}

.feature {
    background: var(--cream);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--ease-out-back);
    animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.15s; }
.feature:nth-child(3) { animation-delay: 0.2s; }
.feature:nth-child(4) { animation-delay: 0.25s; }
.feature:nth-child(5) { animation-delay: 0.3s; }
.feature:nth-child(6) { animation-delay: 0.35s; }

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

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
}

.feature h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Links section */
.links-section {
    text-align: center;
    margin-top: 48px;
    padding: 0 20px;
    animation: fadeInUp 0.6s var(--ease-out-expo) 0.4s both;
}

.links-section h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    border: none;
    padding: 0;
}

.links-section .link-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.links-section a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--cream);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--ease-out-back);
    border: 1px solid transparent;
}

.links-section a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--coral-light);
    color: var(--coral);
}

.links-section a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 32px 16px 60px;
    }

    main {
        padding: 28px 20px;
        border-radius: 20px;
    }

    main::before {
        left: 20px;
        right: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .hero {
        padding: 48px 16px 40px;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }

    .feature {
        padding: 20px 14px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .links-section a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Language switcher */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.language-switcher label {
    font-size: 1.2rem;
}

.language-switcher select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(61, 53, 53, 0.1);
    background: var(--cream);
    color: var(--text-primary);
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-switcher select:hover {
    border-color: var(--coral-light);
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(232, 120, 109, 0.1);
}

/* Print styles */
@media print {
    body::before,
    .paw-decoration {
        display: none;
    }

    main {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .language-switcher {
        display: none;
    }
}
