/* 
 * Theme Terra Override 
 * Matches visually with cliente.alejandrobriz.es
 */

:root:not([data-theme="dark"]) {
    /* Color Palette - Terra Theme */
    --primary: #9B4F29;
    /* Brighter version of the button for links/accents */
    --primary-soft: rgba(155, 79, 41, 0.1);
    --secondary: #A0522D;

    --bg-body: #F4EFE6;
    --info: #0ea5e9;
    /* Ivory / warm white */
    --bg-card: #FFFFFF;
    --bg-surface: #E6DED2;
    /* Soft warm grey/beige */
    --bg-surface-soft: #F4EFE6;

    --text-main: #3E2723;
    /* Deep brown / almost black */
    --text-muted: #6B4E45;
    --text-light: #A58B80;

    --border-main: #E2DBD0;
    --border-glass: rgba(62, 39, 35, 0.08);

    --shadow-sm: 0 4px 15px rgba(62, 39, 35, 0.05);
    --shadow-md: 0 10px 30px -10px rgba(62, 39, 35, 0.15);
    --shadow-lg: 0 20px 50px -18px rgba(62, 39, 35, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* Typography Overrides */
body {
    font-family: 'Lato', sans-serif;
}

h1,
h2,
h3,
h4,
.brand-font {
    font-family: 'Merriweather', serif;
    font-weight: 400;
}

/* Specific Component Overrides */

/* Gradients for text or buttons should use the Terra gradient */
.brand-lite {
    background: none;
    -webkit-text-fill-color: var(--text-main);
    color: var(--text-main);
}

/* Header & Navigation */
.glass-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 239, 230, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.navbar-content {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link-public {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.btn-subtle {
    background: transparent;
    border: 1px solid var(--border-main);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-subtle:hover {
    background: var(--bg-surface);
    border-color: var(--text-light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

/* Hero Section */
.hero {
    padding: 100px 0 140px;
    text-align: center;
    background: var(--bg-surface-soft);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary {
    background: linear-gradient(135deg, #6B3E26, #A0522D);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 12px 30px rgba(62, 39, 35, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5D351F, #8F4926);
    box-shadow: 0 16px 40px rgba(62, 39, 35, 0.4);
    transform: translateY(-2px);
}

/* Fix Hero Gradient Text to solid dark brown */
.hero h1 {
    background: none;
    -webkit-text-fill-color: var(--text-main);
    color: var(--text-main);
}

/* Footer override to match main site */
.public-footer {
    background: #3E2723;
    color: #F4EFE6;
    border-top: none;
}

.public-footer .brand-font,
.public-footer p {
    color: #F4EFE6;
}

.public-footer .text-muted {
    color: #BCAAA4;
}

.public-footer .text-light {
    color: #8D7A73;
}

/* Booking Bar Refinements */
.booking-bar {
    padding: 1.5rem;
    margin-top: -3rem;
    /* Pull it up into the hero section slightly */
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-main);
}

.booking-bar-form {
    align-items: end;
    /* Align items to the bottom so inputs and button align */
    gap: 1.5rem;
}

.booking-bar .form-group {
    margin-bottom: 0;
}

.booking-bar .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.875rem;
}

.booking-bar .form-control {
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-main);
    height: 3.5rem;
    /* Fixed height for inputs */
    font-size: 1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 0 1rem;
}

.booking-bar .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.booking-bar .form-submit {
    display: flex;
    align-items: flex-end;
}

.booking-bar .btn-block {
    width: 100%;
    height: 3.5rem;
    /* Match input height */
    font-size: 1rem;
    border-radius: var(--radius-md);
}

@media (max-width: 767px) {
    .hero {
        padding: 60px 0 100px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .booking-bar {
        padding: 1.25rem;
        margin-top: -3rem;
    }

    .booking-bar-form {
        align-items: stretch;
        gap: 1rem;
    }

    .booking-bar .btn-block {
        margin-top: 0.5rem;
    }

    .glass-navbar .container {
        flex-direction: column;
        height: auto !important;
        padding: 1rem;
        gap: 0.75rem;
    }
}

/* Lucide Icons Visibility Fix */
svg.lucide,
.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}