/* ============================================
   DoggyData & Trips & Tails — Shared Design System
   One family, not roommates.
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Colors */
    --green: #1B4332;
    --green-mid: #2D6A4F;
    --green-light: #E8F0EB;
    --cream: #F7F4EE;
    --cream-dark: #F5F0E8;
    --accent: #C4623A;
    --accent-light: #FCEEE6;
    --sage: #6B8F71;
    --sage-light: #A8C4AD;
    --white: #FFFFFF;
    --text: #1A1A1A;
    --text-light: #4A4A4A;
    --text-muted: #8A8A8A;
    --border: #D5DBD2;

    /* Shadows */
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);

    /* Typography */
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 100px;
    --max-w: 1100px;

    /* Transitions */
    --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* --- Container --- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--green);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
h2 { font-size: clamp(1.5rem, 3vw, 1.8rem); font-weight: 400; }
h3 { font-size: 1.15rem; font-weight: 400; }

p {
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* --- Navigation --- */
.site-nav {
    background: var(--green);
    padding: 0.5rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav .nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-nav .nav-brand {
    font-family: var(--font-heading);
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
}
.site-nav .nav-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
}
.site-nav .nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.site-nav .nav-links a:hover {
    color: white;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--green);
    color: white;
}
.btn-primary:hover { background: var(--green-mid); }
.btn-accent {
    background: var(--accent);
    color: white;
}
.btn-accent:hover { background: #B5572F; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}
.btn-outline:hover { background: var(--green-light); }

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}
.card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--green);
}
.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Callout --- */
.callout {
    background: var(--green-light);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}
.callout p {
    margin: 0;
    color: var(--green);
    font-size: 0.95rem;
}
.callout strong { color: var(--green); }

/* --- Hero --- */
.hero {
    background: var(--green);
    padding: 4rem 0 3rem;
    color: white;
    text-align: center;
}
.hero h1 {
    color: white;
    margin-bottom: 0.75rem;
}
.hero p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* --- Sections --- */
.section {
    padding: 3rem 0;
}

/* --- Stats Row --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    padding: 0 24px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--green);
    line-height: 1.1;
}
.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--green);
    color: rgba(255,255,255,0.7);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.9); }

/* --- Live Badge --- */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Google Fonts Import (include once per page) --- */
/* @import in <link> tag preferred:
   <link href="https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
*/

/* --- Responsive --- */
@media (max-width: 768px) {
    .site-nav .nav-links { gap: 1rem; font-size: 0.75rem; }
    .hero { padding: 3rem 0 2rem; }
    .card { padding: 1.5rem; }
}
