/* ================================================================
   MARA LEGACY HERITAGE SAFARIS — main.css
   Brand variables, reset, base typography, shared utilities
   ================================================================ */

/* ----------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');


/* ----------------------------------------------------------------
   2. CSS VARIABLES (Brand Palette)
---------------------------------------------------------------- */
:root {
    /* Colours */
    --mahogany:       #2B1608;
    --gold:           #D4A24B;
    --orange:         #E67E22;
    --olive:          #4A4626;
    --parchment:      #F2E7D5;
    --parchment-dark: #E8D9C0;
    --white:          #ffffff;
    --text-dark:      #1a0e04;
    --text-muted:     #6b5a45;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px  rgba(43, 22, 8, 0.10);
    --shadow-md: 0 6px 24px rgba(43, 22, 8, 0.14);
    --shadow-lg: 0 16px 48px rgba(43, 22, 8, 0.18);

    /* Misc */
    --transition: all 0.3s ease;
    --radius:     4px;
}


/* ----------------------------------------------------------------
   3. RESET & BASE
---------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--parchment);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--mahogany);
    line-height: 1.25;
}

a {
    color: var(--gold);
    transition: var(--transition);
}

a:hover {
    color: var(--orange);
}

img {
    max-width: 100%;
    height: auto;
}


/* ----------------------------------------------------------------
   4. SCROLLBAR
---------------------------------------------------------------- */
::-webkit-scrollbar        { width: 8px; }
::-webkit-scrollbar-track  { background: var(--parchment-dark); }
::-webkit-scrollbar-thumb  { background: var(--gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }


/* ----------------------------------------------------------------
   5. COLOUR / TEXT UTILITIES
---------------------------------------------------------------- */
.text-gold     { color: var(--gold)      !important; }
.text-orange   { color: var(--orange)    !important; }
.text-mahogany { color: var(--mahogany)  !important; }
.text-olive    { color: var(--olive)     !important; }
.bg-mahogany   { background-color: var(--mahogany)  !important; }
.bg-parchment  { background-color: var(--parchment) !important; }
.bg-gold       { background-color: var(--gold)      !important; }


/* ----------------------------------------------------------------
   6. TYPOGRAPHY UTILITIES
---------------------------------------------------------------- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--orange);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--mahogany);
    margin-bottom: 1rem;
}

.divider-gold {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    margin: 1rem auto 1.5rem;
    border: none;
}

.divider-gold.left {
    margin-left: 0;
}


/* ----------------------------------------------------------------
   7. ALERTS
---------------------------------------------------------------- */
.alert {
    border-radius: var(--radius);
    border-left: 4px solid transparent;
}

.alert-info    {
    border-left-color: var(--gold);
    background: rgba(212, 162, 75, 0.08);
    color: var(--olive);
}

.alert-success {
    border-left-color: #4A8C5C;
    background: rgba(74, 140, 92, 0.08);
    color: #2d5c3a;
}

.alert-danger  {
    border-left-color: #c0392b;
    background: rgba(192, 57, 43, 0.08);
    color: #7b241c;
}

.alert-warning {
    border-left-color: var(--orange);
    background: rgba(230, 126, 34, 0.08);
    color: var(--olive);
}


/* ----------------------------------------------------------------
   8. PAGE HEADER BAR (breadcrumb strip used on inner pages)
---------------------------------------------------------------- */
.page-header-bar {
    background: linear-gradient(135deg, var(--mahogany) 0%, var(--olive) 100%);
    padding: 3rem 0 2.5rem;
}

.page-header-bar h1 {
    color: var(--gold);
    font-family: var(--font-heading);
}

.page-header-bar .breadcrumb-item {
    color: rgba(242, 231, 213, 0.65);
    font-size: 0.85rem;
}

.page-header-bar .breadcrumb-item a {
    color: var(--gold);
    text-decoration: none;
}

.page-header-bar .breadcrumb-item.active {
    color: var(--parchment);
}

.page-header-bar .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(212, 162, 75, 0.5);
}


/* ----------------------------------------------------------------
   9. BACK TO TOP BUTTON
---------------------------------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--mahogany);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}

#backToTop:hover {
    transform: translateY(-3px);
}


/* ----------------------------------------------------------------
   10. BOOTSTRAP OVERRIDES
---------------------------------------------------------------- */
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    border-color: var(--gold);
    color: var(--mahogany);
    font-weight: 700;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--orange), var(--gold));
    border-color: var(--orange);
    color: var(--mahogany);
}

.btn-outline-primary {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-primary:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--mahogany);
}