/* ============================================
   Relington Africa - Custom Styles & Animations
   Colors: Green (#00a650), White, Ocean Blue (#0a4b7a)
   ============================================ */

/* CSS Variables */
:root {
    --relington-green: #00a650;
    --relington-green-dark: #008c40;
    --relington-green-light: #e8f8ef;
    --relington-blue: #0a4b7a;
    --relington-blue-light: #e6f2ff;
    --relington-blue-dark: #063359;
    --relington-white: #ffffff;
    --relington-dark: #1e293b;
    --relington-gray: #64748b;
    --relington-gradient: linear-gradient(135deg, #00a650 0%, #0a4b7a 100%);
    --relington-gradient-reverse: linear-gradient(135deg, #0a4b7a 0%, #00a650 100%);
    --relington-shadow: 0 10px 40px rgba(0, 166, 80, 0.15);
    --relington-shadow-blue: 0 10px 40px rgba(10, 75, 122, 0.15);
}

/* ===== Global Styles ===== */
body {
    overflow-x: hidden;
}

.entry-content a {
    text-decoration: none !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }
.animate-bounce-in { animation: bounceIn 0.8s ease forwards; }
.animate-slide-in-up { animation: slideInUp 0.8s ease forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-wave { animation: wave 2s ease-in-out infinite; transform-origin: 70% 70%; display: inline-block; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

/* ===== Hero Section ===== */
.relington-hero {
    background: linear-gradient(135deg, #0a4b7a 0%, #00a650 50%, #0a4b7a 100%);
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.relington-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.relington-hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,60 C360,100 1080,0 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, #ffffff, #90eea0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background: #ffffff;
    color: #0a4b7a;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: var(--relington-green);
    color: #ffffff;
}

.hero-cta-outline {
    display: inline-block;
    padding: 14px 36px;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.hero-cta-outline:hover {
    background: #ffffff;
    color: #0a4b7a;
    transform: translateY(-3px);
}

.hero-image {
    animation: float 4s ease-in-out infinite;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

/* ===== Section Styles ===== */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--relington-dark);
    margin-bottom: 15px;
    position: relative;
}

.section-title-center {
    text-align: center;
}

.section-title-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--relington-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--relington-gray);
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
    line-height: 1.8;
}

/* ===== Service Cards ===== */
.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--relington-gradient);
    transition: height 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--relington-shadow);
}

.service-card:hover::before {
    height: 8px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(180deg) scale(1.1);
}

.service-icon-green {
    background: var(--relington-green-light);
    color: var(--relington-green);
}

.service-icon-blue {
    background: var(--relington-blue-light);
    color: var(--relington-blue);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--relington-dark);
}

.service-card p {
    color: var(--relington-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: var(--relington-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--relington-blue);
    transform: translateX(5px);
}

/* ===== Features Section (Green/Blue alternating) ===== */
.features-section {
    position: relative;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--relington-dark);
    margin-bottom: 20px;
}

.feature-content p {
    color: var(--relington-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-tag-green {
    background: var(--relington-green-light);
    color: var(--relington-green);
}

.feature-tag-blue {
    background: var(--relington-blue-light);
    color: var(--relington-blue);
}

/* ===== Stats Section ===== */
.stats-section {
    background: var(--relington-gradient);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.stat-item {
    text-align: center;
    color: #ffffff;
    padding: 30px 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--relington-shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-icon-green { background: var(--relington-green-light); color: var(--relington-green); }
.contact-icon-blue { background: var(--relington-blue-light); color: var(--relington-blue); }

.contact-info-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--relington-dark);
    margin-bottom: 10px;
}

.contact-info-card p {
    color: var(--relington-gray);
    line-height: 1.7;
    margin-bottom: 5px;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, #0a4b7a, #00a650);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #ffffff;
    color: #0a4b7a;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: var(--relington-green);
}

/* ===== Footer ===== */
.relington-footer {
    background: var(--relington-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
}

.relington-footer h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.relington-footer p, .relington-footer li {
    color: rgba(255,255,255,0.7);
    line-height: 2;
}

.relington-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.relington-footer a:hover {
    color: var(--relington-green);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===== Header / Navigation ===== */
.main-header-bar {
    background-color: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ast-primary-menu .menu-item .menu-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.ast-primary-menu .menu-item .menu-link:hover {
    color: var(--relington-green) !important;
}

.ast-primary-menu .current-menu-item .menu-link {
    color: var(--relington-green) !important;
}

/* ===== Page Header ===== */
.page-header {
    background: var(--relington-gradient);
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.page-header h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .feature-row { flex-direction: column !important; gap: 30px; }
    .hero-cta-outline { margin-left: 0; margin-top: 15px; }
    .stat-number { font-size: 2rem; }
    .cta-title { font-size: 1.8rem; }
    .relington-hero { min-height: auto; padding: 60px 0; }
}

/* ===== Button Styles ===== */
.btn-green {
    background: var(--relington-gradient);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 166, 80, 0.3);
    color: #ffffff;
}

.btn-outline {
    display: inline-block;
    padding: 12px 32px;
    border: 2px solid var(--relington-green);
    color: var(--relington-green);
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--relington-green);
    color: #ffffff;
}

/* ===== Testimonial ===== */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    margin: 20px 0;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--relington-green);
    opacity: 0.2;
    font-family: Georgia, serif;
}

/* ===== Info Badge ===== */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.info-badge-green {
    background: var(--relington-green-light);
    color: var(--relington-green);
}

.info-badge-blue {
    background: var(--relington-blue-light);
    color: var(--relington-blue);
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
