/*
Theme Name: Mahaland 2.0
Theme URI: https://mahaland.com
Author: Nyanetic
Author URI: https://nyanetic.com
Description: Custom WordPress Theme for Mahaland, featuring a fully modularized architecture, custom shortcodes, advanced AJAX grids, Swiper carousels, and dynamic custom post types (Portfolio & Careers). Built meticulously on top of Hello Elementor.
Version: 8.2
Tested up to: 6.5
Requires PHP: 8.0
Template: hello-elementor
Text Domain: mahaland
*/

/* ============================================================
   MAHALAND — GLOBAL STYLESHEET
   File: mahaland-global.css
   Paste in: Elementor → Site Settings → Custom CSS
   OR: Appearance → Customize → Additional CSS
   OR: child theme style.css
   ============================================================ */

/* ==========================================
   1. Typography / Font Face Definitions
   ========================================== */

/* Britanica Regular (Weight: 400) - For Body Text */
@font-face {
    font-family: 'Britanica';
    src: url('./assets/fonts/britanica-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* Britanica Bold (Weight: 700) - For H4 to H6 */
@font-face {
    font-family: 'Britanica';
    src: url('./assets/fonts/britanica-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* Britanica Black (Weight: 900) - For H1 to H3 */
@font-face {
    font-family: 'Britanica';
    src: url('./assets/fonts/britanica-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

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

/* ==========================================
     1. MAIN DESIGN TOKENS (Mahaland Standard)
     ========================================== */
:root {
  --mhl-blue:        #214392;
  --mhl-orange:      #faa62c;
  --mhl-gray:        #697079;
  --mhl-gray-lt:     #cfd1d2;
  --mhl-light:       #f7f7f5;
  --mhl-dark-navy:   #0b1a35;
  --mhl-dark:        #0d1b2a;
  --mhl-white:       #ffffff;
  --mhl-font:        'Inter', sans-serif;
  --mhl-font-title:  'Britanica', sans-serif;  
  --mhl-radius:      12px;
  --mhl-container:   1320px;
  --mhl-pad-desktop: 96px 48px;
  --mhl-pad-mobile:  64px 24px;


  /* ==========================================
     2. BACKWARD COMPATIBILITY ALIASES (--ml-*)
     ========================================== */
  --ml-blue:         var(--mhl-blue);
  --ml-orange:       var(--mhl-orange);
  --ml-gray:         var(--mhl-gray);
  --ml-gray-lt:      var(--mhl-gray-lt);
  --ml-dark:         var(--mhl-dark);
  --ml-white:        var(--mhl-white);
  --ml-black:        #222222;
  --ml-section-bg:   #f5f6f7;
  --ml-font:         var(--mhl-font);
  --ml-font-display: var(--mhl-font-title);
  --ml-radius:       var(--mhl-radius);
  --ml-container:    var(--mhl-container);
  --ml-pad-desktop:  var(--mhl-pad-desktop);
  --ml-pad-mobile:   var(--mhl-pad-mobile);
}

/* ── Base Reset for Elementor sections ── */
.mhl-section,
.elementor-section.mhl-section {
  font-family: var(--mhl-font);
  color: var(--mhl-dark);
}

/* ================================================================
   HEADING ASSIGNMENTS (H1-H6)
   ================================================================ */

/* H1 to H3 (Britanica Black - Weight 900) */
.mhl-section h1, 
.mhl-section h2, 
.mhl-section h3, 
.mhl-section .ml-title--lg {
  font-family: var(--mhl-font-title) !important;
  font-weight: 900;
}

/* H4 to H6 (Britanica Bold - Weight 700) */
.mhl-section h4, 
.mhl-section h5, 
.mhl-section h6,
.mhl-section .ml-title {
  font-family: var(--mhl-font-title) !important;
  font-weight: 700;
}

/* ================================================================
   SECTION 1 — NAV
   ================================================================ */
.mhl-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  font-family: var(--mhl-font);
}
.mhl-nav-logo { display: flex; align-items: baseline; text-decoration: none; }
.mhl-nav-logo .maha { font-size: 22px; font-weight: 700; color: var(--mhl-blue); letter-spacing: -0.5px; }
.mhl-nav-logo .land { font-size: 22px; font-weight: 700; color: var(--mhl-orange); letter-spacing: -0.5px; }
.mhl-nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.mhl-nav-links a { font-size: 14px; color: var(--mhl-gray); font-weight: 400; text-decoration: none; transition: color 0.2s; }
.mhl-nav-links a:hover { color: var(--mhl-blue); }
.mhl-nav-links a.active { color: var(--mhl-blue); font-weight: 500; }
@media (max-width: 900px) {
  .mhl-nav-links { display: none; }
  .mhl-nav-wrap { padding: 0; }
}

/* ================================================================
   SECTION 2 — HERO
   ================================================================ */
.mhl-hero-section .elementor-column-wrap,
.mhl-hero-section .elementor-widget-container {
  height: 100%;
}
.mhl-hero-content { padding: 0 0 80px 0; }
.mhl-hero-overline {
  font-family: var(--mhl-font);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mhl-orange);
  margin-bottom: 14px;
  display: block;
}
.mhl-hero-h1 {
  font-family: var(--mhl-font-title);
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.06;
  letter-spacing: -1px;
  max-width: 700px;
  margin: 0 0 20px;
}
.mhl-hero-sub {
  font-family: var(--mhl-font);
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.mhl-hero-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.mhl-btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mhl-orange); color: #fff;
  font-family: var(--mhl-font); font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--mhl-radius);
  text-decoration: none; transition: background 0.2s;
}
.mhl-btn-primary:hover { background: #e8941a; color: #fff; }
.mhl-btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.65); color: #fff;
  font-family: var(--mhl-font); font-size: 14px; font-weight: 500;
  padding: 14px 28px; border-radius: var(--mhl-radius);
  text-decoration: none; transition: border-color 0.2s;
}
.mhl-btn-outline:hover { border-color: #fff; color: #fff; }
.mhl-btn-blue {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mhl-blue); color: #fff;
  font-family: var(--mhl-font); font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: var(--mhl-radius);
  text-decoration: none; transition: background 0.2s;
}
.mhl-btn-blue:hover { background: #1a3578; color: #fff; }

/* ================================================================
   SECTION 3 — WHAT WE DO (header block)
   ================================================================ */
.mhl-section-overline {
  font-family: var(--mhl-font);
  font-size: 12px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--mhl-orange); margin-bottom: 12px; display: block;
}
.mhl-section-title {
  font-family: var(--mhl-font-title);
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 900;
  color: var(--mhl-blue); line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.mhl-section-sub {
  font-family: var(--mhl-font);
  font-size: 16px; color: var(--mhl-gray); font-weight: 300;
  max-width: 600px; line-height: 1.7; margin-bottom: 0;
}

/* ================================================================
   SECTION 4 — SERVICE CARDS
   ================================================================ */
.mhl-service-card {
  background: var(--mhl-white);
  border-top: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.mhl-service-card:hover {
  border-top-color: var(--mhl-orange);
  transform: translateY(-4px);
}
.mhl-card-num {
  font-family: var(--mhl-font);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: var(--mhl-orange); margin-bottom: 24px; display: block;
}
.mhl-card-title {
  font-family: var(--mhl-font-title);
  font-size: 20px; font-weight: 700; color: var(--mhl-blue);
  margin-bottom: 12px; line-height: 1.25;
}
.mhl-card-body {
  font-family: var(--mhl-font);
  font-size: 15px; color: var(--mhl-gray); font-weight: 300; line-height: 1.7;
}
.mhl-card-arrow {
  font-family: var(--mhl-font);
  font-size: 13px; font-weight: 600; color: var(--mhl-blue);
  text-decoration: none; letter-spacing: 0.5px;
  display: inline-block; margin-top: 24px;
  transition: color 0.2s;
}
.mhl-card-arrow:hover { color: var(--mhl-orange); }

/* ================================================================
   SECTION 5 — OUR WORK
   ================================================================ */
.mhl-work-header {
  padding: 80px 48px 48px;
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap; gap: 16px;
}
.mhl-work-title {
  font-family: var(--mhl-font-title);
  font-size: clamp(26px, 3vw, 40px); font-weight: 700;
  color: #fff; line-height: 1.15; letter-spacing: -0.5px;
}
.mhl-view-all {
  font-family: var(--mhl-font);
  font-size: 14px; font-weight: 500; color: var(--mhl-orange);
  text-decoration: none; white-space: nowrap;
}
.mhl-work-scroll {
  display: flex; gap: 2px; overflow-x: auto;
  padding: 0 48px 80px; scrollbar-width: none;
}
.mhl-work-scroll::-webkit-scrollbar { display: none; }
.mhl-work-card {
  min-width: 320px; height: 420px;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.mhl-work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.mhl-work-card:hover img { transform: scale(1.04); }
.mhl-work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 28px;
}
.mhl-work-tag {
  font-family: var(--mhl-font);
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mhl-orange); margin-bottom: 8px;
}
.mhl-work-name {
  font-family: var(--mhl-font);
  font-size: 22px; font-weight: 700; color: #fff; line-height: 1.2;
}
.mhl-work-sub {
  font-family: var(--mhl-font);
  font-size: 13px; color: rgba(255,255,255,0.65);
  margin-top: 4px; font-weight: 300;
}
@media (max-width: 900px) {
  .mhl-work-header { padding: 56px 24px 32px; flex-direction: column; align-items: flex-start; }
  .mhl-work-scroll { padding: 0 24px 56px; }
}

/* ================================================================
   SECTION 6 — OUR APPROACH
   ================================================================ */
.mhl-approach-left h2 {
  font-family: var(--mhl-font);
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  color: var(--mhl-blue); line-height: 1.1; letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.mhl-approach-left p {
  font-family: var(--mhl-font);
  font-size: 16px; color: rgba(33,67,146,0.82);
  font-weight: 300; line-height: 1.75; margin-bottom: 28px;
}
.mhl-values-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.mhl-value-box {
  background: rgba(255,255,255,0.22);
  border-radius: var(--mhl-radius); padding: 28px 22px;
}
.mhl-value-box h4 {
  font-family: var(--mhl-font);
  font-size: 15px; font-weight: 700; color: var(--mhl-blue);
  margin-bottom: 8px; line-height: 1.3;
}
.mhl-value-box p {
  font-family: var(--mhl-font);
  font-size: 13px; color: rgba(33,67,146,0.72);
  font-weight: 400; line-height: 1.6; margin: 0;
}
@media (max-width: 900px) {
  .mhl-values-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   SECTION 7 — CAREERS SPLIT
   ================================================================ */
.mhl-careers-content {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; padding: 80px 56px;
}
.mhl-careers-content h2 {
  font-family: var(--mhl-font);
  font-size: clamp(28px, 3vw, 42px); font-weight: 700;
  color: #fff; line-height: 1.1; margin-bottom: 18px; letter-spacing: -0.5px;
}
.mhl-careers-content p {
  font-family: var(--mhl-font);
  font-size: 15px; color: rgba(255,255,255,0.75);
  font-weight: 300; line-height: 1.7; max-width: 380px; margin-bottom: 32px;
}
@media (max-width: 900px) {
  .mhl-careers-content { padding: 56px 32px; }
}

/* ================================================================
   SECTION 8 — CONTACT STRIP
   ================================================================ */
.mhl-contact-col-title {
  font-family: var(--mhl-font);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--mhl-orange); margin-bottom: 18px;
}
.mhl-contact-link {
  font-family: var(--mhl-font);
  font-size: 15px; color: var(--mhl-gray); font-weight: 300;
  line-height: 1.9; display: block; text-decoration: none;
  transition: color 0.2s;
}
.mhl-contact-link:hover { color: var(--mhl-blue); }
.mhl-contact-body {
  font-family: var(--mhl-font);
  font-size: 15px; color: var(--mhl-gray); font-weight: 300; line-height: 1.9;
}
.mhl-contact-form { display: flex; flex-direction: column; gap: 10px; }
.mhl-contact-form input,
.mhl-contact-form textarea {
  width: 100%; background: #fff; border: 1px solid #ddd;
  border-radius: var(--mhl-radius); padding: 10px 14px;
  font-size: 14px; font-family: var(--mhl-font); color: var(--mhl-dark);
  outline: none; resize: none; transition: border-color 0.2s;
}
.mhl-contact-form input:focus,
.mhl-contact-form textarea:focus { border-color: var(--mhl-blue); }
.mhl-contact-form textarea { height: 80px; }
.mhl-contact-form button {
  background: var(--mhl-blue); color: #fff; border: none;
  padding: 12px 24px; font-size: 13px; font-weight: 600;
  font-family: var(--mhl-font); cursor: pointer;
  border-radius: var(--mhl-radius); align-self: flex-start;
  transition: background 0.2s;
}
.mhl-contact-form button:hover { background: #1a3578; }

/* ================================================================
   SECTION 9 — FOOTER
   ================================================================ */
.mhl-footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 32px;
  flex-wrap: wrap; gap: 24px;
}
.mhl-footer-logo-wrap .maha { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -1px; }
.mhl-footer-logo-wrap .land { font-size: 32px; font-weight: 700; color: var(--mhl-orange); letter-spacing: -1px; }
.mhl-footer-tagline {
  font-family: var(--mhl-font);
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-weight: 300; margin-top: 6px; letter-spacing: 1px;
}
.mhl-footer-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.mhl-footer-nav a {
  font-family: var(--mhl-font);
  font-size: 13px; color: rgba(255,255,255,0.5);
  font-weight: 300; text-decoration: none; transition: color 0.2s;
}
.mhl-footer-nav a:hover { color: #fff; }
.mhl-footer-social { display: flex; gap: 12px; }
.mhl-social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--mhl-radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 700;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
  font-family: var(--mhl-font);
}
.mhl-social-btn:hover { border-color: var(--mhl-orange); color: var(--mhl-orange); }
.mhl-footer-divider {
  border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0 0 24px;
}
.mhl-footer-copy {
  font-family: var(--mhl-font);
  font-size: 12px; color: rgba(255,255,255,0.28); font-weight: 300;
}

/* ================================================================
   GLOBAL RESPONSIVE HELPERS
   ================================================================ */
@media (max-width: 900px) {
  .elementor-section.mhl-section > .elementor-container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .mhl-section-title { font-size: 28px !important; }
}

/* ── Hide default theme header/footer on this page ── */
body.page-template-elementor_canvas .site-header,
body.page-template-elementor_canvas .site-footer,
body.page-template-elementor_header-footer .site-header,
body.page-template-elementor_header-footer .site-footer {
  display: none !important;
}

/* Custom CSS */
.scroll-down-arrow svg { stroke: #ffffff; }

/* 16:9 Background Video CSS */
.hero-video-section { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; }
.video-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.video-container video, .video-container iframe { width: 100vw; height: 56.25vw; min-height: 100vh; min-width: 177.77vh; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); object-fit: cover; }
.hero-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.reveal-text, .scroll-reveal { opacity: 0; transform: translateY(50px); transition: none; }

/* Career Page Title Removal */
.page-id-646 .entry-title {
    display: none !important;
}

/* Accessibility Contrast (Hidden Plugin Button) */
button#cgw_action_btn {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Mobile View: Footer Bottom Credit Line fixing */
@media (max-width: 768px) {
    .ml-footer-bottom { 
        align-items: flex-start !important; 
        text-align: left !important; 
        gap: 0.3rem !important; 
    }
    .ml-footer-bottom p, 
    .ml-footer-bottom a {
        font-size: 11px !important; 
        line-height: 1 !important; 
    }
    .ml-footer-bottom p span {
        margin-left: 0 !important;
    }
}

/* =================================================================
   MAHALAND 2.0 - CUSTOM STYLES
   ================================================================= 
   Note: Core logic and modularized CSS are loaded via functions.php 
   and inside the /inc/ and /assets/ directories. You can add any 
   additional minor CSS overrides below this line.
   =================================================================
   MIGRATED UTILITIES & FIXES (From ml_design_system)
==================================================================== */

/* 1. Fix Top White Gap & Header Overlay */
html, body { 
    margin: 0 !important; 
    padding: 0 !important; 
}
.site-main, #main, #content, .page-content, .entry-content { 
    margin-top: 0 !important; 
    padding-top: 0 !important; 
}
.elementor-location-header { 
    position: absolute !important; 
    width: 100% !important; 
    top: 0; 
    left: 0; 
    z-index: 99999; 
}
p:empty { display: none !important; }

/* 2. Container & Breakout Layouts */
.ml-fw-breakout { 
    width: 100vw !important; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw !important; 
    margin-right: -50vw !important; 
    max-width: 100vw !important; 
    box-sizing: border-box; 
}
.ml-inner-container { 
    max-width: 1320px; 
    margin: 0 auto; 
    padding: 0 1.5rem; 
    width: 100%; 
    box-sizing: border-box; 
}

/* 3. Typography Modifiers & Overlines */
.ml-overline { 
    display: block; 
    font-family: var(--mhl-font); 
    font-size: 0.78rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.15em; 
    line-height: 1.4; 
    color: var(--mhl-orange); 
    margin-bottom: 0.75rem; 
}

.ml-port-item { scroll-margin-top: 120px; }
.ml-title--xl { font-size: clamp(2.5rem, 5vw, 4.25rem); }
.ml-title--lg { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
.ml-title--md { font-size: clamp(1.5rem, 2.5vw, 2rem); }

.ml-subtitle { 
    font-family: var(--mhl-font); 
    font-size: clamp(1rem, 1.5vw, 1.15rem); 
    font-weight: 300; 
    line-height: 1.7; 
    margin: 0; 
}

/* Color Themes (On Dark / On Light) */
.ml-on-dark .ml-title { color: var(--mhl-white); }
.ml-on-light .ml-title { color: var(--mhl-blue); }
.ml-on-dark .ml-subtitle { color: rgba(255, 255, 255, 0.75); }
.ml-on-light .ml-subtitle { color: var(--mhl-gray); }

/* 4. Global Utility Buttons */
.ml-btn-primary, 
.ml-btn-outline, 
.ml-btn-text { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-family: var(--mhl-font); 
    font-weight: 600; 
    font-size: 0.95rem; 
    text-decoration: none !important; 
    transition: 0.35s ease; 
    cursor: pointer; 
}

.ml-btn-primary { 
    padding: 0.85rem 2rem; 
    border: 2px solid var(--mhl-blue); 
    border-radius: 50px; 
    background: var(--mhl-blue); 
    color: #ffffff !important; 
}
.ml-btn-primary:hover { 
    background: var(--mhl-orange); 
    border-color: var(--mhl-orange); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(250, 166, 44, 0.3); 
}

.ml-btn-text { 
    padding: 0; 
    border: none; 
    background: none; 
    color: var(--mhl-blue) !important; 
}
.ml-btn-text::after { 
    content: "→"; 
    transition: 0.3s ease; 
    font-size: 1.15rem; 
    margin-left: 2px; 
}
.ml-btn-text:hover { color: var(--mhl-orange) !important; }
.ml-btn-text:hover::after { transform: translateX(4px); }

.ml-on-dark .ml-btn-primary { 
    background: var(--mhl-orange); 
    border-color: var(--mhl-orange); 
}
.ml-on-dark .ml-btn-primary:hover { 
    background: #ffffff; 
    color: var(--mhl-blue) !important; 
    border-color: #ffffff; 
}
.ml-on-dark .ml-btn-text { color: var(--mhl-white) !important; }
.ml-on-dark .ml-btn-text:hover { color: var(--mhl-orange) !important; }

.ml-btn-group { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 1rem; 
}