/* ============================================================
   GriffonDor Kennels — Rustic Premium Design System
   ============================================================ */

/* --- Design Tokens --- */
:root {
    /* Warm Rustic Palette */
    --primary-color: #2c2417;       /* Deep charcoal-brown */
    --accent-color: #d4af37;        /* Rich classic gold */
    --background-color: #faf6f1;    /* Warm cream (aged paper) */
    --text-color: #3d3226;          /* Warm dark brown */
    --highlight-color: #b8860b;     /* Darker gold hover */
    --surface-color: #fefcf9;       /* Warm white for cards */
    --muted-surface: #f0ebe3;       /* Warm linen */
    --border-color: #d4c9b8;        /* Weathered tan */
    --shadow-color: rgba(44, 36, 23, 0.1); /* Brown-tinted shadows */
    --shadow-strong: rgba(44, 36, 23, 0.18);

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Lato', sans-serif;

    /* Spacing */
    --navbar-height: 90px;
    --section-padding: 4rem;
    --container-padding: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-secondary);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    /* Subtle linen texture overlay */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

body.menu-open {
    overflow: hidden;
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    font-weight: 700;
}

h2 {
    text-shadow: 0 1px 2px rgba(44, 36, 23, 0.08);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    touch-action: manipulation;
}

section {
    padding: var(--section-padding) 0;
    scroll-margin-top: var(--navbar-height);
}

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

/* --- Focus & Accessibility --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* ============================================================
   SPLASH SCREEN
   ============================================================ */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-out;
    transition-delay: 0.5s;
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-logo {
    max-width: 200px;
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0%   { transform: scale(1);    opacity: 0.8; }
    50%  { transform: scale(1.05); opacity: 1;   }
    100% { transform: scale(1);    opacity: 0.8; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 246, 241, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 0 rgba(44, 36, 23, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 2px 20px var(--shadow-color);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    padding-top: calc(env(safe-area-inset-top, 0px) + 1rem);
}

#navbar .logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    z-index: 1001;
}

#navbar .logo img {
    height: 60px;
    width: auto;
    border-radius: 4px;
    border: 2px solid var(--accent-color);
}

#navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Mobile nav: hidden by default, slides down */
#navbar .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 0;
    height: 100dvh;
    overflow-y: auto;
    left: 0;
    background: var(--surface-color);
    text-align: center;
    padding-top: calc(var(--navbar-height) + 2rem);
    box-shadow: 0 8px 24px var(--shadow-strong);
    z-index: 999;
}

#navbar .nav-list.active {
    display: flex;
    animation: navFadeDown 200ms ease-out both;
}

#navbar ul li {
    margin: 0.75rem 0;
}

#navbar ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    line-height: 44px;
}

#navbar ul li a:hover,
#navbar ul li a.active {
    color: var(--accent-color);
}

/* Nav right group (mobile login + hamburger) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

/* Persistent mobile login button (always visible next to hamburger) */
.nav-login-btn-mobile {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.nav-login-btn-mobile:hover {
    background: var(--highlight-color);
}

/* Desktop login in nav-list (hidden on mobile) */
.nav-login-desktop {
    display: none;
}

/* Login CTA button style (desktop) */
#navbar .nav-login-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1.4;
    min-height: 44px;
    min-width: 44px;
}

#navbar .nav-login-btn:hover {
    background: var(--highlight-color);
    transform: translateY(-1px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--surface-color);
    padding-top: 0;
    overflow: hidden;
}

/* Background: less blur, vignette overlay */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero.jpeg') no-repeat center center/cover;
    z-index: -2;
    transform: scale(1.02);
    will-change: transform;
}

/* Vignette + darkening overlay */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%),
        linear-gradient(to bottom, rgba(44,36,23,0.3) 0%, rgba(44,36,23,0.5) 100%);
    z-index: -1;
}

#hero .hero-content {
    max-width: 900px;
    position: relative;
    padding: 2.5rem;
    z-index: 1;
}


/* Corner accents (no wireframe box) */

/* Corner accents */
.hero-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    z-index: 2;
}

.hero-corner::before,
.hero-corner::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
}

.hero-corner::before {
    width: 24px;
    height: 2px;
}

.hero-corner::after {
    width: 2px;
    height: 24px;
}

.hero-corner--tl { top: -1px; left: -1px; }
.hero-corner--tr { top: -1px; right: -1px; }
.hero-corner--tr::before { right: 0; }
.hero-corner--tr::after { right: 0; }
.hero-corner--br { bottom: -1px; right: -1px; }
.hero-corner--br::before { right: 0; bottom: 0; }
.hero-corner--br::after { right: 0; bottom: 0; }
.hero-corner--bl { bottom: -1px; left: -1px; }
.hero-corner--bl::before { bottom: 0; }
.hero-corner--bl::after { bottom: 0; }

.hero-tagline {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.4rem 1.2rem;
    border-radius: 2px;
}

#hero h1 {
    font-size: clamp(2.4rem, 7vw, 5.5rem);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 3px 12px rgba(0,0,0,0.6);
    color: var(--surface-color);
    font-weight: 700;
    line-height: 1.1;
}

#hero .subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    font-family: var(--font-secondary);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    border: 2px solid transparent;
    font-size: 0.9rem;
    min-height: 48px;
    min-width: 48px;
    touch-action: manipulation;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--surface-color);
    border: 2px solid var(--surface-color);
}

.btn-secondary:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Hero-specific buttons */
#hero .btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
}

#hero .btn-primary:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--surface-color);
}

#hero .btn-secondary {
    background: transparent;
    color: var(--surface-color);
    border: 2px solid rgba(255,255,255,0.6);
}

#hero .btn-secondary:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--surface-color);
}

#hero .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}


/* ============================================================
   SECTION STYLING — Rustic Ornaments
   ============================================================ */
.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

/* Rustic ornament divider */
.section-divider {
    width: 120px;
    height: 20px;
    margin: 0.5rem auto 2rem auto;
    background: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    top: 50%;
}

.section-divider::after {
    content: '◆';
    position: relative;
    z-index: 1;
    color: var(--accent-color);
    font-size: 0.6rem;
    background: var(--background-color);
    padding: 0 0.75rem;
}

/* Dark section variant */
.bg-dark .section-divider::after {
    background: var(--muted-surface);
}

.bg-dark {
    background: var(--muted-surface);
    position: relative;
}

/* Decorative section separator */
.section-separator {
    display: block;
    width: 100%;
    height: 40px;
    position: relative;
    overflow: hidden;
}

.section-separator svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================================
   TRAINING ACCORDION
   ============================================================ */
.accordion-list {
    max-width: 700px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-top: none;
    overflow: hidden;
}

.accordion-item:first-child {
    border-top: 4px solid var(--accent-color);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.accordion-item:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-secondary);
    color: var(--text-color);
    transition: background 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.accordion-header:hover {
    background: rgba(212, 175, 55, 0.04);
}

.accordion-header .icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
}

.accordion-header-text {
    flex: 1;
    min-width: 0;
}

.accordion-header-text h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.accordion-header-text .program-meta {
    margin: 0.3rem 0 0 0;
}

.accordion-chevron {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1.5rem;
}

.accordion-item.open .accordion-body {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.program-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.meta-chip {
    background: var(--muted-surface);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.program-features li {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.4rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.program-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.btn-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    min-height: 44px;
}

.btn-link:hover {
    color: var(--accent-color);
}

.btn-link::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* Training section */
#training {
    background: none;
}

/* ============================================================
   FACILITY SECTION — Compact Grid
   ============================================================ */
.facility-section {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}
.facility-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 0%, rgba(212,175,55,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 100%, rgba(212,175,55,0.04) 0%, transparent 50%);
    pointer-events: none;
}
.facility-section .section-kicker {
    color: var(--accent-color);
}
.facility-section h2 {
    color: var(--surface-color);
}
.facility-section .section-divider::after {
    background: var(--accent-color);
}

.facility-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 2rem auto;
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    line-height: 1.6;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
}

.facility-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 8px;
    background: rgba(212,175,55,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.facility-card:hover {
    background: rgba(212,175,55,0.1);
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.facility-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(212,175,55,0.3);
}

.facility-card h4 {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--surface-color);
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.3px;
}

.facility-card p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.4;
}


/* ============================================================
   LITTERS SECTION
   ============================================================ */
.litter-root {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.litter-showcase {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 24px var(--shadow-color);
}

/* Litter Tabs */
.litter-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}
.litter-tab {
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.5;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.litter-tab:hover {
    opacity: 0.8;
}
.litter-tab.active {
    opacity: 1;
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* Empty state */
.litter-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.litter-empty-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}
.litter-empty h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.litter-empty p {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-color);
    line-height: 1.7;
}

/* Ribbon / status badge */
.litter-ribbon {
    padding: 1.5rem 2.5rem 0;
}
.litter-ribbon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: var(--primary-color);
    padding: 0.4rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-family: var(--font-secondary);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Header */
.litter-header {
    text-align: center;
    padding: 1.5rem 2.5rem 2rem;
}
.litter-name {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--primary-color);
    margin: 0 0 0.5rem;
    line-height: 1.15;
    font-weight: 700;
}
.litter-pairing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.litter-pairing.sub {
    margin-top: 0.25rem;
}
.litter-parent {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}
h2.litter-parent {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}
h3.litter-parent {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}
.pairing-ampersand {
    font-family: var(--font-primary);
    font-style: italic;
    color: var(--accent-color);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1;
}
.litter-date {
    margin: 1rem 0 0;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    opacity: 0.8;
}



/* Description */
.litter-description {
    padding: 1.5rem 2.5rem;
    text-align: center;
}
.litter-description p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* Photo Gallery */
.litter-gallery {
    padding: 0 2.5rem 1.5rem;
}
.litter-gallery-featured {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--muted-surface);
    margin-bottom: 0.75rem;
}
.litter-gallery-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.litter-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.litter-gallery-thumbs img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.litter-gallery-thumbs img:hover {
    opacity: 0.9;
}
.litter-gallery-thumbs img.active {
    border-color: var(--accent-color);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}

/* CTA */
.litter-cta {
    text-align: center;
    padding: 1.5rem 2.5rem 2.5rem;
}
.litter-cta .btn {
    min-width: 240px;
}

/* ============================================================
   FACEBOOK / COMMUNITY SECTION
   ============================================================ */
.text-center {
    text-align: center;
}

/* ============================================================
   CONTACT SECTION — Modern Floating Labels
   ============================================================ */
.contact-content {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

.contact-form, .contact-info {
    flex: 1;
}

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

/* Modern floating label inputs */
.modern-input {
    position: relative;
}

.modern-input input,
.modern-input textarea {
    width: 100%;
    padding: 1.1rem 1rem 0.7rem;
    background: var(--surface-color);
    border: 1.5px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.modern-input label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a7d6b;
    font-size: 0.95rem;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
}

.modern-input textarea ~ label {
    top: 1.2rem;
    transform: none;
}

/* Float the label up when input is focused or has content */
.modern-input input:focus ~ label,
.modern-input input:not(:placeholder-shown) ~ label,
.modern-input textarea:focus ~ label,
.modern-input textarea:not(:placeholder-shown) ~ label {
    top: 0.15rem;
    transform: none;
    font-size: 0.72rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modern-input input:focus,
.modern-input textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Legacy form-group support (non-floating) */
.form-group:not(.modern-input) label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
}

.form-group:not(.modern-input) input,
.form-group:not(.modern-input) textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group:not(.modern-input) input:focus,
.form-group:not(.modern-input) textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

/* Contact submit button */
.contact-submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-submit-btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Success message */
.contact-success-msg {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.contact-success-msg h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.contact-success-msg p {
    color: var(--text-color);
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

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

.contact-info {
    background: var(--muted-surface);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    margin-top: 0;
    font-size: 1.3rem;
}

.contact-info p {
    margin: 0.75rem 0;
    line-height: 1.6;
}

/* ============================================================
   FOOTER — Rustic Dark
   ============================================================ */

/* Rustic separator wave */
.footer-separator {
    display: block;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: 2rem;
}

.footer-separator svg {
    display: block;
    width: 100%;
    height: 40px;
}

footer {
    background: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    color: #e8dfd3;
    text-align: center;
    padding: 3rem 0;
    padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    border-top: 3px solid var(--accent-color);
}

footer p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

footer .footer-brand {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.footer-badges {
    margin-top: 1rem;
}

/* ============================================================
   MOBILE MENU TOGGLE
   ============================================================ */
.menu-toggle {
    display: block;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    z-index: 1001;
    touch-action: manipulation;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.menu-toggle.is-open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes navFadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal-init {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Staggered card delays */
.card-container .card:nth-child(1) { transition-delay: 0s; }
.card-container .card:nth-child(2) { transition-delay: 0.12s; }
.card-container .card:nth-child(3) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE — Tablet & Desktop (768px+)
   ============================================================ */
@media (min-width: 768px) {
    .menu-toggle,
    .nav-login-btn-mobile {
        display: none;
    }

    .nav-login-desktop {
        display: block;
    }

    section {
        padding: 5rem 0;
    }

    #navbar {
        background: rgba(250, 246, 241, 0.85);
        backdrop-filter: saturate(180%) blur(12px);
        -webkit-backdrop-filter: saturate(180%) blur(12px);
    }

    #navbar .container {
        padding-top: 1rem;
    }

    #navbar .nav-list {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: none;
        box-shadow: none;
        padding-top: 0;
        align-items: center;
    }

    #navbar ul li {
        margin: 0 0 0 24px;
    }

    #navbar ul li a {
        padding: 0;
        position: relative;
        line-height: 1.4;
        min-height: auto;
    }

    #navbar ul li a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent-color);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    #navbar ul li a:hover::after,
    #navbar ul li a.active::after {
        transform: scaleX(1);
        transform-origin: left;
    }

    /* Don't apply underline to the login button */
    #navbar ul li a.nav-login-btn::after {
        display: none;
    }

    #hero {
        height: 100vh;
        height: 100dvh;
    }

    #hero .hero-content {
        padding: 3rem;
    }

    #hero .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }

    .card {
        flex-basis: 300px;
        max-width: 380px;
    }

    .contact-content {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .facility-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }
    .facility-feature {
        padding: 1.75rem 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        border-right: 1px solid rgba(255,255,255,0.08);
    }
    .facility-feature:nth-child(even) {
        border-right: none;
    }
    .facility-feature:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .facility-feature:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 50%;
        border-right: none;
    }
}

/* ============================================================
   RESPONSIVE — Small phones (480px and below)
   ============================================================ */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 16px;
    }

    #hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    #hero .subtitle {
        font-size: 0.95rem;
    }

    #hero .hero-content {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 1.5rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* ============================================================
   RESOURCES SECTION (Dynamic Dashboard)
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--surface-color);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    margin-top: 2rem;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Resource Article Modal */
.resource-article-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

.resource-article-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    line-height: 36px;
    text-align: center;
    padding: 0;
}

.resource-article-modal .modal-close:hover {
    background: var(--accent-color);
}

.resource-article-header {
    background: var(--muted-surface);
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.resource-article-header .resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.resource-article-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 2rem;
}

.resource-article-header .date-posted {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.resource-article-body {
    padding: 2.5rem 2rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.05rem;
}

.resource-article-body p {
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .resource-article-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    .resource-article-header h2 {
        font-size: 1.5rem;
    }
    .resource-article-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

/* === Litter Puppy Roster === */
.litter-dogs {
    padding: 0 2.5rem 1rem;
}

.litter-dogs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.litter-dogs-header h4 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}
.litter-dogs-count {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.litter-dog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 1rem;
}

.litter-dog-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
.litter-dog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-strong);
}
.litter-dog-card.reserved {
    opacity: 0.75;
}
.litter-dog-card.reserved::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    pointer-events: none;
}

.litter-dog-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--muted-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}
.litter-dog-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.litter-dog-card:hover .litter-dog-photo img {
    transform: scale(1.05);
}
.litter-dog-placeholder {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.35;
}

.litter-dog-info {
    padding: 0.75rem 0.75rem 0.85rem;
    text-align: center;
}
.litter-dog-info strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
}
.litter-dog-sex {
    display: block;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.litter-dog-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}
.litter-dog-status.available {
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: var(--primary-color);
}
.litter-dog-status.reserved {
    background: var(--muted-surface);
    color: var(--text-color);
    opacity: 0.7;
}


/* === Facility Grid Responsive === */
@media (max-width: 900px) {
    .facility-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 560px) {
    .facility-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .facility-intro {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    .facility-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .facility-card {
        padding: 0.75rem 0.4rem;
    }
    .facility-card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.5rem;
    }
    .facility-card-icon svg {
        width: 16px;
        height: 16px;
    }
    .facility-card h4 {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    .facility-card p {
        font-size: 0.65rem;
        line-height: 1.25;
    }
}

/* === Litter Section Responsive === */
@media (max-width: 600px) {
    .litter-showcase {
        border-radius: 6px;
    }
    .litter-header {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    .litter-ribbon {
        padding: 1.25rem 1.5rem 0;
    }
    .litter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 0.5rem;
    }
    .litter-tab {
        font-size: 0.9rem;
        padding: 0.6rem 1.25rem;
    }
    .litter-description {
        padding: 1rem 1.5rem;
    }
    .litter-gallery {
        padding: 0 1.5rem 1rem;
    }
    .litter-gallery-featured {
        aspect-ratio: 4 / 3;
    }
    .litter-dogs {
        padding: 0 1.5rem 1rem;
    }
    .litter-dogs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .litter-dog-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
    .litter-dog-info {
        padding: 0.5rem;
    }
    .litter-dog-info strong {
        font-size: 0.85rem;
    }
    .litter-cta {
        padding: 1.25rem 1.5rem 2rem;
    }
    .litter-cta .btn {
        width: 100%;
        min-width: 0;
    }
}

/* === Public Gallery Modal === */
.gallery-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}
.gallery-close {
    position: absolute;
    top: 15px; right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 1rem;
    cursor: pointer;
    z-index: 10000;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.gallery-prev:hover, .gallery-next:hover {
    background: rgba(212,175,55,0.8);
}
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-content {
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    user-select: none;
}
.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .gallery-prev, .gallery-next {
        width: 44px; height: 44px;
        font-size: 18px;
        padding: 0;
    }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    .gallery-close {
        top: 10px; right: 15px;
        font-size: 35px;
    }
}

/* === CRM Detail View Base Styles === */
.detail-view {
    flex: 1;
    min-width: 0;
    flex-direction: column;
}

/* === CRM Mobile Split View Modal === */
@media (max-width: 900px) {
    #crm-view:not(.detail-active) .detail-view {
        display: none !important;
    }
    #crm-view.detail-active .detail-view {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 100000 !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 1rem !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }
    #crm-view.detail-active .detail-body {
        flex: 1 1 auto !important;
        overflow-y: visible !important;
        height: auto !important;
    }
    .btn-back-to-list {
        display: inline-block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 1rem;
        background-color: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 4px;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-weight: bold;
    }
}
.btn-back-to-list {
    display: none;
}
