/* ===== LegacyLogic Technologies — brand layer on top of Bootstrap 5 ===== */
:root{
  --navy:#0E2C3A;
  --navy-2:#153E51;
  --navy-deep:#081C26;
  --teal:#2E8B87;
  --teal-dim:#1F5F5C;
  --gold:#C9A227;
  --gold-dim:#A78420;
  --cream:#F5F1E6;
  --cream-2:#EAE2CD;
  --ink:#141E23;
  --ink-soft:#4C5A60;

  --bs-primary: var(--navy);
  --bs-body-font-family: 'Inter', sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
}

body{
  font-family:'Inter', sans-serif;
  color:var(--ink);
  background:var(--cream);
}
h1,h2,h3,.display-heading{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
  color:var(--navy);
}
.text-teal{color:var(--teal-dim) !important;}
.text-gold{color:var(--gold-dim) !important;}
.bg-navy{background:var(--navy) !important;}
.bg-navy-deep{background:var(--navy-deep) !important;}
.bg-cream-2{background:var(--cream-2) !important;}

/* eyebrow label */
.eyebrow{
  font-family:'Space Mono', monospace;
  font-size:.8rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--teal-dim);
  display:flex;align-items:center;gap:.6rem;
  margin-bottom:.9rem;
}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--gold);display:inline-block;}
.eyebrow.on-dark{color:#7fe0da;}

/* buttons */
.btn-brand-primary{
  background:var(--gold);border-color:var(--gold);color:var(--navy);font-weight:600;
  border-radius:50px;padding:.7rem 1.6rem;
}
.btn-brand-primary:hover{background:var(--gold-dim);border-color:var(--gold-dim);color:var(--navy);}
.btn-brand-ghost{
  border:1.5px solid rgba(255,255,255,.4);color:var(--cream);border-radius:50px;padding:.65rem 1.5rem;font-weight:600;
}
.btn-brand-ghost:hover{background:rgba(255,255,255,.1);color:#fff;}
.btn-brand-outline{
  border:1.5px solid var(--navy);color:var(--navy);border-radius:50px;padding:.65rem 1.5rem;font-weight:600;
}
.btn-brand-outline:hover{background:var(--navy);color:var(--cream);}
.btn-whatsapp{
  background:#25A95C;border-color:#25A95C;color:#fff;font-weight:600;border-radius:50px;padding:.65rem 1.4rem;
}
.btn-whatsapp:hover{background:#1e8c4b;border-color:#1e8c4b;color:#fff;}

/* navbar */
.navbar-brand-mark{width:34px;height:34px;flex-shrink:0;}
#mainNav{transition:background .3s ease, padding .3s ease, box-shadow .3s ease; padding:1rem 0;}
#mainNav.scrolled{background:rgba(14,44,58,.95) !important; backdrop-filter:blur(10px); padding:.6rem 0; box-shadow:0 4px 20px rgba(0,0,0,.18);}
#mainNav .nav-link{color:rgba(245,241,230,.8);font-weight:500;}
#mainNav .nav-link.active,#mainNav .nav-link:hover{color:#fff;}
.navbar-brand{font-family:'Fraunces',serif;font-weight:600;font-size:1.2rem;color:var(--cream) !important;}

/* hero */
.hero-section{
  position:relative;
  background:radial-gradient(ellipse at 75% 15%, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding-top:9rem;
  overflow:hidden;
}
.hero-section h1{color:var(--cream);font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:1.08;}
.hero-section h1 .accent{color:var(--gold);}
.hero-lead{color:rgba(245,241,230,.78);font-size:1.1rem;max-width:520px;}

.pin-box{position:relative;height:320px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding-bottom:4.4rem;}
.pin-icon{animation:pinBob 3s ease-in-out infinite;filter:drop-shadow(0 14px 18px rgba(0,0,0,.35));}
@keyframes pinBob{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
.ping-stage{position:relative;width:120px;height:20px;margin-top:.5rem;}
.ping-ring{position:absolute;left:50%;top:0;width:16px;height:16px;border-radius:50%;border:2px solid rgba(18,179,173,.55);transform:translate(-50%,-50%) scale(1);animation:pingOut 2.6s ease-out infinite;}
.ping-ring.r2{animation-delay:.85s;}
.ping-ring.r3{animation-delay:1.7s;}
@keyframes pingOut{0%{transform:translate(-50%,-50%) scale(.6);opacity:.9;}100%{transform:translate(-50%,-50%) scale(6);opacity:0;}}
.ground-dot{position:absolute;left:50%;top:0;width:10px;height:10px;border-radius:50%;background:var(--teal);transform:translate(-50%,-50%);box-shadow:0 0 14px rgba(18,179,173,.7);}

.tilt-divider{position:relative;display:block;width:100%;margin-top:3rem;}

/* inner page hero */
.page-hero{
  position:relative;
  background:radial-gradient(ellipse at 80% 0%, var(--navy-2) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding:9.5rem 0 4.5rem;
}
.page-hero h1{color:var(--cream);font-size:clamp(2rem,4vw,2.8rem);max-width:680px;}
.page-hero p{color:rgba(245,241,230,.75);font-size:1.05rem;max-width:560px;margin-top:.8rem;}
.crumb{font-size:.85rem;color:rgba(245,241,230,.55);margin-top:1.1rem;}
.crumb a{color:#e0c458;text-decoration:none;}

/* process steps */
.process-step{position:relative;padding:1.8rem 1.4rem;background:#fff;border-radius:16px;border:1px solid rgba(14,44,58,.06);height:100%;}
.process-step .pnum{font-family:'Fraunces',serif;font-size:2.2rem;color:var(--cream-2);font-weight:600;line-height:1;margin-bottom:.7rem;}
.process-step h4{font-size:1.05rem;margin-bottom:.4rem;color:var(--navy);font-family:'Fraunces',serif;font-weight:600;}
.process-step p{font-size:.85rem;color:var(--ink-soft);margin-bottom:0;}

.stat-strip{background:var(--navy-2);}
.stat-strip .stat-num{font-family:'Fraunces',serif;font-size:1.8rem;color:var(--gold);font-weight:600;}
.stat-strip .stat-label{font-size:.8rem;color:rgba(245,241,230,.65);}

/* generic section */
section{padding:5.5rem 0;}
.section-eyebrow-block{max-width:640px;}

.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1;transform:translateY(0);}

/* cards */
.brand-card{
  background:#fff;border:1px solid rgba(14,44,58,.06);border-radius:16px;padding:2rem;height:100%;
  transition:transform .3s ease, box-shadow .3s ease;
}
.brand-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(14,44,58,.10);}
.service-icon-badge{
  width:52px;height:52px;border-radius:12px;background:var(--navy);
  display:flex;align-items:center;justify-content:center;margin-bottom:1.3rem;
}
.service-icon-badge svg{width:24px;height:24px;color:var(--gold);}

.service-icon-badge i {
    font-size: 30px;
}


.service-price-tag{
  font-family:'Space Mono',monospace;font-size:.8rem;color:var(--teal-dim);font-weight:700;
  padding-top:.9rem;margin-top:.9rem;border-top:1px dashed #e4e4e8;
}

/* service detail blocks */
.service-detail-card{background:#fff;border-radius:16px;border:1px solid rgba(14,44,58,.06);padding:2.6rem;margin-bottom:1.8rem;}
.service-detail-card .service-icon-badge{width:56px;height:56px;}
.service-detail-card h3{font-size:1.5rem;}
.deliverable-item{display:flex;gap:.6rem;padding:.5rem 0;font-size:.92rem;color:var(--ink);}
.deliverable-item svg{width:17px;height:17px;color:var(--teal);flex-shrink:0;margin-top:.2rem;}
.check {font-size: 18px; font-weight: 600; color:green;
}

/* accordion brand overrides */
.accordion-item{border:none;border-bottom:1px solid var(--sand-3,#e4cfa0);background:transparent;}
.accordion-button{background:transparent;font-weight:600;color:var(--navy);font-size:1rem;box-shadow:none !important;padding-left:0;padding-right:0;}
.accordion-button:not(.collapsed){background:transparent;color:var(--navy);}
.accordion-button::after{filter:sepia(1) saturate(4) hue-rotate(0deg);}
.accordion-body{padding-left:0;padding-right:0;color:var(--ink-soft);font-size:.92rem;}

/* pricing cards */
.price-card{background:#fff;border-radius:16px;border:1.5px solid rgba(14,44,58,.08);padding:2.2rem 1.8rem;height:100%;display:flex;flex-direction:column;}
.price-card.featured{background:var(--navy);color:var(--cream);border-color:var(--navy);transform:scale(1.04);box-shadow:0 24px 48px rgba(14,44,58,.22);}
.price-card.featured p{color:rgba(245,241,230,.7);}
.price-tier{font-family:'Space Mono',monospace;font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-dim);}
.price-card.featured .price-tier{color:var(--gold);}
.price-amt{font-family:'Fraunces',serif;font-size:2.1rem;margin:.6rem 0 1.1rem;color:var(--navy);}
.price-card.featured .price-amt{color:var(--cream);}
.price-list{list-style:none;padding:0;margin:1.1rem 0 1.6rem;flex-grow:1;}
.price-list li{padding:.55rem 0;font-size:.9rem;display:flex;gap:.6rem;border-bottom:1px solid rgba(14,44,58,.06);}
.price-card.featured .price-list li{border-bottom-color:rgba(255,255,255,.12);}
.price-list li svg{width:16px;height:16px;color:var(--teal);flex-shrink:0;margin-top:.2rem;}
.price-card.featured .price-list li svg{color:var(--gold);}
.price-btn{text-align:center;padding:.7rem;border-radius:50px;font-weight:600;font-size:.9rem;border:1.5px solid var(--navy);color:var(--navy);text-decoration:none;display:block;transition:.25s;}
.price-btn:hover{background:var(--navy);color:var(--cream);}
.price-card.featured .price-btn{background:var(--gold);border-color:var(--gold);color:var(--navy);}
.price-card.featured .price-btn:hover{background:var(--gold-dim);}

/* contact page */
.map-box{
  margin-top:1.1rem;height:180px;border-radius:16px;
  background:linear-gradient(135deg, var(--navy), var(--navy-2));
  display:flex;align-items:center;justify-content:center;color:rgba(245,241,230,.55);
  font-family:'Space Mono',monospace;font-size:.82rem;text-align:center;padding:1rem;
}

/* ===== Work page additions ===== */

/* browser mockup */
.browser-mockup{
  background:#fff;border-radius:14px;overflow:hidden;
  box-shadow:0 24px 48px rgba(14,44,58,.14);
  border:1px solid rgba(14,44,58,.06);
}
.browser-bar{
  background:var(--navy-2);padding:.65rem 1rem;display:flex;align-items:center;gap:6px;
}
.browser-bar span{width:9px;height:9px;border-radius:50%;background:rgba(245,241,230,.25);}
.browser-bar .url-pill{
  margin-left:.7rem;background:rgba(245,241,230,.1);color:rgba(245,241,230,.55);
  font-family:'Space Mono',monospace;font-size:.72rem;padding:.2rem .7rem;border-radius:20px;flex-grow:1;
}
.browser-body{
  min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:2rem 1.5rem;text-align:center;gap:.5rem;
}
.browser-body .bm-icon{width:44px;height:44px;color:var(--gold-dim);margin-bottom:.4rem;}
.browser-body .bm-label{font-family:'Fraunces',serif;font-weight:600;color:var(--navy);font-size:1.1rem;}
.browser-body .bm-sub{font-size:.82rem;color:var(--ink-soft);}

/* concept badge */
.concept-badge{
  display:inline-block;background:var(--cream-2);color:var(--teal-dim);
  font-family:'Space Mono',monospace;font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;
  padding:.3rem .7rem;border-radius:20px;font-weight:700;
}

/* featured project card */
.project-card{background:#fff;border-radius:16px;border:1px solid rgba(14,44,58,.06);overflow:hidden;height:100%;transition:transform .3s ease, box-shadow .3s ease;}
.project-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(14,44,58,.1);}
.project-card .browser-body{min-height:150px;padding:1.4rem;}
.project-card-body{padding:1.8rem;}
.project-card-body h3{font-size:1.15rem;margin:.6rem 0 .5rem;}
.highlight-badge{
  display:inline-block;background:var(--cream-2);color:var(--navy);font-size:.74rem;font-weight:600;
  padding:.28rem .65rem;border-radius:20px;margin:0 .35rem .35rem 0;
}

/* category card */
.category-card{background:#fff;border-radius:14px;border:1px solid rgba(14,44,58,.06);padding:1.6rem;height:100%;transition:transform .3s ease, box-shadow .3s ease;}
.category-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(14,44,58,.08);}
.category-card .cat-icon{width:44px;height:44px;border-radius:11px;background:var(--cream-2);display:flex;align-items:center;justify-content:center;margin-bottom:1rem;}
.category-card .cat-icon svg{width:22px;height:22px;color:var(--teal-dim);}
.category-card h3{font-size:1.02rem;margin-bottom:.4rem;}
.category-card a.explore-link{font-size:.85rem;font-weight:600;color:var(--gold-dim);text-decoration:none;}
.category-card a.explore-link:hover{color:var(--navy);}

/* standards grid */
.standard-item{
  display:flex;align-items:center;gap:.7rem;background:#fff;border-radius:12px;
  border:1px solid rgba(14,44,58,.06);padding:.9rem 1.1rem;height:100%;font-size:.88rem;font-weight:600;color:var(--navy);
}
.standard-item svg{width:19px;height:19px;color:var(--teal);flex-shrink:0;}

/* industry card */
.industry-card{background:#fff;border-radius:14px;border:1px solid rgba(14,44,58,.06);padding:1.4rem;text-align:center;height:100%;transition:transform .3s ease, box-shadow .3s ease;}
.industry-card:hover{transform:translateY(-4px);box-shadow:0 14px 28px rgba(14,44,58,.08);}
.industry-card .ind-icon{width:42px;height:42px;border-radius:50%;background:var(--cream-2);display:flex;align-items:center;justify-content:center;margin:0 auto .8rem;}
.industry-card .ind-icon svg{width:20px;height:20px;color:var(--teal-dim);}
.industry-card h4{font-family:'Fraunces',serif;font-weight:600;font-size:.98rem;color:var(--navy);margin-bottom:.3rem;}
.industry-card p{font-size:.78rem;color:var(--ink-soft);margin:0;}

/* case study large */
.case-study-visual{position:relative;}
.trust-line{font-size:.85rem;color:rgba(245,241,230,.7);letter-spacing:.02em;}

.work-thumb{height:150px;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:center;}
.work-thumb span{font-family:'Fraunces',serif;font-size:1.4rem;color:rgba(255,255,255,.9);}
.work-card{border:1px solid rgba(14,44,58,.06);border-radius:16px;overflow:hidden;background:#fff;transition:transform .3s ease, box-shadow .3s ease;height:100%;}
.work-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(14,44,58,.1);}
.work-type-pill{display:inline-flex;background:var(--cream-2);padding:.35rem .8rem;border-radius:50px;font-size:.75rem;font-weight:600;color:var(--navy);}

.dark-note-card{background:var(--navy);border-radius:16px;padding:2.2rem;color:var(--cream);position:relative;overflow:hidden;}
.dark-note-card::after{content:"";position:absolute;right:-40px;bottom:-40px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle, rgba(201,162,39,.25), transparent 70%);}

.testi-section{background:var(--navy);color:var(--cream);}
.testi-card{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:1.7rem;height:100%;}
.testi-quote{font-family:'Fraunces',serif;font-size:2.4rem;color:var(--gold);line-height:1;}
.testi-avatar{width:38px;height:38px;border-radius:50%;background:var(--teal);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--navy);}

.cta-banner{
  background:linear-gradient(120deg, var(--navy) 0%, var(--teal-dim) 140%);
  border-radius:18px;padding:3rem;color:var(--cream);
}

footer{background:var(--navy-deep);color:rgba(245,241,230,.6);padding:3.4rem 0 1.6rem;}
footer a{color:rgba(245,241,230,.78);text-decoration:none;}
footer a:hover{color:var(--gold);}
.footer-col-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(245,241,230,.4);}

.wa-float{
  position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;
  background:#25A95C;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 26px rgba(37,169,92,.45);z-index:1030;
  animation:waPulse 2.6s ease-in-out infinite;
}
@keyframes waPulse{0%,100%{box-shadow:0 10px 26px rgba(37,169,92,.45);}50%{box-shadow:0 10px 26px rgba(37,169,92,.7);}}

@media (max-width:991.98px){
  .pin-box{height:220px;margin-bottom:1.5rem;}
}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

/* -------------------- NEW --------------- */
/* ---------- Small Mobile ---------- */

@media (max-width: 375px) {

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-brand {
    max-width: calc(100% - 48px);
  }

  .navbar-brand img {
    width: 100%;
    max-width: 190px;
    height: auto;
  }

  .navbar-toggler {
    flex-shrink: 0;
    padding: 5px 8px;
  }

  .hero-section,
  .page-hero,
  section,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .hero-section h1 {
    font-size: 1.95rem;
    line-height: 1.08;
  }

  .hero-lead {
    font-size: .95rem;
  }

  .btn {
    white-space: normal;
  }
}


/* ---------- 360px and BELOW ---------- */

@media (max-width: 360px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Navbar */
  #mainNav {
    width: 100%;
    max-width: 100%;
  }

  #mainNav .container {
    width: 100%;
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-brand {
    max-width: calc(100% - 50px);
    margin-right: auto !important;
  }

  .navbar-brand img {
    width: 170px;
    max-width: 100%;
    height: auto;
  }

  .navbar-toggler {
    flex-shrink: 0;
    padding: 5px 7px;
  }

  /* Hero */
  .hero-section {
    width: 100%;
    max-width: 100%;
    padding-top: 6.5rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-lead {
    font-size: .92rem;
    line-height: 1.55;
  }

  /* Buttons */
  .btn-brand-primary,
  .btn-brand-outline,
  .btn-brand-ghost,
  .btn-whatsapp {
    max-width: 100%;
  }

  /* Cards */
  .brand-card,
  .service-detail-card,
  .price-card,
  .category-card,
  .industry-card,
  .work-card,
  .project-card {
    width: 100%;
    max-width: 100%;
  }

  /* Floating WhatsApp */
  .wa-float {
    width: 50px;
    height: 50px;
    right: 12px;
    bottom: 12px;
  }
}


/* ---------- 320px and BELOW ---------- */

@media (max-width: 320px) {

  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  #mainNav .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-brand img {
    width: 155px;
  }

  .navbar-toggler {
    padding: 4px 6px;
  }

  .hero-section h1 {
    font-size: 1.7rem;
  }

  .hero-lead {
    font-size: .9rem;
  }

  .wa-float {
    width: 48px;
    height: 48px;
    right: 10px;
    bottom: 10px;
  }
}