/* ===============================================================
   Alfiza Safety Nets - Landing Page Styles
   Palette: deep blue (trust) + orange/yellow (CTA) + white
   =============================================================== */
@import url("../vendor/fonts/fonts.css");

:root {
  --blue-900: #16264d;
  --blue-800: #1e3a8a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-50:  #eef4ff;
  --amber:    #f59e0b;
  --amber-dark:#d97706;
  --ink:      #1f2937;
  --muted:    #5b6675;
  --line:     #e6e9f0;
  --white:    #ffffff;
  --radius:   16px;
  --shadow-sm: 0 4px 14px rgba(22, 38, 77, .08);
  --shadow-md: 0 14px 40px rgba(22, 38, 77, .14);
  --font-head: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
}

img, iframe { max-width: 100%; }
.row { --bs-gutter-x: 1.5rem; }

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-900);
}

a { text-decoration: none; }

.section { padding: 92px 0; }
.bg-soft { background: var(--blue-50); }

/* Net-inspired mesh background */
.mesh-bg {
  background-color: var(--blue-900);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--amber-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin-bottom: 14px;
}
.section-intro { color: var(--muted); max-width: 620px; }
.title-rule {
  width: 68px; height: 4px; border-radius: 4px;
  background: var(--amber);
  margin: 14px 0 0;
}
.text-center .title-rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn { font-family: var(--font-head); font-weight: 600; border-radius: 999px; padding: .72rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-cta { background: var(--amber); border-color: var(--amber); color: #3a2400; }
.btn-cta:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(217,119,6,.35); }
.btn-blue { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-blue:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,78,216,.32); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue-800); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.site-nav {
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 16px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-nav.scrolled {
  padding: 8px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.site-nav .navbar-brand { color: var(--blue-900); font-size: 1.2rem; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.site-nav .navbar-brand .brand-badge { width: 34px; height: 34px; border-radius: 9px; background: var(--amber); color: #16264d; display: grid; place-items: center; font-size: 1.1rem; }
.site-nav .navbar-brand .brand-logo { height: 68px; width: auto; }
.site-nav .nav-link { color: var(--blue-900); font-family: var(--font-head); font-weight: 500; padding: .4rem .9rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--amber); }
.site-nav.scrolled .navbar-brand { color: var(--blue-900); }
.site-nav.scrolled .nav-link { color: var(--blue-900); }
.site-nav.scrolled .nav-link:hover, .site-nav.scrolled .nav-link.active { color: var(--blue-700); }
.site-nav .navbar-toggler { border-color: rgba(22,38,77,.3); padding: .35rem .55rem; }
.site-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(22,38,77,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.site-nav.scrolled .navbar-toggler { border-color: var(--line); }
.site-nav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2316264d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--amber); }

/* ---------- Hero carousel ---------- */
.hero { position: relative; }
.hero .carousel-item { height: min(92vh, 760px); }
.hero .carousel-item::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,23,55,.86) 0%, rgba(15,23,55,.55) 55%, rgba(15,23,55,.35) 100%);
  z-index: 1;
}
.hero .slide-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-caption {
  z-index: 2; text-align: left; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  bottom: auto; padding: 0 16px;
}
.hero .caption-inner { max-width: 720px; }
.hero .slide-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; padding: .4rem .9rem; border-radius: 999px; font-size: .82rem;
  font-family: var(--font-head); font-weight: 500; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 800; }
.hero p { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 560px; margin: 16px 0 26px; }
.hero .hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .trust-strip {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  background: rgba(22,38,77,.72); backdrop-filter: blur(4px);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .9rem;
}
.hero .trust-strip .container { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; padding: 12px 16px; }
.hero .trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust-strip i { color: var(--amber); }
.carousel-indicators { z-index: 3; }
.carousel-indicators [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; }

/* ---------- About ---------- */
.about-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-figure img { width: 100%; display: block; }
.about-float {
  position: absolute; left: 18px; bottom: 18px;
  background: #fff; border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-sm); font-family: var(--font-head); font-weight: 600;
  color: var(--blue-900); font-size: .95rem;
}
.about-float span { color: var(--amber-dark); }
.feature-line { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; font-weight: 500; color: var(--ink); }
.feature-line i { color: #16a34a; font-size: 1.2rem; margin-top: 2px; }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-body { position: relative; padding: 40px 22px 24px; }
.service-icon {
  position: absolute; left: 22px; top: -26px; width: 52px; height: 52px;
  border-radius: 14px; background: var(--amber); color: #3a2400;
  display: grid; place-items: center; font-size: 1.4rem; line-height: 1;
  box-shadow: 0 8px 18px rgba(217,119,6,.35); border: 3px solid #fff; z-index: 2;
}
.service-icon i { display: block; }
.service-body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.service-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.service-actions .btn { padding: .5rem 1.05rem; font-size: .88rem; }

.help-band {
  margin-top: 54px; background: var(--blue-900); color: #fff;
  border-radius: var(--radius); padding: 34px; text-align: center;
}
.help-band h3 { color: #fff; margin-bottom: 6px; }
.help-band p { color: rgba(255,255,255,.82); margin-bottom: 20px; }
.help-band .btn-group-wrap { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Why choose us ---------- */
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px 24px; height: 100%;
  transition: transform .25s ease, background-color .25s ease;
}
.why-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.why-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(245,158,11,.18); color: var(--amber); font-size: 1.6rem; margin-bottom: 16px;
}
.why-card h4 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.78); font-size: .93rem; margin: 0; }

.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--amber); }
.stat-label { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-card { background: var(--blue-900); color: #fff; border-radius: var(--radius); padding: 34px; height: 100%; }
.contact-card h3 { color: #fff; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; }
.contact-item .ci-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.1); color: var(--amber); display: grid; place-items: center; font-size: 1.15rem;
}
.contact-item a { color: #fff; }
.contact-item a:hover { color: var(--amber); }
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.form-panel .form-control, .form-panel .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: var(--line); }
.form-panel .form-control:focus, .form-panel .form-select:focus { border-color: var(--blue-600); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.form-label { font-family: var(--font-head); font-weight: 500; font-size: .9rem; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }
.map-wrap iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Copyright bar ---------- */
.site-copyright {
  background: #0f1a38; color: rgba(255,255,255,.75);
  text-align: center; font-size: .88rem; padding: 20px 0;
}
.map-wrap.h-100 iframe { height: 100%; min-height: 340px; }

/* ---------- Floating CTAs ---------- */
.float-enquire {
  position: fixed; right: -1px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; background: var(--blue-700); color: #fff;
  font-family: var(--font-head); font-weight: 600; padding: 16px 8px; border-radius: 10px 0 0 10px;
  z-index: 1030; box-shadow: var(--shadow-sm); letter-spacing: .04em;
}
.float-enquire:hover { background: var(--blue-800); color: #fff; }
.float-call {
  position: fixed; right: 20px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--amber); color: #3a2400; display: grid; place-items: center; font-size: 1.6rem;
  z-index: 1030; box-shadow: 0 8px 22px rgba(245,158,11,.5);
  animation: callPulse 1.8s infinite;
}
.float-call:hover { color: #3a2400; transform: translateY(-3px); }
@keyframes callPulse {
  0%   { box-shadow: 0 8px 22px rgba(245,158,11,.5), 0 0 0 0 rgba(245,158,11,.45); }
  70%  { box-shadow: 0 8px 22px rgba(245,158,11,.5), 0 0 0 16px rgba(245,158,11,0); }
  100% { box-shadow: 0 8px 22px rgba(245,158,11,.5), 0 0 0 0 rgba(245,158,11,0); }
}

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  display: none; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -4px 18px rgba(0,0,0,.16);
}
.mobile-bar a {
  padding: 14px 8px; text-align: center; font-family: var(--font-head); font-weight: 600;
  color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-bar .mb-call { background: var(--blue-800); }
.mobile-bar .mb-enq { background: var(--amber); color: #3a2400; }

/* ---------- Gallery ---------- */
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: pointer; background: #0f1a38;
  box-shadow: var(--shadow-sm);
}
.gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.gallery-item:hover video { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 3rem;
  background: linear-gradient(180deg, rgba(15,26,56,.15), rgba(15,26,56,.55));
  transition: background-color .3s ease;
}
.gallery-item:hover .gallery-overlay { background: rgba(15,26,56,.35); }
.gallery-overlay i { filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); transition: transform .25s ease; }
.gallery-item:hover .gallery-overlay i { transform: scale(1.12); color: var(--amber); }
#videoModal video { max-height: 80vh; background: #000; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 68px 0; }
  .site-nav { background: #fff; }
  .site-nav .navbar-collapse { margin-top: 12px; }
  .site-nav .nav-link { padding: .6rem .2rem; }
  .hero .carousel-caption { text-align: center; }
  .hero .caption-inner { margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .hero-btns { justify-content: center; }
  .float-enquire, .float-call { display: none; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 54px; }
}
@media (max-width: 767.98px) {
  .hero .carousel-item { height: 88vh; }
  .hero .trust-strip { position: static; }
  .section { padding: 56px 0; }
  .container { padding-left: 18px; padding-right: 18px; }
  .help-band, .contact-card, .form-panel { padding: 24px 20px; }
  .hero h1 { word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
