/* =========================================
   AL HIYAM GROUP OF COMPANIES
   Corporate Luxury Styles
   ========================================= */

/* --- Variables --- */
:root {
    /* Colors - Deep Green, White, Gold */
    --clr-green-primary: #0b2415;
    --clr-green-secondary: #123d23;
    --clr-green-tertiary: #195832;

    --clr-gold-primary: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-gold-dark: #AA882E;

    --clr-white: #FFFFFF;
    --clr-cream: #FDFBF7;

    --clr-text-light: #E8F0EA;
    --clr-text-dark: #223322;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Layout */
    --section-padding: 6rem 2rem;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-green-primary);
    color: var(--clr-text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Reusable Utility Classes --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gold-text {
    color: var(--clr-gold-primary);
}

.section-dark {
    background-color: var(--clr-green-primary);
    color: var(--clr-white);
}

.section-light {
    background-color: var(--clr-cream);
    color: var(--clr-text-dark);
}

section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--clr-gold-primary);
    margin: 1.5rem auto 0;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.btn-gold {
    background-color: var(--clr-gold-primary);
    color: var(--clr-green-primary);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--clr-gold-primary);
    border-color: var(--clr-gold-primary);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-white);
    border-color: var(--clr-white);
}

.btn-outline:hover {
    background-color: var(--clr-white);
    color: var(--clr-green-primary);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(11, 36, 21, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-gold-primary);
    letter-spacing: 3px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--clr-white);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--clr-gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--clr-gold-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-gold-primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1572023537877-ad27a2ebc9de?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gold gradient overlay */
    background: linear-gradient(135deg, rgba(11, 36, 21, 0.95) 0%, rgba(212, 175, 55, 0.15) 50%, rgba(18, 61, 35, 0.85) 100%);
    z-index: 1;
    animation: gradientShift 10s ease infinite alternate;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
}

.badge-since {
    display: inline-block;
    background: var(--clr-gold-primary);
    color: var(--clr-green-primary);
    font-weight: bold;
    letter-spacing: 3px;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 5.5rem;
    letter-spacing: 12px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 2px 4px 15px rgba(212, 175, 55, 0.4), 0 0 40px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.hero h1 .h1-sub {
    font-size: 1.4rem;
    letter-spacing: 6px;
    font-family: var(--font-body);
    font-weight: 300;
    text-shadow: none;
    display: block;
    margin-top: 1rem;
    color: var(--clr-gold-light);
}

.hero .subtitle {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--clr-white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.divider-thin {
    height: 1px;
    width: 120px;
    margin: 0 auto 2rem;
}

.gold-bg {
    background-color: var(--clr-gold-primary);
}

.hero .tagline {
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--clr-white);
    font-weight: 500;
}

.hero .intro {
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- About Chairman --- */
.founder-content {
    align-items: center;
    gap: 4rem;
}

.founder-image-wrapper {
    position: relative;
}

.founder-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--clr-gold-primary);
    z-index: 0;
}

.founder-image {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--clr-green-secondary), var(--clr-green-primary));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.founder-image i {
    font-size: 10rem;
    color: var(--clr-gold-primary);
    opacity: 0.5;
    position: relative;
    z-index: 2;
}

.trust-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: var(--clr-white);
    color: var(--clr-green-primary);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 3;
    font-weight: 700;
    border-left: 4px solid var(--clr-gold-primary);
}

.founder-text h3 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--clr-green-primary);
}

.title-role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.leadership-message {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    border-left: 4px solid var(--clr-gold-primary);
    padding-left: 2rem;
    margin: 2rem 0;
    color: var(--clr-green-secondary);
    line-height: 1.6;
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem;
}

.vision-mission {
    background: var(--clr-white);
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.contact-quick {
    background: var(--clr-green-primary);
    color: var(--clr-white);
    padding: 1.5rem;
    border-radius: 4px;
}

.contact-quick h4 {
    color: var(--clr-gold-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* --- Companies --- */
.cards-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: var(--clr-green-secondary);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-gold-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    background: var(--clr-green-tertiary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.icon-wrapper {
    margin-bottom: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    width: 80px;
    height: 80px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.card i.fa-3x {
    font-size: 2.5rem;
}

.card i {
    font-size: 2.2rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--clr-white);
}

.role-text {
    color: var(--clr-gold-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.card p {
    color: #c0d1c6;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.location {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--clr-gold-light);
}

/* --- Community Integration --- */
.community-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.community-header i {
    margin-bottom: 1.5rem;
}

.community-header h3 {
    font-size: 2.2rem;
    color: var(--clr-green-primary);
    margin-bottom: 1rem;
}

.community-header p {
    font-size: 1.1rem;
    color: #555;
}

.roles-list {
    gap: 2rem;
}

.role-box {
    background: var(--clr-white);
    padding: 2rem;
    border-top: 4px solid var(--clr-gold-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    text-align: center;
    border-radius: 4px;
}

.role-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.role-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.role-box h4 {
    color: var(--clr-green-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.role-box p {
    color: #666;
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-info {
    padding-right: 2rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-info>p {
    margin-bottom: 2rem;
    color: #b5c7bc;
}

.info-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-list i {
    font-size: 1.5rem;
    margin-top: 3px;
}

.info-list span {
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
}

.info-list small {
    font-size: 0.85rem;
    color: var(--clr-gold-light);
    font-weight: 400;
}

.map-placeholder {
    background: var(--clr-green-secondary);
    padding: 3rem;
    text-align: center;
    border-radius: 4px;
    border: 1px dashed rgba(212, 175, 55, 0.4);
    margin-top: 2rem;
}

.map-placeholder i {
    margin-bottom: 1rem;
}

.contact-form {
    background-color: var(--clr-green-secondary);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-gold-primary);
    background: rgba(0, 0, 0, 0.25);
}

.contact-form button {
    width: 100%;
}

/* --- Footer --- */
footer {
    background-color: #05140b;
    text-align: center;
    padding: 4rem 0 3rem;
    border-top: 2px solid var(--clr-gold-dark);
}

.footer-logo {
    font-size: 1.5rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 2.5rem;
    color: #8fa396;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.divider {
    color: var(--clr-gold-primary);
    opacity: 0.5;
}

.social-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-green-secondary);
    color: var(--clr-white);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background-color: var(--clr-gold-primary);
    color: var(--clr-green-primary);
    transform: translateY(-5px);
}

.copyright {
    color: #66786c;
    font-size: 0.85rem;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* --- Scroll Animations (Triggered via JS) --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 4rem;
        letter-spacing: 8px;
    }

    .cards-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 860px) {

    .grid-2,
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .founder-content {
        gap: 3rem;
    }

    .founder-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .trust-badge {
        left: 10px;
        bottom: 10px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .navbar {
        padding: 1.2rem 5%;
    }

    /* Mobile Menu */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: var(--clr-green-primary);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero {
        min-height: 100vh;
        /* Remove padding-top, let flexbox handle vertical centering */
        padding-top: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
        margin-bottom: 0.5rem;
    }

    .hero h1 .h1-sub {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-top: 0.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero .tagline {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .divider-thin {
        margin-bottom: 1.5rem;
    }

    .hero .intro {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .footer-links span {
        display: block;
        text-align: center;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .divider {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .trust-badge {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .hero h1 {
        font-size: 2.1rem;
        letter-spacing: 2px;
    }

    .hero h1 .h1-sub {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .tagline {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .founder-text h3 {
        font-size: 2rem;
    }

    .community-header h3 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}