/*
Theme Name: GBO Nature Safaris
Theme URI: https://gbonaturesafaris.co.ke/
Author: GBO Solutions
Author URI: https://gbosolutions.com/
Description: A complete responsive WordPress theme for GBO Nature Safaris, designed around hiking, wellness, institutional adventures, corporate outdoors and the Ofa Safi outdoor store.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gbo-nature-safaris
Tags: custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks, accessibility-ready, translation-ready
*/

:root {
    --gbo-red: #ea1319;
    --gbo-green: #11671e;
    --gbo-green-2: #2f8738;
    --gbo-dark: #16271d;
    --gbo-ink: #24352a;
    --gbo-muted: #607066;
    --gbo-cream: #f7f5ef;
    --gbo-soft: #edf5ee;
    --gbo-border: #d9e5dc;
    --gbo-white: #ffffff;
    --gbo-shadow: 0 18px 50px rgba(22, 39, 29, 0.12);
    --gbo-radius: 24px;
    --gbo-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--gbo-ink);
    background: var(--gbo-cream);
    font-family: Inter, Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gbo-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gbo-red); }
button, input, select, textarea { font: inherit; }
button, .gbo-button, .wp-element-button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.65em;
    color: var(--gbo-dark);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.14;
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
p { margin: 0 0 1.3em; }
ul, ol { padding-left: 1.25rem; }
blockquote {
    margin: 2rem 0;
    padding: 1.3rem 1.6rem;
    border-left: 5px solid var(--gbo-red);
    background: var(--gbo-white);
    box-shadow: var(--gbo-shadow);
    border-radius: 0 18px 18px 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.screen-reader-text:focus {
    width: auto;
    height: auto;
    clip: auto;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 0.8rem 1rem;
    background: #fff;
    color: #000;
}

.gbo-container {
    width: min(calc(100% - 40px), var(--gbo-container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 4px solid var(--gbo-red);
}
.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.gbo-brand, .custom-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gbo-dark);
    text-decoration: none;
}
.gbo-brand img, .custom-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
}
.gbo-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.gbo-brand-text strong { font-family: Georgia, serif; font-size: 1.1rem; letter-spacing: 0.02em; }
.gbo-brand-text small { color: var(--gbo-red); font-size: 0.72rem; font-weight: 700; margin-top: 0.35rem; }

.primary-navigation { margin-left: auto; }
.primary-navigation .menu {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-navigation a {
    display: block;
    color: var(--gbo-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.65rem 0.2rem;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { color: var(--gbo-red); }
.menu-toggle {
    display: none;
    border: 0;
    background: var(--gbo-dark);
    color: #fff;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-weight: 800;
}

.gbo-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.gbo-button,
.wp-element-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.8rem 1.35rem;
    border: 2px solid var(--gbo-green);
    border-radius: 999px;
    background: var(--gbo-green);
    color: var(--gbo-white) !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(17, 103, 30, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.gbo-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    background: var(--gbo-red);
    border-color: var(--gbo-red);
    box-shadow: 0 14px 30px rgba(234, 19, 25, 0.2);
}
.gbo-button-outline {
    background: transparent;
    color: var(--gbo-dark) !important;
    border-color: var(--gbo-dark);
    box-shadow: none;
}
.gbo-button-outline:hover { color: #fff !important; background: var(--gbo-dark); border-color: var(--gbo-dark); }
.gbo-button-light { background: #fff; color: var(--gbo-green) !important; border-color: #fff; }
.gbo-button-light:hover { background: var(--gbo-red); color: #fff !important; border-color: var(--gbo-red); }

.gbo-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6.5rem) 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(234, 19, 25, 0.16) 0 12%, transparent 12.5%),
        linear-gradient(135deg, #f8fbf7 0%, #eaf4eb 52%, #f7f5ef 100%);
}
.gbo-hero::before,
.gbo-hero::after {
    content: "";
    position: absolute;
    bottom: -70px;
    width: 58%;
    height: 260px;
    border-radius: 50% 50% 0 0;
    transform: rotate(-4deg);
    opacity: 0.13;
}
.gbo-hero::before { left: -10%; background: var(--gbo-green); }
.gbo-hero::after { right: -12%; background: var(--gbo-red); transform: rotate(7deg); }
.gbo-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
}
.gbo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--gbo-green);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.gbo-kicker::before { content: ""; width: 42px; height: 3px; background: var(--gbo-red); }
.gbo-hero h1 { max-width: 800px; margin-bottom: 1rem; }
.gbo-hero h1 em { color: var(--gbo-red); font-style: normal; }
.gbo-hero-copy > p { max-width: 690px; color: #43574a; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.gbo-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.gbo-trust-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.2rem;
    margin-top: 1.8rem;
    color: var(--gbo-muted);
    font-size: 0.92rem;
    font-weight: 700;
}
.gbo-trust-line span::before { content: "✓"; color: var(--gbo-green); margin-right: 0.4rem; }
.gbo-hero-art {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}
.gbo-hero-art::before {
    content: "";
    position: absolute;
    inset: 10% 3% 8%;
    border: 3px solid rgba(17, 103, 30, 0.3);
    border-radius: 48% 52% 46% 54%;
    transform: rotate(-5deg);
}
.gbo-hero-logo {
    position: relative;
    z-index: 2;
    width: min(100%, 480px);
    filter: drop-shadow(0 24px 25px rgba(22, 39, 29, 0.16));
}
.gbo-mini-card {
    position: absolute;
    z-index: 3;
    max-width: 220px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.93);
    box-shadow: var(--gbo-shadow);
    font-weight: 800;
}
.gbo-mini-card strong { display: block; color: var(--gbo-red); font-size: 1.4rem; }
.gbo-mini-card.one { left: 0; bottom: 15%; }
.gbo-mini-card.two { right: 0; top: 14%; }

.gbo-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.gbo-section-white { background: #fff; }
.gbo-section-soft { background: var(--gbo-soft); }
.gbo-section-dark { background: var(--gbo-dark); color: #e8f0ea; }
.gbo-section-dark h2,
.gbo-section-dark h3 { color: #fff; }
.gbo-section-red { background: var(--gbo-red); color: #fff; }
.gbo-section-red h2,
.gbo-section-red h3 { color: #fff; }
.gbo-section-heading { max-width: 780px; margin-bottom: 2.5rem; }
.gbo-section-heading.center { margin-inline: auto; text-align: center; }
.gbo-section-heading p { color: var(--gbo-muted); font-size: 1.05rem; }
.gbo-section-dark .gbo-section-heading p,
.gbo-section-red .gbo-section-heading p { color: rgba(255,255,255,0.78); }

.gbo-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}
.gbo-card {
    position: relative;
    overflow: hidden;
    padding: 1.65rem;
    border: 1px solid var(--gbo-border);
    border-radius: var(--gbo-radius);
    background: #fff;
    box-shadow: 0 12px 35px rgba(22, 39, 29, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gbo-card:hover { transform: translateY(-6px); box-shadow: var(--gbo-shadow); }
.gbo-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -35px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(17, 103, 30, 0.08);
}
.gbo-card-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 1.15rem;
    border-radius: 16px;
    background: var(--gbo-soft);
    color: var(--gbo-green);
    font-size: 1.5rem;
    font-weight: 900;
}
.gbo-card.featured { background: var(--gbo-dark); color: #dce8df; border-color: var(--gbo-dark); }
.gbo-card.featured h3 { color: #fff; }
.gbo-card.featured .gbo-card-icon { background: var(--gbo-red); color: #fff; }
.gbo-card p { color: var(--gbo-muted); }
.gbo-card.featured p { color: #cbd8ce; }
.gbo-card-link { font-weight: 900; text-decoration: none; }

.gbo-programmes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.gbo-programme {
    padding: 1.5rem;
    border-radius: 20px;
    background: #fff;
    border-left: 5px solid var(--gbo-green);
    box-shadow: 0 10px 28px rgba(22,39,29,0.08);
}
.gbo-programme:nth-child(even) { border-left-color: var(--gbo-red); }
.gbo-programme span { display: block; color: var(--gbo-red); font-weight: 900; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

.gbo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.gbo-safety-panel {
    position: relative;
    padding: 2rem;
    border-radius: 32px;
    background: linear-gradient(150deg, var(--gbo-dark), #244531);
    color: #dce8df;
    box-shadow: var(--gbo-shadow);
}
.gbo-safety-panel h3 { color: #fff; }
.gbo-safety-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.gbo-safety-item:last-child { border-bottom: 0; }
.gbo-safety-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gbo-red);
    color: #fff;
    font-weight: 900;
}

.gbo-check-list { list-style: none; padding: 0; }
.gbo-check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.8rem; }
.gbo-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gbo-green);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
}

.gbo-store-box {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 34px;
    background: linear-gradient(130deg, #fff 0 58%, var(--gbo-red) 58% 100%);
    box-shadow: var(--gbo-shadow);
}
.gbo-store-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.8rem;
}
.gbo-store-product {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 10px 20px rgba(22,39,29,0.1);
    font-weight: 800;
}

.gbo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.gbo-stat {
    text-align: center;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}
.gbo-stat strong { display: block; color: #fff; font-size: 2rem; font-family: Georgia, serif; }
.gbo-stat span { color: #cbd8ce; }

.gbo-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 5rem);
    border-radius: 34px;
    background: var(--gbo-green);
    color: #fff;
    text-align: center;
    box-shadow: var(--gbo-shadow);
}
.gbo-cta::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -120px;
    top: -150px;
    border-radius: 50%;
    background: var(--gbo-red);
    opacity: 0.9;
}
.gbo-cta > * { position: relative; z-index: 2; }
.gbo-cta h2 { color: #fff; }
.gbo-cta p { max-width: 720px; margin-inline: auto; color: rgba(255,255,255,0.85); }
.gbo-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; }

.gbo-page-header {
    padding: clamp(3rem, 7vw, 5rem) 0;
    background: linear-gradient(135deg, var(--gbo-dark), #244d31);
    color: #fff;
}
.gbo-page-header h1 { color: #fff; margin-bottom: 0.35rem; }
.gbo-breadcrumbs { color: #cbd8ce; font-size: 0.9rem; }
.gbo-breadcrumbs a { color: #fff; }
.entry-content {
    width: min(calc(100% - 40px), 980px);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
}
.entry-content > * { max-width: 100%; }
.gbo-page-lead {
    margin-bottom: 2.2rem;
    padding: 1.5rem 1.7rem;
    border-radius: 20px;
    background: var(--gbo-soft);
    border-left: 5px solid var(--gbo-red);
    font-size: 1.1rem;
}
.gbo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 1.8rem 0 2.5rem;
}
.gbo-content-grid > div {
    padding: 1.5rem;
    border: 1px solid var(--gbo-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22,39,29,0.06);
}
.gbo-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; background: #fff; }
.gbo-table th, .gbo-table td { padding: 1rem; border: 1px solid var(--gbo-border); text-align: left; }
.gbo-table th { background: var(--gbo-dark); color: #fff; }

.gbo-contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.5rem;
    align-items: stretch;
}
.gbo-contact-panel {
    padding: 2rem;
    border-radius: 28px;
    background: var(--gbo-dark);
    color: #dce8df;
}
.gbo-contact-panel h2 { color: #fff; }
.gbo-contact-list { list-style: none; padding: 0; }
.gbo-contact-list li { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.gbo-contact-form {
    display: grid;
    gap: 1rem;
    padding: 2rem;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--gbo-shadow);
}
.gbo-contact-form label { display: grid; gap: 0.4rem; font-weight: 800; color: var(--gbo-dark); }
.gbo-contact-form input,
.gbo-contact-form select,
.gbo-contact-form textarea {
    width: 100%;
    border: 1px solid #bdcdc1;
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    background: #fbfdfb;
    color: var(--gbo-ink);
}
.gbo-contact-form input:focus,
.gbo-contact-form select:focus,
.gbo-contact-form textarea:focus {
    outline: 3px solid rgba(17,103,30,0.15);
    border-color: var(--gbo-green);
}
.gbo-honeypot { position: absolute !important; left: -10000px !important; }
.gbo-alert { margin-bottom: 1.5rem; padding: 1rem 1.2rem; border-radius: 14px; font-weight: 800; }
.gbo-alert.success { background: #e4f6e7; color: #0f5b1a; }
.gbo-alert.error { background: #fde8e9; color: #9c1116; }

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}
.post-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(22,39,29,0.08);
}
.post-card-image { display: block; aspect-ratio: 16/10; background: var(--gbo-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 1.4rem; }
.post-meta { color: var(--gbo-muted); font-size: 0.85rem; }

.pagination { margin-top: 2rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.page-numbers { padding: 0.55rem 0.8rem; border-radius: 10px; background: #fff; text-decoration: none; }
.page-numbers.current { background: var(--gbo-green); color: #fff; }

.site-footer {
    padding-top: 4rem;
    background: #0f1f16;
    color: #bdcbbf;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 2.5rem;
}
.footer-brand img { width: 130px; }
.footer-brand h2 { color: #fff; font-size: 1.8rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 0.55rem; }
.site-footer a { color: #eef6ef; text-decoration: none; }
.site-footer a:hover { color: var(--gbo-red); }
.footer-widget-title { color: #fff; font-size: 1.3rem; }
.footer-bottom {
    margin-top: 3rem;
    padding: 1.3rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
}

.error-404 { text-align: center; padding: 6rem 0; }
.error-404 strong { display: block; color: var(--gbo-red); font-size: clamp(5rem, 18vw, 11rem); line-height: 0.9; }

/* Styles for the companion GBO website plugin. */
.gbo-ns-page .gbo-site-wrap { background: var(--gbo-cream); }
.gbo-ns-page .gbo-page-hero { border-radius: 0 0 32px 32px; }
.gbo-ns-page .gbo-section { max-width: var(--gbo-container); margin-inline: auto; }

@media (max-width: 1050px) {
    .gbo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gbo-programmes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gbo-header-cta { display: none; }
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .primary-navigation {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        padding: 1rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--gbo-shadow);
    }
    .primary-navigation.is-open { display: block; }
    .primary-navigation .menu { align-items: stretch; flex-direction: column; gap: 0; }
    .primary-navigation a { padding: 0.75rem; border-bottom: 1px solid var(--gbo-border); }
    .gbo-hero-grid, .gbo-split, .gbo-store-box, .gbo-contact-layout { grid-template-columns: 1fr; }
    .gbo-hero-copy { text-align: center; }
    .gbo-hero-copy > p, .gbo-section-heading { margin-inline: auto; }
    .gbo-kicker { justify-content: center; }
    .gbo-hero-actions, .gbo-trust-line { justify-content: center; }
    .gbo-hero-art { min-height: 420px; }
    .gbo-store-box { background: linear-gradient(160deg, #fff 0 68%, var(--gbo-red) 68% 100%); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    body { font-size: 16px; }
    .gbo-container { width: min(calc(100% - 28px), var(--gbo-container)); }
    .header-inner { min-height: 76px; gap: 0.5rem; }
    .gbo-brand img, .custom-logo { width: 58px; height: 58px; }
    .gbo-brand-text small { display: none; }
    .gbo-brand-text strong { font-size: 0.9rem; }
    .gbo-card-grid,
    .gbo-programmes,
    .gbo-stats,
    .gbo-content-grid,
    .archive-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .gbo-store-products { grid-template-columns: 1fr; }
    .gbo-hero { padding-top: 3rem; }
    .gbo-hero-art { min-height: 330px; }
    .gbo-mini-card { display: none; }
    .gbo-hero-actions .gbo-button { width: 100%; }
    .footer-bottom { flex-direction: column; }
}
