/* ==========================================================================
   CSS BRAND SYSTEM & RESET FOR NOKAN GROUP
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #62B16D;
    --color-primary-hover: #4e9d59;
    --color-dark: #1e2229;
    --color-dark-muted: #2d333f;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-light-bg: #f9fafb;
    --color-white: #ffffff;
    --color-border: #eaeaea;
    
    /* Fonts */
    --font-heading: 'Comfortaa', cursive, sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Layout & Styling Values */
    --container-width: 1140px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Reset styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-white);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Base typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.3;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-primary-hover);
}

ul {
    list-style: none;
}

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

/* Buttons */
.button {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center;
}

.button:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(98, 177, 109, 0.3);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid & Flex Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-md-6 { width: 50%; padding: 0 15px; }
.col-md-4 { width: 33.333%; padding: 0 15px; }
.col-md-5 { width: 41.667%; padding: 0 15px; }
.col-md-7 { width: 58.333%; padding: 0 15px; }

@media (max-width: 768px) {
    .col-md-6, .col-md-4, .col-md-5, .col-md-7 {
        width: 100% !important;
        margin-bottom: 2rem;
    }
}

/* Spacer Utilities */
.section {
    padding: 80px 0;
}

.section.background-alt {
    background-color: var(--color-light-bg);
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

#site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-logo .site-title a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.site-logo .site-title a span {
    color: var(--color-primary);
}

/* Desktop navigation */
.primary-nav .menu {
    display: flex;
    align-items: center;
}

.primary-nav .menu > li {
    position: relative;
    padding: 0 15px;
}

.primary-nav .menu > li > a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-dark);
    padding: 10px 0;
    position: relative;
}

.primary-nav .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.primary-nav .menu > li:hover > a {
    color: var(--color-primary);
}

.primary-nav .menu > li:hover > a::after {
    width: 100%;
}

.primary-nav .menu > li.current-menu-item > a {
    color: var(--color-primary);
}

.primary-nav .menu > li.current-menu-item > a::after {
    width: 100%;
}

/* Submenu / Dropdowns on Desktop */
.primary-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.primary-nav .menu > li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav .sub-menu li {
    width: 100%;
}

.primary-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--color-dark-muted);
}

.primary-nav .sub-menu li a:hover {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
    padding-left: 25px;
}

/* Mobile Menu Toggle Button */
.mobile-only {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-dark);
    transition: var(--transition-smooth);
}

.menu-toggle::before { top: 0; }
.menu-toggle span { top: 11px; }
.menu-toggle::after { bottom: 0; }

.menu-toggle.active::before {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span {
    opacity: 0;
}

.menu-toggle.active::after {
    transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================================================
   SUBPAGE HEADER HERO BANNER
   ========================================================================== */

.subpage-hero {
    height: 220px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-white);
    margin-bottom: 2rem;
    overflow: hidden;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(98, 177, 109, 0.25), transparent);
    z-index: 1;
}

.subpage-hero .container {
    position: relative;
    z-index: 2;
}

.subpage-hero h1 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.subpage-hero .breadcrumbs {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.subpage-hero .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.subpage-hero .breadcrumbs span {
    color: var(--color-primary);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC SECTIONS
   ========================================================================== */

/* Hero Banner */
.home-banner {
    position: relative;
    height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--color-white);
}

.home-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
}

.home-banner .container {
    position: relative;
    z-index: 2;
}

.banner-caption {
    max-width: 600px;
    margin: 0 auto;
}

.banner-caption h2 {
    font-size: 2.75rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.banner-caption h2 span {
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 5px;
}

/* Featured Section (Azmar Air) */
.featured-product {
    padding: 80px 0;
}

.featured-product img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.featured-product img:hover {
    transform: translateY(-5px);
}

.featured-product .align-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.featured-product h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.featured-product h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
}

.featured-product p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    text-align: justify;
}

/* Feature Boxes Grid */
.featured_products-wrapper {
    background-color: var(--color-light-bg);
}

.feature-box {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    margin-bottom: 30px;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.feature-text {
    padding: 1.5rem;
}

.feature-text h2 {
    font-size: 1.35rem;
    color: var(--color-dark);
    font-family: var(--font-heading);
}

/* PR Section */
.pr-section {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-muted) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.pr-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98, 177, 109, 0.15) 0%, transparent 70%);
}

.pr-section h5 {
    color: var(--color-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.pr-section h2 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 2rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--color-primary);
    padding: 2rem;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    height: 100%;
    transition: var(--transition-smooth);
}

.testimonial:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.testimonial blockquote p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   INTERNAL PAGE CONTENT CARDS
   ========================================================================== */

.content-row {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
}

.content-row:nth-child(even) {
    flex-direction: row-reverse;
}

.content-row:nth-child(even) .content-text {
    padding-left: 0;
    padding-right: 3rem;
}

.content-image {
    width: 45%;
}

.content-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    width: 100%;
}

.content-image img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-text {
    width: 55%;
    padding-left: 3rem;
}

.content-text h2 {
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.content-text h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.content-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    text-align: justify;
    margin-top: 1rem;
}

/* Hub page / Departments Grid */
.dept-hub-logo {
    margin: 0 auto 3rem auto;
    background-color: var(--color-light-bg);
    border-radius: 50%;
    padding: 1.5rem;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.dept-hub-logo img {
    width: 120px;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.dept-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.dept-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.dept-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.dept-card .btn-link {
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
}

.dept-card .btn-link svg {
    margin-left: 8px;
    transition: var(--transition-smooth);
}

.dept-card:hover .btn-link svg {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }
    
    .content-row {
        flex-direction: column !important;
        margin-bottom: 3rem;
    }
    
    .content-image, .content-text {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .content-image {
        margin-bottom: 1.5rem;
    }
}

/* ==========================================================================
   CONTACT PAGE DETAILS & MAP
   ========================================================================== */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    margin-top: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    margin-right: 1.25rem;
    flex-shrink: 0;
    background-color: rgba(98, 177, 109, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.contact-info-text h4 {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

.contact-info-text p,
.contact-info-text a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}

.contact-info-text a:hover {
    color: var(--color-primary);
}

.contact-map {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.contact-map iframe {
    display: block;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */

#site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    border-top: 4px solid var(--color-primary);
}

.footer-widgets-row {
    padding-bottom: 50px;
}

.footer-widgets-row .row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.footer-logo h2 span {
    color: var(--color-primary);
}

.footer-address {
    margin-top: 1rem;
}

.footer-address-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-address-item span {
    margin-right: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-address-item a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-address-item a:hover {
    color: var(--color-primary);
}

.widget-title h4 {
    color: var(--color-white);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.widget-title h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-brand-logo {
    display: flex;
    justify-content: flex-end;
}

.footer-brand-logo figure img {
    max-width: 280px;
    border-radius: var(--border-radius-md);
    opacity: 0.9;
    transition: var(--transition-smooth);
}

.footer-brand-logo figure img:hover {
    opacity: 1;
}

.copyright {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    text-align: center;
}

.copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991px) {
    .footer-widgets-row .row {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand-logo {
        grid-column: span 2;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-widgets-row .row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-brand-logo {
        grid-column: span 1;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER OVERLAY
   ========================================================================== */

@media (max-width: 991px) {
    .mobile-only {
        display: block;
    }
    
    .primary-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--color-white);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        padding: 30px 20px;
        overflow-y: auto;
        border-right: 1px solid var(--color-border);
    }
    
    .primary-nav.active {
        left: 0;
    }
    
    .primary-nav .menu {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .primary-nav .menu > li {
        width: 100%;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .primary-nav .menu > li > a {
        display: block;
        padding: 10px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .primary-nav .menu > li > a::after {
        display: none;
    }
    
    /* Submenu for Mobile */
    .primary-nav .sub-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding: 10px 0 0 15px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        background-color: transparent;
    }
    
    .primary-nav .menu > li.submenu-active .sub-menu {
        display: block;
    }
    
    .primary-nav .menu > li.menu-item-has-children > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .primary-nav .menu > li.menu-item-has-children > a::after {
        content: '\25BE'; /* Downwards black triangle */
        display: block;
        font-size: 0.8rem;
        color: var(--color-dark);
        border: none;
        position: static;
        width: auto;
        height: auto;
        background: none;
    }
    
    .primary-nav .menu > li.submenu-active > a::after {
        content: '\25B4'; /* Upwards black triangle */
    }
}
