/* ===== Global ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

/* ===== Alert bar (mobile-first, hidden on desktop later) ===== */

.alert-bar {
  background: #0077b8;
  color: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;


  gap: 0.5rem;
}

.alert-bar a {
  text-decoration: underline;
  font-weight: 600;
}

.alert-close {
  margin-left: auto;
  color: #ffffff;
  font-size: 1.1rem;
}

/* ===== Header ===== */

.site-header {
  border-bottom: 1px solid #e5e5e5;
}

/* top row */

.header-top {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #ffffff;
  position: relative;
  justify-content: space-between;
}

/* logo */

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 2rem;
}

.logo-main {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 26px;
  height: 14px;
  background: linear-gradient(90deg, #0097e6, #00c0ff);
}

.company-logo {
  height: 18px;
  width: auto;
  display: block;
}

/* primary nav (desktop) */

.nav-primary {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.nav-primary a {
  white-space: nowrap;
}

/* actions (desktop) */

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  align-items: center;
}

.header-link {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-login {
  text-align: right;
}

.header-login span {
  font-weight: 700;
}

/* mobile icons (hidden on desktop) */

.icon-button {
  display: none;
  width: 32px;
  height: 32px;
  margin-left: 0.5rem;
}

.icon-search::before,
.icon-menu::before {
  display: block;
  font-size: 1.3rem;
}

.icon-menu::before {
  content: "☰";
  font-weight: 900;
}

/* secondary bar */

.header-bottom {
  display: flex;
  align-items: stretch;
  background: #111111;
  color: #ffffff;
  padding: 0;
}

.header-tabs {
  display: flex;
}

.tab {
  padding: 0.9rem 2.5rem;
  font-size: 0.9rem;
  background: #111111;
  color: #ffffff;
}

.tab.active {
  background: #ffffff;
  color: #000000;
}

.header-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 1;
}

.header-search input {
  width: 100%;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  background: #222222;
  color: #ffffff;
  font-size: 0.9rem;
}

.header-search input::placeholder {
  color: #bbbbbb;
}

.search-btn {
  width: 56px;
  height: 100%;
  background: #222222;
}

/* ===== Hero ===== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: 420px;
}

.hero-panel {
  padding: 3.5rem 4rem;
  background: linear-gradient(135deg, #822c45, #68242f);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-panel h1 {
  font-size: 2.4rem;
  letter-spacing: 6px;
  line-height: 1.2;
  margin: 0 0 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: #d3178e;
  padding: 0.85rem 2.75rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-conditions {
  font-size: 0.85rem;
  text-decoration: underline;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Quick links bar ===== */

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(90deg, #ff9a1f, #ff4b4b, #d0138e);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.quick-link:last-child {
  border-right: none;
}

.quick-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid #ffffff;
}

/* simple symbolic icons via pseudo-content */

.quick-icon-card::before,
.quick-icon-speed::before,
.quick-icon-prepaid::before {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: #ffffff;
  margin: 10px auto;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .header-actions {
    display: none;
  }

  .nav-primary {
    display: none;
  }

  .header-top {
    padding: 0.5rem 1rem;
  }

  .header-bottom {
    display: none;
  }

  .icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }

  .hero-panel {
    padding: 1.5rem 1.5rem 3rem;
  }

  .hero-panel h1 {
    font-size: 2rem;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .quick-link {
    justify-content: flex-start;
    padding-inline: 1.5rem;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .quick-link:first-child {
    border-top: none;
  }
}

@media (min-width: 1025px) {
  .alert-bar {
    display: none;
  }

  .icon-button {
    display: none;
  }
}

/* ===== More Savings section ===== */

.savings-section {
  padding: 3rem 0.8rem 3.5rem;
  background: #f5f5f5;
}

.savings-title {
  max-width: 1100px;
  margin: 0 auto 2rem;
  font-size: 1.8rem;
  text-align: center;
}

.savings-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

/* card */

.offer-card {
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.offer-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.offer-body {
  padding: 1.75rem 1.75rem 2.25rem;
}

.offer-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #999999;
  margin-bottom: 0.5rem;
}

.offer-title {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.offer-divider {
  border: none;
  border-top: 1px solid #e6e6e6;
  margin: 0 0 1.25rem;
}

.offer-headline {
  font-size: 2rem;
  text-align: center;
  color: #444444;
  font-weight: 700;
  margin: 0 0 1rem;
}

.offer-plan-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
}

.offer-price-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.offer-price {
  font-size: 2.6rem;
  font-weight: 700;
}

.offer-price-small {
  font-size: 0.9rem;
  line-height: 1.1;
  margin-top: 0.35rem;
}

.offer-text {
  font-size: 0.9rem;
  text-align: center;
  color: #444444;
  margin: 0 0 1rem;
}

.offer-conditions {
  font-size: 0.8rem;
  text-align: center;
  color: #777777;
  margin: 0 0 1.5rem;
}

.offer-conditions a {
  color: #e5007d;
  font-weight: 600;
}

.offer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.offer-btn {
  flex: 0 0 auto;
  padding-inline: 2.5rem;
  width: 370px;
  background: #d3178e;
  color: #ffffff;
}

.offer-more-link {
  font-size: 0.85rem;
  color: #e5007d;
}

/* ===== SaskTel Cares style block ===== */

.cares-section {
  background: #d3178e;
  padding: 3rem 1.25rem 3.5rem;
  color: #ffffff;
}

.cares-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.cares-image-wrap {
  margin-bottom: 1.75rem;
}

.cares-image {
  width: 100%;
  display: block;
  object-fit: cover;
}

.cares-copy p {
  margin: 0 0 1.75rem;
  font-size: 22px;
}

.cares-btn {
  background: #ffffff;
  color: #e5007d;
  padding-inline: 2.5rem;
}

/* ===== Responsive layout for cards ===== */

@media (min-width: 900px) {
  .savings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .savings-title {
    text-align: center;
  }
}

/* ===== Lucky Draw Modal (with minimize + reopen, keeps your colors) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(20, 6, 12, 0.82); /* dark overlay */
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop.minimizing {
  opacity: 0;
  pointer-events: none;
}

/* Modal box */
.modal {
  position: relative;
  width: 90%;
  max-width: 420px;
  padding: 2.1rem 2rem 2rem;
  text-align: center;
  color: #ffffff75;
  border-radius: 24px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: scale(0.9) translateY(10px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal-backdrop.show .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Animate to bottom-left when minimizing */
.modal-backdrop.minimizing .modal {
  transform: translate(-42vw, 40vh) scale(0.35);
  opacity: 0;
}

.modal-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #feecde, #be5e2c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* iPhone image */
.modal-image {
  margin: 0.75rem auto 1rem;
  max-width: 220px;
}

.modal-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.modal-text {
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #fde6f0;
}

.modal-text strong {
  font-weight: 700;
  color: #ffffff;
}

/* CTA button */
.modal-btn {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  background-image: linear-gradient(90deg, #be5e2c, #be5e2c, #be5e2c);
  color: #ffffff;
  cursor: pointer;
  text-transform: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 10px 26px rgba(255, 59, 127, 0.55);
}

.modal-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 34px rgba(255, 59, 127, 0.7);
}

.modal-btn:active {
  transform: translateY(0);
  box-shadow: 0 7px 18px rgba(255, 59, 127, 0.55);
}

/* Close (X) */
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.4rem;
  color: #fde6f0;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.modal-close:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

/* Reopen pill */
/* ===== Floating Reopen Widget (with image) ===== */
.promo-widget {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.promo-widget.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Image block above the pill */
.promo-img {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Pill section */
.promo-text {
  background: #be5e2c;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.promo-text::before {
  font-size: 1rem;
  line-height: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.promo-img {
  animation: float 3s ease-in-out infinite;
}


/* Responsive */
@media (max-width: 480px) {
  .modal {
    padding: 1.7rem 1.4rem 1.6rem;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-text {
    font-size: 0.9rem;
  }
}

