/* ============================================================
   MCA Consult Ltd — Site Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary:    #2EA3F2;
  --teal:       #7EBEC5;
  --dark:       #2E363C;
  --footer-bg:  #222222;
  --footer-btm: #1f1f1f;
  --text:       #666666;
  --heading:    #333333;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --header-h:   73px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 500;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: 0.8; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Site Header ─────────────────────────────────────────── */
#site-header {
  background: var(--white);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

/* ── Hero banner logo ── */
.hero-logo {
  display: block;
  height: 80px;
  width: auto;
  margin-bottom: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

/* ── Navigation ──────────────────────────────────────────── */
.site-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
}

.site-nav li { position: relative; }

.site-nav > ul > li > a,
.site-nav > ul > li > span.nav-top {
  display: block;
  padding: 10px 14px;
  color: rgba(0,0,0,0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s;
  user-select: none;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a,
.site-nav > ul > li.open > span.nav-top { color: var(--primary); }

/* First-level dropdown */
.site-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--primary);
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  list-style: none;
  z-index: 500;
  padding: 4px 0;
}
.site-nav li.open > .dropdown { display: block; }

.site-nav .dropdown > li > a,
.site-nav .dropdown > li > span.nav-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.site-nav .dropdown > li > a:hover,
.site-nav .dropdown > li > span.nav-sub:hover,
.site-nav .dropdown > li.open > span.nav-sub { color: var(--primary); background: #f5f5f5; }

/* Second-level submenu */
.site-nav .submenu {
  display: none;
  position: absolute;
  top: -7px;
  left: 100%;
  background: var(--white);
  border-top: 3px solid var(--primary);
  min-width: 240px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  list-style: none;
  z-index: 501;
  padding: 4px 0;
}
.site-nav .has-submenu.open > .submenu { display: block; }

.site-nav .submenu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.site-nav .submenu a:hover { color: var(--primary); background: #f5f5f5; }

.nav-caret { font-size: 10px; opacity: 0.5; margin-left: 4px; }

/* ── Mobile toggle ───────────────────────────────────────── */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--heading);
  padding: 6px;
  line-height: 1;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--header-h));
  background: url('https://mcaconsultltd.com/wp-content/uploads/2025/01/gas_plant.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,22,40,0.93) 0%,
    rgba(10,22,40,0.78) 45%,
    rgba(10,22,40,0.35) 100%
  );
}
.hero-content {
  position: relative;
  padding: 100px 0;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--primary);
}
.hero-content h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 540px;
  font-weight: 400;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero-primary:hover { background: #1a90e0; opacity: 1; transform: translateY(-1px); }
.btn-hero-ghost {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.88);
  padding: 13px 32px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,0.7); color: white; opacity: 1; transform: translateY(-1px); }

/* ── Section intro ───────────────────────────────────────── */
.section-intro {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 56px;
}
.section-intro h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 32px;
  color: var(--heading);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-intro p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.section-intro--light h2 { color: var(--white); }
.section-intro--light p  { color: rgba(255,255,255,0.65); }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-eyebrow--light { color: rgba(255,255,255,0.55); }

/* ── Services ────────────────────────────────────────────── */
.services-section { padding: 96px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: background 0.18s;
}
.service-card:hover { background: #f7fbff; }

.service-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e8f4fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.service-icon svg { width: 22px; height: 22px; }

.service-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.45;
  margin: 0;
  padding-top: 10px;
}

/* ── Tools section ───────────────────────────────────────── */
.tools-section {
  background: #0d1b2e;
  padding: 96px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: block;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  overflow: hidden;
}
.tool-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  transform: translateY(-3px);
  opacity: 1;
}
.tool-card-inner { padding: 28px 28px 32px; }
.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tool-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.tool-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.tool-tag {
  display: inline-block;
  background: rgba(46,163,242,0.15);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
  border: 1px solid rgba(46,163,242,0.25);
}
.tool-arrow {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.tool-card:hover .tool-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* kept for tool pages that may still reference these */
.section-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: 28px;
  color: var(--heading);
  text-align: center;
  margin-bottom: 10px;
  font-weight: 400;
}
.section-sub {
  text-align: center;
  color: var(--text);
  margin-bottom: 44px;
  font-size: 14px;
}

/* ── Footer ──────────────────────────────────────────────── */
#site-footer { background: var(--footer-bg); }

.footer-main {
  background: var(--dark);
  padding: 50px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.footer-col h4 {
  font-family: 'Libre Baskerville', serif;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col p,
.footer-col li { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.65); }
.footer-col ul { list-style: none; }
.footer-col a { color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); opacity: 1; }

.footer-bottom {
  background: var(--footer-btm);
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: 12px; color: #bbb; text-align: center; }
.footer-regno { margin-top: 4px; opacity: 0.7; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
  .mobile-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 999;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li { border-bottom: 1px solid #f0f0f0; }
  .site-nav > ul > li > a,
  .site-nav > ul > li > span.nav-top { padding: 14px 20px; }
  .site-nav .dropdown,
  .site-nav .submenu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--primary);
    margin-left: 20px;
    display: none;
    padding: 0;
  }
  .site-nav li.open > .dropdown,
  .site-nav .has-submenu.open > .submenu { display: block; }

  #site-header { position: relative; }

  .hero-content h1 { font-size: 32px; }
  .hero-desc { font-size: 14px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .hero-content { padding: 60px 0; }
  .hero-content h1 { font-size: 26px; }
  .services-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .section-intro h2 { font-size: 26px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
