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

/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
    --cream: #F5F0E1;
    --cream-dark: #E8E1CE;
    --olive: #3D402D;
    --olive-light: #5C6042;
    --olive-lighter: #E8EAE0;
    --terracotta: #C87954;
    --terracotta-dark: #B0664A;
}

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

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

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

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

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

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

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

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

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

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

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

/* ===================================
   Logo Styles
   =================================== */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--olive);
    cursor: pointer;
}

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

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

.logo-footer {
    color: var(--cream);
}

/* ===================================
   Navigation
   =================================== */
#navbar {
    background-color: var(--cream);
}

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

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

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

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

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

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

.btn-primary:hover {
    background-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 121, 84, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--terracotta);
    color: var(--cream);
}

/* ===================================
   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(--terracotta);
    color: var(--cream);
    transform: scale(1.1);
}

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

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

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

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

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

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

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

.survey-content {
    background-color: var(--cream);
    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;
}

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

.survey-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--olive);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.survey-close:hover {
    color: var(--terracotta);
}

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

.survey-progress-bar {
    height: 100%;
    background-color: var(--terracotta);
    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 var(--olive-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--olive);
    font-family: 'Lato', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(200, 121, 84, 0.1);
}

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

.pet-type-btn:hover {
    border-color: var(--terracotta);
    background-color: var(--olive-lighter);
}

.pet-type-btn.active {
    border-color: var(--terracotta);
    background-color: var(--terracotta);
    color: var(--cream);
}

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

.radio-label:hover {
    border-color: var(--terracotta);
    background-color: var(--olive-lighter);
}

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

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

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

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

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

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

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

/* ===================================
   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 {
    transition: all 0.3s ease;
}

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