@import url('https://fonts.googleapis.com/css2?family=Rozha+One&family=Spinnaker&family=Roboto+Slab:wght@400;500&display=swap');

:root {
  --navy: #1a2b6d;
  --navy-dark: #0f1c4d;
  --gold: #c9a24b;
  --text-gray: #444444;
  --light-bg: #f4f6fb;
  --accent-highlight: #e2f7f7;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-gray);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* ---------- Header / Nav ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar .logo img { height: 52px; width: auto; }
.topbar .logo .brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.topbar .logo .brand-name .b1 {
  font-family: 'Rozha One', serif;
  font-size: 21px;
  color: var(--navy);
}
.topbar .logo .brand-name .b2 {
  font-family: 'Roboto Slab', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
}

.topbar nav ul {
  display: flex;
  gap: 6px;
}

.topbar nav a {
  display: inline-block;
  padding: 12px 22px;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  color: var(--text-gray);
  border-radius: 4px;
  transition: background .2s ease;
}

.topbar nav a:hover,
.topbar nav a.active {
  background: var(--accent-highlight);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--navy);
}

/* ---------- Language toggle (EN / BM) ---------- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  background: var(--white);
  cursor: pointer;
  font-family: 'Roboto Slab', serif;
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
  letter-spacing: .5px;
}
.lang-toggle .lang-opt { padding: 2px 3px; opacity: .45; transition: opacity .2s ease, color .2s ease; }
.lang-toggle .lang-opt.active { opacity: 1; color: var(--gold); }
.lang-toggle .lang-sep { opacity: .35; }
.lang-toggle:hover { background: var(--accent-highlight); }
.topbar-lang-slot { display: flex; align-items: center; margin-left: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.35);
}

.hero.navy-hero {
  background-color: var(--navy);
}
.hero.navy-hero::before { background: rgba(15,28,77,0.55); }
.hero.navy-hero .hero-inner h1,
.hero.navy-hero .hero-inner p { color: var(--white); }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: 8%;
  background: rgba(255,255,255,0.55);
  padding: 40px;
  border-radius: 4px;
}
.hero.navy-hero .hero-inner { background: rgba(15,28,77,0.35); }

.hero-inner h1 {
  font-family: 'Rozha One', serif;
  font-size: 56px;
  color: var(--navy);
  margin: 0 0 10px;
}

.hero-inner p.tagline {
  font-family: Spinnaker, sans-serif;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-family: 'Roboto Slab', serif;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s ease;
}
.btn:hover { background: var(--navy-dark); }
.btn.gold { background: var(--gold); color: var(--navy); font-weight: bold; }
.btn.gold:hover { background: #b98f3b; }

.social-rail {
  position: fixed;
  right: 24px;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 50;
}
.social-rail a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 16px;
  color: var(--navy);
}

/* ---------- Sections ---------- */
section { padding: 70px 8%; }

.section-title {
  font-family: 'Rozha One', serif;
  color: var(--navy);
  font-size: 34px;
  text-align: center;
  margin-bottom: 40px;
}

/* Services slideshow */
.services-slideshow {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.slides-viewport {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.slides-track {
  display: flex;
  transition: transform .5s ease;
}
.service-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--light-bg);
}
.service-slide img { width: 45%; height: 280px; object-fit: cover; flex-shrink: 0; }
.service-slide .service-body { padding: 30px; }
.service-slide h3 {
  font-family: 'Roboto Slab', serif;
  color: var(--navy);
  font-size: 22px;
  margin: 0 0 12px;
}
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background .2s ease;
}
.slide-arrow:hover { background: var(--white); }
.slide-prev { left: -18px; }
.slide-next { right: -18px; }
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.slide-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #d5dbec;
  cursor: pointer;
  transition: background .2s ease;
}
.slide-dots button.active { background: var(--navy); }

/* Partners */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}
.partner-grid .partner {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: box-shadow .2s ease;
}
.partner-grid .partner:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.partner-grid img { max-height: 70px; width: auto; }

/* Takaful calculator CTA */
.takaful-cta {
  background: var(--navy);
  text-align: center;
}
.takaful-cta .section-title { color: var(--white); }
.takaful-cta p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: #cfd6ee;
}

/* Contact form */
.contact-section { background: var(--light-bg); }
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}
.contact-form label {
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 4px;
  display: block;
  font-weight: bold;
}

/* About page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.about-content .block { margin-bottom: 36px; }
.about-content h3 {
  font-family: 'Roboto Slab', serif;
  color: var(--navy);
  font-size: 22px;
  border-bottom: 2px solid var(--accent-highlight);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.back-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--navy);
  font-weight: bold;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

/* Career */
.job-card {
  max-width: 820px;
  margin: 0 auto 40px;
  background: var(--light-bg);
  border-radius: 8px;
  padding: 28px 32px;
}
.job-card h3 {
  font-family: 'Roboto Slab', serif;
  color: var(--navy);
  margin-top: 0;
}
.job-card h4 {
  color: var(--navy);
  font-size: 15px;
  margin: 18px 0 8px;
}
.job-card ul { padding-left: 20px; list-style: disc; }
.job-card li { margin-bottom: 8px; }

/* Footer */
footer {
  background: var(--navy);
  color: #cfd6ee;
  padding: 40px 8%;
  text-align: center;
}
footer .brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 6px; }
footer img.logo-white { height: 55px; }
footer .brand-lockup .brand-name {
  font-family: 'Rozha One', serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
}
footer .brand-lockup .brand-name .js-brand-line2 { color: var(--gold); }
footer .footer-social { display: flex; justify-content: center; gap: 20px; margin: 16px 0; }
footer .footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
footer p { font-size: 13px; margin: 4px 0; }

/* Responsive */
@media (max-width: 820px) {
  .service-slide { flex-direction: column; }
  .service-slide img { width: 100%; height: 220px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero-inner { margin: 0 5%; }
  .slide-prev { left: 6px; }
  .slide-next { right: 6px; }
}

@media (max-width: 700px) {
  .topbar nav { display: none; }
  .menu-toggle { display: flex; }
  .topbar nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 10px 5%;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  }
  .topbar nav.open ul { flex-direction: column; }
  .hero-inner h1 { font-size: 38px; }
  .social-rail { display: none; }
  .topbar-lang-slot { margin-left: auto; order: 2; }
  .menu-toggle { order: 3; }
}
