/* =========================================================================
   IceBoyz — Brand Stylesheet
   Design tokens derived from the IceBoyz crystal-facet logo mark.
   ========================================================================= */

:root {
  /* Color */
  --ib-navy: #0b3d5c;
  --ib-navy-deep: #072a40;
  --ib-blue: #1e6fa8;
  --ib-blue-bright: #2f8fce;
  --ib-cyan: #5ec3e8;
  --ib-ice-light: #eaf6fc;
  --ib-frost: #f6fbfe;
  --ib-white: #ffffff;
  --ib-gold: #f5a623;
  --ib-gold-deep: #d98a10;
  --ib-line: #cfe9f7;
  --ib-text-muted: #4f7691;

  /* Type */
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Radii / shadow */
  --ib-radius: 18px;
  --ib-shadow: 0 12px 30px -12px rgba(11, 61, 92, 0.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ib-navy);
  background-color: var(--ib-ice-light);
  background-image:
    radial-gradient(circle at 10% 0%, rgba(94, 195, 232, 0.10), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(30, 111, 168, 0.08), transparent 40%);
  background-attachment: fixed;
}

h1, h2, h3, h4, .display-font {
  font-family: var(--font-display);
  color: var(--ib-navy);
  letter-spacing: -0.01em;
}

.text-mono { font-family: var(--font-mono); }

a { color: var(--ib-blue); }
a:hover { color: var(--ib-cyan); }

.container-narrow { max-width: 1120px; margin-inline: auto; }

/* ---- Buttons ------------------------------------------------------- */
.btn-ib-primary {
  background: linear-gradient(135deg, var(--ib-blue) 0%, var(--ib-navy) 100%);
  border: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  box-shadow: var(--ib-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-ib-primary:hover, .btn-ib-primary:focus {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(11, 61, 92, 0.4);
}

.btn-ib-whatsapp {
  background: #25d366;
  border: none;
  color: #06331b;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-ib-whatsapp:hover { color: #06331b; transform: translateY(-2px); }

.btn-ib-outline {
  background: rgba(255,255,255,0.6);
  border: 1.5px solid var(--ib-blue);
  color: var(--ib-navy);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-ib-outline:hover { background: #fff; color: var(--ib-navy); transform: translateY(-2px); }

/* ---- Navbar ---------------------------------------------------------- */
.ib-navbar {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ib-line);
}
.ib-navbar .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ib-navy);
  letter-spacing: 0.01em;
}
.ib-navbar .nav-link {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ib-navy);
}
.ib-navbar .nav-link:hover { color: var(--ib-blue); }
/* Logo Styling */
        .logo-container {
            display: flex;
            align-items: center;
        }

        .logo-image {
            max-height: 50px; /* Limits height to fit the bar */
            width: auto;      /* Maintains aspect ratio */
            display: block;
        }

/* ---- Hero -------------------------------------------------------------- */
.ib-hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.5rem;
  padding-bottom: 6rem;
}
.ib-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background:
    conic-gradient(from 210deg at 30% 20%, rgba(94,195,232,0.18), transparent 35%),
    conic-gradient(from 40deg at 85% 10%, rgba(30,111,168,0.16), transparent 40%);
  z-index: 0;
}
.ib-hero > .container { position: relative; z-index: 1; }

.ib-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ib-blue);
  background: rgba(94,195,232,0.14);
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ib-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.03;
}
.ib-hero .tagline {
  font-family: var(--font-display);
  color: var(--ib-blue);
  font-weight: 600;
  font-size: 1.35rem;
}
.ib-hero p.lead { color: var(--ib-text-muted); font-size: 1.15rem; }

.ib-hero-badge-row { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top: 1.5rem; }
.ib-hero-badge {
  background: #fff;
  border: 1px solid var(--ib-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ib-navy);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 14px -8px rgba(11,61,92,0.25);
}

/* ---- Ice-shard divider (signature element) ---------------------------- */
.ib-shard-divider {
  height: 46px;
  width: 100%;
  background: var(--ib-white);
  clip-path: polygon(
    0% 100%, 4% 30%, 9% 100%, 14% 20%, 19% 100%, 24% 40%, 29% 100%,
    34% 15%, 39% 100%, 44% 35%, 49% 100%, 54% 10%, 59% 100%, 64% 30%,
    69% 100%, 74% 20%, 79% 100%, 84% 40%, 89% 100%, 94% 15%, 100% 100%,
    100% 100%, 0% 100%
  );
}
.ib-shard-divider.flip { transform: scaleY(-1); }

/* ---- Section shells ----------------------------------------------------- */
.ib-section { padding: 4.5rem 0; }
.ib-section-white { background: var(--ib-white); }
.ib-section-navy {
  background: linear-gradient(160deg, var(--ib-navy) 0%, var(--ib-navy-deep) 100%);
  color: #dceefb;
}
.ib-section-navy h2, .ib-section-navy h3 { color: #fff; }
.ib-section-navy .text-muted-ice { color: #9fc7de; }

.ib-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ib-blue);
}
.ib-section-navy .ib-eyebrow { color: var(--ib-cyan); }

/* ---- Product / price cards (faceted glass, echoes the crystal logo) --- */
.ib-price-card {
  position: relative;
  background: rgba(255,255,255,0.9);
  border: 1.5px solid var(--ib-line);
  border-radius: var(--ib-radius);
  padding: 1.75rem 1.5rem 1.5rem;
  height: 100%;
  clip-path: polygon(0 12px, 12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}
.ib-price-card::after {
  content: "";
  position: absolute;
  top: -30%; right: -30%;
  width: 70%; height: 70%;
  background: radial-gradient(circle, rgba(94,195,232,0.25), transparent 70%);
  pointer-events: none;
}
.ib-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ib-shadow);
  border-color: var(--ib-cyan);
}
.ib-price-card.is-best {
  border-color: var(--ib-gold);
  background: linear-gradient(180deg, #fff7ea 0%, #ffffff 40%);
}
.ib-price-card .weight-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ib-navy);
}
.ib-price-card .price {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ib-blue);
  line-height: 1;
  margin: 0.5rem 0;
}
.ib-best-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--ib-gold);
  color: #4a2c00;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  text-transform: uppercase;
}

/* ---- Why-us / feature tiles --------------------------------------------- */
.ib-feature {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--ib-line);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}
.ib-feature .icon-wrap {
  width: 46px; height: 46px;
  display: flex; align-items:center; justify-content:center;
  background: rgba(94,195,232,0.16);
  border-radius: 12px;
  color: var(--ib-blue);
  margin-bottom: 0.9rem;
}

/* ---- How it works: process rail (order carries meaning here) ------------ */
.ib-step {
  position: relative;
  padding-left: 3.4rem;
  margin-bottom: 2rem;
}
.ib-step:last-child { margin-bottom: 0; }
.ib-step .step-num {
  position: absolute;
  left: 0; top: 0;
  width: 2.6rem; height: 2.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ib-blue), var(--ib-navy));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-4deg);
}
.ib-step:nth-child(even) .step-num { transform: rotate(4deg); }
.ib-step h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.ib-step p { color: var(--ib-text-muted); margin-bottom: 0; }
.ib-step-rail {
  position: absolute;
  left: 1.3rem; top: 2.6rem; bottom: -1rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--ib-line) 0 6px, transparent 6px 12px);
}
.ib-step:last-child .ib-step-rail { display: none; }

/* ---- Delivery table ------------------------------------------------------ */
.ib-delivery-table th, .ib-delivery-table td {
  vertical-align: middle;
}
.ib-delivery-table thead th {
  font-family: var(--font-display);
  color: var(--ib-navy);
  border-bottom: 2px solid var(--ib-line);
}

/* ---- Bulk CTA banner ------------------------------------------------------ */
.ib-bulk-banner {
  background: linear-gradient(120deg, var(--ib-gold-deep), var(--ib-gold));
  border-radius: var(--ib-radius);
  color: #402700;
  padding: 2.25rem;
}
.ib-bulk-banner h3 { color: #402700; }

/* ---- Order form ------------------------------------------------------------ */
.ib-form-card {
  background: #fff;
  border: 1px solid var(--ib-line);
  border-radius: var(--ib-radius);
  box-shadow: var(--ib-shadow);
  padding: 2rem;
}
.form-label { font-family: var(--font-display); font-weight: 600; color: var(--ib-navy); font-size: 0.92rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--ib-blue);
  box-shadow: 0 0 0 0.2rem rgba(30,111,168,0.15);
}
.ib-qty-input { width: 4.2rem; text-align: center; font-family: var(--font-mono); }
.ib-order-summary {
  background: var(--ib-ice-light);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
}
.ib-order-summary .total-row { font-size: 1.4rem; font-weight: 700; color: var(--ib-navy); }

/* ---- Footer ------------------------------------------------------------------ */
.ib-footer {
  background: var(--ib-navy-deep);
  color: #9fc7de;
  padding: 3rem 0 1.5rem;
}
.ib-footer a { color: #dceefb; }
.ib-footer a:hover { color: var(--ib-cyan); }
.ib-footer .brand { font-family: var(--font-display); color: #fff; font-weight: 700; font-size: 1.25rem; }

/* ---- Utility: floating WhatsApp button --------------------------------------- */
.ib-fab-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 1040;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(6, 51, 27, 0.55);
  transition: transform 0.15s ease;
}
.ib-fab-whatsapp:hover { transform: scale(1.08); }

/* ---- Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-ib-primary, .btn-ib-outline, .ib-price-card, .ib-fab-whatsapp { transition: none; }
}

/* ---- Focus visibility --------------------------------------------------------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ib-cyan);
  outline-offset: 2px;
}

/* ---- Admin dashboard tweaks ---------------------------------------------------- */
.ib-admin-sidebar { background: var(--ib-navy-deep); min-height: 100vh; color: #dceefb; }
.ib-admin-sidebar a { color: #9fc7de; }
.ib-admin-sidebar a.active, .ib-admin-sidebar a:hover { color: #fff; }
.ib-status-pill { font-family: var(--font-mono); font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.status-new { background:#e7f1fb; color:#1e6fa8; }
.status-confirmed { background:#e7fbf0; color:#1a8f52; }
.status-out_for_delivery { background:#fff4e0; color:#b3720b; }
.status-ready_for_pickup { background:#f0e9ff; color:#6738c9; }
.status-completed { background:#e9edf1; color:#43586b; }
.status-cancelled { background:#fdeaea; color:#c23a3a; }

@media (max-width: 767.98px) {
  .ib-hero { padding-top: 2.5rem; padding-bottom: 4rem; }
  .ib-section { padding: 3rem 0; }
}
