/* ============================================================
   MAA ENERGY — GLOBAL STYLESHEET
   File: wp-content/themes/astra/assets/css/maaenergy-global.css
   Enqueued via: functions.php (see maaenergy-functions.php)
   ============================================================ */

/*
  FONT FIX: Bunny.net CDN loads faster in India than Google Fonts.
  Inter replaces Syne — no stretch at weight 800, sharper at all sizes.
  font-display:swap prevents invisible text while fonts load.
*/
@import url('https://fonts.bunny.net/css?family=inter:400,500,600,700,800|dm-sans:400,500,600&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --me-ink:      #0a1628;
  --me-deep:     #0d2240;
  --me-mid:      #1a4a7a;
  --me-sky:      #2b7de9;
  --me-teal:     #00b4a6;
  --me-lime:     #7ed320;
  --me-silver:   #f0f4f8;
  --me-white:    #ffffff;
  --me-text:     #3a4a5c;
  --me-muted:    #7a8fa6;
  --me-border:   #dde4ed;
  --me-grad:     linear-gradient(135deg, #0d2240 0%, #1a4a7a 50%, #2b7de9 100%);
  --me-grad2:    linear-gradient(135deg, #00b4a6 0%, #2b7de9 100%);
  --me-radius:   12px;
  --me-radius-lg:20px;
  --me-shadow:   0 4px 24px rgba(0,0,0,0.08);
  --me-shadow-lg:0 16px 48px rgba(0,0,0,0.12);
}

/* ── FONT VARIABLES ── */
:root {
  --me-font-head: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --me-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body,
.elementor-page {
  font-family: var(--me-font-body) !important;
  font-size: 16px;
  line-height: 1.65;
  color: var(--me-text) !important;
  background: var(--me-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings — Inter with tight tracking (no stretch) */
h1, h2, h3, h4, h5, h6,
.me-heading {
  font-family: var(--me-font-head) !important;
  color: var(--me-ink);
  line-height: 1.15;
  letter-spacing: -0.022em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem);  font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; }
h4 { font-size: 0.97rem; font-weight: 700; }
p  { line-height: 1.7; }

/* ── TOPBAR ── */
.me-topbar {
  background: var(--me-ink);
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  padding: 7px 0;
  font-family: var(--me-font-body);
}
.me-topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.me-topbar a { color: var(--me-teal); text-decoration: none; transition: opacity .2s; }
.me-topbar a:hover { opacity: 0.8; }
.me-topbar-right { display: flex; gap: 20px; }
.me-topbar-right a { color: rgba(255,255,255,0.6); }
.me-topbar-right a:hover { color: var(--me-teal); }

/* ── NAVBAR ── */
.me-nav {
  background: var(--me-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 9999;
  transition: box-shadow .3s, background .3s;
  font-family: var(--me-font-body);
}
.me-nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.13); }
.me-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 72px; gap: 32px;
}
.me-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.me-logo-icon {
  width: 42px; height: 42px;
  background: var(--me-grad2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.me-logo-icon svg { width: 22px; height: 22px; fill: white; }
.me-logo-text { font-family: var(--me-font-head); font-weight: 800; font-size: 1.22rem; color: var(--me-ink); line-height: 1; letter-spacing: -0.03em; }
.me-logo-text span { color: var(--me-teal); }

.me-nav-menu { display: flex; list-style: none; gap: 2px; margin: 0; padding: 0; flex: 1; }
.me-nav-menu > li { position: relative; }
.me-nav-menu > li > a {
  display: block; padding: 8px 13px;
  font-size: 0.85rem; font-weight: 500; color: var(--me-ink);
  text-decoration: none; border-radius: 7px; transition: all .2s;
  white-space: nowrap;
}
.me-nav-menu > li > a:hover,
.me-nav-menu > li.current > a { background: var(--me-silver); color: var(--me-sky); }
.me-has-drop > a::after { content: ' ▾'; font-size: 0.65rem; opacity: 0.55; }

.me-dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--me-white);
  border: 1px solid var(--me-border);
  border-radius: var(--me-radius);
  box-shadow: var(--me-shadow-lg);
  min-width: 210px; padding: 8px;
  z-index: 10000;
  animation: meFadeDown .18s ease;
}
@keyframes meFadeDown { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.me-has-drop:hover .me-dropdown { display: block; }
.me-dropdown a {
  display: block; padding: 9px 13px;
  color: var(--me-text); text-decoration: none; font-size: 0.85rem;
  border-radius: 8px; transition: all .15s;
}
.me-dropdown a:hover { background: var(--me-silver); color: var(--me-sky); padding-left: 17px; }
.me-drop-title {
  padding: 8px 13px 4px; font-size: 0.7rem; font-weight: 700;
  color: var(--me-teal); text-transform: uppercase; letter-spacing: 0.08em;
}
.me-drop-divider { height: 1px; background: var(--me-border); margin: 6px 8px; }

.me-nav-cta {
  background: var(--me-grad2) !important; color: white !important;
  padding: 9px 18px !important; border-radius: 8px !important;
  font-weight: 600 !important; font-size: 0.85rem !important;
  transition: all .25s !important; white-space: nowrap;
}
.me-nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px) !important; box-shadow: 0 6px 20px rgba(43,125,233,0.35) !important; }

/* Mobile hamburger */
.me-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; border-radius: 8px;
  background: var(--me-silver); margin-left: auto; border: none;
}
.me-hamburger span { width: 22px; height: 2px; background: var(--me-ink); border-radius: 2px; display: block; transition: all .3s; }

/* Mobile menu */
.me-mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--me-white); z-index: 99999; padding: 24px;
  overflow-y: auto;
}
.me-mobile-menu.open { display: block; }
.me-mobile-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; background: none; border: none; color: var(--me-ink); }
.me-mobile-nav { list-style: none; padding: 48px 0 0; margin: 0; }
.me-mobile-nav li a { display: block; padding: 14px 0; font-family: var(--me-font-head); font-size: 1.2rem; font-weight: 700; color: var(--me-ink); text-decoration: none; border-bottom: 1px solid var(--me-border); }
.me-mobile-nav li a:hover { color: var(--me-teal); }

/* ── FOOTER ── */
.me-footer { background: var(--me-ink); color: rgba(255,255,255,0.7); font-family: var(--me-font-body); }
.me-footer-top { padding: 72px 0 48px; }
.me-footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.me-footer-brand p { font-size: 0.87rem; line-height: 1.7; max-width: 280px; margin-top: 16px; }
.me-footer-social { display: flex; gap: 10px; margin-top: 24px; }
.me-social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.7); font-size: 0.8rem;
  text-decoration: none; transition: all .2s; font-family: var(--me-font-body);
}
.me-social-btn:hover { background: var(--me-teal); color: white; }
.me-footer-col h4 { font-family: var(--me-font-head); color: white; font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.me-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.me-footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.86rem; transition: color .2s; }
.me-footer-col ul li a:hover { color: var(--me-teal); }
.me-footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.86rem; line-height: 1.5; }
.me-footer-contact-icon { color: var(--me-teal); flex-shrink: 0; margin-top: 1px; }
.me-footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.me-footer-bottom-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 10px;
}
.me-footer-bottom-links { display: flex; gap: 20px; }
.me-footer-bottom-links a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color .2s; }
.me-footer-bottom-links a:hover { color: var(--me-teal); }

/* ── SHARED COMPONENTS ── */
.me-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.me-section { padding: 96px 0; }
.me-section-alt { background: var(--me-silver); }
.me-section-dark { background: var(--me-ink); }

.me-label {
  display: inline-block; font-size: 0.73rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--me-teal);
  background: rgba(0,180,166,0.1); padding: 5px 12px; border-radius: 20px;
  margin-bottom: 14px;
}
.me-section-dark .me-label { background: rgba(0,180,166,0.18); }

.me-title { font-family: var(--me-font-head) !important; font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; color: var(--me-ink); line-height: 1.18; letter-spacing: -0.025em; }
.me-section-dark .me-title { color: white; }
.me-title-white { color: white !important; }

.me-sub { font-size: 1rem; color: var(--me-muted); line-height: 1.7; margin-top: 12px; }
.me-sub-white { color: rgba(255,255,255,0.65) !important; }
.me-text-center { text-align: center; }
.me-text-center .me-sub { max-width: 540px; margin: 12px auto 0; }

/* ── BUTTONS ── */
.me-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 9px; font-family: var(--me-font-body);
  font-weight: 600; font-size: 0.93rem; text-decoration: none;
  transition: all .25s; cursor: pointer; border: none;
}
.me-btn-primary { background: var(--me-teal); color: white; }
.me-btn-primary:hover { background: #00cbbf; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,180,166,0.4); color: white; }
.me-btn-secondary { background: var(--me-sky); color: white; }
.me-btn-secondary:hover { background: #1a6dd4; transform: translateY(-2px); color: white; }
.me-btn-dark { background: var(--me-ink); color: white; }
.me-btn-dark:hover { background: var(--me-mid); transform: translateY(-2px); color: white; }
.me-btn-outline { border: 2px solid var(--me-border); color: var(--me-ink); background: transparent; }
.me-btn-outline:hover { border-color: var(--me-sky); color: var(--me-sky); background: rgba(43,125,233,0.05); }
.me-btn-outline-white { border: 2px solid rgba(255,255,255,0.4); color: white; background: transparent; }
.me-btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.1); color: white; }
.me-btn-grad { background: var(--me-grad2); color: white; }
.me-btn-grad:hover { opacity: 0.88; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,125,233,0.35); color: white; }

/* ── PAGE HERO (Inner pages) ── */
.me-page-hero {
  background: var(--me-grad);
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.me-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(0,180,166,0.15), transparent 60%);
}
.me-page-hero-inner { position: relative; z-index: 1; }
.me-page-hero h1 { font-family: var(--me-font-head); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1.1; }
.me-page-hero p { color: rgba(255,255,255,0.75); font-size: 1.05rem; margin-top: 12px; max-width: 580px; }
.me-breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.me-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.82rem; }
.me-breadcrumb a:hover { color: var(--me-teal); }
.me-breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.me-breadcrumb-current { color: rgba(255,255,255,0.75); font-size: 0.82rem; }

/* ── CARDS ── */
.me-card {
  background: var(--me-white); border-radius: var(--me-radius-lg);
  border: 1px solid var(--me-border); transition: all .3s;
  overflow: hidden;
}
.me-card:hover { transform: translateY(-6px); box-shadow: var(--me-shadow-lg); border-color: transparent; }
.me-card-body { padding: 28px; }

/* ── FEATURE ITEM ── */
.me-feat { display: flex; gap: 18px; align-items: flex-start; }
.me-feat-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--me-grad2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.me-feat-text h4 { font-family: var(--me-font-head); font-weight: 700; color: var(--me-ink); margin-bottom: 5px; font-size: 1rem; }
.me-feat-text p { font-size: 0.875rem; color: var(--me-muted); line-height: 1.6; }

/* ── STAT BADGE ── */
.me-stat-num { font-family: var(--me-font-head); font-size: 1.95rem; font-weight: 800; color: white; line-height: 1; letter-spacing: -0.04em; }
.me-stat-num span { color: var(--me-teal); }
.me-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ── TAGS ── */
.me-tag {
  background: var(--me-silver); color: var(--me-mid);
  padding: 4px 11px; border-radius: 20px; font-size: 0.75rem; font-weight: 500;
  display: inline-block;
}

/* ── SPEC TABLE ── */
.me-spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.me-spec-table th { background: var(--me-ink); color: white; padding: 12px 16px; text-align: left; font-family: var(--me-font-head); font-size: 0.85rem; }
.me-spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--me-border); color: var(--me-text); }
.me-spec-table tr:nth-child(even) td { background: var(--me-silver); }
.me-spec-table tr:last-child td { border-bottom: none; }

/* ── CTA BANNER ── */
.me-cta-banner {
  background: var(--me-grad); padding: 80px 0; text-align: center; position: relative; overflow: hidden;
}
.me-cta-banner::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,180,166,0.18), transparent 70%);
  pointer-events: none;
}
.me-cta-inner { position: relative; z-index: 1; }
.me-cta-banner h2 { font-family: var(--me-font-head); font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -0.025em; }
.me-cta-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 520px; margin: 0 auto 36px; }
.me-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FORM STYLES ── */
.me-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--me-ink); margin-bottom: 6px; }
.me-form input,
.me-form select,
.me-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--me-border); border-radius: 10px;
  font-family: var(--me-font-body); font-size: 0.9rem; color: var(--me-ink);
  background: white; transition: border-color .2s, box-shadow .2s; outline: none;
  margin-bottom: 18px;
}
.me-form input:focus,
.me-form select:focus,
.me-form textarea:focus {
  border-color: var(--me-sky);
  box-shadow: 0 0 0 3px rgba(43,125,233,0.12);
}
.me-form textarea { resize: vertical; min-height: 120px; }
.me-form .wpcf7-submit {
  width: 100%; padding: 14px;
  background: var(--me-grad2); color: white;
  border: none; border-radius: 10px;
  font-family: var(--me-font-head); font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: all .25s;
}
.me-form .wpcf7-submit:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(43,125,233,0.35); }

/* ── GRID UTILITIES ── */
.me-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.me-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.me-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.me-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.me-grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.me-gap-48 { gap: 48px; }
.me-gap-64 { gap: 64px; }
.me-align-center { align-items: center; }
.me-mt-40 { margin-top: 40px; }
.me-mt-56 { margin-top: 56px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .me-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .me-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .me-nav-menu { display: none; }
  .me-hamburger { display: flex; }
  .me-grid-2, .me-grid-3, .me-grid-4,
  .me-grid-2-1, .me-grid-1-2 { grid-template-columns: 1fr; }
  .me-footer-grid { grid-template-columns: 1fr; }
  .me-section { padding: 64px 0; }
  .me-topbar-right { display: none; }
}
@media (max-width: 480px) {
  .me-container { padding: 0 16px; }
  .me-cta-actions { flex-direction: column; align-items: center; }
}
