/* 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 {
    /* Color Palette: Warm Farmhouse Neutrals (site default) */
    --bg-cream: #F7F3EE;
    --text-dark: #3A3A3A;
    --text-muted: #6B6058;

    --primary: #A67C52;       /* Soft Brown */
    --primary-light: #C9A86A; /* Muted Gold, used as a lighter brown accent */
    --primary-dark: #8E653C;  /* Deep Brown */
    --accent: #C9A86A;        /* Muted Gold */
    --accent-light: #D9C2A7;  /* Warm Tan */

    /* Status badges */
    --status-available: #4A7C59;
    --status-reserved: #D97706;
    --status-sold: #EF4444;

    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E3DDD5;
    --footer-bg: #3A3A3A;

    --shadow-sm: 0 4px 10px rgba(107, 96, 88, 0.04);
    --shadow-md: 0 10px 30px rgba(107, 96, 88, 0.08);
    --shadow-lg: 0 20px 50px rgba(107, 96, 88, 0.12);

    --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;
}

/* Footer */
.main-footer,
footer {
    background-color: var(--footer-bg);
    color: #F7F3EE;
    padding: 64px 0 32px;
    border-top: 4px solid var(--accent);
    text-align: left;
}

.footer-grid,
.footer-grid-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo,
.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-brand-col p,
.footer-brand p {
    color: var(--accent-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--accent);
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-col-title {
    color: #FFF;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-list a {
    color: var(--accent-light);
    font-size: 0.9rem;
}

.footer-link-list a:hover {
    color: var(--accent);
}

.footer-copyright,
.footer-bottom {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-copyright a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

/* Utility classes */
.text-center { text-align: center; }
.mobile-hide { }

/* ===================================================================
   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; }

    .section { padding: 56px 0; }
    .section-header { margin-bottom: 32px; }

    .features-grid,
    .puppy-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .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; }
}