/* SMAC home page - static rebuild (shared header/footer with the other digiweb.smac.ph clones) */

/* The original declares each file as its own family with no weight descriptor;
   kept the same so the browser's weight rendering matches. */
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans Bold";
  src: url("assets/fonts/NunitoSans-Bold.ttf") format("truetype");
  font-display: swap;
}

:root {
  --font: "Nunito Sans", sans-serif;
  --font-bold: "Nunito Sans Bold", sans-serif;
  --text: #282828;
  --muted: #6c757d;
  --link: #00589d;
  --blue: #007bff;
  --nav-active: #468dd8;
  --nav-text: #242424;
  --footer-link: #585858;
  --light: #f8f9fa;
  --border: #dee2e6;
  --red: #dc3545;
  --dark: #343a40;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 75px 0 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, h4, h5, p, figure { margin: 0; }
img { vertical-align: middle; border-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 400; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  height: 76px;
  padding: 5px 16px 0;
  background: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 71px;
}
.topbar__brand { display: flex; align-items: center; }
.topbar__brand img { display: block; }
.menu-toggle { display: none; }

.menu { display: flex; align-items: center; flex: 1; height: 100%; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.menu__main { height: 100%; margin-right: auto !important; }
.menu__main > li { height: 100%; position: relative; }
.menu__main > li > a,
.menu__main .dropdown-toggle {
  display: block;
  height: 100%;
  margin: 0 16px;
  padding: 22.4px 11.2px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--nav-text);
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}
.menu__main > li > a:hover { text-decoration: none; color: var(--nav-active); }
.menu__main > li > a.is-active,
.menu__main .dropdown-toggle.is-active { color: var(--nav-active); border-bottom-color: #156bd5; }
.dropdown-toggle svg { margin-left: 10px; vertical-align: 0; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 16px;
  min-width: 15rem;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 4px;
  z-index: 10;
}
.has-dropdown.is-open .dropdown { display: block; }
.dropdown a { display: block; padding: .5rem 1.5rem; color: #212529; font-weight: 400; }
.dropdown a:hover { background: var(--light); text-decoration: none; }

.menu__account { margin-left: auto; }
@media (min-width: 1200px) {
  .menu .menu__account { align-items: flex-start; margin-top: -1px; }
}
.link-btn {
  display: inline-block;
  margin: 8px 8px 0 4px;
  padding: 6px 12px;
  color: var(--blue);
  font-weight: 400;
  border: 1px solid transparent;
  border-radius: 4px;
}
.link-btn--reg { margin-bottom: 4px; }
.login-btn {
  display: inline-block;
  margin: 4px;
  padding: 8px 48px;
  color: #fff;
  font-weight: 400;
  background: var(--link);
  border: 1px solid transparent;
  border-radius: 160px;
}
.login-btn:hover { text-decoration: none; filter: brightness(1.1); }

.search { position: relative; width: 37px; height: 38px; }
.search input {
  width: 100%; height: 100%;
  padding: 6px 25px 6px 12px;
  font: inherit; font-weight: 400;
  color: #495057;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.search input::placeholder { color: transparent; }
.search input:focus {
  position: absolute; right: 0; width: 220px;
  border: 1px solid #ced4da; background: #fff; cursor: text; outline: 0;
}
.search input:focus::placeholder { color: #6c757d; }
.search__icon { position: absolute; right: 8px; top: 10px; pointer-events: none; color: var(--text); }



/* ---------- Home: headline with banner carousel ---------- */
.headline {
  background-image: linear-gradient(to top, #ebebeb, #eee, #f2f2f2, #f5f5f5, #f9f9f9, #fbfbfb, #fcfcfc, #fefefe, #fefefe, #fff, #fff, #fff);
}
/* Decorative circles; script.js moves them on scroll (parallax), as on live. */
.headline__left { background: url("assets/img/left-circles-704990af.svg") no-repeat left 200px; }
.headline__right { background: url("assets/img/right-circles-8e43928a.svg") no-repeat right 60px; }
.headline__inner { padding-top: 48px; padding-bottom: 48px; }
.headline h1 {
  max-width: 570px;
  margin: 0 auto 8px;
  padding: 0 15px;
  text-align: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.2;
  color: var(--dark);
}
.slider--main { padding-top: 8px; }
.slider--main img { border-radius: 4px; }

/* Bootstrap-style sliding carousel (main banners, app banners) */
.slider { position: relative; }
.slider__inner { position: relative; overflow: hidden; }
.slider__item { display: none; }
.slider__item.is-active { display: block; }
.slider__item.is-entering { display: block; position: absolute; top: 0; left: 0; width: 100%; }
.slider__item a, .slider__item img { display: block; width: 100%; }
.slider__item img { height: auto; }
.slider__dots {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  margin: 0 15% 16px;
}
.slider__dots button {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 30px; height: 3px;
  margin: 0 3px;
  padding: 0;
  background: #fff;
  background-clip: padding-box;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  opacity: .5;
  cursor: pointer;
}
.slider__dots button.is-active { opacity: 1; }
.slider__ctrl {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  padding: 0;
  background: none;
  border: 0;
  opacity: .5;
  cursor: pointer;
}
.slider__ctrl:hover { opacity: .9; }
.slider__ctrl--prev { left: 0; }
.slider__ctrl--next { right: 0; }
.slider__ctrl span { display: block; width: 20px; height: 20px; background: no-repeat 50% / 100% 100%; }
.slider__ctrl--prev span { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e"); }
.slider__ctrl--next span { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e"); }

/* ---------- Pill buttons ---------- */
.pill {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  border: 1px solid;
  border-radius: 160px;
  transition: color .15s, background-color .15s, border-color .15s;
}
.pill:hover { text-decoration: none; }
.pill--lg { margin-top: 16px; padding: 8px 48px; font-size: 20px; line-height: 1.5; }
.pill--light { color: var(--light); border-color: #fff; }
.pill--light:hover { color: #212529; background: var(--light); border-color: var(--light); }
.pill--dark { margin: 24px 0; padding: 6px 24px; color: #000; border-color: #000; }
.pill--dark:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ---------- Home: "Be a SMAC member" band ---------- */
.usp, .apply {
  color: #fff;
  background-image: linear-gradient(to right, #0088d8, #007fd6, #0075d4, #006bd0, #0160cc);
}
.usp__row { display: flex; }
.usp__hand {
  flex: 0 0 41.6667%;
  height: 404px;
  background: url("assets/img/hand-with-smac-cards-7348a204.png") no-repeat center 164px;
}
.usp__text { flex: 0 0 58.3333%; padding: 120px 48px 48px; }
.usp h3, .apply h3 { margin-bottom: 8px; font-family: var(--font-bold); font-weight: 700; font-size: 28px; line-height: 1.2; }
.usp p { margin-bottom: 16px; }
.usp .pill { padding: 16px 48px; }

/* ---------- Home: deal rows (cards and carousel from the Perks clone) ---------- */
.home-deals { padding-bottom: 48px; }
.deal-row { margin-top: 48px; }
.deal-row__title { margin-bottom: 8px; font-family: var(--font-bold); font-weight: 700; font-size: 32px; line-height: 1.2; }

.carousel { position: relative; margin: 0 -15px; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; align-items: flex-start; }
.carousel__track.is-centered { justify-content: center; }
.carousel__track.is-moving { transition: transform .5s ease; }

.deal {
  flex: 0 0 auto;
  width: calc(100% / var(--per, 5) - 30px);
  margin: 4px 15px;
  padding-top: 8px;
}
.deal__img { display: block; }
.deal__img img { display: block; width: 100%; height: auto; padding: 0 5px; border-radius: 4px; }
.deal h3 {
  margin: 0;
  padding-top: 16px;
  margin-bottom: 4px;
  font-weight: 800;
  font-size: 17.6px;
  line-height: 1.2;
}
.deal h3 a { color: var(--dark); }
.deal__until { margin-bottom: 16px; font-size: 12.8px; line-height: 1.5; color: var(--muted); }

.carousel__arrow {
  position: absolute;
  top: 120px;
  z-index: 1020;
  width: 50px; height: 50px;
  padding: 0;
  border: 0;
  background: none;
  transform: translateY(-50%);
  cursor: pointer;
}
.carousel__arrow img { display: block; width: 50px; height: 50px; }
.carousel__arrow--prev { left: -18px; }
.carousel__arrow--next { right: -18px; }
.carousel.is-static .carousel__arrow { display: none; }

@media (min-width: 992px) {
  .deal__img img { padding: 0; }
  .deal__img img { transition: transform .2s linear; }
  .deal__img img:hover { transform: scale(1.1); }
}


/* ---------- Home: partner brands ---------- */
.brands .container { padding-top: 48px; padding-bottom: 48px; text-align: center; }
.brands__head { max-width: 570px; margin: 0 auto; padding: 0 48px; }
.brands h4 { margin-bottom: 8px; padding: 0 16px; font-family: var(--font-bold); font-weight: 700; font-size: 24px; line-height: 1.2; }
.carousel.carousel--brands { --per: 6; margin: 24px 0; }
.carousel--brands .carousel__track.is-moving { transition-duration: 1s; }
.brand { flex: 0 0 auto; width: calc(100% / var(--per)); }
.brand img { display: block; width: 100px; height: auto; margin: 0 auto; }
.carousel--brands .carousel__arrow { top: 50%; }
.carousel--brands .carousel__arrow--prev { left: -30px; }
.carousel--brands .carousel__arrow--next { right: -30px; }

/* ---------- Home: sign-up band ---------- */
.apply .container { padding-top: 72px; padding-bottom: 72px; text-align: center; }
.apply h3 { padding: 0 16px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; margin-top: 0; }
.footer--spaced { margin-top: 48px; }
.footer__grid { display: flex; margin: 0 -15px; }
.footer__grid > * { padding: 0 15px; }
.footer__brand { width: 33.3333%; order: 1; }
.footer__brand p { margin-bottom: 16px; }
.footer__apps { margin-top: 24px; }
.footer__apps a:first-child { margin-right: 4px; }
.footer__copy { margin-top: 24px; }
.muted { color: var(--muted); }
small { font-size: 14.4px; font-weight: 400; }
.footer__col { width: 16.6667%; order: 2; }
.footer__title { font-family: var(--font-bold); font-weight: 700; }
.footer__col nav { display: flex; flex-direction: column; margin-bottom: 24px; }
.footer__col nav a { padding: 6px 0; color: var(--footer-link); }
.social { display: flex; align-items: center; height: 32px; margin-top: 48px; padding-top: 24px; box-sizing: content-box; color: var(--dark); }
.social a { color: var(--dark); display: block; line-height: 0; }
.social a:first-child { margin-right: 16px; }


/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .container { max-width: 960px; }
  .topbar .container { max-width: 960px; padding: 0; }
  .menu-toggle {
    display: block;
    margin-right: 8px;
    padding: 4px 0;
    border: 0; background: none; cursor: pointer;
  }
  .menu {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 8px 16px 16px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
  }
  .menu.is-open { display: flex; }
  .menu ul { flex-direction: column; align-items: stretch; height: auto; }
  .menu__main > li > a, .menu__main .dropdown-toggle { margin: 0; padding: 12px 0; text-align: left; width: 100%; }
  .dropdown { position: static; border: 0; }
  .menu__account { margin-left: 0; }
  .search { width: 100%; margin-top: 8px; }
  .search input { border: 1px solid #ced4da; cursor: text; }
}

@media (max-width: 991.98px) {
  .container { max-width: 720px; }
}

@media (max-width: 767.98px) {
  .container { max-width: 540px; }
  body { margin-top: 60px; }
  .topbar { height: 64px; }
  .topbar__inner { height: 55px; }
  .menu { top: 64px; }
  .footer { text-align: center; }
  .footer__grid { flex-wrap: wrap; }
  .footer__col { width: 50%; }
  .footer__col--help { margin-bottom: 48px; }
  .social { margin-top: 0; padding-top: 0; justify-content: center; }
  .footer__brand { width: 100%; order: 5; padding-top: 2px; }
}

@media (max-width: 575.98px) {
  .container { max-width: none; }
}


/* ---------- Carousels: responsive (live slick settings) ---------- */
@media (max-width: 1199.98px) {
  .carousel__arrow--prev { left: 0; }
  .carousel__arrow--next { right: 0; }
}
@media (max-width: 991.98px) {
  .carousel__arrow { top: 220px; }
}
@media (max-width: 1024px) {
  .carousel { --per: 3; }
}
@media (max-width: 600px) {
  .carousel { --per: 2; }
}
@media (max-width: 575.98px) {
  .carousel { margin: 0; }
  .deal { width: calc(100% / var(--per)); margin: 4px 0; }
}
@media (max-width: 480px) {
  .carousel { --per: 1; }
  .carousel__viewport { padding: 0 20px; }
  .carousel__track.is-centered { justify-content: flex-start; }
}
@media (max-width: 399.98px) {
  .carousel__arrow { top: 200px; }
}

/* ---------- Home: responsive ---------- */
@media (min-width: 1200px) {
  .carousel--brands .carousel__arrow--prev { left: -18px; }
  .carousel--brands .carousel__arrow--next { right: -18px; }
}
@media (max-width: 1199.98px) {
  .carousel--brands .carousel__arrow--prev { left: -30px; }
  .carousel--brands .carousel__arrow--next { right: -30px; }
}
@media (max-width: 1024px) {
  .carousel.carousel--brands { --per: 4; }
}
@media (max-width: 600px) {
  .carousel.carousel--brands { --per: 3; }
}
@media (max-width: 480px) {
  .carousel.carousel--brands { --per: 2; }
  .carousel--brands .carousel__viewport { padding: 0; }
}
@media (max-width: 991.98px) {
  .headline h1 { max-width: none; font-size: 40px; line-height: 1.1; }
  .usp__row { flex-direction: column; }
  .usp__hand { order: 2; flex: 0 0 auto; }
  .usp__text { order: 1; flex: 0 0 auto; text-align: center; }
  .brand img { padding: 0 5px; }
  .carousel--brands .carousel__arrow { top: 50%; }
}
@media (max-width: 767.98px) {
  .slider--main { padding-top: 72px; }
  .usp__text { padding: 96px 24px 24px; }
  .brands__head { max-width: none; margin: 0 -15px; padding: 0 8px; }
  .carousel.carousel--brands { margin: 24px; }
  .apply .container { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 399.98px) {
  .headline h1 { font-size: 28.8px; }
  .deal-row__title { font-size: 25.6px; }
}
