/* ===================================
   Custom Tailwind Configuration
   =================================== */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
    --cream: #FFFFFF;
    --cream-dark: #F5F5F5;
    --olive: #8FA393;
    --olive-light: #A8B5A9;
    --olive-lighter: #E8EDE9;
    --terracotta: #FFFFFF;
    --terracotta-dark: #F0F0F0;
    --sage-green: #6B8576;
    --sage-green-dark: #5A7465;
    --sage-green-light: #E8F0ED;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
}

/* ===================================
   Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--cream);
}

/* ===================================
   Typography
   =================================== */
.font-heading {
    font-family: 'Playfair Display', serif;
}

.font-body {
    font-family: 'Lato', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================
   Color Classes
   =================================== */
.bg-cream {
    background-color: var(--cream);
}

.bg-olive {
    background-color: var(--sage-green);
}

.bg-olive-lighter {
    background-color: var(--sage-green-light);
}

.bg-sage-green {
    background-color: var(--sage-green);
}

.bg-sage-green-light {
    background-color: var(--sage-green-light);
}

.text-sage-green {
    color: var(--sage-green);
}

.text-cream {
    color: var(--cream);
}

.text-olive {
    color: var(--sage-green);
}

.text-olive-light {
    color: var(--text-secondary);
}

.text-terracotta {
    color: var(--sage-green);
}

.border-cream-dark {
    border-color: var(--cream-dark);
}

.border-olive {
    border-color: var(--sage-green);
}

.border-terracotta {
    border-color: var(--sage-green);
}

/* ===================================
   Logo Styles
   =================================== */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--sage-green);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--sage-green);
    flex-shrink: 0;
}

.logo-icon-footer {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.logo-zampetta {
    font-weight: 400;
}

.logo-box {
    font-style: italic;
    font-weight: 300;
}

.logo-footer {
    color: #FFFFFF;
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    background-color: #FFFFFF;
}

#navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--sage-green);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--sage-green-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sage-green-dark);
    transition: width 0.3s ease;
}

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

/* ===================================
   Buttons
   =================================== */
.btn-primary {
    background-color: var(--sage-green);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--sage-green);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--sage-green-dark);
    color: #FFFFFF;
    border-color: var(--sage-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(143, 163, 147, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--sage-green);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--sage-green);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--sage-green);
    color: #FFFFFF;
}

.btn-navbar {
    background-color: var(--sage-green);
    color: #FFFFFF;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
}

.btn-navbar:hover {
    background-color: var(--sage-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(143, 163, 147, 0.3);
}

.btn-hero {
    background-color: var(--sage-green);
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(143, 163, 147, 0.25);
}

.btn-hero:hover {
    background-color: var(--sage-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(143, 163, 147, 0.35);
}

/* ===================================
   Icons
   =================================== */
.icon-circle {
    width: 100px;
    height: 100px;
    background-color: var(--olive-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--olive);
    transition: all 0.3s ease;
}

.icon-circle:hover {
    background-color: var(--sage-green);
    color: #FFFFFF;
    transform: scale(1.1);
}

.icon-step {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--sage-green);
}

.icon-step-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2D2D2D;
    width: 60px;
    height: 60px;
}

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

.icon-circle-large {
    width: 150px;
    height: 150px;
    background-color: var(--olive-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olive);
    position: relative;
}

/* ===================================
   Pricing Card
   =================================== */
.pricing-card {
    background-color: white;
    border: 3px solid var(--olive);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* New Pricing Cards */
.pricing-card-new {
    background-color: #FFFFFF;
    border: 2px solid #E5E5E5;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--sage-green);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card-new ul {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    flex-grow: 1;
}

.pricing-card-featured {
    background-color: var(--sage-green);
    border: 2px solid var(--sage-green);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(143, 163, 147, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFFFFF;
    position: relative;
    transform: scale(1.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-featured:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 40px rgba(143, 163, 147, 0.4);
}

.pricing-card-featured ul {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.8;
    flex-grow: 1;
}

/* Pricing Card Buttons */
.btn-plan-outline {
    background-color: var(--sage-green);
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 2px solid var(--sage-green);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-plan-outline:hover {
    background-color: var(--sage-green-dark);
    border-color: var(--sage-green-dark);
    transform: translateY(-2px);
}

.btn-plan-white {
    background-color: #FFFFFF;
    color: var(--sage-green);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: 2px solid #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.btn-plan-white:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */
.footer-link {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--sage-green);
}

.footer-link-new {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-link-new:hover {
    color: var(--sage-green);
}

.social-icon {
    color: var(--cream);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon:hover {
    color: var(--sage-green);
    transform: translateY(-3px);
}

.social-icon-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #374151;
    color: #9CA3AF;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-icon-new:hover {
    background-color: var(--sage-green);
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* ===================================
   Survey Modal
   =================================== */
.survey-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(143, 163, 147, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.survey-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-content {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 700px;
    width: 100%;
    position: relative;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.survey-close {
    position: sticky;
    top: 0;
    right: 0;
    background: white;
    border: none;
    font-size: 1.5rem;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.survey-close:hover {
    background-color: var(--sage-green-light);
    color: var(--sage-green);
}

/* Progress Bar */
.survey-progress-container {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.survey-progress-bar {
    height: 100%;
    background-color: var(--sage-green);
    transition: width 0.4s ease;
    width: 33.33%;
}

/* Survey Steps */
.survey-step {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.survey-step.hidden {
    display: none;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: #1F2937;
    font-family: 'Lato', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(143, 163, 147, 0.1);
}

/* Pet Type Buttons */
.pet-type-btn {
    padding: 2rem 1rem;
    border: 3px solid #E5E7EB;
    border-radius: 12px;
    background-color: white;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.pet-type-btn:hover {
    border-color: var(--sage-green);
    background-color: var(--sage-green-light);
}

.pet-type-btn.active {
    border-color: var(--sage-green);
    background-color: var(--sage-green);
    color: #FFFFFF;
}

/* Radio Labels */
.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.radio-label:hover {
    border-color: var(--sage-green);
    background-color: var(--sage-green-light);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--sage-green);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    .survey-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .pricing-card,
    .pricing-card-new,
    .pricing-card-featured {
        padding: 2rem 1.5rem;
    }

    .pricing-card-featured {
        transform: scale(1);
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem !important;
    }

    .icon-circle {
        width: 80px;
        height: 80px;
    }

    .icon-circle i {
        font-size: 2rem;
    }

    /* Hero Section Mobile */
    #hero {
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    #hero h1 {
        font-size: 2.25rem !important;
    }

    #hero p {
        font-size: 1.125rem !important;
    }

    /* Pricing Cards Mobile */
    .pricing-card-new,
    .pricing-card-featured {
        margin-bottom: 1rem;
    }

    /* Footer Mobile */
    footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===================================
   Hero Section
   =================================== */
#hero {
    background-color: #FFFFFF;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
    max-width: 1200px;
}

section {
    scroll-margin-top: 80px;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

/* Remove transitions from inputs and buttons for performance */
input, button, select, textarea {
    transition-property: none;
}

/* Re-add specific transitions for interactive elements */
button, .btn-primary, .btn-secondary, .btn-navbar {
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effects */
.pricing-card-new,
.pricing-card-featured {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Christmas Modal Pet Type Buttons */
.pet-type-btn-christmas {
    padding: 2rem 1rem;
    border: 3px solid #E5E7EB;
    border-radius: 12px;
    background-color: white;
    color: #1F2937;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Lato', sans-serif;
}

.pet-type-btn-christmas:hover {
    border-color: var(--sage-green);
    background-color: var(--sage-green-light);
}

.pet-type-btn-christmas.active {
    border-color: var(--sage-green);
    background-color: var(--sage-green);
    color: #FFFFFF;
}

/* Christmas Badge */
.badge-christmas {
    background: linear-gradient(135deg, #c41e3a 0%, #a91d2e 100%);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.badge-christmas:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
    transition: all 0.3s ease;
}

/* Christmas Modal - Instagram Browser Fix */
/* Fix for small screens and Instagram in-app browser */
@media (max-height: 700px) {
    .survey-modal.active {
        align-items: flex-start;
        padding: 0.5rem;
    }
    
    .survey-content {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        max-height: calc(100vh - 1rem);
        overflow-y: auto;
        padding: 2rem 1.5rem;
    }
    
    /* Make close button sticky and always visible */
    .survey-close {
        position: sticky;
        top: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
        margin-left: auto;
        margin-bottom: 1rem;
    }
    
    .survey-close:hover {
        background-color: #f3f4f6;
    }
    
    /* Reduce spacing on small screens */
    #christmas-modal .icon-circle-large {
        width: 80px;
        height: 80px;
    }
    
    #christmas-modal .icon-circle-large i {
        font-size: 3rem;
    }
    
    #christmas-modal h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    #christmas-modal p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    #christmas-modal .mb-6,
    #christmas-modal .mb-8 {
        margin-bottom: 1rem;
    }
}

/* Extra small screens (Instagram browser on small phones) */
@media (max-height: 600px) {
    .survey-content {
        padding: 1.5rem 1rem;
    }
    
    #christmas-modal h2 {
        font-size: 1.25rem;
    }
    
    #christmas-modal .pet-type-btn-christmas {
        padding: 1rem 0.5rem;
    }
    
    #christmas-modal .pet-type-btn-christmas i {
        font-size: 2.5rem;
    }
}
