/* ==========================================================================
   Tema „Waves” — strat global pentru toate paginile (in afara de homepage).
   Se incarca automat din includes/header.php cand tema activa este „waves”.
   ========================================================================== */

/* Paleta + tipografia temei vechi (Travel Island) */
body.theme-waves {
    --sea: #1E4672;
    --sea-soft: #2D659E;
    --ink: #2B4A6B;
    --ink-soft: #5A7184;
    --sand: #EAF4FB;
    --sand-deep: #D8E7F0;
    --paper: #F4FAFE;
    --wood: #C9E1EB;
    --terracotta: #1E4672;
    --terracotta-dark: #113861;
    --sea-glass: #90E0EF;
    --turquoise: #00B4D8;
    --lagoon: #90E0EF;
    --sunset: #EFA80F;
    --font-display: 'Amaranth', 'PT Sans', sans-serif;
    --font-body: 'PT Sans', sans-serif;
}

body.theme-waves:not(.home) {
    background: var(--paper);
}

/* ── Header ─────────────────────────────────────────────────────────────── */
body.theme-waves:not(.home) .site-header {
    background: rgba(234, 245, 252, .96);
    color: #1E4672;
    border-bottom: 1px solid #C9E1EB;
}

body.theme-waves:not(.home) .site-header.is-scrolled {
    background: rgba(234, 245, 252, .98);
    color: #1E4672;
    box-shadow: 0 12px 40px -24px rgba(30, 70, 114, .45);
}

body.theme-waves .brand__mark {
    background: #2D659E;
    color: #ffffff;
}

body.theme-waves .nav-link.is-active {
    color: #B07A3A;
}

/* Titluri in fontul temei */
body.theme-waves h1,
body.theme-waves h2,
body.theme-waves h3,
body.theme-waves h4,
body.theme-waves .brand {
    font-family: 'Amaranth', 'PT Sans', sans-serif;
}

/* ── Capul paginilor: cerul temei, cu valuri jos ───────────────────────── */
body.theme-waves:not(.home) .rates-page-head,
body.theme-waves:not(.home) .gallery-page-head {
    background-color: #CCE6FC;
    background-image:
        url('../img/ti/bg_waves_tile.png'),
        url('../img/ti/bg_details.png'),
        url('../img/ti/bg_sky_water.jpg');
    background-repeat: repeat-x, no-repeat, repeat-x;
    background-position: left bottom, top center, top center;
}

body.theme-waves:not(.home) .rates-page-head h1,
body.theme-waves:not(.home) .gallery-page-head h1 {
    color: #1E4672;
}

/* ── Continut pe fundalul deschis al temei ─────────────────────────────── */
body.theme-waves:not(.home) .rates-section {
    background: transparent;
}

body.theme-waves:not(.home) .section--sand,
body.theme-waves:not(.home) .section--paper {
    background: transparent;
}

/* Tabele si carduri: alb + bordura bleu, ca la chenarul Contact */
body.theme-waves .rates-table-wrap {
    border: 1px solid #D8E7F0;
    box-shadow: 0 18px 40px -34px rgba(30, 70, 114, .55);
}

body.theme-waves .rates-table thead th {
    background: #EAF4FB;
    color: #1E4672;
}

body.theme-waves .rates-table thead th + th {
    border-left-color: #C9E1EB;
}

body.theme-waves .rates-table tbody tr:nth-child(even) {
    background: #F7FBFE;
}

body.theme-waves .rates-table__period {
    color: #1E4672;
}

/* ── Pagina de poveste (pagini custom) ─────────────────────────────────── */
body.theme-waves:not(.home) .story-page {
    background:
        radial-gradient(circle at 12% 0%, rgba(144, 224, 239, .22), transparent 55%),
        linear-gradient(180deg, #1E4672 0%, #113861 100%);
}

body.theme-waves:not(.home) .story-page::before,
body.theme-waves:not(.home) .story-page::after {
    border-color: rgba(255, 255, 255, .14);
}

body.theme-waves:not(.home) .story-card {
    background: #FFFFFF;
}

body.theme-waves:not(.home) .story-card::before {
    border-color: #D8E7F0;
}

/* ── Rezervare ─────────────────────────────────────────────────────────── */
body.theme-waves:not(.home) .booking-page {
    background: linear-gradient(180deg, #EAF4FB 0%, #F4FAFE 100%);
}

body.theme-waves .booking-wizard {
    border-color: #D8E7F0;
    border-radius: 8px;
    box-shadow: 0 24px 60px -40px rgba(30, 70, 114, .55);
}

body.theme-waves .booking-wizard__head {
    background: linear-gradient(135deg, rgba(201, 225, 235, .45), rgba(244, 250, 254, .9));
    border-bottom-color: #C9E1EB;
}

body.theme-waves .booking-wizard__head h1 {
    color: #1E4672;
}

/* ── Footer: widget-uri in stilul chenarelor temei ──────────────────────── */
body.theme-waves:not(.home) .site-footer {
    background: #EAF4FB;
    color: #2B4A6B;
    border-top: 0;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: 0;
}

body.theme-waves:not(.home) .footer-grid,
body.theme-waves:not(.home) .footer-grid--1,
body.theme-waves:not(.home) .footer-grid--2,
body.theme-waves:not(.home) .footer-grid--3 {
    gap: 1rem;
    padding-block: 0 clamp(2rem, 4vw, 3rem);
    border-top: 0;
    align-items: stretch;
}

/* Fiecare coloana devine un card alb, ca la Contact / cele 3 chenare */
body.theme-waves:not(.home) .footer-grid > div {
    overflow: hidden;
    padding-bottom: .9rem;
    background: #ffffff;
    border: 1px solid #D8E7F0;
    border-radius: 6px;
    box-shadow: 0 14px 34px -30px rgba(36, 74, 114, .65);
}

/* Bara albastra cu imaginile temei pentru titlurile widget-urilor */
body.theme-waves:not(.home) .footer-heading {
    position: relative;
    height: 36px;
    margin: 0 0 .7rem;
    padding: 8px 14px 0;
    border-radius: 5px 5px 0 0;
    background: url('../img/ti/bar_box_blue_tile.jpg') repeat-x;
    color: #ffffff;
    font-family: 'Amaranth', 'PT Sans', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    letter-spacing: .02em;
    text-transform: none;
}

body.theme-waves:not(.home) .footer-heading::before,
body.theme-waves:not(.home) .footer-heading::after {
    content: '';
    position: absolute;
    top: 0;
    width: 9px;
    height: 36px;
}

body.theme-waves:not(.home) .footer-heading::before {
    left: 0;
    background: url('../img/ti/bar_box_blue_left.jpg') no-repeat;
}

body.theme-waves:not(.home) .footer-heading::after {
    right: 0;
    background: url('../img/ti/bar_box_blue_right.jpg') no-repeat;
}

/* Listele din widget-uri: randuri cu separator subtire, ca la Contact */
body.theme-waves:not(.home) .footer-links {
    gap: 0;
    margin: 0;
    padding: 0 1rem;
    list-style: none;
    font-size: .8rem;
}

body.theme-waves:not(.home) .footer-links li {
    display: flex;
    align-items: flex-start;
    gap: .4rem;
    padding: .4rem 0;
    border-bottom: 1px solid #C9E1EB;
    color: #2B4A6B;
    font-size: .8rem;
    line-height: 1.45;
}

body.theme-waves:not(.home) .footer-links li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

body.theme-waves:not(.home) .footer-links a {
    color: #2B4A6B;
    text-decoration: none;
}

body.theme-waves:not(.home) .footer-links a:hover {
    color: #2D659E;
    text-decoration: underline;
}

body.theme-waves:not(.home) .footer-links .icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin-top: .15rem;
    color: #2D659E;
}

/* Coloana de brand: acelasi card, cu bara albastra pe numele site-ului */
body.theme-waves:not(.home) .footer-brand {
    padding: 0 0 .9rem;
    align-items: stretch;
}

body.theme-waves:not(.home) .footer-brand .footer-logo {
    position: relative;
    display: block;
    width: 100%;
    height: 36px;
    margin: 0 0 .8rem;
    padding: 8px 14px 0;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: url('../img/ti/bar_box_blue_tile.jpg') repeat-x;
    color: #ffffff;
    font-family: 'Amaranth', 'PT Sans', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.theme-waves:not(.home) .footer-brand .footer-logo::before,
body.theme-waves:not(.home) .footer-brand .footer-logo::after {
    content: '';
    position: absolute;
    top: 0;
    width: 9px;
    height: 36px;
}

body.theme-waves:not(.home) .footer-brand .footer-logo::before {
    left: 0;
    background: url('../img/ti/bar_box_blue_left.jpg') no-repeat;
}

body.theme-waves:not(.home) .footer-brand .footer-logo::after {
    right: 0;
    background: url('../img/ti/bar_box_blue_right.jpg') no-repeat;
}

body.theme-waves:not(.home) .footer-brand .footer-logo:hover {
    color: #ffffff;
    opacity: .92;
}

body.theme-waves:not(.home) .footer-tagline,
body.theme-waves:not(.home) .footer-brand p {
    margin: 0 1rem .8rem;
    color: #5A7184;
    font-size: .8rem;
    line-height: 1.6;
}

body.theme-waves:not(.home) .footer-social {
    margin: auto 1rem 0;
}

body.theme-waves:not(.home) .footer-social a {
    width: 34px;
    height: 34px;
    border-color: #C9E1EB;
    color: #1E4672;
}

body.theme-waves:not(.home) .footer-social a:hover {
    background: #1E4672;
    border-color: #1E4672;
    color: #ffffff;
}

body.theme-waves:not(.home) .footer-social .icon {
    width: 16px;
    height: 16px;
}

/* Decalul de nisip al temei (footer_tile + footer_detail), ca pe homepage */
body.theme-waves .footer-decal {
    position: relative;
    height: 306px;
    margin-top: clamp(1.2rem, 2.5vw, 2rem);
    background: url('../img/ti/footer_tile.png') repeat-x;
}

body.theme-waves .footer-decal::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../img/ti/footer_detail.png') no-repeat center bottom;
    pointer-events: none;
}

body.theme-waves .footer-decal__inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 2;
    text-align: center;
    color: #2B4A6B;
    font-family: 'PT Sans', sans-serif;
    font-size: .85rem;
}

body.theme-waves .footer-decal__inner p {
    margin: 0 0 .2rem;
}

body.theme-waves .footer-decal__inner a {
    color: #2D659E;
    text-decoration: none;
}

body.theme-waves .footer-decal__inner a:hover {
    color: #EFA80F;
}

@media (max-width: 720px) {
    body.theme-waves .footer-decal { height: 190px; }
    body.theme-waves .footer-decal__inner { bottom: 14px; }
}
