/* ============================================================
   MEGAROYAL — Full-screen responsive CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rhodium+Libre&family=Inter:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #ffffff;
  font-family: 'Rhodium Libre', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper — TRUE full screen, no max-width cap ──── */
.frame {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  overflow-x: hidden;
}

/* ── Shared inner padding — scales with viewport ─────────── */
:root {
  --px: clamp(24px, 4vw, 80px);   /* horizontal page padding */
  --section-gap: clamp(32px, 4vw, 60px);
  --color-dark: #0b0022;
  --color-blue: #246188;
}

/* ══════════════════════════════════════════════════
   LOGO
══════════════════════════════════════════════════ */
.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px var(--px) 0;
}
.site-logo {
  width: clamp(120px, 10vw, 200px);
  height: auto;
}

/* ══════════════════════════════════════════════════
   SECTION TITLES
══════════════════════════════════════════════════ */
.section-title {
  font-family: 'Rhodium Libre', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: var(--color-dark);
  margin-bottom: clamp(12px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ══════════════════════════════════════════════════
   ABOUT US
══════════════════════════════════════════════════ */
.about-us {
  padding: clamp(24px, 3vw, 48px) var(--px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 clamp(20px, 3vw, 48px);
  align-items: start;
}
.about-us .section-title {
  grid-column: 1 / -1;
}
.about-us-text {
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  color: var(--color-dark);
  line-height: 1.75;
  text-align: justify;
}
.about-us-text p + p { margin-top: clamp(8px, 1vw, 16px); }

.about-us-photo {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

/* ══════════════════════════════════════════════════
   OUR MILESTONES
══════════════════════════════════════════════════ */
.milestones-section {
  padding: var(--section-gap) var(--px) 0;
}

.timeline-wrap { width: 100%; }

/* Top row */
.timeline-top,
.timeline-bottom {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

/* Above-bar cells */
.tm-above {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 clamp(3px, 0.5vw, 8px);
}
.tm-above.empty { min-height: 20px; }

.tm-icon {
  width: clamp(42px, 6vw, 72px);
  height: clamp(42px, 6vw, 72px);
  border-radius: 50%;
  border: 2.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.tm-icon img, .tm-icon svg {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.tm-desc-above,
.tm-desc-below {
  font-family: 'Rhodium Libre', Georgia, serif;
  font-size: clamp(0.48rem, 0.75vw, 0.72rem);
  color: var(--color-dark);
  text-align: justify;
  line-height: 1.45;
  width: 100%;
}

.tm-connector {
  width: 2px;
  height: clamp(16px, 2vw, 28px);
  background: #999;
  flex-shrink: 0;
  margin: 0 auto;
}

/* ── Year bar ── */
.timeline-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: clamp(36px, 4vw, 52px);
}
.tb-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rhodium Libre', Georgia, serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.8vw, 1.5rem);
  color: #fff;
}
.tb-cell:nth-child(1) { background: #cc4444; }
.tb-cell:nth-child(2) { background: #c4783a; }
.tb-cell:nth-child(3) { background: #8a9a3c; }
.tb-cell:nth-child(4) { background: #5ba88a; }
.tb-cell:nth-child(5) { background: #2e8fa8; }
.tb-cell:nth-child(6) { background: #1a6e8a; }

/* Below-bar cells */
.tm-below {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 clamp(3px, 0.5vw, 8px);
}
.tm-below.empty { min-height: 20px; }

/* ══════════════════════════════════════════════════
   OUR CORE SERVICES
══════════════════════════════════════════════════ */
.services-section {
  padding: var(--section-gap) var(--px) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(16px, 2.5vw, 40px);
  margin-top: 8px;
}
.service-col { display: flex; flex-direction: column; }

.service-photo {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.service-title {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.7rem, 1vw, 0.95rem);
  color: var(--color-dark);
  margin: clamp(8px, 1vw, 14px) 0 6px;
  text-align: center;
}
.service-desc {
  font-family: 'Rhodium Libre', Georgia, serif;
  font-size: clamp(0.62rem, 0.9vw, 0.82rem);
  color: var(--color-dark);
  line-height: 1.65;
  text-align: justify;
}

/* ══════════════════════════════════════════════════
   BOARD OF DIRECTORS
══════════════════════════════════════════════════ */
.bod-section {
  padding: var(--section-gap) var(--px) 0;
}
.bod-inner {
  background: var(--color-blue);
  border-radius: 4px;
  padding: clamp(20px, 2.5vw, 36px) clamp(24px, 3vw, 48px);
  margin-top: 10px;
}
.bod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.5vw, 24px);
}
.bod-person { display: flex; flex-direction: column; gap: 4px; }
.bod-name {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.68rem, 1vw, 0.95rem);
  color: #fff;
  letter-spacing: 0.01em;
}
.bod-role {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(0.62rem, 0.85vw, 0.82rem);
  color: rgba(255,255,255,0.8);
}

/* ══════════════════════════════════════════════════
   OUR SUCCESS STORY
══════════════════════════════════════════════════ */
.success-section {
  padding: var(--section-gap) var(--px) clamp(32px, 4vw, 60px);
}
.success-full-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — tablet
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --px: clamp(16px, 3vw, 36px); }

  .about-us {
    grid-template-columns: 1fr;
  }
  .about-us-photo { margin-top: 14px; }

  .services-grid { grid-template-columns: 1fr; gap: 24px 0; }
  .service-photo { aspect-ratio: 2; }

  .bod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Timeline: reduce font */
  .tm-desc-above, .tm-desc-below { font-size: 0.48rem; }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — mobile
══════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --px: 16px; }

  /* Stack timeline vertically */
  .timeline-top, .timeline-bar, .timeline-bottom {
    grid-template-columns: 1fr;
  }
  .timeline-bar { height: auto; }
  .tb-cell { padding: 8px 16px; justify-content: flex-start; font-size: 1.1rem; }

  .tm-above, .tm-below { align-items: flex-start; flex-direction: row; gap: 10px; }
  .tm-above.empty, .tm-below.empty { display: none; }
  .tm-connector { width: clamp(16px, 3vw, 24px); height: 2px; }

  .bod-grid { grid-template-columns: 1fr; }
}