/*
Theme Name: TerraGlobal
Theme URI: 
Author: Shadow
Description: A custom WordPress theme built from scratch.
Version: 1.0
*/

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

:root {
  /* Brand colors */
  --color-primary: #192550; /* Button bg, headings, paragraph text */
  --color-body-bg: #f8f9fa; /* Body background */
  --color-border: #d7d7d7; /* Border for transparent buttons */
  --color-text-on-dark: #fcfcfc; /* Text on dark background sections */

  /* Accent colors */
  --color-accent-orange: #f9a51e; /* Active number, highlights */
  --color-accent-red: #cc384a; /* Eyebrow text, "active" label text */

  /* Muted colors */
  --color-muted: #bbbbbb; /* Muted text (e.g. inactive numbers) */
  --color-muted-alpha: #bbbbbb8f; /* Muted text, lighter/translucent variant */
  --color-divider: #e2e2e2; /* In-between lines / section dividers */
  --color-divider-muted: #e2e2e257; /* In-between lines / section dividers */
  --color-heading-muted: #19255073; /* Muted heading text (e.g. "Provider" strike-through) */

  --color-section-bg: #eff0f3;
}

body {
  font-family: "Roboto";
  background-color: var(--color-body-bg);
  color: var(--color-primary);
  scroll-behavior: smooth;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
}

p,
li {
  color: var(--color-primary);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

li strong {
  font-weight: 600;
}

li {
  line-height: 1.5;
  position: relative;
}

/* Buttons */
.btn-solid {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  border: 1px solid var(--color-primary);
}

.btn-outline {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  line-height: normal;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-solid:hover {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  border-color: var(--color-primary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 15px;
}

.eyebrow-heading {
  color: var(--color-accent-red);
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  display: inline-block;
}


/* ------------- HEADER CSS START  -------------  */
/* --- Top Bar --- */
#header .top-bar {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  font-size: 13px;
  padding: 10px 0;
}

#header .top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

#header .brand-squares {
  display: flex;
  gap: 4px;
}

#header .square {
  width: 8px;
  height: 8px;
  display: inline-block;
}

#header .sq-dark-red {
  background-color: #81203c; /* Darker red */
}

#header .sq-red {
  background-color: var(--color-accent-red);
}

#header .sq-orange {
  background-color: var(--color-accent-orange);
}

#header .top-bar-text {
  color: var(--color-text-on-dark);
  font-size: 12px;
}

#header .top-bar-right {
  display: flex;
  align-items: center;
}

#header .lets-talk-link {
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

#header .lets-talk-link svg {
  color: var(--color-accent-orange);
}

#header .lets-talk-link:hover {
  opacity: 0.8;
}

#header .main-header {
  background-color: var(--color-text-on-dark);
  border-bottom: 1px solid var(--color-divider);
  padding: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  position: relative;
}

#header .main-header.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.3s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

#header .main-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .logo {
  display: block;
  padding: 15px 0;
}

#header .logo img {
  height: 38px; /* Adjust based on preferred logo size */
  display: block;
}

/* Navigation */
#header .nav-menu {
  display: flex;
  align-items: center;
}

#header #menu-header-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  margin: 0;
  padding: 0;
}

#header #menu-header-menu > li {
  position: relative;
  padding: 25px 0;
}

#header #menu-header-menu li:before{
  content: unset;
}

#header a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
  text-transform: uppercase;
}

/* Style the injected dropdown toggle button (Base/Desktop) */
#header .submenu-toggle-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#header .submenu-toggle-btn svg {
  width: 14px;
  height: 14px;
}

/* Sub-menu (Desktop) */
#header .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-text-on-dark);
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 100;
}

@media (min-width: 992px) {
  #header li:hover > .sub-menu {
    display: block;
  }
}

#header .sub-menu li {
  display: block;
  width: 100%;
  position: relative;
  padding-left: 0px;
}

#header .sub-menu a {
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-primary);
  text-transform: none; /* Keep text case normal for submenu items */
}

#header .sub-menu a:hover {
  background-color: var(--color-section-bg);
}

/* Right-align submenus for the last two items to prevent screen overflow */
#header #menu-header-menu > li:nth-last-child(-n + 2) > .sub-menu {
  left: auto;
  right: 0;
}

/* Nested sub-menu (Desktop) */
#header .sub-menu .sub-menu {
  top: 0; /* Aligns with the top of the parent li, plus 10px padding pushes it slightly lower */
  left: 100%;
}

/* For right-aligned submenus (last two items), nested menus pop out to the left */
#header #menu-header-menu > li:nth-last-child(-n + 2) .sub-menu .sub-menu {
  left: auto;
  right: 100%;
}

/* --- Responsive Adjustments --- */
/* Hamburger Button */
#header .hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1000;
}

#header .hamburger-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hamburger animation */
#header .hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#header .hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}
#header .hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991px) {
  #header .hamburger-btn {
    display: block;
  }
  #header .main-header {
    padding: 10px 0;
  }
  #header a {
    justify-content: space-between;
  }
  /* Hide nav links on mobile for now as requested */
  #header .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-text-on-dark);
    border-top: 1px solid var(--color-divider);
    padding: 20px 0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  /* Make toggle button look like a real button on mobile */
  #header .submenu-toggle-btn {
    background-color: rgba(25, 37, 80, 0.05);
    border: 1px solid rgba(25, 37, 80, 0.2);
    border-radius: 4px;
    color: var(--color-primary);
    padding: 6px;
    margin: -6px 0 -6px 8px;
    transition: all 0.3s ease;
  }

  #header .submenu-toggle-btn:hover,
  #header li.mobile-open > a .submenu-toggle-btn {
    background-color: var(--color-primary);
    color: #ffffff;
  }

  #header .nav-menu.mobile-active {
    display: block;
  }

  #header #menu-header-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 0 20px;
  }

  #header #menu-header-menu > li {
    padding: 0;
    width: 100%;
  }

  /* Sub-menu (Mobile) - collapsible dropdown */
  #header .sub-menu,
  #header .sub-menu .sub-menu,
  #header #menu-header-menu > li:nth-last-child(-n + 2) > .sub-menu,
  #header #menu-header-menu > li:nth-last-child(-n + 2) .sub-menu .sub-menu {
    position: relative;
    display: none; /* hidden by default */
    box-shadow: none;
    background: transparent;
    padding: 15px 15px 0 15px; /* add left padding for indentation */
    min-width: 100%;
    top: auto;
    left: auto;
    right: auto;
  }

  /* Show submenu on tap via JS class */
  #header li.mobile-open > .sub-menu {
    display: block !important;
  }

  /* Flip arrow on mobile when expanded */
  #header li.mobile-open > a .submenu-toggle-btn {
    transform: rotate(180deg);
  }

  /* Indent nested mobile menus slightly more */
  #header .sub-menu .sub-menu {
    padding-left: 15px;
    padding-top: 5px;
  }

  #header .sub-menu li {
    text-align: left;
  }

  #header .sub-menu a {
    padding: 8px 0;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  #header .logo img {
    height: 30px;
  }
  #header .top-bar-left {
    gap: 8px;
  }
  #header .top-bar-text,
  #header .lets-talk-link {
    font-size: 9px;
  }
}

/* ------------- HEADER CSS END  -------------  */

/* ------------- Footer CSS START  -------------  */
/* Scope all styles under #footer */
#footer {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: 75px 0 0 0;
  border-bottom: 15px solid var(--color-accent-orange);
}

#footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-divider-muted);
}

/* Brand Column */
#footer .footer-col.footer-brand {
  flex: 0 0 35%;
}

#footer .footer-logo {
  display: block;
  margin-bottom: 30px;
}

#footer .footer-logo img {
  height: 48px;
}

#footer .footer-eyebrow {
  color: var(--color-muted-alpha);
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-weight: 600;
}

#footer .footer-desc {
  color: var(--color-text-on-dark);
  margin-bottom: 30px;
}

#footer .footer-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  border: 1px solid #ffffff1a;
  padding: 8px 12px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--color-muted);
  text-transform: uppercase;
}

#footer .footer-hubs span {
  color: var(--color-muted);
  margin: 0 4px;
}

/* Links Columns */
#footer .footer-col {
  flex: 1;
  min-width: 150px;
}

#footer .footer-heading {
  color: var(--color-text-on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

#footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-links li,
#footer .footer-contact li {
  margin-bottom: 16px;
}

#footer .footer-links a,
#footer .footer-contact a,
#footer .footer-contact li {
  color: var(--color-text-on-dark);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  font-weight: 400;
  
  text-transform: uppercase;
}

#footer li:before{
  content: unset;
}

#footer .footer-links a:hover,
#footer .footer-contact a:hover {
  color: var(--color-text-on-dark);
}

/* Footer Bottom */
#footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  flex-wrap: wrap;
  gap: 15px;
}

#footer .copyright {
  color: var(--color-muted-alpha);
  font-size: 10px;
  margin: 0;
  font-weight: 500;
  text-transform: uppercase;
}

#footer #menu-footer-legal {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

#footer #menu-footer-legal a {
  color: var(--color-muted-alpha);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
}

#footer #menu-footer-legal a:hover {
  color: var(--color-text-on-dark);
}

#footer .eegnite-link {
    color: var(--color-text-on-dark);
}

@media (min-width: 900px) and (max-width: 1320px) {
  #footer .footer-col.footer-contact {
    flex-grow: 1.5;
  }
  #footer .footer-top {
    gap: 10px;
  }
  #footer .footer-contact .footer-email {
    font-size: 11px;
    word-break: break-word;
  }
}


@media (max-width: 991px) {
  #footer .footer-brand {
    flex: 0 0 100%;
  }
}

@media (max-width: 767px) {
  #footer {
    padding-top: 50px;
  }
  #footer .footer-logo img {
    height: 30px;
  }
  #footer .footer-logo {
    margin-bottom: 20px;
  }
  #footer .footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px; /* larger vertical gap, standard horizontal gap */
    padding-bottom: 25px;
  }
  
  #footer .footer-col.footer-brand,
  #footer .footer-col.footer-contact {
    grid-column: span 2;
  }

  #footer .footer-bottom {
    padding: 25px 0;
    flex-direction: column;
    text-align: center;
  }

  #footer #menu-footer-legal {
    justify-content: center;
    gap: 10px;
  }
}

/* ------------- Footer CSS END  -------------  */


/* =========================================
   Let's Talk Section (Global)
========================================= */
#lets-talk {
  background-size: cover;
  background-position: center;
  position: relative;
}

#lets-talk .lt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.2;
  background-color: #000000;
  z-index: 1;
}

#lets-talk .lets-talk-inner {
  position: relative;
  z-index: 2;
}

#lets-talk .lt-content {
  width: 55%;
  display: flex;
  flex-direction: column;
}

#lets-talk .eyebrow-heading {
  color: var(--color-text-on-dark);
  margin-bottom: 20px;
}

#lets-talk .lt-title {
  color: var(--color-text-on-dark);
  margin-bottom: 30px;
  line-height: 1.1;
  font-weight: 400;
}

#lets-talk .lt-desc {
  color: var(--color-text-on-dark);
  margin-bottom: 40px;
  max-width: 560px;
}

#lets-talk .lt-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

#lets-talk .lt-btn {
  font-weight: 700;
}

#lets-talk .lt-btn-primary {
  background-color: var(--color-accent-orange);
  border: 1px solid var(--color-accent-orange);
  color: var(--color-primary);
}

#lets-talk .lt-btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent-orange);
}

#lets-talk .lt-btn-outline {
  background-color: transparent;
  color: var(--color-text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

#lets-talk .lt-btn-outline:hover {
  background-color: var(--color-text-on-dark);
  color: var(--color-primary);
}

#lets-talk .lt-inquiries {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-on-dark);
  display: flex;
  gap: 10px;
}

#lets-talk .lt-inquiries a {
  color: var(--color-text-on-dark);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

#lets-talk .lt-inquiries a:hover {
  opacity: 0.7;
}

#lets-talk .lt-inquiries .dot {
  margin-right: 10px;
  color: var(--color-muted);
}

/* Let's Talk Responsive */
@media (max-width: 991px) {
  #lets-talk .lt-overlay {
    width: 100%;
    clip-path: none;
    background-color: rgba(25, 25, 25, 0.85);
  }
  #lets-talk .lt-content {
    width: 100%;
  }
  #lets-talk .lt-desc {
    max-width: 100%;
  }
  #lets-talk .lt-title br {
    display: none;
  }
}

@media (max-width: 767px) {
  #lets-talk .lt-actions {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
  }
  #lets-talk .lt-btn {
    width: 100%;
    text-align: center;
  }
  #lets-talk .lt-inquiries {
    flex-direction: column;
    font-size: 10px;
  }
  #lets-talk .lt-inquiries .dot {
    display: none;
  }
}
