/* ==========================================================================
   Variables i Resets
   ========================================================================== */
:root {
    --color-text: #928875;
    --color-bg: #07272D;
    --color-accent: #600C1C;

    /* Fonts equivalents demanades */
    --font-title: 'EB Garamond', serif;        /* Minion */
    --font-clean: 'Inter', sans-serif;          /* Acumin */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 120px; /* Espai per a evitar que el contingut trepitgi el patró inferior */
}

/* ==========================================================================
   Contenidor Principal (Landing)
   ========================================================================== */
.landing-container {
    width: 100%;
    max-width: 600px;
    padding: 60px 20px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2; /* Per sobre dels fons decoratius */
}

/* Símbol superior */
.logo-symbol {
    width: 50px;
    height: auto;
    margin-bottom: 15px;
}

.logo-symbol img {
    width: 100%;
    height: auto;
    display: block;
}

/* Títols d'El Barito */
.main-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1.1;
    text-transform: uppercase;
}

.subtitle {
    font-family: var(--font-clean);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    margin-top: 5px;
    text-transform: uppercase;
    opacity: 0.9;
}

.welcome {
    max-width: 50%;
    margin: 25px auto;
}
.welcome img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Since 1991 */
.since-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.since-label {
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.since-year {
    font-family: var(--font-clean);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

/* Filigrana central */
.filigree {
    max-width: 90px;
    margin: 15px auto;
}
.filigree img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Adreça */
.location {
    font-family: var(--font-clean);
    font-style: normal;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: -0.05em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* ==========================================================================
   Caixa de Reserva i Línia Vermella
   ========================================================================== */
.reserve-box {
    width: min(100%, 200px);
    border: 2px solid var(--color-text);
    padding: 10px 12px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
    z-index: 3;
    text-transform: uppercase;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.reserve-title {
    width: 100%;
    padding-bottom: 3px;
    border-bottom: 3px solid currentColor;
    font-family: 'Six Caps', var(--font-clean);
    font-size: clamp(1.3rem, 6vw, 1.85rem);
    line-height: 1.10;
}

.reserve-phone {
    width: 100%;
    padding: 2px 0 3px;
    border-bottom: 3px solid currentColor;
    font-family: var(--font-title);
    font-size: clamp(1.55rem, 5.5vw, 1.9rem);
    line-height: 1.05;
    letter-spacing: 0.08em;
    font-weight: 400;
    white-space: nowrap;
}

.reserve-box:hover,
.reserve-box:focus-visible {
    color: #b0a590;
    border-color: #b0a590;
}

.reserve-box:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* ==========================================================================
   Patró Inferior de Rajoles (rajola.svg)
   ========================================================================== */
.bottom-pattern {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Ajusta l'alçada segons la mida que vulguis que ocupi */
    background-image: url('img/rajola.svg');
    background-repeat: repeat;
    background-position: bottom center;
    background-size: auto 40px; /* El patró s'escalarà en alçada i es repetirà horitzontalment */
    z-index: 4; /* Queda per sobre de la línia vermella d'accent tal com es veu a la imatge */
    pointer-events: none;
}

/* ==========================================================================
   Ajustos de Responsivitat (Opcional)
   ========================================================================== */
@media (max-width: 480px) {
    .main-title {
        font-size: 2.2rem;
    }
    .welcome-text {
        font-size: 3.2rem;
    }
    .location {
        font-size: 0.7rem;
    }
    .bottom-pattern {
        height: 90px; /* Més petita a mòbils per no menjar-se pantalla */
        background-size: auto 30px; /* El patró s'escalarà en alçada i es repetirà horitzontalment */
    }
}
