/* ==========================================================================
   Bongshai Skill — Brand tokens shared with bongshaihousing.com
   ========================================================================== */
:root {
  --primary: #1E40AF;
  --primary-dark: #1E3A8A;
  --primary-light: #3B82F6;
  --accent: #EAB308;
  --accent-light: #FDE047;
  --accent-dark: #CA8A04;

  --white: #ffffff;
  --off-white: #f8fafc;
  --grey-50: #f1f5f9;
  --grey-100: #e2e8f0;
  --grey-200: #cbd5e1;
  --grey-300: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;

  --success: #059669;
  --warning: #d97706;
  --error: #dc2626;
  --whatsapp: #25d366;

  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
  --container: 1180px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin: 0 0 0.5em; line-height: 1.2; color: var(--grey-900); }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--grey-900); color: var(--grey-200); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(30, 64, 175, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { background: rgba(234, 179, 8, 0.15); color: var(--accent-light); }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--grey-600); font-size: 1.05rem; }
.section--dark .section-head p { color: var(--grey-300); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--grey-900); box-shadow: 0 6px 18px rgba(234, 179, 8, 0.35); }
.btn--primary:hover { background: var(--accent-light); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.12); }
.btn--dark-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--dark-outline:hover { background: rgba(30,64,175,0.06); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #1ebc59; }
.btn--block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--grey-900);
  color: var(--grey-300);
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--grey-100); }
.topbar__contacts { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__contacts a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar__badge { color: var(--accent-light); font-weight: 700; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-100);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--grey-900); flex-shrink: 0; white-space: nowrap; }
.logo__mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.logo__text small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--grey-500); letter-spacing: 0.06em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; color: var(--grey-700);
  position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--primary); background: rgba(30,64,175,0.06); }
.nav .has-dropdown { position: relative; }
.nav .dropdown {
  position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: var(--shadow-lg);
  border-radius: var(--radius); padding: 8px; min-width: 240px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: all 0.15s ease; border: 1px solid var(--grey-100);
}
.nav .has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .dropdown a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--grey-700); }
.nav .dropdown a:hover { background: var(--off-white); color: var(--primary); }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__phone { display: flex; flex-direction: column; text-align: right; font-size: 0.85rem; }
.header__phone strong { color: var(--primary); font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--grey-900); margin: 5px 0; transition: 0.2s; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(circle at 15% 20%, rgba(59,130,246,0.16), transparent 45%),
              linear-gradient(160deg, var(--grey-900) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--accent-light); }
.hero p.lead { font-size: 1.15rem; color: var(--grey-200); max-width: 540px; margin-bottom: 28px; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.trust-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--grey-100);
}
.trust-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(5,150,105,0.25); }

.hero-card {
  background: var(--white); color: var(--grey-800); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hero-card p.small { color: var(--grey-500); font-size: 0.88rem; margin-bottom: 18px; }
.hero-card .field { margin-bottom: 14px; }
.hero-card label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--grey-700); }
.hero-card input, .hero-card select, .hero-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--grey-200); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem;
}
.hero-card input:focus, .hero-card select:focus, .hero-card textarea:focus { outline: none; border-color: var(--primary); }

/* ==========================================================================
   License / trust bar (below hero)
   ========================================================================== */
.license-bar { background: var(--accent); }
.license-bar .container { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; justify-content: space-between; }
.license-bar__msg { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--grey-900); font-size: 0.95rem; }
.license-bar__msg strong { text-decoration: underline; text-underline-offset: 3px; }
.license-bar a.verify-link { font-weight: 800; color: var(--grey-900); border-bottom: 2px solid var(--grey-900); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat__num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--primary); }
.section--dark .stat__num { color: var(--accent-light); }
.stat__label { color: var(--grey-500); font-size: 0.9rem; font-weight: 600; }
.section--dark .stat__label { color: var(--grey-400); }

/* ==========================================================================
   Cards — industries / features
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Equal-height only for cards that are actual siblings in a grid row —
   standalone stacked cards (e.g. in .two-col sidebars) must size to their own content. */
.grid-2 > .card, .grid-3 > .card, .grid-4 > .card,
.grid-2 > a.card, .grid-3 > a.card, .grid-4 > a.card {
  height: 100%;
}
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(30,64,175,0.08);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--grey-600); font-size: 0.95rem; margin-bottom: 0; }
.card .tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.card .tag { font-size: 0.75rem; font-weight: 700; background: var(--grey-50); color: var(--grey-600); padding: 4px 10px; border-radius: 999px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--primary); font-size: 0.9rem; }

.industry-card { position: relative; overflow: hidden; }
.industry-card .card__num { position: absolute; top: 20px; right: 24px; font-size: 2.2rem; font-weight: 800; color: var(--grey-100); }

/* ==========================================================================
   Process steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--grey-100); }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--grey-600); font-size: 0.9rem; margin: 0; }
.steps--connected { position: relative; }

/* ==========================================================================
   Countries strip
   ========================================================================== */
.countries { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.country-pill {
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--grey-100);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.country-pill .flag { font-size: 1.3rem; }

/* ==========================================================================
   Testimonial / success story placeholders
   ========================================================================== */
.story-card { display: flex; gap: 18px; align-items: flex-start; }
.story-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grey-100);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--grey-400);
  flex-shrink: 0;
}
.story-card blockquote { margin: 0 0 8px; font-style: italic; color: var(--grey-700); }
.story-card cite { font-style: normal; font-weight: 700; color: var(--grey-900); font-size: 0.9rem; }
.placeholder-note {
  display: inline-block; margin-top: 6px; font-size: 0.75rem; font-weight: 700; color: var(--warning);
  background: rgba(217,119,6,0.1); padding: 3px 10px; border-radius: 999px;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: var(--white); border-radius: var(--radius-lg); padding: 44px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--grey-200); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn-row { justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--grey-900); color: var(--grey-300); padding: 56px 0 0; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer h4 { color: var(--white); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer p { color: var(--grey-400); font-size: 0.9rem; }
.footer ul li { margin-bottom: 10px; }
.footer a { color: var(--grey-400); font-size: 0.9rem; }
.footer a:hover { color: var(--accent-light); }
.footer .logo { color: var(--white); margin-bottom: 14px; }
.footer .badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer .badge { font-size: 0.72rem; font-weight: 700; border: 1px solid var(--grey-700); color: var(--grey-300); padding: 5px 10px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid var(--grey-800); padding: 18px 0; font-size: 0.82rem; color: var(--grey-500); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--grey-400); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,0.5);
  font-size: 1.7rem; color: var(--white); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ==========================================================================
   Inner page header (non-home pages)
   ========================================================================== */
.page-hero {
  background: linear-gradient(160deg, var(--grey-900) 0%, var(--primary-dark) 100%);
  color: var(--white); padding: 52px 0; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.page-hero p { color: var(--grey-200); max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: var(--grey-300); margin-bottom: 14px; }
.breadcrumb a { color: var(--grey-300); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent-light); }

.content-block { max-width: 820px; }
.content-block h2 { font-size: 1.5rem; margin-top: 2em; }
.content-block ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1.2em; }
.content-block li { margin-bottom: 6px; color: var(--grey-700); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

.info-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.info-table th, .info-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--grey-100); font-size: 0.92rem; }
.info-table th { background: var(--off-white); color: var(--grey-700); font-weight: 700; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* Nav switches to the hamburger panel well before true mobile widths — with
   6 nav links + logo + phone + WhatsApp button, the desktop row runs out of
   room and overlaps starting around ~1100px, not just at phone widths. */
@media (max-width: 1180px) {
  .nav { position: fixed; top: 70px; left: 0; right: 0; background: var(--white); flex-direction: column;
         align-items: stretch; padding: 12px; box-shadow: var(--shadow-lg); transform: translateY(-140%);
         opacity: 0; transition: all 0.2s ease; max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: var(--off-white); margin-top: 4px; display: none; }
  .nav .has-dropdown.is-open .dropdown { display: block; }
  .nav-toggle { display: block; }
  .header__phone { display: none; }
}

@media (max-width: 720px) {
  .topbar__contacts a span.label { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr; }
  .license-bar .container { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band { padding: 32px 22px; }
}
