/*
Theme Name:        Afriski Child
Theme URI:         https://afriski.net
Description:       Afriski Mountain Resort — FSE child theme of Twenty Twenty-Five. All content is built with native WordPress blocks for easy editing.
Author:            Digital Farm
Author URI:        https://digitalfarm.fun
Template:          twentytwentyfive
Version:           4.0.0
Requires at least: 6.5
Tested up to:      6.7
Requires PHP:      7.4
License:           GNU General Public License v2 or later
Text Domain:       afriski-child
*/

/* ─────────────────────────────────────────────
   GLOBAL
───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ─────────────────────────────────────────────
   HEADER — sticky behaviour (can't do in blocks)
───────────────────────────────────────────── */
.afriski-site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

/* Navigation link colour override */
.afriski-site-header .wp-block-navigation a,
.afriski-site-header .wp-block-navigation .wp-block-navigation-item__content {
    color: #ffffff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.afriski-site-header .wp-block-navigation a:hover { opacity: 0.75; }

/* Submenu */
.afriski-site-header .wp-block-navigation .wp-block-navigation__submenu-container {
    background: #1A1A4E;
    border-top: 3px solid #FFD700;
}
.afriski-site-header .wp-block-navigation .wp-block-navigation__submenu-container a {
    font-size: 0.7rem;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ─────────────────────────────────────────────
   PAGE HEADER BANNER
   The illustration image sits as a CSS background
   because WordPress blocks can't layer two images
───────────────────────────────────────────── */
.afriski-page-banner {
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.afriski-page-banner::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 75%;
    background-image: url('../assets/images/page-header-illustrations.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
.afriski-page-banner > * { position: relative; z-index: 1; }

/* Page icon box (yellow square with logo icon) */
.afriski-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #FFD700;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

/* ─────────────────────────────────────────────
   COVER BLOCK CARDS — hover zoom on image
   The user edits everything via block editor.
   CSS only adds the zoom effect on hover.
───────────────────────────────────────────── */
.afriski-activity-card .wp-block-cover__image-background,
.afriski-activity-card img.wp-block-cover__image-background {
    transition: transform 0.4s ease;
}
.afriski-activity-card:hover .wp-block-cover__image-background,
.afriski-activity-card:hover img.wp-block-cover__image-background {
    transform: scale(1.06);
}

/* ─────────────────────────────────────────────
   QUICK NAV BAR (below hero)
───────────────────────────────────────────── */
.afriski-quick-nav .wp-block-navigation a {
    color: #1A1A4E !important;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.6rem 1.1rem;
    border-right: 1px solid #e0e0e0;
}
.afriski-quick-nav .wp-block-navigation a:hover { color: #00A896 !important; }
.afriski-quick-nav .wp-block-navigation li:last-child a { border-right: none; }

/* ─────────────────────────────────────────────
   FOOTER — newsletter input styling
───────────────────────────────────────────── */
.afriski-footer-newsletter .wp-block-search__input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 6px 2px;
    border-radius: 0;
}
.afriski-footer-newsletter .wp-block-search__input::placeholder { color: rgba(255,255,255,0.5); }
.afriski-footer-newsletter .wp-block-search__button {
    background: #FFD700;
    color: #1A1A4E;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    border-radius: 3px;
    padding: 8px 14px;
}

/* ─────────────────────────────────────────────
   FAQ DETAILS/SUMMARY STYLING
   core/details block — just visual polish
───────────────────────────────────────────── */
.afriski-faq .wp-block-details {
    border: 1px solid #e0e0e0;
    margin-bottom: 4px;
}
.afriski-faq .wp-block-details summary {
    background: #00A896;
    color: #fff;
    padding: 14px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    list-style: none;
}
.afriski-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.afriski-faq .wp-block-details > *:not(summary) {
    padding: 1.25rem 1.5rem;
    background: #fff;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #333;
    margin: 0;
}

/* ─────────────────────────────────────────────
   RATES TABLE — core/table styling
───────────────────────────────────────────── */
.afriski-rates .wp-block-table thead th {
    background: #1A1A4E;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 14px;
}
.afriski-rates .wp-block-table td {
    padding: 10px 14px;
    font-size: 0.85rem;
    border-bottom: 1px solid #ebebeb;
}
.afriski-rates .wp-block-details summary {
    background: #00A896;
    color: #fff;
    padding: 13px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    list-style: none;
    margin-bottom: 0;
}
.afriski-rates .wp-block-details summary::-webkit-details-marker { display: none; }
.afriski-rates .wp-block-details { margin-bottom: 6px; }

/* ─────────────────────────────────────────────
   BOOK NOW BUTTON — yellow fill style
───────────────────────────────────────────── */
.is-style-btn-book .wp-block-button__link {
    background: #FFD700 !important;
    color: #1A1A4E !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    transition: background 0.2s, transform 0.15s !important;
}
.is-style-btn-book .wp-block-button__link:hover {
    background: #f0c800 !important;
    transform: translateY(-1px);
}

/* ─────────────────────────────────────────────
   RESPONSIVE — only for things blocks can't handle
───────────────────────────────────────────── */
@media (max-width: 768px) {
    .afriski-page-banner::after { width: 100%; opacity: 0.25; }
    .afriski-site-header .wp-block-navigation { display: none; }
}
