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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

/* CSS Variables for Spanish Theme Colors */
:root {
    --primary-red: #c41e3a;
    --secondary-gold: #ffd700;
    --accent-orange: #ff6b35;
    --warm-cream: #faf5f0;
    --dark-brown: #4a3728;
    --light-gold: #fff8dc;
    --deep-red: #8b0000;
    --spanish-yellow: #ffbf00;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --border-light: #e8e8e8;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-shadow: rgba(0, 0, 0, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-red);
}

h2 {
    font-size: 2rem;
    color: var(--dark-brown);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-red);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
    color: white;
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-red), var(--primary-red));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--hover-shadow);
    color: white;
}

.btn-secondary {
    background: var(--secondary-gold);
    color: var(--dark-brown);
    box-shadow: 0 4px 8px var(--shadow);
}

.btn-secondary:hover {
    background: var(--spanish-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--hover-shadow);
    color: var(--dark-brown);
}

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

.btn-outline:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--warm-cream), white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo .logo-img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-red);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--warm-cream), var(--light-gold));
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
    text-shadow: 2px 2px 4px var(--shadow);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-brown);
    margin-bottom: 2rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red), var(--deep-red));
    color: white;
    text-align: center;
    padding: 4rem 0 2rem;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--light-gold);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section:nth-child(even) {
    background: var(--warm-cream);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

/* Grid Layouts */
.services-grid,
.achievements-grid,
.recipes-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.service-card,
.value-card,
.recipe-card,
.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover,
.value-card:hover,
.recipe-card:hover,
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.service-icon,
.recipe-icon,
.member-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: block;
}

/* Achievements */
.achievements-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.achievement-item {
    text-align: center;
    padding: 2rem;
}

.achievement-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.achievement-text {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Goals */
.goals-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.goal-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    border-left: 5px solid var(--primary-red);
}

/* Recipe Categories */
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-light);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Recipe Details */
.recipe-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-light);
}

.recipe-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.recipe-difficulty {
    background: var(--secondary-gold);
    color: var(--dark-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.recipe-ingredients {
    text-align: left;
    margin-top: 1rem;
}

.recipe-ingredients h4 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.recipe-ingredients ul {
    list-style: none;
    padding-left: 0;
}

.recipe-ingredients li {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
}

.recipe-ingredients li:last-child {
    border-bottom: none;
}

/* Chef Note */
.chef-note {
    background: linear-gradient(135deg, var(--warm-cream), var(--light-gold));
    text-align: center;
}

.chef-note-content {
    max-width: 800px;
    margin: 0 auto;
}

.chef-signature {
    font-style: italic;
    color: var(--primary-red);
    font-weight: bold;
    margin-top: 1rem;
}

/* Team */
.team-member.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    text-align: left;
    padding: 3rem;
    background: linear-gradient(135deg, var(--warm-cream), white);
    border: 3px solid var(--secondary-gold);
}

.member-specialties ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.member-specialties li {
    background: var(--light-gold);
    color: var(--dark-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.team-philosophy,
.join-team {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-top: 3rem;
    text-align: center;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 1rem;
}

.contact-card i {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-details h3 {
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
}

.contact-details small {
    color: var(--text-light);
    font-style: italic;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Contact Info Grid */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Map */
.map-container {
    background: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

.map-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.location-details ul {
    list-style: none;
    margin-top: 1rem;
}

.location-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

/* FAQ */
.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 1rem;
}

.faq-item h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
    text-align: center;
    padding: 4rem 0;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    color: var(--secondary-gold);
}

.main-message {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.response-steps {
    list-style: none;
    margin: 2rem 0;
}

.response-steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.response-steps i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.auto-redirect {
    background: var(--light-gold);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 2rem;
    color: var(--dark-brown);
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-large a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.social-links-large a:hover {
    transform: translateY(-2px);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.offer-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Legal Pages */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-document {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.legal-section h3 {
    color: var(--dark-brown);
    margin: 1.5rem 0 1rem;
}

.legal-section h4 {
    color: var(--text-dark);
    margin: 1rem 0 0.5rem;
}

.legal-section ul,
.legal-section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Cookie Table */
.cookie-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cookie-table th {
    background: var(--primary-red);
    color: white;
    font-weight: bold;
}

.cookie-table tr:hover {
    background: var(--warm-cream);
}

.cookie-controls {
    margin: 2rem 0;
    text-align: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-red));
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 15px var(--shadow);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

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

.cookie-content h3 {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 1.5rem;
    color: white;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 5px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

.cookie-category p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cookie-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-brown), var(--primary-red));
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-gold);
    color: var(--dark-brown);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Transitions */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary-gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
