/* ============================================================================
   ZedTiger — A cozy personal den
   Warm orangish-reds, soft corners, playful typography
   ============================================================================ */

:root {
    --tiger: #D4451A;
    --tiger-dark: #B83A15;
    --tiger-light: #E85A30;
    --orange: #F4A023;
    --orange-light: #F7BE5C;
    --orange-glow: #FFF3E0;
    --cream: #FFF8F0;
    --cream-dark: #F5EDE3;
    --warm-white: #FFFDFB;
    --text: #3D2E1F;
    --text-soft: #6B5744;
    --text-muted: #9C8A78;
    --border: #E8D8C8;
    --shadow-warm: rgba(180, 120, 60, 0.12);
    --radius: 1rem;
    --radius-lg: 1.5rem;
    --radius-pill: 50rem;
}

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

/* Skip link — visible only on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--tiger);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

/* Focus indicators — visible, high-contrast ring on ALL interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--tiger);
    outline-offset: 2px;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: 'Nunito', -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

/* ============================================================================
   Header & Nav — warm, inviting top bar
   ============================================================================ */
.site-header {
    background: var(--warm-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-paw {
    font-size: 1.6rem;
    line-height: 1;
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tiger);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--tiger);
    background: var(--orange-glow);
}

.nav-links .nav-cta {
    background: var(--tiger);
    color: white !important;
    padding: 0.5rem 1.2rem;
}

.nav-links .nav-cta:hover {
    background: var(--tiger-dark);
    color: white !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--tiger);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================================================
   Hero — warm welcome, not corporate
   ============================================================================ */
.den-hero {
    background: linear-gradient(135deg, var(--tiger) 0%, var(--orange) 100%);
    color: white;
    padding: 4rem 2rem;
    margin: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.den-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.den-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.den-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.den-hero .greeting {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.den-hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.den-hero p {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page hero for subpages */
.page-hero {
    background: linear-gradient(135deg, var(--tiger), var(--orange));
    color: white;
    padding: 3rem 2rem;
    margin: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.page-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ============================================================================
   Buttons — rounded, friendly
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-warm {
    background: white;
    color: var(--tiger);
    box-shadow: 0 4px 15px var(--shadow-warm);
}

.btn-warm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-warm);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

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

.btn-tiger:hover {
    background: var(--tiger-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 69, 26, 0.3);
}

/* ============================================================================
   Content sections — cozy cards, warm backgrounds
   ============================================================================ */
.cozy-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.cozy-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: var(--tiger);
    text-align: center;
    margin-bottom: 2rem;
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.collection-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 2px solid var(--border);
    transition: all 0.25s ease;
    text-align: center;
}

.collection-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-warm);
}

.collection-card .card-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.collection-card h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--tiger);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.collection-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
}

.collection-card .card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--tiger);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.collection-card .card-link:hover {
    color: var(--tiger-dark);
    text-decoration: underline;
}

/* Warm callout box */
.warm-callout {
    background: var(--orange-glow);
    border: 2px solid var(--orange-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.warm-callout h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--tiger);
    margin-bottom: 0.5rem;
}

/* General content area styling */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section h2 {
    font-family: 'Fredoka', sans-serif;
    color: var(--tiger);
    margin-bottom: 1rem;
}

.content-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: var(--tiger-dark);
    margin-bottom: 0.75rem;
}

/* Gallery / image grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--border);
    transition: all 0.2s ease;
    aspect-ratio: 1;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover {
    border-color: var(--orange);
    transform: scale(1.03);
    box-shadow: 0 8px 25px var(--shadow-warm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================================
   404 Page
   ============================================================================ */
.lost-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 4rem 2rem;
}

.lost-content .lost-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

.lost-content h1 {
    font-family: 'Fredoka', sans-serif;
    color: var(--tiger);
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.lost-content p {
    color: var(--text-soft);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================================================
   Footer — warm and simple
   ============================================================================ */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.8);
    margin-top: auto;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer-paw {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

.footer-col h4 {
    font-family: 'Fredoka', sans-serif;
    color: var(--orange);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.2);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom a {
    color: var(--orange-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Blog cards
   ============================================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    background: var(--warm-white);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-warm);
}

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body h3 a {
    font-family: 'Fredoka', sans-serif;
    color: var(--text);
    text-decoration: none;
    font-size: 1.15rem;
}

.blog-card-body h3 a:hover {
    color: var(--tiger);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.blog-meta a {
    color: var(--tiger);
    text-decoration: none;
    font-weight: 700;
}

/* ============================================================================
   Contact form
   ============================================================================ */
.contact-form {
    background: var(--warm-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    max-width: 550px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.6rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* ============================================================================
   Dropdown (for nav if needed)
   ============================================================================ */
.dropdown { position: relative; }
.dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s;
}
.dropdown-toggle:hover { color: var(--tiger); background: var(--orange-glow); }
.dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.dropdown.active .dropdown-arrow { transform: rotate(180deg); }
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    background: white;
    min-width: 180px;
    border-radius: 0.75rem;
    padding: 0.4rem;
    z-index: 200;
    border: 2px solid var(--border);
    box-shadow: 0 8px 24px var(--shadow-warm);
}
.dropdown-content li { list-style: none; }
.dropdown-content a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text) !important;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}
.dropdown-content a:hover { background: var(--orange-glow) !important; color: var(--tiger) !important; }
.dropdown:hover .dropdown-content,
.dropdown.active .dropdown-content { display: block; }

/* ============================================================================
   Responsive: Tablet
   ============================================================================ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .den-hero h1 { font-size: 2.2rem; }
}

/* ============================================================================
   Responsive: Mobile
   ============================================================================ */
@media (max-width: 700px) {
    .mobile-menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: 2rem;
        gap: 0.5rem;
        border-top: 2px solid var(--border);
        overflow-y: auto;
    }

    .nav-links.active { display: flex; }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        color: var(--text);
    }

    .nav-links li:last-child a {
        text-align: center;
        margin-top: 0.5rem;
    }

    .den-hero {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }

    .den-hero h1 { font-size: 1.9rem; }
    .den-hero p { font-size: 1rem; }

    .page-hero {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
    }

    .page-hero h2 { font-size: 1.7rem; }

    .hero-buttons { flex-direction: column; align-items: center; }

    .collection-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .blog-grid { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cozy-section, .content-section {
        padding: 2rem 1.25rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding-left: 1rem;
    }
}

/* ============================================================================
   Responsive: Small Mobile
   ============================================================================ */
@media (max-width: 400px) {
    .den-hero h1 { font-size: 1.6rem; }
    .page-hero h2 { font-size: 1.4rem; }
    .main-nav { padding: 0 1rem; }
    .logo-text { font-size: 1.3rem; }
    .btn { width: 100%; justify-content: center; }
}
