/*
Theme Name: RHA Elementor Theme
Theme URI: https://rha.rw
Author: Stunner
Author URI: https://pristinetech.co.rw
Description: Professional WordPress theme for Rwanda Safari Guides Association  with full Elementor Page Builder support. Features warm earth tones, premium typography, and modern animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rha-elementor

== Design System ==
Primary Colors:
- Brown (Primary): #056839 / hsl(28, 34%, 28%)
- Gold (Accent): #4FB948 / hsl(38, 70%, 50%)
- Charcoal (Text): #151515 / hsl(24, 45%, 15%)
- Cream (Background): #FFFFFF / hsl(35, 45%, 96%)

Typography:
- Headings: Cormorant Garamond (Serif)
- Body: DM Sans (Sans-serif)

This theme is designed to work seamlessly with Elementor Page Builder,
allowing full visual editing of all pages and components.
*/

/* ===========================================
   CSS VARIABLES (Design Tokens)
   =========================================== */
:root {
    /* Colors - Light Theme */
    --rha-background: hsl(35, 45%, 96%);
    --rha-foreground: hsl(152, 91%, 21%);
    --rha-card: hsl(0, 0%, 100%);
    --rha-card-foreground: hsl(152, 91%, 21%);
    --rha-primary: hsl(152, 91%, 21%);
    --rha-primary-foreground: hsl(152, 91%, 21%);
    --rha-secondary: hsl(116, 45%, 50%);
    --rha-secondary-foreground: hsl(152, 91%, 21%);
    --rha-muted: hsl(30, 15%, 94%);
    --rha-muted-foreground: hsl(116, 45%, 50%);
    --rha-accent: hsl(38, 70%, 50%);
    --rha-accent-foreground: hsl(152, 91%, 21%);
    --rha-border: hsl(30, 25%, 85%);
    --rha-ring: hsl(152, 91%, 21%);

    /* Custom Colors */
    --rha-cream: hsl(35, 45%, 96%);
    --rha-charcoal: hsl(152, 91%, 21%);
    --rha-brown: hsl(152, 91%, 21%);
    --rha-brown-dark: hsl(152, 91%, 21%);
    --rha-brown-light: hsl(152, 91%, 21%);
    --rha-gold: hsl(116, 45%, 50%);
    --rha-gold-light: hsl(116, 45%, 50%);
    --rha-gold-dark: hsl(116, 45%, 50%);
    --rha-terracotta: hsl(152, 91%, 21%);
    --rha-terracotta-light: hsl(116, 45%, 50%);
    --rha-success: hsl(152, 91%, 21%);

    /* Typography */
    --rha-font-serif: 'Cormorant Garamond', Georgia, serif;
    --rha-font-sans: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --rha-radius: 0.75rem;
    --rha-radius-lg: 1rem;
    --rha-radius-xl: 1.5rem;
    --rha-radius-2xl: 2rem;

    /* Shadows */
    --rha-shadow-soft: 0 4px 20px -4px hsla(152, 91%, 21%, 0.08);
    --rha-shadow-medium: 0 8px 30px -8px hsla(152, 91%, 21%, 0.12);
    --rha-shadow-elevated: 0 12px 40px -12px hsla(152, 91%, 21%, 0.18);
    --rha-shadow-gold: 0 8px 30px -8px hsla(116, 45%, 50%, 0.3);

    /* Gradients */
    --rha-gradient-hero: linear-gradient(135deg, hsla(152, 91%, 21%, 0.65) 0%, hsla(152, 91%, 21%, 0.55) 100%);
    --rha-gradient-gold: linear-gradient(135deg, hsla(116, 45%, 50%) 0%, hsla(116, 45%, 50%) 100%);
    --rha-gradient-brown: linear-gradient(135deg, hsla(152, 91%, 21%) 0%, hsla(152, 91%, 21%) 100%);
    --rha-gradient-cream: linear-gradient(180deg, hsla(35, 45%, 96%) 0%, hsla(30, 15%, 94%) 100%);
}

/* ===========================================
   BASE STYLES
   =========================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--rha-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--rha-foreground);
    background-color: var(--rha-background);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--rha-font-serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-top: 0;
    color: var(--rha-foreground);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--rha-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rha-gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   LAYOUT UTILITIES
   =========================================== */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ===========================================
   COMPONENT STYLES
   =========================================== */

/* Buttons */
.rha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--rha-font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--rha-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rha-btn-primary {
    background: var(--rha-primary);
    color: var(--rha-primary-foreground);
}

.rha-btn-primary:hover {
    background: var(--rha-brown-dark);
    color: var(--rha-primary-foreground);
}

.rha-btn-gold {
    background: var(--rha-gradient-gold);
    color: var(--rha-charcoal);
    box-shadow: var(--rha-shadow-gold);
}

.rha-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px -8px hsla(116, 45%, 50%, 0.4);
    color: var(--rha-charcoal);
}

.rha-btn-hero {
    background: var(--rha-gradient-gold);
    color: var(--rha-charcoal);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--rha-radius-lg);
    box-shadow: var(--rha-shadow-gold);
}

.rha-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 50px -8px hsla(116, 45%, 50%, 0.5);
    color: var(--rha-charcoal);
}

.rha-btn-outline {
    background: transparent;
    border: 2px solid var(--rha-border);
    color: var(--rha-foreground);
}

.rha-btn-outline:hover {
    border-color: var(--rha-primary);
    background: var(--rha-primary);
    color: var(--rha-primary-foreground);
}

.rha-btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--rha-cream);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--rha-radius-lg);
}

.rha-btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--rha-cream);
    color: var(--rha-cream);
}

/* Cards */
.rha-card {
    background: var(--rha-card);
    border-radius: var(--rha-radius-xl);
    border: 1px solid var(--rha-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.rha-card:hover {
    box-shadow: var(--rha-shadow-elevated);
    transform: translateY(-4px);
}

.rha-card-body {
    padding: 1.5rem;
}

/* Section Headings */
.rha-section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.rha-section-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rha-primary);
    margin-bottom: 1rem;
}

.rha-section-title {
    margin-bottom: 1rem;
}

.rha-section-description {
    font-size: 1.125rem;
    color: var(--rha-muted-foreground);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Gradient Text */
.text-gradient-gold {
    background: var(--rha-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-brown {
    background: var(--rha-gradient-brown);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Background Colors */
.bg-cream {
    background-color: var(--rha-cream);
}

.bg-charcoal {
    background-color: var(--rha-charcoal);
    color: var(--rha-cream);
}

.bg-primary {
    background-color: var(--rha-primary);
    color: var(--rha-primary-foreground);
}

.bg-gradient-cream {
    background: var(--rha-gradient-cream);
}

/* Text Colors */
.text-cream {
    color: var(--rha-cream);
}

.text-charcoal {
    color: var(--rha-charcoal);
}

.text-primary {
    color: var(--rha-primary);
}

.text-gold {
    color: var(--rha-gold);
}

.text-muted {
    color: var(--rha-muted-foreground);
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px hsla(116, 45%, 50%, 0.3); }
    50% { box-shadow: 0 0 40px hsla(116, 45%, 50%, 0.5); }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Stagger Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--rha-shadow-elevated);
}

/* ===========================================
   ELEMENTOR SPECIFIC STYLES
   =========================================== */

/* Full Width Sections */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1280px;
}

/* Elementor Button Override */
.elementor-button.rha-style {
    font-family: var(--rha-font-sans) !important;
    font-weight: 600 !important;
    border-radius: var(--rha-radius) !important;
}

/* Elementor Heading Override */
.elementor-heading-title {
    font-family: var(--rha-font-serif);
}

/* Hero Section Full Height */
.rha-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.rha-hero-section .elementor-background-overlay {
    background: linear-gradient(to right,
        rgba(5, 104, 57, 0.95) 0%,
        rgba(5, 104, 57, 0.7) 50%,
        transparent 100%
    ) !important;
}

/* Stats Card Floating */
.rha-stats-card {
    margin-top: -6rem;
    position: relative;
    z-index: 30;
}

/* Transparent Header Support */
body.rha-transparent-header .site-header,
body.rha-transparent-header .elementor-location-header {
    position: absolute;
    width: 100%;
    z-index: 100;
    background: transparent;
}

body.rha-transparent-header .site-header.scrolled,
body.rha-transparent-header .elementor-location-header.scrolled {
    position: fixed;
    background: var(--rha-card);
    box-shadow: var(--rha-shadow-medium);
}

/* Image Hover Zoom */
.rha-image-zoom {
    overflow: hidden;
}

.rha-image-zoom img {
    transition: transform 0.7s ease;
}

.rha-image-zoom:hover img {
    transform: scale(1.1);
}

/* Testimonial Card */
.rha-testimonial-card {
    background: var(--rha-card);
    border-radius: var(--rha-radius-2xl);
    overflow: hidden;
    box-shadow: var(--rha-shadow-medium);
    border: 1px solid var(--rha-border);
}

/* Member Card Grid */
.rha-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* CTA Section Background */
.rha-cta-section {
    position: relative;
}

.rha-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        rgba(5, 104, 57, 0.9) 0%,
        rgba(5, 104, 57, 0.8) 50%,
        rgba(5, 104, 57, 0.7) 100%
    );
}

/* ===========================================
   WORDPRESS SPECIFIC
   =========================================== */

/* WordPress Alignments */
.alignwide {
    margin-left: calc(-25vw + 50%);
    margin-right: calc(-25vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
   =========================================== */
@media (max-width: 767px) {
    .rha-hero-section {
        min-height: 90vh;
    }

    .rha-stats-card {
        margin-top: -3rem;
    }

    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    body {
        background: white;
        color: black;
    }

    .site-header,
    .site-footer,
    .elementor-location-header,
    .elementor-location-footer {
        display: none;
    }
}
