/* Custom styles for El Corral de Baró */

:root {
    --primary-color: #2c5530;
    --secondary-color: #8fbc8f;
    --accent-color: #d4a574;
    --text-dark: #2d3748;
    --text-light: #718096;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar-brand {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}

/* Logo sizing */
.navbar-brand img {
    max-height: 179px !important;
    width: auto !important;
}

footer img {
    max-height: 128px !important;
    width: auto !important;
}

/* Override Tailwind height classes for logos */
.h-8 {
    height: 179px !important;
}

.h-6 {
    height: 128px !important;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3a21;
    border-color: #1e3a21;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #f0f9ff;
    color: #0c4a6e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Flatpickr customization */
.flatpickr-calendar {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.flatpickr-day:hover {
    background: var(--secondary-color);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom spacing */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Text utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

/* Google Translate Widget Customization */
#google_translate_element {
    text-align: right;
}

.goog-te-gadget {
    font-family: 'Inter', sans-serif !important;
    font-size: 0 !important;
}

.goog-te-gadget-simple {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.goog-te-gadget-simple:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    color: #ffffff !important;
}

.goog-te-gadget-simple .goog-te-menu-value:before {
    content: "🌐 ";
    margin-right: 5px;
}

/* Hide Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Customize dropdown menu */
.goog-te-menu-frame {
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #google_translate_element {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .goog-te-gadget-simple {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

/* Card clicable amb efecte hover */
.card-clickable:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(44, 85, 48, 0.2) !important;
    border: 2px solid var(--primary-color) !important;
}

.card-clickable {
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.card-clickable:hover .card-title {
    color: var(--primary-color) !important;
}
