/* ===========================
   ROMITEX – Custom Styles
   =========================== */

:root {
  --rt-primary:    #2e4a6e;
  --rt-primary-dk: #1e3250;
  --rt-accent:     #fff0ec;
  --rt-highlight:  #e8674a;
  --rt-radius:     0.75rem;
}

/* ---- Bootstrap palette override ---- */
.bg-primary  { background-color: var(--rt-primary) !important; }
.btn-primary { background-color: var(--rt-primary); border-color: var(--rt-primary); }
.btn-primary:hover,
.btn-primary:focus { background-color: var(--rt-primary-dk); border-color: var(--rt-primary-dk); }
.text-primary { color: var(--rt-primary) !important; }
.btn-outline-primary { color: var(--rt-primary); border-color: var(--rt-primary); }
.btn-outline-primary:hover { background-color: var(--rt-primary); border-color: var(--rt-primary); }
.bg-primary-subtle { background-color: var(--rt-accent) !important; }

/* ---- Typography ---- */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e2532;
  scroll-behavior: smooth;
}

.text-white-75  { color: rgba(255,255,255,.78) !important; }
.text-white-50  { color: rgba(255,255,255,.55) !important; }

/* ---- Hero ---- */
.hero-section {
  min-height: 88vh;
  background:
    linear-gradient(135deg, rgba(30,50,80,.90) 0%, rgba(46,74,110,.78) 100%),
    url('/img/hero-bg.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ---- Sections ---- */
.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ---- Product cards ---- */
.product-card {
  border-radius: var(--rt-radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(46,74,110,.15) !important;
}
.product-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-accent);
  border-radius: 50%;
}
.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--rt-radius) var(--rt-radius) 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
  width: calc(100% + 3rem);
}

/* ---- About visual ---- */
.about-visual {
  background: linear-gradient(135deg, var(--rt-accent) 0%, #fde0d8 100%);
}
.stat-box {
  background: #fff;
  box-shadow: 0 4px 16px rgba(46,74,110,.08);
}

/* ---- Legal pages ---- */
.legal-content h2 { border-left: 4px solid var(--rt-primary); padding-left: .75rem; }
.legal-content p,
.legal-content li { line-height: 1.8; color: #374151; }

/* ---- Highlight (coral) ---- */
.text-highlight  { color: var(--rt-highlight) !important; }
.bg-highlight    { background-color: var(--rt-highlight) !important; }

/* ---- Navbar ---- */
.navbar-brand { letter-spacing: .02em; }
.logo { height: 56px; width: auto; border-radius: 6px; object-fit: contain; }

/* ---- Footer links ---- */
footer { background-color: #141e2d !important; }
footer a:hover { color: #fff !important; }

/* ===========================
   FLOATING WHATSAPP BUTTON
   =========================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
  color: #fff;
}
.wa-float::before {
  content: '';
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(37,211,102,.35);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Tooltip */
.wa-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: #fff;
  color: #1e2532;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #fff;
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
  .hero-section { min-height: 100svh; }
  .wa-float { bottom: 20px; right: 16px; width: 54px; height: 54px; font-size: 1.7rem; }
  .wa-float::before { width: 54px; height: 54px; }
}
