/* =========================
   Components: buttons, cards, lists, footer
   ========================= */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.btn:active{ transform: translateY(1px) scale(.99); }

.btn-primary{
  color: var(--white);
  background: linear-gradient(135deg, var(--blue2), var(--purple));
  box-shadow: 0 14px 38px rgba(30,78,216,.20);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 48px rgba(109,40,217,.22);
}

.btn-ghost{
  background: var(--white);
  border-color: rgba(30,78,216,.18);
  color: rgba(13,18,32,.9);
}
.btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(109,40,217,.22);
}

.chip{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: rgba(13,18,32,.85);
  box-shadow: 0 12px 30px rgba(2, 6, 23, .06);
}

.card{
  display:block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, .06);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(109,40,217,.18);
  box-shadow: 0 22px 70px rgba(2, 6, 23, .10);
}
.card-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(30,78,216,.12), rgba(109,40,217,.10));
  border: 1px solid rgba(30,78,216,.14);
  margin-bottom: 10px;
  font-size: 18px;
}
.card h3{
  margin: 8px 0 6px;
  font-size: 16px;
}
.card p{
  margin: 0 0 10px;
  color: rgba(13,18,32,.78);
}
.card-link{
  color: rgba(30,78,216,.95);
  font-weight: 900;
  letter-spacing: .01em;
}

.tick-list{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 12px;
}
.tick-list li{
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 12px 12px 42px;
  position: relative;
  box-shadow: 0 16px 40px rgba(2,6,23,.06);
}
.tick-list li::before{
  content: "✓";
  position:absolute;
  left: 14px;
  top: 10px;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(212,175,55,.20), rgba(109,40,217,.10));
  color: rgba(13,18,32,.90);
  font-weight: 900;
}


/* =========================
   Footer (FINAL - single source of truth)
   ========================= */

.footer{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(109,40,217,.20), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(30,78,216,.18), transparent 55%),
              linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  color: rgba(255,255,255,.92);
  padding: 56px 0 26px;
}

/* If your .container is global, don't override it here. */
.footer .muted{ color: rgba(255,255,255,.70); }

.footer a{
  color: rgba(255,255,255,.88);
  text-decoration: none;
}
.footer a:hover{
  color: rgba(212,175,55,.95);
  text-decoration: none;
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 26px;
  align-items: start;
}

/* Critical: prevent grid items from overflowing / shrinking weird */
.footer-grid > div{
  min-width: 0;
}

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .footer-grid{ grid-template-columns: 1fr; }
}

.footer-logo{
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer h4{
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
}

.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a{
  color: rgba(255,255,255,.78);
}
.footer-links a:hover{
  color: rgba(212,175,55,.95);
}

/* Social */
.footer-social{ margin-top: 14px; }
.footer-social h4{ margin: 0 0 10px; }

.footer-social .social-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer .social-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.footer .social-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}
.footer .social-link svg{ opacity: .92; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
}


/* ===== FIX: Footer grid must win even if .container has layout rules ===== */
footer.footer .container.footer-grid{
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
  gap: 26px !important;
  align-items: start !important;
}

@media (max-width: 980px){
  footer.footer .container.footer-grid{
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 620px){
  footer.footer .container.footer-grid{
    grid-template-columns: 1fr !important;
  }
}

/* Footer bottom should NOT inherit any flex either */
footer.footer .container.footer-bottom{
  display: block !important;
  text-align: center !important;
}

footer.footer .social-link{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.92) !important;
}
footer.footer .social-link:hover{
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.22) !important;
}


/* ===== Footer (partials-safe) ===== */
.footer{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(109,40,217,.20), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(30,78,216,.18), transparent 55%),
              linear-gradient(180deg, #0b1020 0%, #070a14 100%);
  color: rgba(255,255,255,.92);
  padding: 56px 0 26px;
}

.footer .muted{ color: rgba(255,255,255,.70); }

.footer-grid{
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
  gap: 26px !important;
  align-items: start !important;
}

.footer-grid > div{ min-width: 0; }

@media (max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 620px){
  .footer-grid{ grid-template-columns: 1fr !important; }
}

.footer-logo{
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-social{ margin-top: 14px; }
.footer-social .social-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.footer .social-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
}

.footer .social-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 22px;
  padding-top: 18px;
  text-align: center;
}


/* =========================
   Floating Actions (Brand Styled)
   ========================= */

.float-actions{
  position: fixed !important;
  right: 20px !important;
  bottom: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  z-index: 9999 !important;
}

/* Base floating button */
.float-actions .float-btn{
  width: 56px !important;
  height: 56px !important;
  border-radius: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  text-decoration: none !important;
  font-size: 20px;

  background: linear-gradient(135deg, #4c43e0, #6d28d9) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #ffffff !important;

  box-shadow: 0 14px 38px rgba(76,67,224,.35) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

/* Hover effect */
.float-actions .float-btn:hover{
  transform: translateY(-4px) scale(1.04) !important;
  box-shadow: 0 18px 50px rgba(76,67,224,.45) !important;
}

/* Optional: WhatsApp slightly differentiated */
.float-actions .float-btn.whatsapp{
  background: linear-gradient(135deg, #4c43e0, #5b52f2) !important;
}

/* Optional: Call slightly deeper */
.float-actions .float-btn.call{
  background: linear-gradient(135deg, #4c43e0, #3b32c8) !important;
}

/* =========================
   Contact Page: Map Section
   ========================= */
   
.contact-map{
  padding: 70px 0;
  background: #f8fafc;
}

.map-wrapper{
  margin-top: 30px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}

.map-wrapper iframe{
  display: block;
}


/* ===== MOBILE HEADER: clean alignment + 2-line brand ===== */
@media (max-width: 980px){

  /* Hide desktop links on mobile */
  header.site-header nav.nav{
    display: none !important;
  }

  /* Make nav-wrap a 3-column grid */
  header.site-header .nav-wrap{
    display: grid !important;
    grid-template-columns: auto 1fr auto !important; /* logo | name | actions */
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }

  /* Brand: logo + text inline */
  header.site-header a.brand{
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important; /* important for wrapping */
  }

  /* Logo size for mobile */
  header.site-header .brand-logo{
    width: 44px !important;
    height: auto !important;
  }

  /* Company name: allow 2 lines (NO ellipsis) */
  header.site-header .brand-text{
    min-width: 0 !important;
  }

  header.site-header .brand-text .brand-name{
    white-space: normal !important;     /* allow wrapping */
    overflow: visible !important;       /* show full text */
    text-overflow: clip !important;     /* no ... */
    display: -webkit-box !important;
    line-clamp: 2 !important;   /* max 2 lines */
    -webkit-box-orient: vertical !important;
    line-height: 1.1 !important;
    font-size: 13px !important;
  }

  /* Right side actions aligned */
  header.site-header .nav-actions{
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    margin-left: 0 !important;
  }

  /* Hamburger must be visible */
  header.site-header .nav-toggle{
    display: inline-flex !important;
  }

  /* Keep CTA button compact */
  header.site-header .nav-actions .btn-primary{
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
  }
}

/* Extra small screens: hide Call button if present */
@media (max-width: 520px){
  header.site-header .nav-actions .btn-ghost{
    display: none !important;
  }
}
