/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors */
    --color-primary: #6b4c9a;
    --color-primary-dark: #5a3d87;
    --color-primary-light: #8b6cba;
    --color-secondary: #d4a574;
    --color-secondary-light: #e8c9a0;
    --color-accent: #f5c518;

    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-text-muted: #b2bec3;

    --color-bg: #ffffff;
    --color-bg-alt: #f8f6f3;
    --color-bg-dark: #2d3436;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

address {
    font-style: normal;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-2xl) 0;
}

.section-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.header-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.logo-subtext {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.header-cta:hover {
    background: var(--color-primary-dark);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
    background: linear-gradient(135deg, #f8f6f3 0%, #e8e4df 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.hero-rating .stars {
    display: flex;
    gap: 2px;
}

.hero-rating .stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(107, 76, 154, 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: var(--space-sm);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--color-bg);
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.about-text strong {
    color: var(--color-text);
}

.about-contact {
    margin-top: var(--space-lg);
}

.about-note {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    background: var(--color-bg);
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Dogs Gallery - showcase the pups */
.gallery-dogs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.gallery-dogs .gallery-item {
    cursor: pointer;
}

/* Create an interesting masonry layout */
.gallery-dogs .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-dogs .gallery-item:nth-child(2) {
    grid-column: span 2;
}

.gallery-dogs .gallery-item:nth-child(3) {
    grid-column: span 2;
}

.gallery-dogs .gallery-item:nth-child(4) {
    grid-column: span 2;
}

.gallery-dogs .gallery-item:nth-child(5) {
    grid-column: span 2;
}

/* Location Gallery */
.gallery-location {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.gallery-location-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    text-align: center;
}

.gallery-location-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.gallery-location-grid .gallery-item {
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

/* ===================================
   Reviews Section
   =================================== */
.reviews {
    background: var(--color-bg-alt);
}

.reviews-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.reviews-summary .stars {
    display: flex;
    gap: 2px;
}

.reviews-summary .stars svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.reviews-summary span {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.review-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.review-meta strong {
    display: block;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

.review-text {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.reviews-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
}

.contact-details {
    margin-bottom: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-text-block strong {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-text-block a,
.contact-text-block span {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.contact-text-block a:hover {
    color: var(--color-primary);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe {
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.75rem;
}

.footer-brand .logo-subtext {
    color: rgba(255, 255, 255, 0.6);
}

.footer-tagline {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact p,
.footer-hours p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.footer-contact strong,
.footer-hours strong {
    color: white;
}

.footer-phone {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-secondary-light);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-phone:hover {
    color: white;
}

.footer-contact address {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 300px;
    }

    .gallery-dogs {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, 180px);
    }

    .gallery-dogs .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-dogs .gallery-item:nth-child(2),
    .gallery-dogs .gallery-item:nth-child(3),
    .gallery-dogs .gallery-item:nth-child(4),
    .gallery-dogs .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-location-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        padding-top: var(--space-sm);
        padding-bottom: var(--space-sm);
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

    .hero-rating {
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-img {
        max-width: 100%;
    }

    .gallery-dogs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: var(--space-sm);
    }

    .gallery-dogs .gallery-item {
        aspect-ratio: 1 / 1;
    }

    .gallery-dogs .gallery-item:nth-child(1),
    .gallery-dogs .gallery-item:nth-child(2),
    .gallery-dogs .gallery-item:nth-child(3),
    .gallery-dogs .gallery-item:nth-child(4),
    .gallery-dogs .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Make last item span full width only if odd number */
    .gallery-dogs .gallery-item:nth-child(5) {
        grid-column: span 2;
        aspect-ratio: 2 / 1;
    }

    .gallery-location-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .gallery-location-grid .gallery-item {
        aspect-ratio: 16 / 10;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 300px;
    }

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

@media (max-width: 480px) {
    :root {
        --space-2xl: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .review-card {
        padding: var(--space-md);
    }
}

/* ===================================
   Accessibility & Performance
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.lightbox-arrow:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow svg {
        width: 20px;
        height: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
