/* 23 · Night Glass: the whole homepage in the hero's deep night colour, with glass cards and
   the same accents: pink #e84393, purple #6c5ce7, teal #00cec9. New docked header.
   Loaded only for this design (homepage.php); every rule is scoped to .hd-night-glass. */

.hd-night-glass {
  --ng-pink: #e84393; --ng-purple: #6c5ce7; --ng-teal: #00cec9;
  --ng-night: #0d0820; --ng-night-2: #140c2e; --ng-ink: #f4f1fb; --ng-muted: #b9aed0;
  --ng-glass: rgba(255, 255, 255, .045); --ng-line: rgba(255, 255, 255, .1); --ng-line-strong: rgba(255, 255, 255, .2);
  --ng-grad: linear-gradient(120deg, #e84393 0%, #6c5ce7 55%, #00cec9 100%);
  background: var(--ng-night); color: var(--ng-ink);
}

/* ---- Header: docked full-width glass bar instead of the floating pill ------------------------ */
.hd-night-glass header,
.hd-night-glass header.scrolled {
  top: 0; left: 0; right: 0; transform: none; width: 100%; max-width: none; margin: 0; border-radius: 0;
  padding: 14px max(24px, calc((100vw - 1200px) / 2));
  background: rgba(13, 8, 32, .72); border: 0; border-bottom: 1px solid var(--ng-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: none; transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.hd-night-glass header::after {   /* thin gradient line under the bar */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ng-grad); opacity: .55; pointer-events: none;
}
.hd-night-glass header.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(13, 8, 32, .9); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .6); }
.hd-night-glass header .nav-pill { background: transparent; border: 0; box-shadow: none; }
.hd-night-glass header .nav-pill a {
  position: relative; color: #e6def5; font-weight: 600; letter-spacing: .02em; padding: 8px 4px; transition: color .2s ease;
}
.hd-night-glass header .nav-pill a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; border-radius: 2px; background: var(--ng-grad);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.hd-night-glass header .nav-pill a:hover { color: #fff; }
.hd-night-glass header .nav-pill a:hover::after,
.hd-night-glass header .nav-pill a.active::after { transform: scaleX(1); }
.hd-night-glass header .btn-quote {
  background: var(--ng-grad); color: #fff; border: 0; border-radius: 999px; font-weight: 700;
  box-shadow: 0 8px 22px -8px rgba(232, 67, 147, .7); transition: transform .2s ease, box-shadow .2s ease;
}
.hd-night-glass header .btn-quote:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(108, 92, 231, .8); }
.hd-night-glass header .icon-btn,
.hd-night-glass header .admin-icon-btn {
  background: var(--ng-glass); border: 1px solid var(--ng-line); color: #e6def5; border-radius: 12px; transition: border-color .2s, background .2s;
}
.hd-night-glass header .icon-btn:hover,
.hd-night-glass header .admin-icon-btn:hover { border-color: var(--ng-line-strong); background: rgba(255, 255, 255, .09); color: #fff; }

/* ---- Every section on the night background, alternating two shades with soft glows ---------- */
.hd-night-glass .products-section,
.hd-night-glass .testimonials {
  background:
    radial-gradient(700px 360px at 0% 0%, rgba(232, 67, 147, .12), transparent 70%),
    radial-gradient(700px 360px at 100% 100%, rgba(108, 92, 231, .14), transparent 70%),
    var(--ng-night);
}
.hd-night-glass .why-us,
.hd-night-glass .faq-section {
  background:
    radial-gradient(720px 380px at 100% 0%, rgba(0, 206, 201, .1), transparent 70%),
    radial-gradient(640px 340px at 0% 100%, rgba(232, 67, 147, .1), transparent 70%),
    var(--ng-night-2);
}
.hd-night-glass .products-section,
.hd-night-glass .why-us,
.hd-night-glass .testimonials,
.hd-night-glass .faq-section { padding-top: 110px; padding-bottom: 110px; border-top: 1px solid rgba(255, 255, 255, .05); }
.hd-night-glass .marquee-section { background: #120a28; border-top: 1px solid var(--ng-line); border-bottom: 1px solid var(--ng-line); }

/* ---- Headings ------------------------------------------------------------------------------- */
.hd-night-glass .section-header { align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.hd-night-glass .section-header h2,
.hd-night-glass .why-us-left h2,
.hd-night-glass .faq-left h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); letter-spacing: -1.3px; line-height: 1.06; }
.hd-night-glass .section-header h2::after,
.hd-night-glass .why-us-left h2::after,
.hd-night-glass .faq-left h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 4px; background: var(--ng-grad); box-shadow: 0 0 18px rgba(232, 67, 147, .55);
}
.hd-night-glass .section-header p,
.hd-night-glass .why-us-left p,
.hd-night-glass .faq-left p { color: var(--ng-muted); font-size: 16.5px; line-height: 1.7; max-width: 540px; }
.hd-night-glass .btn-arrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; width: auto;
  background: var(--ng-glass); color: #fff; font-weight: 700; border: 1px solid var(--ng-line-strong);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.hd-night-glass .btn-arrow:hover { transform: translateY(-2px); border-color: rgba(232, 67, 147, .6); background: rgba(232, 67, 147, .12); }

/* ---- Products: photo cards with a neon edge --------------------------------------------------- */
.hd-night-glass .products-grid { gap: 22px; }
.hd-night-glass .product-card {
  border-radius: 22px; overflow: hidden; position: relative; isolation: isolate; border: 1px solid var(--ng-line);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.hd-night-glass .product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--ng-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s; z-index: 2; pointer-events: none;
}
.hd-night-glass .product-card::after {
  content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(13, 8, 32, .92), rgba(13, 8, 32, 0)); z-index: 0; pointer-events: none;
}
.hd-night-glass .product-card-bg { transition: transform .6s cubic-bezier(.2, .7, .2, 1); display: flex; align-items: flex-end; justify-content: flex-start; padding: 20px; }
.hd-night-glass .product-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -22px rgba(232, 67, 147, .55), 0 0 0 1px rgba(232, 67, 147, .25); }
.hd-night-glass .product-card:hover::before { opacity: 1; }
.hd-night-glass .product-card:hover .product-card-bg { transform: scale(1.07); }
.hd-night-glass .card-label {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px;
}
.hd-night-glass .card-label::after { content: "→"; font-weight: 800; transition: transform .25s; }
.hd-night-glass .product-card:hover .card-label::after { transform: translateX(4px); }

/* ---- Why us: glass cards --------------------------------------------------------------------- */
.hd-night-glass .features-grid { gap: 18px; }
.hd-night-glass .feature-item {
  background: var(--ng-glass); border: 1px solid var(--ng-line); border-radius: 20px; padding: 30px 26px; text-align: left; box-shadow: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hd-night-glass .feature-item:hover { transform: translateY(-4px); border-color: rgba(232, 67, 147, .45); background: rgba(255, 255, 255, .07); }
.hd-night-glass .feature-item > :first-child {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 0 18px; display: flex; align-items: center; justify-content: center;
  background: var(--ng-grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(232, 67, 147, .75);
}
.hd-night-glass .feature-item > :first-child * { color: #fff; }
.hd-night-glass .feature-item h3,
.hd-night-glass .feature-item h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.hd-night-glass .feature-item p { color: var(--ng-muted); font-size: 14.5px; line-height: 1.6; }
@media (min-width: 992px) { .hd-night-glass .why-us-left { position: sticky; top: 120px; align-self: start; } }

/* ---- Stats ------------------------------------------------------------------------------------ */
.hd-night-glass .stats-section {
  background:
    radial-gradient(500px 260px at 15% 20%, rgba(232, 67, 147, .28), transparent 70%),
    radial-gradient(520px 280px at 85% 80%, rgba(0, 206, 201, .22), transparent 70%),
    linear-gradient(135deg, #1a0f3d 0%, #2d1b69 50%, #1e3a5f 100%);
}
.hd-night-glass .stat-item {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .25s ease, border-color .25s ease;
}
.hd-night-glass .stat-item:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .3); }
.hd-night-glass .stat-item h3 {
  background-image: linear-gradient(90deg, #fff 0%, #f7b6d8 45%, #7ff3ef 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hd-night-glass .stat-item p { color: #d9d2f2; letter-spacing: .08em; }

/* ---- Reviews ---------------------------------------------------------------------------------- */
.hd-night-glass .testimonials-grid { gap: 22px; }
.hd-night-glass .testimonial-card {
  position: relative; background: var(--ng-glass); border: 1px solid var(--ng-line); border-radius: 22px; padding: 34px 32px 28px; overflow: hidden;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform .25s ease, border-color .25s ease;
}
.hd-night-glass .testimonial-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--ng-grad); }
.hd-night-glass .testimonial-card:hover { transform: translateY(-4px); border-color: rgba(232, 67, 147, .4); }
.hd-night-glass .testimonial-card .quote-icon {
  font-size: 30px; background: var(--ng-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hd-night-glass .testimonial-card > p { color: #ece6f8; font-size: 17px; line-height: 1.7; margin: 14px 0 22px; }
.hd-night-glass .testimonial-author { padding-top: 18px; border-top: 1px dashed var(--ng-line-strong); }
.hd-night-glass .testimonial-author h4,
.hd-night-glass .testimonial-author strong { color: #fff; }
.hd-night-glass .testimonial-author span,
.hd-night-glass .testimonial-author p { color: var(--ng-muted); }

/* ---- FAQ -------------------------------------------------------------------------------------- */
.hd-night-glass .faq-list { display: grid; gap: 12px; }
.hd-night-glass .faq-item {
  background: var(--ng-glass); border: 1px solid var(--ng-line); border-radius: 16px; box-shadow: none; transition: border-color .2s ease, background .2s ease;
}
.hd-night-glass .faq-item[open] { border-color: rgba(232, 67, 147, .5); background: rgba(232, 67, 147, .07); }
.hd-night-glass .faq-item summary { color: #fff; font-weight: 700; }
.hd-night-glass .faq-item[open] summary { color: #ff8cc6; }
.hd-night-glass .faq-item p { color: var(--ng-muted); line-height: 1.7; }

/* ---- Hero ------------------------------------------------------------------------------------- */
.hd-night-glass .hero { position: relative; overflow: hidden; }
.hd-night-glass .hero h1 span {
  background-image: linear-gradient(90deg, #ff7ab8 0%, #e84393 40%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hd-night-glass .hero::after {   /* blends the hero photo into the night page below */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 8, 32, 0), var(--ng-night));
}

/* ---- Small screens ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hd-night-glass header, .hd-night-glass header.scrolled { padding: 10px 16px; }
  .hd-night-glass header .header-actions { gap: 8px; }
  .hd-night-glass header .icon-btn,
  .hd-night-glass header .admin-icon-btn { width: 38px; height: 38px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; }
  .hd-night-glass header .btn-quote { padding: 9px 14px; font-size: 13px; line-height: 1.1; white-space: nowrap; }
  .hd-night-glass .products-section,
  .hd-night-glass .why-us,
  .hd-night-glass .testimonials,
  .hd-night-glass .faq-section { padding-top: 76px; padding-bottom: 76px; }
  .hd-night-glass .section-header { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
  .hd-night-glass .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hd-night-glass .product-card,
  .hd-night-glass .product-card-bg { height: 240px; min-height: 0; }
  .hd-night-glass .product-card { border-radius: 18px; }
  .hd-night-glass .product-card-bg { padding: 12px; }
  .hd-night-glass .card-label { font-size: 12.5px; padding: 7px 12px; gap: 6px; }
  .hd-night-glass .testimonial-card { padding: 28px 22px 22px; }
  .hd-night-glass .feature-item { padding: 24px 20px; }
}
@media (max-width: 480px) {   /* narrow phones: the admin lock icon makes room for the menu button */
  .hd-night-glass header .admin-icon-btn { display: none; }
  .hd-night-glass header .header-actions { gap: 6px; }
  .hd-night-glass header .icon-btn { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-night-glass .product-card, .hd-night-glass .product-card-bg, .hd-night-glass .feature-item, .hd-night-glass .stat-item,
  .hd-night-glass .testimonial-card, .hd-night-glass .btn-arrow, .hd-night-glass header { transition: none; }
}

/* ---- Footer: night glass with a glowing top edge, brand panel, workspace tiles and a big
        outlined SkyPrint wordmark behind the bottom bar. Links and text are unchanged. ---------- */
.hd-night-glass .site-footer {
  position: relative; overflow: hidden; padding-top: 88px;
  background:
    radial-gradient(800px 380px at 10% 0%, rgba(232, 67, 147, .16), transparent 70%),
    radial-gradient(700px 360px at 95% 30%, rgba(0, 206, 201, .12), transparent 70%),
    radial-gradient(900px 420px at 50% 120%, rgba(108, 92, 231, .22), transparent 70%),
    #090518;
  border-top: 0;
}
.hd-night-glass .site-footer::before {   /* glowing gradient edge along the top */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ng-grad); box-shadow: 0 0 24px rgba(232, 67, 147, .6); z-index: 1;
}
.hd-night-glass .site-footer::after {    /* big outlined wordmark at the very bottom */
  content: "SkyPrint"; position: absolute; left: 50%; bottom: -0.18em; transform: translateX(-50%);
  font-size: clamp(90px, 17vw, 250px); font-weight: 900; letter-spacing: -.04em; line-height: 1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07); pointer-events: none; z-index: 0;
}
.hd-night-glass .site-footer .container { position: relative; z-index: 1; }

/* main row: the brand becomes a glass panel, the link columns sit beside it */
.hd-night-glass .sf-main { gap: 40px; align-items: start; padding-bottom: 52px; }
.hd-night-glass .sf-brand {
  background: rgba(255, 255, 255, .045); border: 1px solid var(--ng-line); border-radius: 24px; padding: 28px 26px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.hd-night-glass .sf-brandline {
  font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin-top: 16px;
  background: linear-gradient(90deg, #fff 0%, #f7b6d8 55%, #7ff3ef 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hd-night-glass .sf-description { color: var(--ng-muted); line-height: 1.7; }
.hd-night-glass .sf-contact {
  margin-top: 18px; background: var(--ng-grad); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700;
  box-shadow: 0 10px 26px -10px rgba(232, 67, 147, .8); transition: transform .2s ease, box-shadow .2s ease;
}
.hd-night-glass .sf-contact:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(108, 92, 231, .9); }
.hd-night-glass .sf-contact i { color: #fff; }

/* link columns */
.hd-night-glass .sf-nav h3 {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff; padding-bottom: 16px; margin-bottom: 6px; position: relative;
}
.hd-night-glass .sf-nav h3::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 28px; height: 2px; border-radius: 2px; background: var(--ng-grad); }
.hd-night-glass .sf-nav ul { display: grid; gap: 4px; }
.hd-night-glass .sf-nav a { color: #c9bfdc; padding: 6px 0; transition: color .2s ease, transform .2s ease; }
.hd-night-glass .sf-nav a::before {
  content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--ng-grad); margin-right: 0; transition: width .2s ease, margin-right .2s ease; align-self: center;
}
.hd-night-glass .sf-nav a:hover { color: #fff; transform: translateX(2px); }
.hd-night-glass .sf-nav a:hover::before { width: 12px; margin-right: 8px; }

/* Designing Studio / School Portal tiles */
.hd-night-glass .sf-workspace-row { border-top: 1px solid var(--ng-line); border-bottom: 1px solid var(--ng-line); padding: 26px 0; align-items: center; }
.hd-night-glass .sf-workspace-label { color: var(--ng-muted); letter-spacing: .14em; }
.hd-night-glass .sf-workspace {
  background: rgba(255, 255, 255, .045); border: 1px solid var(--ng-line); border-radius: 18px; padding: 16px 18px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.hd-night-glass .sf-workspace:hover { transform: translateY(-3px); border-color: rgba(232, 67, 147, .5); background: rgba(232, 67, 147, .08); }
.hd-night-glass .sf-workspace-icon {
  width: 42px; height: 42px; border-radius: 13px; background: var(--ng-grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(232, 67, 147, .8);
}
.hd-night-glass .sf-workspace-icon * { color: #fff; }
.hd-night-glass .sf-workspace-arrow { color: var(--ng-muted); transition: color .2s ease, transform .2s ease; }
.hd-night-glass .sf-workspace:hover .sf-workspace-arrow { color: #fff; transform: translate(2px, -2px); }

/* bottom bar: room left below for the wordmark */
.hd-night-glass .sf-bottom { padding: 26px 0 clamp(80px, 13vw, 190px); border-top: 0; color: #a99dc4; }
.hd-night-glass .sf-staff,
.hd-night-glass .sf-top {
  padding: 8px 14px; border: 1px solid var(--ng-line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: #d9d0ee;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.hd-night-glass .sf-staff:hover,
.hd-night-glass .sf-top:hover { border-color: var(--ng-line-strong); background: rgba(255, 255, 255, .09); color: #fff; }

@media (max-width: 768px) {
  .hd-night-glass .site-footer { padding-top: 64px; }
  .hd-night-glass .sf-main { gap: 30px; }
  .hd-night-glass .sf-brand { padding: 22px 20px; }
  .hd-night-glass .sf-workspace-row { padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-night-glass .sf-nav a, .hd-night-glass .sf-nav a::before, .hd-night-glass .sf-workspace, .hd-night-glass .sf-contact { transition: none; }
}
