:root {
  --navy-deep: #0a1526;
  --navy: #0f2038;
  --navy-light: #16304f;
  --gold: #c9a227;
  --gold-light: #e3c465;
  --teal-dark: #10322c;
  --text-light: #f4f1e8;
  --text-muted: #a9b8cc;
}

html, body {
  height: 100%;
}

body {
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  background-color: var(--navy-deep);
  color: var(--text-light);
}

a {
  text-decoration: none;
}

/* ===== Top navbar ===== */
.top-navbar {
  background: #ffffff;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.brand-logo span {
  color: inherit;
  font-weight: 700;
}

.top-navbar .nav-link {
  color: #333;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
}

.top-navbar .nav-link.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.top-navbar .nav-link:hover {
  color: var(--gold);
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #1a1a1a;
  font-weight: 600;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: #1a1a1a;
}

.btn-outline-navy {
  border: 1px solid #ccc;
  color: #333;
  font-weight: 600;
  border-radius: 2rem;
}

.btn-outline-navy:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.lang-toggle {
  color: #333;
  font-weight: 500;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-deep);
}

.hero-bg-half {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg-half.hero-bg-city {
  background-image: url("/images/hero-city.jpg");
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 66%);
  mask-image: linear-gradient(to right, #000 0%, #000 40%, transparent 66%);
}

.hero-bg-half.hero-bg-kaaba {
  background-image: url("/images/hero-kaaba.jpg");
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 66%);
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 66%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
      radial-gradient(ellipse 65% 95% at 50% 50%, rgba(9, 17, 31, 0.85) 0%, rgba(9, 17, 31, 0.55) 45%, rgba(9, 17, 31, 0.1) 80%),
      rgba(9, 17, 31, 0.22);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 6rem 1.5rem;
  margin: 0 auto;
  text-align: center;
}

.hero-content .btn {
  display: inline-flex;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== Service cards ===== */
.service-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.service-card--haji { background-image: url("/images/card-hajj.jpg"); }
.service-card--umrah { background-image: url("/images/card-umrah.jpg"); }
.service-card--immigration { background-image: url("/images/card-immigration.jpg"); }
.service-card--visa { background-image: url("/images/card-visa.jpg"); }

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(6, 12, 22, 0.92) 0%, rgba(6, 12, 22, 0.55) 35%, rgba(6, 12, 22, 0.15) 65%, rgba(6, 12, 22, 0.35) 100%);
}

.service-card-badge {
  position: relative;
  z-index: 2;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.service-card-icon-gold {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(201,162,39,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.service-card-body {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.4rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.service-card-text {
  text-align: end;
}

.service-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.service-card-body h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
  font-size: 1.2rem;
}

.service-card-body p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ===== Features bar ===== */
.features-bar {
  background: var(--teal-dark);
  border-radius: 1rem;
  padding: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.feature-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.25rem;
}

.feature-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 3rem;
}

.site-footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}

.site-footer a {
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-inline-start: 0.5rem;
}

.social-icon:hover {
  background: var(--gold);
  color: #1a1a1a;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.photo-credits {
  font-size: 0.72rem;
  color: rgba(169, 184, 204, 0.6);
  margin-top: 0.35rem;
}

.photo-credits a {
  display: inline;
  color: inherit;
  margin: 0;
}

/* ===== Simple stub pages (About/Blog/Contact) ===== */
.stub-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stub-page i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .hero-content h1 { font-size: 1.75rem; white-space: normal; }
}
