/* ================================
   Scratchpay Vet Plan - Main Stylesheet
   Target: Bing SEO / USA Market
   Style: Minimal, Clean, Friendly
   ================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-blue: #5865F2;
    --coral-red: #FF5757;
    --white: #ffffff;
    --black: #1a1a1a;
    --dark-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --light-blue-bg: #f0f4ff;
    --light-pink-bg: #fff5f8;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #4752d4;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.btn-secondary {
    background-color: var(--coral-red);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e64545;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 87, 87, 0.3);
}

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

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

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== HEADER / NAVIGATION ===== */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}

nav ul li a:hover {
    color: var(--primary-blue);
    background-color: var(--light-blue-bg);
}

nav ul li a.active {
    color: var(--primary-blue);
    background-color: var(--light-blue-bg);
}

/* Legacy class support */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 16px;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu .btn {
    padding: 10px 24px;
    color: var(--white);
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--light-blue-bg) 0%, var(--light-pink-bg) 100%);
    padding: 100px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-text .highlight {
    color: var(--primary-blue);
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: var(--dark-gray);
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ===== FEATURES / BENEFITS ===== */
.features {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 .highlight {
    color: var(--primary-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    background-color: var(--light-gray);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4752d4 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-blue);
    font-size: 1.2rem;
    padding: 16px 40px;
}

.cta-section .btn:hover {
    background-color: var(--light-gray);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.blog-content p {
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.blog-content .read-more {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== FAQ SECTION ===== */
.faq-item {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--light-gray);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #e8e8e8;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
}


/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 24px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 20px;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #4752d4;
    text-decoration: underline;
}

.breadcrumb span {
    color: #1f2937;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #9ca3af;
}


/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none; /* Add mobile menu later */
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
