/* ============================================
   Alignment & Spacing — Layout consistency only
   ============================================ */

/* ---- Global overflow ---- */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

main {
  overflow-x: hidden;
}

/* ---- Container (consistent max-width) ---- */
.container-custom {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.mega-menu .container-custom,
.mega-menu-panel .container-fluid,
.site-footer .container-custom,
.site-header .container-custom {
  max-width: var(--container-max);
}

/* ---- Section vertical rhythm ---- */
.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.stats-section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.cta-banner {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

.site-footer {
  padding-top: var(--section-padding-y);
}

.page-hero {
  padding-top: calc(var(--header-height) + var(--section-padding-y) * 0.65);
  padding-bottom: calc(var(--section-padding-y) * 0.65);
}

/* ---- Typography spacing ---- */
.section-label {
  margin-bottom: var(--heading-spacing);
}

.section-title {
  margin-bottom: var(--block-spacing);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header .section-title:last-child,
.section-header .section-title.mb-0 {
  margin-bottom: 0;
}

.section-subtitle,
.page-hero p {
  max-width: var(--content-max-width);
  margin-bottom: 0;
}

.section-header.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

h1:last-child,
h2:last-child,
h3:last-child {
  margin-bottom: 0;
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Navigation alignment ---- */
.site-header .navbar {
  padding: 0;
  width: 100%;
}

.navbar-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  height: var(--header-height);
}

.navbar-brand-custom {
  flex-shrink: 0;
  margin-right: var(--space-lg);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav-main {
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-item.ms-2,
.nav-item.ms-3 {
  margin-left: 0 !important;
}

.navbar-nav > .nav-item:last-child {
  margin-left: 0;
}

.nav-link-custom {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: var(--header-height);
  padding: 0 0.875rem !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.nav-link-animated::after {
  display: none;
}

.site-header .btn-gold,
.site-header .btn-primary-custom {
  min-height: 44px;
  height: 44px;
  padding: 0 1.5rem;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header .search-toggle {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .site-logo {
    height: 56px;
    max-height: 56px;
  }

  .footer-logo {
    height: 76px;
    max-height: 76px;
  }
}

.mobile-menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}

.mobile-nav-panel {
  padding: var(--space-xl);
}

.mobile-nav-link {
  padding: var(--space-md) 0;
}

/* ---- Buttons (consistent sizing) ---- */
.btn-gold,
.btn-primary-custom,
.btn-outline-custom {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: middle;
}

.hero-cta-group {
  align-items: center;
  gap: var(--space-md);
}

/* ---- Hero vertical centering ---- */
.hero-full {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-content-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  padding-bottom: calc(var(--space-3xl) + 48px);
  width: 100%;
}

.hero-full h1 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  margin-bottom: var(--space-xl);
}

.hero-full .hero-lead {
  margin-bottom: var(--space-2xl);
}

.hero-full .section-label {
  margin-bottom: var(--heading-spacing);
}

/* ---- Market section ---- */
.market-section {
  padding-bottom: var(--space-2xl);
}

.market-grid {
  gap: var(--grid-gutter);
}

.market-card {
  min-height: 168px;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
}

.market-trend {
  margin-top: auto;
}

/* ---- Statistics ---- */
.stats-section .row > [class*="col"] {
  display: flex;
}

.stat-item {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.stat-value,
.stat-label {
  text-align: center;
}

.stats-section .row > .col-lg-3:nth-child(4n) .stat-item,
.stats-section .row > .col-lg-3:last-child .stat-item {
  border-right: none;
}

/* ---- Unified card padding & equal heights ---- */
.card-custom,
.feature-highlight,
.esg-pillar,
.contact-card,
.career-card,
.governance-node {
  padding: var(--card-padding);
}

.row.g-4 > [class*="col"],
.row.g-5 > [class*="col"] {
  display: flex;
  flex-direction: column;
}

.row.g-4 > [class*="col"] > .card-custom,
.row.g-4 > [class*="col"] > .news-card,
.row.g-4 > [class*="col"] > .leadership-card,
.row.g-4 > [class*="col"] > article {
  width: 100%;
  flex: 1;
}

.feature-highlight {
  height: 100%;
  align-items: flex-start;
}

/* ---- Product grid ---- */
.product-grid {
  gap: var(--grid-gutter);
  align-items: stretch;
}

.product-card {
  min-height: 300px;
  height: auto;
}

/* ---- Process timeline ---- */
.process-timeline {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-2xl);
}

.process-timeline::before {
  left: 8%;
  right: 8%;
  top: calc(var(--space-2xl) + 24px);
}

.process-step {
  flex: 1 1 0;
  min-width: 0;
  padding: var(--space-md);
}

/* ---- Network map ---- */
.network-map-wrap {
  max-width: 100%;
}

.network-map-image,
.network-map-svg {
  display: block;
  margin: 0;
  max-width: 100%;
}

.network-country-list li {
  align-items: center;
  gap: var(--space-md);
}

.network-country-list li span:first-child {
  flex: 1;
  min-width: 0;
}

/* ---- News cards ---- */
.news-card-image {
  flex-shrink: 0;
}

.news-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-card-body {
  flex: 1;
}

/* ---- CTA banner ---- */
.cta-banner .container-custom {
  text-align: center;
}

.cta-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-inner .section-label {
  margin-bottom: var(--space-md);
}

.cta-banner h2 {
  margin-bottom: var(--heading-spacing);
}

.cta-banner p {
  margin-bottom: var(--space-xl);
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-inner .btn-gold {
  margin-top: 0;
}

/* ---- Footer ---- */
.site-footer .footer-columns {
  --bs-gutter-x: var(--grid-gutter);
  --bs-gutter-y: var(--space-2xl);
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.footer-brand,
.footer-col {
  min-width: 0;
}

.footer-links {
  padding-left: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links li:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
}

.footer-bottom > p,
.footer-bottom .d-flex {
  margin: 0;
  justify-content: center;
}

/* ---- Grids (consistent gutters) ---- */
.grid-2,
.grid-3,
.grid-4,
.gallery-grid,
.governance-chart,
.operations-grid {
  gap: var(--grid-gutter);
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gutter);
}

.operation-card {
  min-height: 300px;
}

@media (max-width: 767px) {
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .operation-card {
    min-height: 280px;
  }
}

.split-layout {
  gap: var(--space-2xl);
  align-items: stretch;
}

/* ---- Bootstrap row gutters align with system ---- */
.row.g-3 {
  --bs-gutter-x: var(--grid-gutter);
  --bs-gutter-y: var(--grid-gutter);
}

.row.g-4 {
  --bs-gutter-x: var(--grid-gutter);
  --bs-gutter-y: var(--grid-gutter);
}

.row.g-5 {
  --bs-gutter-x: var(--grid-gutter);
  --bs-gutter-y: var(--space-2xl);
}

/* ---- Cookie banner ---- */
.cookie-banner .container-custom .row {
  align-items: center;
}
