/* ============================================
   DAR BARAKAH SINGAPURA — shared.css v1.1
   ============================================ */

/* ---- TOKENS ---- */
:root {
  --ink:        #1a1710;
  --gold:       #9a7d4a;
  --gold-light: #c9aa72;
  --gold-pale:  #e8d9b8;
  --cream:      #f5f1e8;
  --white:      #ffffff;
  --charcoal:   #2c2c2c;
  --emerald:    #1e3b2e;
  --emerald-mid:#2d5441;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1200px;
  --nav-h: 100px;        /* tall default */
  --nav-h-scrolled: 68px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

/* ---- UTILITY ---- */
.container {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
}
.gold-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-block: 24px;
}
.section { padding-block: 96px; }
.section--dark { background: var(--ink); color: var(--white); }
.section--emerald { background: var(--emerald); color: var(--white); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================
   NAV — permanently white bg, tall then shrinks
   ============================================ */
.db-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(154,125,74,0.12);
  transition: height 0.4s var(--ease-out), box-shadow 0.4s;
}
.db-nav.scrolled {
  height: var(--nav-h-scrolled);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.db-nav__inner {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — larger when tall, smaller when scrolled */
.db-nav__logo { display: flex; align-items: center; gap: 12px; }
.db-nav__logo img {
  height: 68px;
  width: auto;
  transition: height 0.4s var(--ease-out);
}
.db-nav.scrolled .db-nav__logo img { height: 44px; }

.db-nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.db-nav__links a {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}
.db-nav__links a:hover,
.db-nav__links a.active { color: var(--gold); }

.db-nav__enquire {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.db-nav__enquire:hover {
  background: var(--gold);
  color: var(--white);
}

/* hamburger — dark lines on white nav */
.db-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
}
.db-hamburger span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.db-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.db-hamburger.is-open span:nth-child(2) { opacity: 0; }
.db-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   MOBILE NAV OVERLAY
   ============================================ */
.db-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10,8,5,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.db-mobile-nav.is-open { opacity: 1; pointer-events: all; }

.db-mobile-nav__close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: rgba(255,255,255,0.35);
  font-size: 42px;
  font-weight: 100;
  font-family: var(--font-display);
  line-height: 1;
  transition: color 0.3s;
}
.db-mobile-nav__close:hover { color: var(--white); }

/* Logo in mobile menu — white plaque with rounded border */
.db-mobile-nav__logo {
  margin-bottom: 48px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.db-mobile-nav__logo-plaque {
  background: var(--white);
  border-radius: 16px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.db-mobile-nav__logo-plaque img { height: 56px; width: auto; }
.db-mobile-nav__logo::after {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: rgba(154,125,74,0.5);
}

.db-mobile-nav__links {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 44px;
}
.db-mobile-nav__links li { overflow: hidden; }

.db-mobile-nav__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.6);
  transform: translateY(100%);
  transition: color 0.3s;
}
.db-mobile-nav.is-open .db-mobile-nav__link {
  animation: dbSlideUp 0.6s var(--ease-out) forwards;
}
.db-mobile-nav.is-open .db-mobile-nav__links li:nth-child(1) .db-mobile-nav__link { animation-delay: 0.06s; }
.db-mobile-nav.is-open .db-mobile-nav__links li:nth-child(2) .db-mobile-nav__link { animation-delay: 0.12s; }
.db-mobile-nav.is-open .db-mobile-nav__links li:nth-child(3) .db-mobile-nav__link { animation-delay: 0.18s; }
.db-mobile-nav.is-open .db-mobile-nav__links li:nth-child(4) .db-mobile-nav__link { animation-delay: 0.24s; }
.db-mobile-nav__link:hover { color: var(--white); }
.db-mobile-nav__link.active { color: var(--gold-light); }

.db-mobile-nav__cta {
  display: inline-block;
  border: 1px solid rgba(154,125,74,0.5);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 40px;
  margin-bottom: 40px;
  transition: border-color 0.3s, color 0.3s;
}
.db-mobile-nav__cta:hover { border-color: var(--gold-light); color: var(--white); }

.db-mobile-nav__tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.04em;
}

@keyframes dbSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ============================================
   FOOTER — logo plaque
   ============================================ */
.db-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding-block: 56px 36px;
}
.db-footer__inner {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.db-footer__logo-plaque {
  display: inline-flex;
  background: var(--white);
  border-radius: 14px;
  padding: 10px 18px;
  margin-bottom: 16px;
}
.db-footer__logo-plaque img { height: 72px; width: auto; }
.db-footer__logo p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 28ch;
  line-height: 1.6;
}
.db-footer__nav h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.db-footer__nav ul { display: flex; flex-direction: column; gap: 10px; }
.db-footer__nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.3s;
}
.db-footer__nav a:hover { color: var(--gold-light); }
.db-footer__contact h4 {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.db-footer__contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 2;
}
.db-footer__contact a {
  color: var(--gold-light);
  transition: color 0.3s;
}
.db-footer__contact a:hover { color: var(--white); }
.db-footer__base {
  width: min(var(--max-w), 100% - 48px);
  margin-inline: auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.db-footer__base p { font-size: 11px; letter-spacing: 0.08em; }
.db-footer__base .badges { display: flex; gap: 16px; align-items: center; }
.db-footer__base .badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid rgba(154,125,74,0.3);
  color: rgba(154,125,74,0.6);
}

/* ============================================
   BUTTONS — white text on gold
   ============================================ */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 44px;
  background: var(--gold);
  color: var(--white);
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--white); }

.btn-outline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 44px;
  border: 1px solid currentColor;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  :root { --nav-h: 80px; --nav-h-scrolled: 60px; }
  .db-nav__links, .db-nav__enquire { display: none; }
  .db-hamburger { display: flex; }
  .db-mobile-nav { display: flex; }

  .db-footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .db-footer__base { flex-direction: column; align-items: flex-start; }

  .section { padding-block: 64px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
}

/* ============================================
   CONTACT PAGE — hide nav logo (panel has its own)
   ============================================ */
/* contact nav logo now visible — transparent logo looks fine */


/* ============================================
   UNIFIED CARD BULLET — single elegant diamond
   ============================================ */
.why__card-icon,
.services__card-icon,
.terms__list-item .icon,
.direct-contact__item-icon {
  font-style: normal;
  line-height: 1;
  color: var(--gold);
}
/* Unified diamond bullet */
.card-bullet {
  display: block;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.why__card-icon {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.services__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
}
.terms__list-item .icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  padding-top: 0;
  margin-top: 5px;
}

