/*
 Theme Name:   BeTheme Child - Villa Caunes
 Theme URI:
 Description:  BeTheme Child Theme for Villa Caunes-Minervois
 Author:       George Tate
 Author URI:
 Template:     betheme
 Version:      1.1
 Text Domain:  betheme-child
*/

/* ============================================
   VILLA CAUNES — CUSTOM STYLES v1.1
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600&display=swap');

/* --- Colour palette --- */
:root {
    --gold:          #C9A84C;
    --gold-dark:     #a8883a;
    --dark-navy:     #2C3E50;
    --dark-navy-deep:#1a252f;
    --cream:         #FAFAF6;
    --cream-mid:     #F2EFE8;
    --warm-grey:     #8C8C8C;
    --text:          #444444;
    --text-light:    #666666;
    --terracotta:    #C0714F;
    --airbnb:        #FF5A5F;
}

/* --- Base typography --- */
body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-navy);
    line-height: 1.25;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }

a { color: var(--gold); transition: color 0.2s ease; }
a:hover { color: var(--gold-dark); }

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.vcm-lang-bar {
    background-color: var(--dark-navy-deep);
    text-align: right;
    padding: 7px 28px;
    font-size: 0.76rem;
}

.vcm-lang-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

.vcm-lang-link:hover { color: var(--gold); }

.vcm-flag { font-size: 1rem; line-height: 1; }

.vcm-lang-label { text-transform: uppercase; }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary,
a.btn-primary {
    background-color: var(--gold);
    color: #fff !important;
    padding: 14px 38px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn-primary:hover,
a.btn-primary:hover {
    background-color: var(--gold-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-secondary,
a.btn-secondary {
    background-color: transparent;
    color: var(--dark-navy) !important;
    padding: 13px 36px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid var(--dark-navy);
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background-color: var(--dark-navy);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-outline-white,
a.btn-outline-white {
    background-color: transparent;
    color: #fff !important;
    padding: 13px 36px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: 2px solid rgba(255,255,255,0.6);
    display: inline-block;
    transition: all 0.25s ease;
}

.btn-outline-white:hover,
a.btn-outline-white:hover {
    background-color: #fff;
    color: var(--dark-navy) !important;
    border-color: #fff;
}

.btn-airbnb,
a.btn-airbnb {
    background-color: var(--airbnb);
    color: #fff !important;
    padding: 14px 38px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    border: none;
    display: inline-block;
    transition: background 0.25s ease, transform 0.15s ease;
}

.btn-airbnb:hover,
a.btn-airbnb:hover {
    background-color: #e0484d;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ============================================
   HERO
   ============================================ */

.villa-hero {
    position: relative;
    height: 90vh;
    min-height: 580px;
    background-image: url('https://static.wixstatic.com/media/23e963_8d774244da9948d1b297ddca147896d9~mv2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.villa-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}

.villa-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 820px;
    padding: 0 24px;
}

.villa-hero-content .eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 18px;
}

.villa-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.villa-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 38px;
    font-weight: 300;
    letter-spacing: 0.06em;
    line-height: 1.75;
}

.villa-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   STATS BAR
   ============================================ */

.villa-stats {
    background-color: var(--dark-navy);
    padding: 36px 20px;
}

.villa-stats-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
    text-align: center;
}

.villa-stat { color: #fff; }

.villa-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    display: block;
    line-height: 1;
    letter-spacing: -0.01em;
}

.villa-stat-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
    display: block;
}

/* ============================================
   SECTIONS
   ============================================ */

.villa-section {
    padding: 90px 20px;
}

.villa-section-cream {
    background-color: var(--cream);
}

.villa-section-navy {
    background-color: var(--dark-navy);
}

.villa-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.villa-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 14px;
    text-align: center;
}

.villa-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--dark-navy);
    margin-bottom: 14px;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.villa-section-subtitle {
    text-align: center;
    color: var(--warm-grey);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 300;
    line-height: 1.75;
    letter-spacing: 0.03em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.villa-section-divider {
    width: 48px;
    height: 2px;
    background-color: var(--gold);
    margin: 0 auto 52px;
}

/* ============================================
   TWO COLUMN / ABOUT
   ============================================ */

.villa-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.villa-about-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    display: block;
}

.villa-about-text .eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 14px;
    text-align: left;
}

.villa-about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 18px;
    line-height: 1.28;
    color: var(--dark-navy);
}

.villa-about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin: 26px 0 8px;
    letter-spacing: 0.02em;
    font-style: italic;
}

.villa-about-text p {
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 14px;
    font-weight: 300;
    font-size: 0.97rem;
}

.villa-divider-left {
    width: 48px;
    height: 2px;
    background-color: var(--gold);
    margin: 0 0 28px;
}

/* ============================================
   GALLERY
   ============================================ */

.villa-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
}

.villa-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.villa-gallery img:hover {
    transform: scale(1.03);
    opacity: 0.92;
}

/* ============================================
   RATES TABLE
   ============================================ */

.villa-rates-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Raleway', sans-serif;
    margin-top: 24px;
    font-size: 0.95rem;
}

.villa-rates-table th {
    background-color: var(--dark-navy);
    color: #fff;
    padding: 14px 22px;
    text-align: left;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.villa-rates-table td {
    padding: 14px 22px;
    border-bottom: 1px solid #eeebe3;
    color: var(--text);
}

.villa-rates-table tr:nth-child(even) td {
    background-color: var(--cream);
}

.villa-rates-table .peak-row td {
    font-weight: 600;
    color: var(--dark-navy);
}

.villa-rates-table .rate-price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Playfair Display', serif;
}

/* ============================================
   AMENITIES
   ============================================ */

.villa-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.villa-amenity {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 400;
}

.villa-amenity-icon {
    width: 38px;
    height: 38px;
    background-color: var(--dark-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--gold);
}

/* ============================================
   LOCATION
   ============================================ */

.villa-location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.villa-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.villa-location-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e8e4da;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.93rem;
    color: var(--text);
}

.villa-location-list li:first-child {
    border-top: 1px solid #e8e4da;
}

.villa-location-list li span {
    color: var(--warm-grey);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

/* ============================================
   CTA SECTION
   ============================================ */

.villa-cta {
    background-color: var(--dark-navy);
    padding: 90px 20px;
    text-align: center;
    color: #fff;
}

.villa-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.villa-cta p {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.villa-cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-gold,
a.btn-gold {
    background-color: var(--gold);
    color: #fff !important;
    padding: 16px 48px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none !important;
    display: inline-block;
    transition: background 0.25s ease, transform 0.15s ease;
    border: 2px solid var(--gold);
}

.btn-gold:hover,
a.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.villa-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.villa-contact-block h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--dark-navy);
    margin-bottom: 6px;
}

.villa-contact-block .villa-divider-left {
    margin-bottom: 22px;
}

.villa-contact-block p {
    color: var(--text-light);
    line-height: 1.85;
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

/* ============================================
   FOOTER NOTE
   ============================================ */

.villa-footer-note {
    background-color: var(--dark-navy-deep);
    color: rgba(255,255,255,0.45);
    text-align: center;
    padding: 22px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .villa-about-grid,
    .villa-location-grid,
    .villa-contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .villa-about-img {
        height: 320px;
    }

    .villa-section {
        padding: 60px 20px;
    }
}

@media (max-width: 600px) {
    .villa-hero {
        height: 85vh;
        min-height: 480px;
    }

    .villa-hero-content h1 {
        font-size: 2.2rem;
    }

    .villa-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .villa-stats-inner {
        gap: 30px;
    }

    .villa-stat-number {
        font-size: 2rem;
    }

    .villa-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .villa-rates-table th,
    .villa-rates-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}
