/* Dupha Prints Master Design System & Stylesheet */
:root {
  --navy: #0B2E4A;
  --navy-dark: #071f33;
  --teal: #0E7C93;
  --teal-dark: #0a5f72;
  --coral: #D63868;
  --coral-dark: #b82855;
  --gold: #E8A93B;
  --slate: #6B7785;
  --cream: #F6F3EC;
  --paper: #FFFFFF;
  --ink: #101820;
  --radius: 4px;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* Dynamic Halftone & Grain */
.halftone { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.2px); background-size: 14px 14px; opacity: .06; }
.halftone.on-dark { color: #fff; opacity: .08; }
.grain { position: absolute; inset: 0; pointer-events: none; background-image: url('../../assets/paper-grain.png'); background-size: 260px 260px; opacity: .05; mix-blend-mode: overlay; }

/* Navbar */
header { position: sticky; top: 0; z-index: 100; background: rgba(246, 243, 236, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(11,46,74,0.1); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; max-width: 1180px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 44px; width: auto; object-fit: contain; }
.logo .word { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.logo .tag { display: block; font-family: var(--sans); font-weight: 500; font-size: .6rem; letter-spacing: .06em; color: var(--teal); text-transform: lowercase; }
nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a { font-size: .85rem; font-weight: 500; color: var(--navy); position: relative; padding: 4px 0; }
nav.links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--coral); transition: width .25s ease; }
nav.links a:hover::after { width: 100%; }
.nav-cta { background: var(--navy); color: #fff !important; padding: 9px 16px; border-radius: var(--radius); font-size: .82rem !important; font-weight: 600 !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--teal); }
.burger { display: none; background: none; border: none; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: .9rem; border: 1px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: .8rem; }

/* Mobile App Launcher Overlay */
.pwa-launcher-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  color: #fff;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.pwa-launcher-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.launcher-brand-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
}
.launcher-logo-wrap {
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  animation: pulseLogo 2s infinite;
}
.launcher-logo-wrap img { width: 100%; height: auto; object-fit: contain; }
@keyframes pulseLogo {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 169, 59, 0.4); }
  70% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(232, 169, 59, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 169, 59, 0); }
}
.launcher-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 18px;
  letter-spacing: 0.02em;
}
.launcher-caption {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.launcher-progress-container {
  width: 100%;
  max-width: 280px;
  margin-top: 10px;
}
.launcher-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.launcher-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  border-radius: 10px;
  transition: width 0.05s linear;
}
.launcher-progress-pct {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8,20,32,0.78);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: slideUpModal 0.3s ease;
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(11,46,74,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; font-weight: 700; }
.modal-close-btn { background: none; border: none; font-size: 1.5rem; color: var(--slate); cursor: pointer; }
.modal-body { padding: 24px; }

/* Forms */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(11,46,74,0.2);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14,124,147,0.15);
}

/* ─────────────────────────────────────────────────────────────────
   PREMIUM LIVE CHAT WIDGET — Dupha Prints
   Glassmorphism + Brand Gradient + Smooth Animations
───────────────────────────────────────────────────────────────── */

/* ── FAB Button ── */
.chat-widget-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9500;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, #b8254f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 28px rgba(214, 56, 104, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  user-select: none;
  /* Pulsing attention ring */
  animation: chatFabPulse 3s ease-in-out infinite;
}
.chat-widget-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(214, 56, 104, 0.4);
  animation: chatRingExpand 3s ease-in-out infinite;
  pointer-events: none;
}
.chat-widget-fab::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1.5px solid rgba(214, 56, 104, 0.2);
  animation: chatRingExpand 3s ease-in-out infinite 0.4s;
  pointer-events: none;
}
@keyframes chatFabPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(214, 56, 104, 0.55), 0 2px 8px rgba(0, 0, 0, 0.2); }
  50%       { box-shadow: 0 12px 36px rgba(214, 56, 104, 0.75), 0 4px 12px rgba(0, 0, 0, 0.25); }
}
@keyframes chatRingExpand {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.chat-widget-fab:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow:
    0 14px 38px rgba(214, 56, 104, 0.7),
    0 4px 12px rgba(0, 0, 0, 0.25);
  animation: none;
}
.chat-widget-fab svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

/* ── Unread Badge ── */
.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 900;
  font-family: var(--mono);
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  animation: badgeBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgeBounce {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* ── Chat Panel Container ── */
.chat-box-container {
  position: fixed;
  bottom: 110px;
  right: 28px;
  z-index: 9400;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(7, 31, 51, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(11, 46, 74, 0.1);
  /* Slide-up open animation */
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.25s ease;
  transform-origin: bottom right;
}
.chat-box-container.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}
/* Trigger the animation on open */
.chat-box-container.animating-open {
  animation: chatSlideUp 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes chatSlideUp {
  0% { transform: translateY(28px) scale(0.94); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ── Chat Header (Glassmorphism Navy) ── */
.chat-box-head {
  background: linear-gradient(135deg, #071F33 0%, #0B2E4A 50%, #0E3D5C 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.chat-box-head::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 169, 59, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.chat-box-head::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 30%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 124, 147, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.chat-head-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  margin-right: 12px;
  box-shadow: 0 2px 10px rgba(214, 56, 104, 0.4);
}
.chat-head-info { flex: 1; }
.chat-box-head h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: #fff;
}
.chat-head-status {
  font-size: 0.72rem;
  color: #94A3B8;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  box-shadow: 0 0 6px #22C55E;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.chat-head-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.chat-head-close:hover { background: rgba(255,255,255,0.2); }

/* ── Message Stream Area ── */
.chat-messages-stream {
  flex: 1;
  padding: 18px 16px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}
/* Scrollbar styling */
.chat-messages-stream::-webkit-scrollbar { width: 4px; }
.chat-messages-stream::-webkit-scrollbar-track { background: transparent; }
.chat-messages-stream::-webkit-scrollbar-thumb { background: rgba(11, 46, 74, 0.15); border-radius: 4px; }

/* ── Chat Bubbles ── */
.chat-bubble {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}
.chat-bubble-time {
  font-size: 0.65rem;
  margin-top: 4px;
  opacity: 0.55;
  font-family: var(--mono);
}
/* Client (user) bubble — right side */
.chat-bubble.client {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--navy), #0E3D5C);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(7, 31, 51, 0.2);
}
.chat-bubble.client .chat-bubble-time { text-align: right; color: rgba(255,255,255,0.6); }
/* Admin bubble — left side */
.chat-bubble.admin {
  align-self: flex-start;
  background: #fff;
  color: #1E293B;
  border: 1px solid rgba(11, 46, 74, 0.1);
  border-bottom-left-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.chat-bubble.admin .chat-bubble-time { color: rgba(11, 46, 74, 0.45); }

/* ── Typing Indicator (animated dots) ── */
.chat-typing-indicator {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(11, 46, 74, 0.1);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 12px 16px;
  display: none;
  gap: 5px;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}
.chat-typing-indicator.visible { display: flex; }
.chat-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94A3B8;
  animation: typingBounce 1.4s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); background: #94A3B8; }
  30%           { transform: translateY(-6px); background: var(--coral); }
}

/* ── Input Footer ── */
.chat-box-foot {
  padding: 12px 14px;
  background: #fff;
  border-top: 1px solid rgba(11, 46, 74, 0.08);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.chat-box-foot input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid rgba(11, 46, 74, 0.15);
  border-radius: 24px;
  font-size: 0.875rem;
  outline: none;
  background: #F8FAFC;
  color: #1E293B;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.chat-box-foot input:focus {
  border-color: var(--coral);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 56, 104, 0.1);
}
.chat-box-foot input::placeholder { color: #94A3B8; }
.chat-box-foot button {
  background: linear-gradient(135deg, var(--coral) 0%, #b8254f 100%);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(214, 56, 104, 0.4);
}
.chat-box-foot button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(214, 56, 104, 0.6);
}
/* WhatsApp quick link bar */
.chat-quick-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: #F0FDF4;
  border-top: 1px solid rgba(34, 197, 94, 0.2);
  font-size: 0.76rem;
  color: #166534;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.chat-quick-wa:hover { background: #DCFCE7; }


@media (max-width: 900px) {
  nav.links { display: none; }
  .burger { display: block; }
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
  background: var(--navy-dark);
  color: #8fa3b1;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
}
.flogo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.flogo .plate {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flogo .plate img { height: 32px; }
.flogo span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}
footer .tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #5a7789;
  line-height: 1.5;
  display: block;
  margin-bottom: 20px;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: #c9d6de;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--coral); color: #fff; }
.social-row svg { width: 18px; height: 18px; }
footer h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
footer ul li {
  font-size: 0.88rem;
  color: #7d97a8;
  margin-bottom: 10px;
  line-height: 1.5;
}
footer ul li a {
  color: #7d97a8;
  text-decoration: none;
  transition: color 0.2s;
}
footer ul li a:hover { color: #fff; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #4e6475;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==============================================
   FORM FEEDBACK MESSAGES
   ============================================== */
.form-msg {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}
.form-msg.show { display: block; }
.form-msg.ok {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #22c55e;
}
.form-msg.err {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

/* ==============================================
   NATIVE PWA INSTALLATION BANNER STYLES
   ============================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: calc(100% - 32px);
  max-width: 640px;
  background: #0B2E4A;
  color: #ffffff;
  border: 1px solid rgba(232, 169, 59, 0.4);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  animation: slideUpPWA 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpPWA {
  from { opacity: 0; transform: translate(-50%, 40px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.pwa-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pwa-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 300px;
}

.pwa-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}

.pwa-text-wrap {
  display: flex;
  flex-direction: column;
}

.pwa-app-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.pwa-app-desc {
  font-size: 0.8rem;
  color: #c9d6de;
  margin: 0;
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-btn-install {
  background: var(--coral) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 12px rgba(214, 56, 104, 0.4);
  cursor: pointer;
  white-space: nowrap;
}

.pwa-btn-install:hover {
  transform: translateY(-2px);
  background: #c22956 !important;
}

.pwa-btn-dismiss {
  background: transparent;
  border: none;
  color: #a9bdc8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}

.pwa-btn-dismiss:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}

@media (max-width: 480px) {
  .pwa-install-banner {
    bottom: 12px;
    width: calc(100% - 20px);
    padding: 12px 14px;
  }
  .pwa-app-icon {
    width: 44px;
    height: 44px;
  }
  .pwa-app-title { font-size: 0.95rem; }
  .pwa-app-desc { font-size: 0.76rem; }
  .pwa-btn-install { padding: 8px 14px !important; font-size: 0.8rem !important; }
}

/* ==============================================
   RESPONSIVE GRID UTILITIES
   ============================================== */
@media (max-width: 850px) {
  .portal-grid { grid-template-columns: 1fr !important; }
  .ceo-grid-container { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 20px; }
  .admin-topbar { padding: 14px 20px; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 40px !important; }
  .btn { padding: 10px 18px; font-size: 0.85rem; }
  /* Chat widget: full-screen modal on mobile */
  .chat-box-container {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 75vh;
    border-radius: 20px 20px 0 0;
    transform-origin: bottom center;
  }
  .chat-widget-fab {
    bottom: 20px;
    right: 20px;
  }
}

/* ==============================================
   HERO ANIMATED SLIDER BANNER & PORTFOLIO STYLES
   ============================================== */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(232, 169, 59, 0.35);
  background: #071f33;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11, 46, 74, 0.95), rgba(11, 46, 74, 0.4) 70%, transparent);
  padding: 24px 20px 18px;
  color: #ffffff;
}

.hero-slide-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.hero-slide-subtitle {
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0;
  font-family: var(--mono);
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 10;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 46, 74, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.slider-arrow:hover {
  background: var(--coral);
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 12;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 10px;
}

/* PORTFOLIO MASONRY / GRID CARD STYLES */
.portfolio-grid-card {
  background: var(--paper);
  border: 1px solid rgba(11, 46, 74, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.portfolio-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 46, 74, 0.14);
}

.portfolio-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0b253c;
}

.portfolio-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-grid-card:hover .portfolio-card-img-wrap img {
  transform: scale(1.08);
}

.portfolio-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 46, 74, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-grid-card:hover .portfolio-card-overlay {
  opacity: 1;
}

/* LIGHTBOX MODAL */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 23, 37, 0.94);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border: 1px solid rgba(232, 169, 59, 0.4);
  object-fit: contain;
}


/* Responsive hardening */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.footer-newsletter{margin-top:26px;max-width:420px}.footer-newsletter h5{color:#fff;font-family:var(--serif);font-size:1.05rem}.footer-newsletter p{color:rgba(255,255,255,.68);font-size:.82rem;margin:5px 0 10px}.newsletter-form{display:flex;gap:8px}.newsletter-form input{min-width:0;flex:1;padding:9px 11px;border:0;border-radius:var(--radius)}
@media(max-width:760px){.wrap{padding-left:18px;padding-right:18px}.navbar{padding:11px 18px}.logo .word{font-size:1rem}.logo img{height:38px}.footer-grid{grid-template-columns:1fr!important;gap:28px!important}.foot-bottom{display:block!important}.foot-bottom>div+div{margin-top:8px}.newsletter-form{width:100%}.designer-layout{grid-template-columns:1fr!important}.canvas-container{min-height:unset!important;padding:14px!important}.canvas-container canvas{width:100%;height:auto}.modal-3d-body{padding:14px!important}#canvas3DContainer{height:300px!important}}
