/*
Theme Name: MyCatIsCute
Theme URI: https://mycatiscute.com
Author: MyCatIsCute Team
Author URI: https://mycatiscute.com
Description: A cat-savvy WordPress theme for cat adoption and services directory
Version: 1.0.0
Template: hello-elementor
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mycatiscute
Tags: adoption, directory, cats, pets, local-business
*/

/* 
====================================
TABLE OF CONTENTS:
====================================
1. CSS Variables (Design System)
2. Reset & Base Styles
3. Typography
4. Layout (Container, Grid)
5. Header & Navigation
6. Buttons
7. Forms & Inputs
8. Hero Section
9. Adoption Cards
10. Service Cards
11. Business Listing Cards
12. Footer
13. Utility Classes
14. Responsive
====================================
*/

/* ====================================
   1. CSS VARIABLES - DESIGN SYSTEM
   ==================================== */
:root {
    /* Cat-friendly color palette */
    --color-cream: #FFF8F0;
    --color-peach: #FFD4B8;
    --color-coral: #FF9B7C;
    --color-rust: #E86F50;
    --color-brown: #8B5A3C;
    --color-sage: #A8C69F;
    --color-mint: #D4EBD0;
    --color-sky: #B4D4E1;
    --color-lavender: #D4C5E8;
    
    /* Neutrals */
    --color-charcoal: #3A3A3C;
    --color-gray: #6B6B70;
    --color-light-gray: #E8E8EA;
    --color-white: #FFFFFF;
    
    /* Semantic colors */
    --color-success: #7EBB7E;
    --color-warning: #F5A65B;
    --color-error: #E74C3C;
    
    /* Typography */
    --font-display: 'Fredoka', 'Comic Sans MS', cursive;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing scale */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* Border radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ====================================
   2. RESET & BASE STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-rust);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-brown);
}

/* ====================================
   3. TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
}

p {
    color: var(--color-gray);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

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

.container-narrow {
    max-width: 800px;
}

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

@media (max-width: 768px) {
    .section {
        padding: var(--space-xl) 0;
    }
}

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

.section-title {
    color: var(--color-brown);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

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

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

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ====================================
   5. HEADER & NAVIGATION
   ==================================== */
.header {
    background: var(--color-white);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-rust);
}

.nav {
    display: none;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--color-charcoal);
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 12px;
}

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

.nav-link.special {
    color: var(--color-rust);
    font-weight: 600;
}

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--space-sm) 0;
    margin-top: 8px;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu li {
    list-style: none;
}

.sub-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-charcoal);
    transition: background var(--transition-fast);
}

.sub-menu a:hover {
    background: var(--color-mint);
    color: var(--color-brown);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--color-charcoal);
    position: relative;
    transition: background var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background: var(--color-charcoal);
    transition: transform var(--transition-base);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ====================================
   6. BUTTONS
   ==================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: var(--color-rust);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

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

.btn-accent {
    background: var(--color-rust);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(232, 111, 80, 0.3);
}

.btn-accent:hover {
    background: var(--color-brown);
    box-shadow: 0 6px 16px rgba(232, 111, 80, 0.4);
    transform: translateY(-2px);
    color: var(--color-white);
}

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

.btn-secondary:hover {
    background: var(--color-peach);
    color: var(--color-brown);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* ====================================
   7. FORMS & INPUTS
   ==================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-rust);
}

.search-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-lg);
}

.search-box {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 640px) {
    .search-box {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
    }
}

/* ====================================
   8. HERO SECTION
   ==================================== */
.hero {
    background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-cream) 100%);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23FFF8F0' d='M0,100 Q360,150 720,100 T1440,100 L1440,200 L0,200 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--color-brown);
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
}

.hero-cats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.cat-silhouette {
    width: 80px;
    height: 80px;
    opacity: 0.6;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.age-notice {
    background: var(--color-white);
    border: 2px solid var(--color-rust);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.age-notice-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-rust);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.age-notice p {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin: 0;
}

.quick-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.cat-tag {
    background: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-light-gray);
    font-weight: 500;
    color: var(--color-charcoal);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.9rem;
}

.cat-tag:hover {
    background: var(--color-mint);
    border-color: var(--color-sage);
    transform: scale(1.05);
}

/* ====================================
   9. ADOPTION CARDS
   ==================================== */
.adoption-section {
    background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-white) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.cat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-rust), var(--color-coral));
}

.cat-illustration {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-peach) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    position: relative;
    overflow: hidden;
}

.cat-placeholder {
    width: 120px;
    height: 120px;
    opacity: 0.3;
}

.cat-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-brown);
    margin-bottom: var(--space-xs);
}

.cat-meta {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.cat-badge {
    background: var(--color-peach);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brown);
}

.cat-description {
    color: var(--color-gray);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.cat-rescue {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--color-cream);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.location-pin {
    width: 16px;
    height: 16px;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-rust) 0%, var(--color-coral) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    color: var(--color-white);
    margin-top: var(--space-xl);
}

.cta-box h3 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-md);
}

.cta-stats {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ====================================
   10. SERVICE CARDS
   ==================================== */
.service-card {
    background: var(--color-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-align: center;
    border: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-sage);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: var(--color-mint);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-sage);
}

.service-card h3 {
    color: var(--color-brown);
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.service-link {
    color: var(--color-rust);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition-fast);
}

.service-link:hover {
    gap: 8px;
}

/* ====================================
   11. BUSINESS LISTING CARDS
   ==================================== */
.listing-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.listing-icon-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-peach) 100%);
}

.listing-content {
    padding: var(--space-md);
}

.listing-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-charcoal);
}

.badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open {
    background: #D1FAE5;
    color: var(--color-success);
}

.badge-featured {
    background: var(--color-peach);
    color: var(--color-rust);
}

.rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.stars {
    color: #F59E0B;
}

.listing-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--color-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* ====================================
   12. FOOTER
   ==================================== */
.footer {
    background: var(--color-brown);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg) 0;
}

.footer-grid {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-md);
    text-align: center;
}

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

/* ====================================
   13. UTILITY CLASSES
   ==================================== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

/* ====================================
   14. RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .hero {
        padding: var(--space-xl) 0;
    }
    
    .section {
        padding: var(--space-xl) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}
