/* style.css - Regal Puppy Suite Shared Site Styles
   Single source of truth for palette, layout tokens, and shared components
   (header, nav, buttons, hero, puppy cards, footer). Page-specific sections
   (pricing tables, lead forms, etc.) live in that page's own <style> block
   and should NOT redefine these tokens or class names. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Core Neutrals & Muted Accents Color Palette */
    --bg-cream: #F7F4EF;      /* Warm Cream — Light, breathable background */
    --card-bg: #FFFFFF;       /* Clean Card background */
    --sand-bg: #E4D9C9;       /* Soft Sand — Section backgrounds, cards, pricing boxes */
    --text-dark: #3B2F2F;      /* Espresso — Deep anchor color for structure */
    --text-charcoal: #2A2A2A;  /* Charcoal — Headings or emphasis */
    --text-muted: #5C5753;     /* Readable Warm Slate Gray */
    --text-subtle: #A8A4A0;    /* Warm Gray — Dividers & subtle UI elements */

    --primary: #8FA58A;       /* Dusty Green — Gentle, natural accent */
    --primary-light: #A6B9A2; /* Soft Dusty Green */
    --primary-dark: #3B2F2F;  /* Espresso anchor */
    --accent: #C9B27A;        /* Muted Gold — Softer, premium accent */
    --accent-light: #E4D9C9;  /* Soft Sand accent tint */

    /* Status badges */
    --status-available: #8FA58A;
    --status-reserved: #C9B27A;
    --status-sold: #EF4444;

    --white: #FFFFFF;
    --border-color: #E4D9C9;  /* Soft Sand border shade */
    --footer-bg: #EAE3D7;     /* Soft Sand light footer background */

    --shadow-sm: 0 4px 12px rgba(59, 47, 47, 0.05);
    --shadow-md: 0 10px 30px rgba(59, 47, 47, 0.09);
    --shadow-lg: 0 20px 50px rgba(59, 47, 47, 0.13);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --max-width: 1200px;

    /* Single set of breakpoints used everywhere so nothing falls out of sync */
    --bp-tablet: 900px;
    --bp-phone: 560px;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: var(--bp-phone)) {
    .container { padding: 0 16px; }
}

.section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title,
.section-header h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle,
.section-header p {
    font-size: clamp(0.98rem, 1.6vw, 1.05rem);
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(166, 124, 82, 0.15);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(166, 124, 82, 0.25);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.btn-outline-accent:hover {
    background-color: var(--accent);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header-wrapper {
    background: rgba(247, 243, 238, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 160;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    padding: 90px 0 80px;
    background: linear-gradient(135deg, rgba(201, 168, 106, 0.08) 0%, rgba(166, 124, 82, 0.04) 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 10px;
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-card,
.info-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover,
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.feature-card-icon,
.info-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 168, 106, 0.12);
    color: var(--primary);
    margin-bottom: 18px;
}

.feature-card h3,
.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p,
.info-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.badge-pro-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Puppy Cards & Listings (used on storefront pages) */
.puppy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.puppy-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.puppy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.puppy-card-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #EEE;
}

.puppy-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.puppy-card:hover .puppy-card-img {
    transform: scale(1.05);
}

.puppy-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.badge-available { background-color: var(--status-available); }
.badge-reserved { background-color: var(--status-reserved); }
.badge-sold { background-color: var(--status-sold); }

.puppy-card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.puppy-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.puppy-card-title {
    font-size: 1.35rem;
    color: var(--text-dark);
}

.puppy-card-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
}

.btn-see-more {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 0 2px;
    text-decoration: underline;
    display: inline;
    font-family: inherit;
    transition: color 0.2s;
}

.btn-see-more:hover {
    color: var(--primary);
}

/* Footer */
.main-footer,
footer {
    background-color: var(--footer-bg);
    color: var(--text-dark);
    padding: 36px 0 20px;
    border-top: 2px solid var(--border-color);
    text-align: left;
}

.footer-grid,
.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 24px;
}

@media (max-width: var(--bp-tablet)) {
    .footer-grid,
    .footer-grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: var(--bp-phone)) {
    .footer-grid,
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.footer-logo,
.footer-brand h3,
.footer-links h4,
.footer-contact h4,
.footer-newsletter h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.footer-brand-col p,
.footer-brand p,
.footer-newsletter p {
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 12px;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(143, 165, 138, 0.22);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--primary-dark);
    font-weight: 700;
    border: 1px solid rgba(80, 100, 75, 0.3);
}

.footer-col-title {
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link-list,
.footer-contact-list,
.footer-links ul {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-link-list a,
.footer-links a {
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link-list a:hover,
.footer-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
}

.footer-contact-icon {
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.footer-copyright,
.footer-bottom {
    font-size: 0.84rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
}

.footer-copyright a,
.footer-bottom a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
}

/* Newsletter Waitlist Form styling */
.newsletter-form {
    display: flex;
    margin-top: 10px;
}

.newsletter-input {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.newsletter-btn {
    background: var(--primary);
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    transition: background 0.2s;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

/* Utility classes */
.text-center { text-align: center; }
.mobile-hide { }
.bg-white { background-color: var(--white); }
.border-top-divider { border-top: 1px solid var(--border-color); }
.max-width-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.margin-bottom-24 { margin-bottom: 24px; }
.margin-bottom-48 { margin-bottom: 48px; }
.text-muted-color { color: var(--text-muted); }
.empty-data-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 32px 0;
    font-style: italic;
}

/* Hero variants */
.hero-about {
    padding: 72px 0 60px;
    background: linear-gradient(135deg, rgba(143,165,138,0.12) 0%, rgba(201,178,122,0.06) 100%);
    text-align: center;
}
.hero-about h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 16px;
}
.hero-about p {
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.about-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-dark);
    margin-bottom: 20px;
}
.about-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Breeding Standards checklist */
.about-standards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}
.standard-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.standard-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.standard-check,
.standard-check-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(143,165,138,0.35);
}
.standard-text h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.standard-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Card grid (3 cols, used in adoption process) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 48px;
}
.info-card-icon-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(143,165,138,0.12);
}

/* Parent card styling */
.parent-img-aspect {
    aspect-ratio: 3 / 2;
}
.parent-badge-style {
    background-color: var(--primary-dark);
    color: var(--white);
}
.parent-title-style {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}
.parent-breed-style {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 2px;
}
.parent-desc-style {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact form grid (2-col layout for name/email pairs) */
.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Hero image wrapper variant */
.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: var(--white);
    padding: 10px;
}
.hero-image-wrapper img.hero-img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ===================================================================
   RESPONSIVE — single breakpoint set, mobile-first overrides
   =================================================================== */

/* Tablet & below */
@media (max-width: 900px) {
    .menu-toggle { display: flex; }

    .nav-container { position: relative; }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(247, 243, 238, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 28px 24px;
        overflow-y: auto;
        transition: left 0.35s ease;
        z-index: 150;
    }

    .nav-menu.active { left: 0; }

    .nav-menu li { width: 100%; }

    .nav-menu a.nav-link {
        width: 100%;
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.05rem;
    }

    .nav-menu li:last-child a.nav-link { border-bottom: none; }

    .nav-menu .btn { width: 100%; text-align: center; margin-top: 8px; }

    .main-header { height: 68px; }
    .logo-img { height: 36px; }
    .logo-text { font-size: 1.15rem; }

    .hero { padding: 48px 0 44px; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image-box img { max-height: 220px; }
    .hero-image-wrapper img.hero-img { max-height: 220px; }

    .section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-images img { height: 300px !important; }

    .features-grid,
    .puppy-grid,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid,
    .footer-grid-layout {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .main-footer,
    footer { padding: 48px 0 28px; }
}

/* Phone */
@media (max-width: 560px) {
    .container { padding: 0 16px; }

    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }

    .feature-card,
    .info-card { padding: 24px; }

    .footer-grid,
    .footer-grid-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .footer-badges,
    .footer-brand-col .footer-badges { justify-content: center; }

    .puppy-card-title { font-size: 1.2rem; }
}

/* Extra Small Phones (down to 300px) */
@media (max-width: 400px) {
    .container { padding: 0 12px; }
    .btn {
        padding: 10px 16px;
        font-size: 0.88rem;
        white-space: normal;
        text-align: center;
        word-break: break-word;
    }
    .logo-text { font-size: 1.05rem; }
    .hero-content h1 { font-size: 1.6rem; }
    .feature-card,
    .info-card { padding: 18px 14px; }
}

@media (max-width: 320px) {
    .container { padding: 0 8px; }
    .logo-img { height: 32px; }
    .logo-text { font-size: 0.95rem; }
    .btn { padding: 9px 12px; font-size: 0.82rem; }
}

/* Single Puppy Detail Page Styles */
.puppy-detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 900px) {
    .puppy-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.puppy-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.main-gallery-img-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--bg-cream);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}
.main-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}
.gallery-thumbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}
.gallery-thumb-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.75;
}
.gallery-thumb-item:hover,
.gallery-thumb-item.active {
    border-color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}
.gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.puppy-info-sidebar {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.puppy-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.puppy-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.2;
}
.puppy-info-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.puppy-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.puppy-spec-card {
    background: var(--bg-cream);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.puppy-spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.puppy-spec-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
}
.puppy-description {
    margin-bottom: 24px;
}
.puppy-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.puppy-description p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}
.puppy-relations {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.puppy-relations h3 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}
.relations-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.relation-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.relation-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.relation-name {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===================================================================
   3 LAYOUT TEMPLATE ENGINES (Minimalist, Classic, Very Modern)
   =================================================================== */

/* 1. MINIMALIST TEMPLATE */
body.template-minimalist {
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}
body.template-minimalist .feature-card,
body.template-minimalist .puppy-card,
body.template-minimalist .pricing-card {
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}
body.template-minimalist .hero-image-box img {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 2. CLASSIC / MIDDLE-OF-THE-ROAD TEMPLATE */
body.template-classic {
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
}
body.template-classic .feature-card,
body.template-classic .puppy-card,
body.template-classic .pricing-card {
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* 3. VERY MODERN TEMPLATE (Swirls, Wave Graphics & Glassmorphism) */
body.template-modern {
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shadow-sm: 0 8px 20px rgba(0,0,0,0.06);
    --shadow-md: 0 12px 32px rgba(0,0,0,0.12);
}
body.template-modern .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-cream) 0%, rgba(255,255,255,0.9) 100%);
}
body.template-modern .hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.4;
    border-radius: 50%;
    pointer-events: none;
}
body.template-modern .hero::after {
    content: "";
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
    pointer-events: none;
}
body.template-modern .feature-card,
body.template-modern .puppy-card,
body.template-modern .pricing-card {
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.template-modern .feature-card:hover,
body.template-modern .puppy-card:hover,
body.template-modern .pricing-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
body.template-modern .btn-primary {
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(166, 124, 82, 0.25);
    transition: all 0.3s ease;
}
body.template-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(166, 124, 82, 0.35);
}