:root {
  --deep-blue: #0B2A5B;
  --cyan: #06B6D4;
  --very-light-blue: #F4FAFF;
  --light-blue: #EAF7FF;
  --white: #FFFFFF;
  --black: #000000;
  --dark-navy: #172033;
  --border: rgba(11, 42, 91, 0.12);
  --shadow: 0 20px 45px rgba(11, 42, 91, 0.09);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--dark-navy);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

main {
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 40px;
}

.section-heading.center {
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--deep-blue);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4.2vw, 4.25rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 2.4vw, 2.8rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}


/* =========================
   Header
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 25px rgba(11, 42, 91, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.logo img:first-child {
  display: block;
  width: 120px;
  height: auto;
}

.logo .ukm-logo {
  display: block;
  width: 120px;
  height: auto;
  object-fit: contain;
}

.logo:hover,
.logo:focus-visible {
  transform: translateY(-1px);
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  position: relative;
  color: var(--deep-blue);
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}


/* =========================
   Hero
========================= */

.hero {
  background: linear-gradient(
    180deg,
    rgba(234, 247, 255, 0.9) 0%,
    rgba(244, 250, 255, 0.9) 100%
  );
  padding: 72px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.lead {
  font-size: 1.14rem;
  max-width: 560px;
  color: var(--deep-blue);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 182, 212, 0.2);
}

.btn-primary {
  background: var(--cyan);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(11, 42, 91, 0.2);
  color: var(--deep-blue);
}


/* =========================
   Hero Graphic
========================= */

.hero-visual {
  display: flex;
  justify-content: center;
}

.tech-graphic {
  position: relative;
  width: min(100%, 480px);
  min-height: 420px;
  border-radius: 32px;
  background: linear-gradient(
    135deg,
    rgba(11, 42, 91, 0.04),
    rgba(6, 182, 212, 0.08)
  );
  border: 1px solid rgba(11, 42, 91, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tech-graphic::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 26px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
}

.orb-one {
  width: 180px;
  height: 180px;
  top: 58px;
  right: 52px;
}

.orb-two {
  width: 220px;
  height: 220px;
  bottom: 30px;
  left: 38px;
}

.grid-panel {
  position: absolute;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 42, 91, 0.08);
  box-shadow: 0 18px 30px rgba(11, 42, 91, 0.08);
}

.panel-main {
  inset: 110px 80px 110px 70px;
  border-radius: 26px;
  padding: 28px;
}

.panel-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--deep-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 110px;
  margin-top: 36px;
}

.mini-bars span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--deep-blue));
}

.mini-bars span:nth-child(1) {
  height: 40%;
}

.mini-bars span:nth-child(2) {
  height: 66%;
}

.mini-bars span:nth-child(3) {
  height: 82%;
}

.mini-bars span:nth-child(4) {
  height: 100%;
}

.panel-side {
  right: 42px;
  bottom: 58px;
  width: 150px;
  border-radius: 18px;
  padding: 18px 16px;
}

.panel-side span {
  color: var(--deep-blue);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.dot-matrix {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dot-matrix span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.9;
}


/* =========================
   Sections
========================= */

.service-section,
.pillars-section,
.reasons-section,
.project-section,
.contact-section,
.timeline-section,
.leadership-section {
  background: var(--white);
}

.intro-section,
.vision-section,
.mission-section {
  background: var(--very-light-blue);
}

.intro-section .narrow,
.prose,
.centered {
  text-align: center;
}


/* =========================
   Cards
========================= */

.card-grid {
  display: grid;
  gap: 28px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.five-up {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.info-card,
.reason-card,
.service-card,
.project-card,
.leadership-card,
.contact-card {
  background: var(--light-blue);
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 16px 35px rgba(11, 42, 91, 0.04);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.info-card:hover,
.reason-card:hover,
.service-card:hover,
.project-card:hover,
.leadership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(11, 42, 91, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.card-icon {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--deep-blue);
  font-weight: 800;
  margin-bottom: 18px;
}

.reason-card {
  background: var(--white);
  min-height: 220px;
}


/* =========================
   Page Hero
========================= */

.page-hero {
  padding: 64px 0 36px;
  background: linear-gradient(
    180deg,
    rgba(234, 247, 255, 0.9),
    rgba(255, 255, 255, 0.85)
  );
}

.page-hero h1 {
  text-align: center;
}

.prose {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
}


/* =========================
   About
========================= */

.about-feature {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 28px;
  border-radius: 28px;
  overflow: hidden;
  background-image: url("../images/ftsm.jpeg");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.about-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(2px);
}

.about-copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 28px 34px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark-navy);
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.65;
  box-shadow: 0 18px 36px rgba(11, 42, 91, 0.12);
}

.about-copy p {
  margin-bottom: 0.65rem;
}

.about-copy h1 {
  margin-bottom: 14px;
}

.about-copy .section-kicker {
  margin-bottom: 6px;
}

.vision-section h2,
.mission-section h2 {
  max-width: 980px;
  margin: 0 auto;
  color: var(--deep-blue);
}


/* =========================
   Timeline
========================= */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 44px;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(6, 182, 212, 0.8),
    rgba(11, 42, 91, 0.18)
  );
}

.timeline-item {
  position: relative;
  padding-top: 28px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 36px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  background: var(--cyan);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.12);
}

.timeline-content {
  background: var(--light-blue);
  border-radius: 22px;
  padding: 28px 22px;
  border: 1px solid rgba(11, 42, 91, 0.08);
  min-height: 240px;
}

.timeline-year {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}



/* =========================
   Management & Leadership
========================= */

.leadership-card {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 22px;
  box-shadow: 0 16px 35px rgba(11, 42, 91, 0.04);
}

/* FORCE HORIZONTAL LAYOUT */
.leadership-profile {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 45px;
  width: 100%;
}

/* LEFT PHOTO */
.leadership-photo-wrapper {
  width: 280px;
  min-width: 280px;
  height: 280px;
  flex-shrink: 0;
}

.leadership-photo {
  display: block;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 4px solid rgba(6, 182, 212, 0.15);
  box-shadow: 0 12px 26px rgba(11, 42, 91, 0.12);
}

/* RIGHT INFORMATION */
.leadership-info {
  flex: 1;
  min-width: 0;
}

.leadership-info h3 {
  margin: 0 0 12px;
  color: var(--deep-blue);
  font-size: 1.5rem;
  line-height: 1.3;
}

.leader-name {
  margin: 0 0 8px;
  color: var(--deep-blue);
  font-size: 1.25rem;
  font-weight: 700;
}

.leader-role {
  margin: 0 0 20px;
  color: var(--dark-navy);
  line-height: 1.6;
}

.leader-description {
  margin: 0 0 20px;
  color: var(--dark-navy);
  line-height: 1.7;
}

/* LINKEDIN */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #0A66C2;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.linkedin-link:hover {
  text-decoration: underline;
}

.linkedin-icon {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.linkedin-link span {
  overflow-wrap: anywhere;
}


.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-details {
  flex: 1;
}

.footer-address a {
  text-decoration: underline;
  text-underline-offset: 3px;
}


.footer-address a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-whatsapp .footer-icon {
  flex-shrink: 0;
}

.footer-whatsapp a {
  text-decoration: underline;
  text-decoration-color: #25D366;
  text-underline-offset: 3px;
}

.footer-whatsapp .footer-icon {
  flex-shrink: 0;
}

/* =========================
   TABLET
========================= */

@media (max-width: 860px) {

  .leadership-profile {
    gap: 30px;
  }

  .leadership-photo-wrapper {
    width: 220px;
    min-width: 220px;
    height: 220px;
  }

  .leadership-photo {
    width: 220px;
    height: 220px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 640px) {

  .leadership-profile {
    flex-direction: column;
    text-align: center;
  }

  .leadership-photo-wrapper {
    width: 220px;
    min-width: 220px;
    height: 220px;
  }

  .leadership-photo {
    width: 220px;
    height: 220px;
  }

  .leadership-info {
    width: 100%;
  }

  .linkedin-link {
    justify-content: center;
  }

}


/* =========================
   LinkedIn
========================= */

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  text-decoration: none;
  color: #0A66C2;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 100%;
}

.linkedin-link:hover {
  text-decoration: underline;
}

.linkedin-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

.linkedin-link span {
  overflow-wrap: anywhere;
}


/* =========================
   Services
========================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.service-card {
  min-height: 360px;
  padding: 32px 28px;
}

.service-card-with-image {
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin: 18px 0 20px;
  border: 1px solid rgba(11, 42, 91, 0.08);
}

.service-number {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 18px;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(6, 182, 212, 0.12);
  border-radius: 18px;
}

.service-icon svg {
  width: 38px;
  height: 38px;
  stroke: var(--deep-blue);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =========================
   Projects
========================= */

.lead-intro {
  max-width: 860px;
  margin: 0 auto 24px;
  font-size: 1.08rem;
}

.project-list {
  display: grid;
  gap: 26px;
}

.project-entry {
  display: grid;
  gap: 20px;
}

.project-copy-card {
  padding: 28px 30px;
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 14px;
  background: var(--very-light-blue);
  box-shadow: 0 12px 28px rgba(11, 42, 91, 0.05);
}

.project-copy-card h3 {
  font-size: 1.15rem;
}

.project-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #e8eef2;
}

.project-image {
  position: absolute;
  inset: 6%;
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.14;
  transform: scale(0.94);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.55s ease;
}

.project-image.is-active {
  opacity: 1;
  z-index: 1;
  transform: scale(1);
  box-shadow: 0 14px 30px rgba(11, 42, 91, 0.2);
}

.project-carousel {
  width: min(100%, 680px);
  margin: 0 auto;
}

.carousel-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(11, 42, 91, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-blue);
  font-size: 1.25rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--white);
  box-shadow: 0 6px 18px rgba(11, 42, 91, 0.16);
}

.carousel-previous {
  left: 14px;
}

.carousel-next {
  right: 14px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 42, 91, 0.24);
  cursor: pointer;
}

.carousel-dot.is-active {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 3px;
}

.project-copy {
  min-width: 0;
}


/* =========================
   Legal
========================= */

.legal-section {
  background: var(--very-light-blue);
}

.legal-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-document-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(11, 42, 91, 0.1);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(11, 42, 91, 0.06);
}

.legal-document-card h3 {
  margin-bottom: 10px;
}

.legal-document-card .btn {
  min-height: 46px;
  margin-top: auto;
  border-radius: 8px;
}

.legal-document-card p:not(.section-kicker) {
  flex: 1;
}

.principal-bank-section {
  background: var(--very-light-blue);
}

.principal-bank-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 35px rgba(11, 42, 91, 0.04);
}

.principal-bank-details {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
}

.principal-bank-details h3 {
  margin-bottom: 12px;
}

.principal-bank-details p {
  margin-bottom: 0;
}

.principal-bank-image {
  width: 260px;
  height: 195px;
  flex: 0 0 260px;
  object-fit: cover;
  border-radius: 14px;
}

.principal-bank-map {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}

.principal-bank-map {
  height: 360px;
}


/* =========================
   Project Header
========================= */

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--deep-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-category {
  color: var(--cyan);
  font-weight: 700;
}

.project-partner {
  margin-bottom: 12px;
}


/* =========================
   Contact
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-panel,
.contact-form-panel {
  background: var(--very-light-blue);
  border: 1px solid rgba(11, 42, 91, 0.08);
  border-radius: 28px;
  padding: 32px 28px;
}

.contact-card + h2,
.contact-panel > h2 {
  margin-top: 28px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.contact-list li {
  color: var(--dark-navy);
}

.contact-list li span {
  color: var(--deep-blue);
  font-weight: 700;
}


/* =========================
   Forms
========================= */

form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 8px;
}

label {
  color: var(--deep-blue);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(11, 42, 91, 0.18);
  border-radius: 14px;
  background: var(--white);
  color: var(--dark-navy);
  padding: 14px 16px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

input.invalid,
textarea.invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.08);
}

.btn-full {
  width: 100%;
}

.form-status {
  min-height: 24px;
  font-weight: 600;
  margin-top: 4px;
}

.form-status.success {
  color: #0b7f45;
}

.form-status.error {
  color: #b42318;
}


/* =========================
   Footer
========================= */

.site-footer {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 12px;
}

.footer-links,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px 0 30px;
  margin-top: 26px;
}


/* =========================
   Reveal Animation
========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   Mobile Navigation
========================= */

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--deep-blue);
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================
   Tablet
========================= */

@media (max-width: 1100px) {

  .five-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* =========================
   Smaller Tablet
========================= */

@media (max-width: 860px) {

  .hero-grid,
  .contact-grid,
  .three-up,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-document-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px rgba(11, 42, 91, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s ease;
  }

  body.nav-open .site-nav,
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: min(var(--container), calc(100% - 32px));
    margin: 20px auto;
    padding-bottom: 6px;
  }

  .nav-links a {
    display: inline-block;
    width: 100%;
    padding: 6px 0;
  }

  .timeline {
    grid-template-columns: 1fr;
    position: relative;
    padding-left: 30px;
  }

  .timeline::before {
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    right: auto;
    background: linear-gradient(
      180deg,
      rgba(6, 182, 212, 0.8),
      rgba(11, 42, 91, 0.18)
    );
  }

  .timeline-item {
    padding-top: 0;
  }

  .timeline-dot {
    left: -30px;
    top: 22px;
  }

  /* Leadership becomes stacked on smaller screens */
  .leadership-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .leadership-photo {
    width: 240px;
    height: 240px;
    flex: 0 0 240px;
  }

  .leadership-info {
    width: 100%;
  }

  .linkedin-link {
    justify-content: center;
  }

}


/* =========================
   Mobile
========================= */

@media (max-width: 640px) {

  .section {
    padding: 56px 0;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .five-up {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 28px;
  }

  .principal-bank-card {
    padding: 20px;
  }

  .principal-bank-details {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .principal-bank-image {
    width: 100%;
    height: auto;
    flex: auto;
    aspect-ratio: 4 / 3;
  }

  .principal-bank-map {
    height: 280px;
  }

  .leadership-card {
    padding: 25px 20px;
  }

  .leadership-photo {
    width: 220px;
    height: 220px;
    flex: 0 0 220px;
  }

  .leader-name {
    font-size: 1.1rem;
  }

  .linkedin-link {
    font-size: 0.8rem;
  }

}


/* =========================
   Small Mobile
========================= */

@media (max-width: 420px) {

  .container {
    width: min(var(--container), calc(100% - 26px));
  }

  .page-hero {
    padding-top: 56px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .panel-main {
    inset: 94px 30px 110px 30px;
  }

  .panel-side {
    right: 18px;
    bottom: 26px;
    width: 132px;
  }

  .leadership-photo {
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
  }

}

/* =========================
   Footer Icons
========================= */

.footer-address,
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  object-fit: contain;
  margin-top: 2px;
}

.footer-address span,
.footer-contact-item span {
  flex: 1;
  min-width: 0;
}

.footer-contact-item a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}