/* Cresthome — Bootstrap 5 Overrides + HEAVY Glassmorphism */
:root { --navy:#1B3A5C; --gold:#C9A96E; }
body { font-family:'DM Sans',sans-serif; overflow-x:hidden; background:#eae7e0; }
.bg-navy { background:#0E2240 !important; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.ls-2 { letter-spacing: 2px; }
.ls-3 { letter-spacing: 3px; }
.py-6 { padding-top: 100px; padding-bottom: 100px; }
.gold-line { display:inline-block; width:30px; height:2px; background:var(--gold); vertical-align:middle; margin-right:10px; }

/* ═══════ GLOBAL GRADIENT BACKGROUND ═══════ */
body { background: linear-gradient(160deg, #e8e4dc 0%, #d9d3c8 25%, #e5dfd6 50%, #dbd4c9 75%, #e8e4dc 100%); }

/* ═══════ BLOBS — BIG, BOLD, EVERYWHERE ═══════ */
.hero-section { overflow:hidden; position:relative; background:transparent; }
.blob { position:absolute; border-radius:50%; z-index:0; pointer-events:none; }
.blob-1 { width:700px; height:700px; background:rgba(201,169,110,0.45); filter:blur(120px); top:-200px; right:-150px; animation:blobFloat 8s ease-in-out infinite; }
.blob-2 { width:600px; height:600px; background:rgba(27,58,92,0.3); filter:blur(120px); bottom:-200px; left:-150px; animation:blobFloat 10s ease-in-out infinite reverse; }
.blob-3 { width:500px; height:500px; background:rgba(201,169,110,0.3); filter:blur(100px); top:30%; left:20%; animation:blobFloat 12s ease-in-out infinite; }
@keyframes blobFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(40px,-30px) scale(1.1); }
  66% { transform:translate(-30px,20px) scale(0.9); }
}

/* ═══════ SECTION BLOBS (services, about, reviews etc) ═══════ */
.bg-light, .py-6, section:not(.bg-navy) { position:relative; overflow:hidden; background:transparent !important; }
.bg-light::before, .bg-light::after {
  content:''; position:absolute; border-radius:50%; z-index:0; pointer-events:none;
}
.bg-light::before { width:500px; height:500px; background:rgba(201,169,110,0.35); filter:blur(120px); top:-100px; left:-100px; animation:blobFloat 9s ease-in-out infinite; }
.bg-light::after { width:400px; height:400px; background:rgba(27,58,92,0.2); filter:blur(100px); bottom:-80px; right:-80px; animation:blobFloat 11s ease-in-out infinite reverse; }
.bg-light > .container, .py-6 > .container { position:relative; z-index:1; }
.hero-section > .container { position:relative; z-index:1; }

/* ═══════ FLOATING LOGO ═══════ */
.hero-logo-float {
  filter:drop-shadow(0 24px 48px rgba(27,58,92,0.2));
  animation:logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-14px); }
}

/* ═══════ PILL NAVBAR ═══════ */
.nav-wrapper {
  position:fixed; top:20px; left:0; right:0; z-index:100;
  display:flex; justify-content:center; padding:0 20px;
}
.pill-nav {
  display:inline-flex; align-items:center;
  background:rgba(255,255,255,0.45);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border:1.5px solid rgba(255,255,255,0.55);
  border-radius:999px;
  padding:10px 12px;
  box-shadow:0 8px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  transition:all 0.3s;
}
.pill-nav.scrolled {
  background:rgba(255,255,255,0.6);
  box-shadow:0 8px 40px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.pill-links {
  display:flex; align-items:center; gap:6px;
}
.pill-links a {
  font-size:14px; font-weight:500; color:var(--navy);
  padding:10px 18px; border-radius:999px;
  transition:all 0.25s; text-decoration:none;
}
.pill-links a:hover {
  background:rgba(255,255,255,0.5); color:var(--navy);
}
.pill-portal {
  background:rgba(27,58,92,0.08) !important;
  border:1.5px solid rgba(27,58,92,0.15);
  font-weight:600 !important; color:var(--navy) !important;
  margin-left:4px;
}
.pill-portal:hover {
  background:var(--navy) !important; color:#fff !important;
  border-color:var(--navy);
}
.pill-burger {
  display:none; background:none; border:none; width:24px; height:18px;
  flex-direction:column; justify-content:space-between; padding:0; cursor:pointer;
}
.pill-burger span { display:block; width:100%; height:2px; background:var(--navy); border-radius:2px; }
@media(max-width:991px) {
  .pill-burger { display:flex; margin-right:12px; }
  .pill-nav { width:calc(100% - 40px); border-radius:24px; flex-wrap:wrap; padding:12px 16px; }
  .pill-links { display:none; flex-direction:column; width:100%; gap:4px; padding-top:12px; }
  .pill-links.open { display:flex; }
  .pill-links a { width:100%; text-align:center; }
}

/* ═══════ GLASS CARDS ═══════ */
.svc-card {
  transition:all 0.4s ease; border-radius:24px !important; overflow:hidden;
  background:rgba(255,255,255,0.3) !important;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1.5px solid rgba(255,255,255,0.5) !important;
  box-shadow:0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}
.svc-card:hover { transform:translateY(-10px); box-shadow:0 24px 64px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.6) !important; }
.svc-card:hover .card-img-top { transform:scale(1.08); }
.svc-card .card-img-top { transition:transform 0.6s ease; border-radius:24px 24px 0 0; }
.card {
  border-radius:24px !important;
  border:1.5px solid rgba(255,255,255,0.5) !important;
  background:rgba(255,255,255,0.3) !important;
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* ═══════ BUTTONS ═══════ */
.btn-gold { background:var(--gold); color:#fff; border:2px solid var(--gold); border-radius:50px; font-weight:600; transition:all 0.3s; }
.btn-gold:hover { background:#B08C4A; border-color:#B08C4A; color:#fff; transform:translateY(-3px); box-shadow:0 12px 36px rgba(201,169,110,0.45); }
.btn-outline-navy { border:2px solid var(--navy); color:var(--navy); border-radius:50px; font-weight:600; transition:all 0.3s; background:rgba(255,255,255,0.2); backdrop-filter:blur(8px); }
.btn-outline-navy:hover { background:var(--navy); color:#fff; transform:translateY(-3px); }
.btn-outline-light { border-radius:50px; }

/* ═══════ PROCESS STEPS — GLASS ═══════ */
.step-box {
  text-align:center; padding:48px 28px; transition:all 0.4s; border-radius:24px;
  background:rgba(255,255,255,0.3);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1.5px solid rgba(255,255,255,0.5);
  box-shadow:0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}
.step-box:hover { background:var(--navy); transform:translateY(-8px); box-shadow:0 20px 48px rgba(14,34,64,0.3); }
.step-box:hover * { color:#fff !important; }
.step-box:hover .step-num { background:var(--gold); color:var(--navy) !important; }
.step-num { width:48px; height:48px; border-radius:50%; background:rgba(243,241,237,0.7); font-family:'Playfair Display',serif; font-size:18px; color:var(--navy); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; transition:all 0.3s; }

/* ═══════ FORMS — GLASS ═══════ */
.form-control, .form-select {
  border-radius:14px; transition:all 0.3s;
  border:1px solid rgba(255,255,255,0.5);
  background:rgba(255,255,255,0.4);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.form-control:focus, .form-select:focus { border-color:var(--gold); box-shadow:0 0 0 4px rgba(201,169,110,0.2); background:rgba(255,255,255,0.7); }
form.bg-light { background:rgba(255,255,255,0.25) !important; backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); border:1.5px solid rgba(255,255,255,0.4); border-radius:24px; box-shadow:0 8px 32px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.5); }

/* ═══════ ACCORDION — GLASS ═══════ */
.accordion-item {
  border-radius:16px !important; overflow:hidden; margin-bottom:10px;
  background:rgba(255,255,255,0.3) !important;
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border:1.5px solid rgba(255,255,255,0.45) !important;
  box-shadow:0 4px 16px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
}
.accordion-button:not(.collapsed) { background:transparent; color:var(--navy); box-shadow:none; }
.accordion-button:focus { box-shadow:none; }
.accordion-button { border-radius:16px !important; background:transparent; }

/* ═══════ MISC ═══════ */
.avatar { width:40px; height:40px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.icon-circle { width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.4); backdrop-filter:blur(8px); display:flex; align-items:center; justify-content:center; color:var(--navy); flex-shrink:0; border:1px solid rgba(255,255,255,0.4); }
.about-frame { position:relative; }
.about-frame::before { content:''; position:absolute; top:-12px; left:-12px; right:12px; bottom:12px; border:2px solid var(--gold); border-radius:24px; z-index:-1; }
.about-frame img { border-radius:24px; }
.wa-float { position:fixed; bottom:28px; right:28px; z-index:90; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(37,211,102,0.3); transition:transform 0.3s; animation:pulse 2s ease-in-out infinite; }
.wa-float:hover { transform:scale(1.15); }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,0.4)} 50%{box-shadow:0 0 0 14px rgba(37,211,102,0)} }
.navbar .nav-link { font-size:14px; font-weight:500; color:#4A5568; transition:color 0.3s; }
.navbar .nav-link:hover { color:var(--navy); }
footer a:hover { color:var(--gold) !important; }

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════ MOBILE RESPONSIVE — 768px ═══════ */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media(max-width:768px) {
  /* ── HERO ── */
  .hero-section .display-3 { font-size:2rem !important; line-height:1.1 !important; }
  .hero-section .lead { font-size:0.95rem !important; max-width:100% !important; }
  .hero-logo-float { max-height:160px !important; margin:0 auto; display:block; }
  .hero-section .row { padding-top:90px !important; min-height:auto !important; }
  .hero-section .col-lg-6 { padding-top:0.5rem !important; padding-bottom:0.5rem !important; text-align:center; }
  .hero-section .col-lg-6:last-child { order:-1; padding-bottom:0 !important; margin-bottom:-8px; }
  .hero-section .d-flex.gap-3 { justify-content:center; flex-wrap:wrap; }
  .hero-section .text-gold.fw-bold { justify-content:center; display:flex; align-items:center; }
  .gold-line { width:20px; margin-right:6px; }

  /* ── STATS ── */
  .bg-navy .stat-num { font-size:1.8rem !important; }
  .bg-navy .col-6 { padding:0.5rem 0 !important; }

  /* ── SECTION HEADINGS ── */
  .display-6 { font-size:1.6rem !important; }
  .py-6 { padding-top:60px; padding-bottom:60px; }

  /* ── SERVICE CARDS ── */
  .svc-card .card-img-top { height:180px !important; }

  /* ── PROCESS ── */
  .step-box { padding:28px 18px; }
  .step-num { width:40px; height:40px; font-size:15px; }

  /* ── ABOUT ── */
  .about-frame::before { top:-8px; left:-8px; right:8px; bottom:8px; }

  /* ── REVIEWS ── */
  #reviewsGrid .col-lg-4 { width:100%; }
  #reviewsGrid .card { min-height:auto; }

  /* ── CONTACT ── */
  form.bg-light { padding:24px !important; }

  /* ── FAQ ── */
  .accordion { max-width:100% !important; }

  /* ── FOOTER ── */
  .d-flex.justify-content-between.flex-wrap.small { flex-direction:column; gap:4px; text-align:center; }
  footer .col-lg-4:first-child { text-align:center; }
  footer .col-lg-4:first-child img { margin:0 auto; }

  /* ── WHATSAPP ── */
  .wa-float { width:50px; height:50px; bottom:20px; right:20px; }
  .wa-float svg { width:24px; height:24px; }

  /* ── BLOBS — Smaller on mobile to prevent layout shift ── */
  .blob-1 { width:400px; height:400px; top:-120px; right:-100px; }
  .blob-2 { width:350px; height:350px; bottom:-100px; left:-100px; }
  .blob-3 { width:300px; height:300px; }
  .bg-light::before { width:300px; height:300px; }
  .bg-light::after { width:250px; height:250px; }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════ MOBILE RESPONSIVE — 480px (Small phones) ═══════ */
/* ═══════════════════════════════════════════════════════════════════════════ */
@media(max-width:480px) {
  /* ── HERO ── */
  .hero-section .display-3 { font-size:1.65rem !important; }
  .hero-section .lead { font-size:0.88rem !important; }
  .hero-logo-float { max-height:120px !important; }
  .hero-section .btn { font-size:0.85rem !important; padding:10px 20px !important; }

  /* ── STATS ── */
  .bg-navy .stat-num { font-size:1.5rem !important; }
  .bg-navy .small { font-size:0.65rem !important; }

  /* ── HEADINGS ── */
  .display-6 { font-size:1.35rem !important; }

  /* ── SERVICE CARDS ── */
  .svc-card .card-img-top { height:150px !important; }
  .col-md-6.col-lg-4 { width:100% !important; flex:0 0 100% !important; max-width:100% !important; }

  /* ── PROCESS — stack to 2 cols ── */
  .col-md-3 { width:50% !important; flex:0 0 50% !important; max-width:50% !important; }
  .step-box { padding:22px 14px; }
  .step-num { width:36px; height:36px; font-size:14px; }

  /* ── CONTACT ── */
  .col-sm-6 { width:100% !important; flex:0 0 100% !important; max-width:100% !important; }
  form.bg-light { padding:18px !important; border-radius:16px !important; }
  .form-control-lg, .form-select-lg { font-size:0.9rem !important; padding:10px 14px !important; }

  /* ── CTA ── */
  .bg-navy.py-5 .display-6 { font-size:1.3rem !important; }
  .bg-navy.py-5 .btn-lg { font-size:0.85rem !important; padding:10px 20px !important; }

  /* ── PILL NAV — full width pill with smaller text ── */
  .pill-nav { border-radius:18px; padding:10px 14px; }
  .pill-links a { font-size:13px; padding:8px 14px; }

  /* ── GENERAL ── */
  .py-6 { padding-top:44px; padding-bottom:44px; }
  .container { padding-left:16px !important; padding-right:16px !important; }
}
