/* AST-AAR Capital Investment - Main Stylesheet */

/* Variables */
:root {
    --primary-color: #1f4d2b;
    /* Deep Forest Green */
    --secondary-color: #ffffff;
    --accent-color: #c9a44c;
    /* Soft Gold */
    --text-color: #334155;
    /* Dark Slate */
    --light-bg: #f6f8f5;
    /* Warm/Green Tinted White */
    --dark-bg: #0a2919;
    /* Darker Green */
    --border-color: #e8eef3;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Global Reset & Typography */
body {
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.75;
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.section-padding {
    padding: 6.5rem 0;
}

.card-custom {
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar-custom {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-brand img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* Responsive logo sizes */
@media (max-width: 1199px) {
    .navbar-brand img {
        height: 80px;
    }
}

@media (max-width: 991px) {
    .navbar-brand img {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 45px;
    }
}

.navbar-custom.scrolled {
    padding: 0.5rem 0;
}


.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin-left: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navbar Toggler (Hamburger) */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 0;
    padding: 8rem 0 4rem;
    /* Safe padding for mobile */
}

/* Force headings in hero to be white */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section .display-3,
.hero-section .display-4 {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section.hero-sm {
    min-height: 40vh;
    /* Scaled down as requested (Desktop 40-55vh range) */
    padding: 6rem 0;
}

.hero-section.hero-lg {
    min-height: 90vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layered gradient for better readability */
    background: linear-gradient(180deg, rgba(10, 25, 47, 0.75) 0%, rgba(10, 25, 47, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-custom {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary-custom {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: 1px solid #25D366;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.btn-email {
    background-color: var(--secondary-color);
    color: white;
    border: 1px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-email:hover {
    background-color: #d35400;
    /* Darker secondary */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(230, 126, 34, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    margin-left: 1rem;
}

.btn-outline-custom:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #fff;
}

footer ul li {
    margin-bottom: 0.5rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a5bb8;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding: 6.5rem 0;
    }

    .hero-section.hero-sm {
        min-height: 30vh;
        /* Mobile requirement 28-38vh */
        padding: 4rem 0;
    }

    .hero-section.hero-lg {
        min-height: 80vh;
    }

    .btn-outline-custom {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        /* Stack buttons on mobile if needed */
        width: fit-content;
    }
}

/* === Floating WhatsApp Button === */
/* === Floating WhatsApp Button === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    /* Matching back-to-top vertical spacing */
    left: 30px;
    /* Matching back-to-top horizontal spacing */
    width: 84px;
    height: 84px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;

    /* Hidden by default for scroll effect */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Outer ring */
.whatsapp-float::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(37, 211, 102, 0.2);
    border-radius: 50%;
    position: absolute;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Inner circle */
.whatsapp-float::after {
    content: '';
    width: 64px;
    height: 64px;
    background-color: #25D366;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.whatsapp-float svg {
    color: white;
    z-index: 2;
    width: 32px;
    height: 32px;
    position: relative;
    pointer-events: none;
}

/* Hover Effect */
.whatsapp-float:hover {
    transform: scale(1.05);
}

.whatsapp-float:hover::after {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 24px;
        left: 24px;
    }

    .whatsapp-float::after {
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* Video Hero Styles */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    /* Dark overlay for text readability */
    z-index: 1;
}

.video-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding-top: 80px;
    /* Account for fixed navbar */
}

/* Force all video hero text to be white */
.video-content h1,
.video-content .hero-title,
.video-content p,
.video-content .hero-subtitle,
.video-content .lead {
    color: #ffffff !important;
}

/* Carousel/Slider Styles */
.carousel-item {
    height: 100vh;
}

.carousel-caption-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    padding-top: 60px;
    /* Account for navbar */
}

/* Image Slider */
.image-slider-section {
    padding: 60px 0;
    background: var(--light-bg);
}

.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.scrolling-card {
    display: inline-block;
    width: 300px;
    margin-right: 20px;
    vertical-align: top;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.scrolling-card:hover {
    transform: scale(1.05);
}

.scrolling-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Logo Fix section removed - using responsive sizing above */

/* Responsive adjustments for hero */
@media (max-width: 768px) {
    .carousel-caption-custom {
        padding-top: 80px;
        width: 95%;
    }

    /* Fixed navbar overlap fix for internal pages */
    .hero-section {
        padding-top: 140px !important;
        align-items: flex-start;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle,
    .video-content .lead {
        font-size: 1rem !important;
    }
}










/* Refined heading weights for premium feel */
h1 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-weight: 600;
    line-height: 1.4;
}

/* Responsive section padding */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    body {
        font-size: 16px;
    }
}



/* Operations Page - Mobile Image Fix */
@media (max-width: 768px) {
    .card-img-top {
        height: auto !important;
        min-height: 250px;
        max-height: 300px;
        object-fit: contain !important;
        object-position: center;
        background-color: #f6f8f5;
        padding: 10px;
    }

    /* Ensure cards stack properly on mobile */
    .col-md-6.col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .card-img-top {
        min-height: 200px;
        max-height: 250px;
    }
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: white;
}
