/* ==========================================================================
   CAPITAL.MY — Stylesheet
   Design system: institutional, premium, minimal.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #062D63;
  --navy-deep: #041E45;
  --blue: #0F5CA8;
  --orange: #F29A2E;
  --orange-deep: #D9821A;
  --white: #FFFFFF;
  --grey-divider: #E7E9EE;
  --grey-bg: #F7F8FA;
  --ink: #1C2230;
  --ink-soft: #4A5468;

  /* Type */
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1140px;
  --max-width-narrow: 760px;
  --nav-height: 84px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}

p { margin: 0; }

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img { max-width: 100%; display: block; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-inner--narrow {
  max-width: var(--max-width-narrow);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 40px;
}

.tick {
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex-shrink: 0;
  display: inline-block;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 24px;
}

/* ---------------------------------------------------------------------- */
/* BUTTONS                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy-deep);
}

.btn--primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
}

.btn--primary:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.link-arrow i { font-style: normal; transition: transform 0.25s var(--ease); }

.link-arrow:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.link-arrow:hover i { transform: translateX(3px); }

.link-arrow--light {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.link-arrow--light:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------------------------------------------------------------------- */
/* NAVIGATION                                                              */
/* ---------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-divider);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__mark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav__mark span { color: var(--orange); }

.nav__links {
  display: flex;
  gap: 40px;
  margin-right: auto;
  margin-left: 56px;
}

.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--navy); }

.nav__cta { padding: 11px 24px; font-size: 14px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 8px 32px 24px;
  border-top: 1px solid var(--grey-divider);
  background: var(--white);
}
.nav__mobile a {
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--grey-divider);
}
.nav__mobile .btn { margin-top: 16px; align-self: flex-start; }

.nav.is-open .nav__mobile { display: flex; }

/* ---------------------------------------------------------------------- */
/* HERO                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 120px 32px 140px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(15, 92, 168, 0.07), transparent 60%),
    var(--white);
  overflow: hidden;
}

.hero__rule {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 60%, var(--orange) 60%, var(--orange) 100%);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 760px;
}

.hero__headline {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  margin-bottom: 28px;
}

.hero__sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------------------- */
/* SITUATION CARDS                                                        */
/* ---------------------------------------------------------------------- */

.situation {
  padding: 100px 0;
  background: var(--grey-bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--grey-divider);
  border-radius: 3px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px -16px rgba(6, 45, 99, 0.18);
}

.card h3 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy);
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex-grow: 1;
}

.card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__cta i { font-style: normal; transition: transform 0.25s var(--ease); }
.card:hover .card__cta i { transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* ABOUT                                                                   */
/* ---------------------------------------------------------------------- */

.about { padding: 120px 0; }

.about__lead {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 28px;
}

.about__body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

/* ---------------------------------------------------------------------- */
/* HOW IT WORKS                                                           */
/* ---------------------------------------------------------------------- */

.how {
  padding: 120px 0;
  background: var(--navy);
}

.how .section-label { color: var(--white); }
.how .tick { background: var(--orange); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.step__rule {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--orange);
  margin-bottom: 24px;
}

.step__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.step h3 {
  color: var(--white);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
}

.how .btn--primary {
  background: var(--orange);
  color: var(--navy-deep);
}

/* ---------------------------------------------------------------------- */
/* FAQ ACCORDION                                                          */
/* ---------------------------------------------------------------------- */

.faq { padding: 120px 0; }

.accordion__item {
  border-bottom: 1px solid var(--grey-divider);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  padding: 26px 0;
  text-align: left;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  font-family: var(--font-display);
}

.accordion__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.accordion__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.accordion__icon::after {
  left: 50%; top: 0;
  height: 100%; width: 2px;
  transform: translateX(-50%);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion__panel p {
  padding: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------------------------------------------------------------------- */
/* ENQUIRY / CONTACT                                                      */
/* ---------------------------------------------------------------------- */

.enquiry {
  padding: 120px 0 140px;
  background: var(--grey-bg);
}

.enquiry__sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: -16px 0 40px;
}

.tally-embed {
  background: var(--white);
  border: 1px solid var(--grey-divider);
  border-radius: 4px;
  padding: 8px;
}

.tally-embed iframe {
  display: block;
  border: none;
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* FOOTER                                                                 */
/* ---------------------------------------------------------------------- */

.footer {
  background: var(--navy-deep);
  padding: 80px 0 40px;
  color: rgba(255, 255, 255, 0.78);
}

.footer__desc {
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 640px;
  margin: 28px 0 24px;
}

.footer__disclaimer {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 640px;
  margin-bottom: 48px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 4px;
}
.footer__legal a:hover { color: var(--white); }

/* ---------------------------------------------------------------------- */
/* RESPONSIVE                                                             */
/* ---------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .hero { padding: 90px 24px 90px; }
  .hero__headline { font-size: clamp(34px, 8vw, 44px); }
  .hero__sub { font-size: 17px; }

  .situation, .about, .how, .faq, .enquiry { padding: 80px 0; }

  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }

  .section-inner { padding: 0 24px; }

  .about__lead { font-size: 22px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav__inner { padding: 0 20px; }
  .hero { padding: 70px 20px 70px; }
}
