
/* ============================================================
   components.css — REUSABLE COMPONENTS
   These are building blocks used across ALL pages:
   buttons, badges, section headings, cards, footer, nav, etc.
   ============================================================ */

/* ── CONTAINER ────────────────────────────────────────────── */
/* Centers content and limits max width on all pages */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── SECTION ──────────────────────────────────────────────── */
.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background-color: var(--bg-secondary);
}

/* ── SECTION HEADING (used on every section) ──────────────── */
/* Small gold label above main heading */
.section-label {
  display: block;
  margin-right: 18px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 16px;
}

/* Page hero heading — matches home .hero__title */
.page-hero__title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.12;
  margin-bottom: 22px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.78);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 600px;
}

/* Centered version of the section header */
.section-header--center {
  text-align: center;
}

.section-header--center .section-desc {
  margin: 0 auto; /* centers the paragraph */
}

/* ── INNER PAGE MAIN LAYOUT ─────────────────────────────── */
/*
  page-main is used on non-home pages where content sits inside <main>.
  It offsets fixed navbar height so headings/text are never hidden behind nav.
*/
.page-main {
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 56px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

/* Gold filled button */
.btn--gold {
  background-color: var(--gold);
  color: #1A1200;
}
.btn--gold:hover {
  background-color: var(--gold-dark);
  transform: translateY(-1px);
}

/* Dark outline button (used next to gold button) */
.btn--dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn--dark:hover {
  background-color: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

/* Ghost / outline button */
.btn--outline {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--outline:hover {
  background-color: var(--gold);
  color: #1A1200;
}

/* ── GOLD ICON BOX ────────────────────────────────────────── */
/* The rounded square gold icon containers seen on all sections */
.icon-box {
  width: 64px;
  height: 64px;
  background-color: var(--gold-bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
}

/* Larger icon box (used on "Why Choose Us") */
.icon-box--lg {
  width: 72px;
  height: 72px;
}

/* ── BADGE (category pill on portfolio cards) ─────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--gold);
  color: #1A1200;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background-color: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 32px;
}

/* Logo area: icon box + text stack */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo-box {
  width: 150px;
  height: 65px;
  display: flex;
  align-items: center;
  margin-left: -50px;
}

.nav__logo-box img {
  width: 100%;
  object-fit: contain;
  max-height: 65px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav__logo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
}

.nav__logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Navigation links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__links a {
  padding: 6px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-gray);
  border-radius: 4px;
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover {
  color: var(--text-white);
}

/* Active link has gold underline */
.nav__links a.active {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  color: var(--gold);
  text-underline-offset: 6px;
  border-radius: 999px;
}

.nav__links a.active::after {
  content: none;
}

/* Hamburger menu (mobile only) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-open .nav__toggle {
  display: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile fullscreen menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 2px;
  right: 2px;
  bottom: auto;
  background-color: rgba(10, 10, 10, 0.96);
  z-index: 1100;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 20px;
  border-radius: 0px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  max-height: calc(100dvh - var(--nav-height) - 10px);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  border-radius: 8px;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold);
  background-color: transparent;
}

.mobile-menu a.active:not(.btn) {
  color: var(--gold);
  background-color: transparent;
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}

.mobile-menu a.btn--gold,
.mobile-menu a.btn--gold:hover {
  color: #1A1200;
  background-color: var(--gold);
}

/* Keep the whole CTA row tappable in the mobile menu. */
.mobile-menu a.btn {
  display: flex;
  width: 100%;
  justify-content: center;
}

.mobile-menu__close {
  display: none;
  position: fixed;
  top: 12px;
  right: 28px;
  font-size: 1.5rem;
  color: var(--text-white);
  z-index: 1200;
}

.nav-open .mobile-menu__close {
  display: block;
}

/* ── FLOATING WHATSAPP BUTTON ─────────────────────────────── */
.float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: transform var(--transition);
  animation: wa-pulse 2.5s infinite;
}

.float-wa:hover { transform: scale(1.1); }

.float-wa svg {
  width: 26px;
  height: 26px;
  fill: white;
}

@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 36px rgba(37,211,102,0.65); }
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Footer brand column */
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.7;
  max-width: 260px;
}

/* Footer column heading */
.footer__col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 18px;
}

/* Footer column links */
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col ul li a {
  font-size: 0.88rem;
  color: var(--text-gray);
  transition: color var(--transition);
}

.footer__col ul li a:hover { color: var(--text-white); }

/* Contact info items (icon + text) */
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 11px;
}

.footer__contact-text {
  display: inline-block;
  line-height: 1.5;
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Footer bottom bar */
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__bottom-left,
.footer__bottom-right {
  display: flex;
  align-items: center;
}

.footer__copyright {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Social icons row */
.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social-btn:hover {
  background-color: rgba(255,255,255,0.14);
}

.footer__social-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-gray);
  fill: none;
}

/* ============================================
   WHATSAPP WIDGET
   The floating button + popup in bottom-right
   ============================================ */

/* Outer wrapper — positions everything bottom-right */
.whatsapp-widget {
  position: fixed;          /* Stays in place as user scrolls */
  bottom: 24px;
  right: 24px;
  z-index: 9999;            /* Sits above everything else */
  display: flex;
  flex-direction: column;   /* Popup stacks above the button */
  align-items: flex-end;
  gap: 12px;
}

/* ---- FLOATING BUTTON ---- */
.whatsapp-widget__btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;             /* Makes it a circle */
  background-color: #25D366;      /* WhatsApp green */
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-widget__btn:hover {
  transform: scale(1.08);         /* Slight grow on hover */
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-widget__btn * {
  pointer-events: none;
}

/* Icon swap — show open icon by default, hide close icon */
.whatsapp-widget__icon--close {
  display: none;
}

/* When widget has .is-open class, swap the icons */
.whatsapp-widget.is-open .whatsapp-widget__icon--open {
  display: none;
}

.whatsapp-widget.is-open .whatsapp-widget__icon--close {
  display: block;
}

/* ---- POPUP CARD ---- */
.whatsapp-popup {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 300px;
  border-radius: 16px;
  overflow: hidden;               /* Clips children to rounded corners */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  background-color: #f0f0f0;
  visibility: hidden;

  /* Hidden by default — animates in when opened */
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;           /* Can't click when hidden */
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When widget has .is-open, show the popup */
.whatsapp-widget.is-open .whatsapp-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
  visibility: visible;
}

@media (max-width: 480px) {
  .whatsapp-widget {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-popup {
    width: min(300px, calc(100vw - 28px));
    right: 0;
    bottom: 66px;
  }
}

/* -- Popup Header (green bar) -- */
.whatsapp-popup__header {
  background-color: #075E54;      /* Dark WhatsApp green */
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-popup__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #25D366;      /* Lighter green circle */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;                 /* Doesn't shrink if text is long */
}

.whatsapp-popup__info {
  flex: 1;                        /* Takes remaining space */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.whatsapp-popup__name {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.whatsapp-popup__status {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
}

.whatsapp-popup__close {
  background: none;
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.whatsapp-popup__close:hover {
  opacity: 1;
}

/* -- Popup Body (message bubble) -- */
.whatsapp-popup__body {
  padding: 16px;
  background-color: #ece5dd;      /* WhatsApp chat background colour */
}

.whatsapp-popup__message {
  background-color: white;
  border-radius: 0 12px 12px 12px; /* Chat bubble shape — flat top-left */
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whatsapp-popup__message p {
  margin: 0;
  font-size: 0.88rem;
  color: #111;
  line-height: 1.5;
}

/* -- Popup Footer (CTA button) -- */
.whatsapp-popup__footer {
  padding: 12px 16px;
  background-color: #f0f0f0;
}

.whatsapp-popup__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.whatsapp-popup__cta:hover {
  background-color: #1ebe5d;
}


/* ---- LUCIDE ICON SIZING ---- */

/* Avatar icon inside the green circle in the header */
.whatsapp-popup__avatar-icon {
  width: 22px;
  height: 22px;
  color: white;
  /* Lucide icons are SVGs — color sets the stroke colour */
}

/* The floating button icons */
.whatsapp-widget__icon {
  width: 28px;
  height: 28px;
  color: white;
}

/* The icon inside the "Start Chat" CTA button */
.whatsapp-popup__cta-icon {
  width: 18px;
  height: 18px;
  color: white;
}

/* The X close button icon inside the popup header */
.whatsapp-popup__close i {
  width: 18px;
  height: 18px;
  color: white;
}