/* 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
   Modern Glassmorphic + Contemporary Chat Experience
───────────────────────────────────────────────────────────────── */

/* ── FAB (Floating Action Button) ── */
.chat-widget-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #071F33 0%, #0B2E4A 45%, #0E7C93 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 10px 25px -4px rgba(7, 31, 51, 0.45),
    0 4px 10px -2px rgba(14, 124, 147, 0.35);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.25s ease;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.chat-widget-fab:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow:
    0 14px 30px -4px rgba(7, 31, 51, 0.55),
    0 6px 14px -2px rgba(14, 124, 147, 0.45);
}
.chat-widget-fab:active {
  transform: scale(0.96);
}

/* FAB Attention Pulse */
.chat-fab-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(232, 169, 59, 0.45);
  animation: chatRingPulse 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
}
@keyframes chatRingPulse {
  0%   { transform: scale(0.95); opacity: 0.9; }
  60%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* FAB Icon Morphing */
.chat-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.chat-fab-icon-chat {
  display: flex;
}
.chat-fab-icon-close {
  display: none;
}
.chat-box-container.open ~ .chat-widget-fab .chat-fab-icon-chat,
body.chat-is-open .chat-fab-icon-chat {
  display: none;
}
.chat-box-container.open ~ .chat-widget-fab .chat-fab-icon-close,
body.chat-is-open .chat-fab-icon-close {
  display: flex;
}

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

/* ── Chat Panel Container ── */
.chat-box-container {
  position: fixed;
  bottom: 98px;
  right: 26px;
  z-index: 9400;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: min(620px, calc(100vh - 120px));
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 20px 50px -10px rgba(7, 31, 51, 0.32),
    0 10px 20px -5px rgba(7, 31, 51, 0.12),
    0 0 0 1px rgba(7, 31, 51, 0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease;
  transform-origin: bottom right;
}
.chat-box-container.open {
  display: flex;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ── Header ── */
.chat-box-head {
  background: linear-gradient(135deg, #071F33 0%, #0B2E4A 55%, #0E4B75 100%);
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.chat-box-head::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(14, 124, 147, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.chat-head-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.chat-head-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D63868 0%, #E8A93B 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.chat-head-online-ring {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2.5px solid #071F33;
  border-radius: 50%;
}
.chat-head-info {
  flex: 1;
  min-width: 0;
}
.chat-box-head h4 {
  font-family: var(--sans, inherit);
  font-size: 0.96rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}
.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: dotGlow 2.5s infinite;
}
@keyframes dotGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}
.chat-head-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.15s ease;
  margin-left: auto;
}
.chat-head-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

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

/* Date Divider Chip */
.chat-date-chip {
  align-self: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
  background: rgba(148, 163, 184, 0.16);
  padding: 3px 12px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2px 0 4px;
}

/* ── Chat Bubbles ── */
.chat-bubble {
  max-width: 84%;
  padding: 11px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
  animation: bubbleFade 0.22s ease-out;
}
@keyframes bubbleFade {
  0%   { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.chat-bubble-sender {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.chat-bubble-text {
  word-break: break-word;
}
.chat-bubble-time {
  font-size: 0.64rem;
  margin-top: 4px;
  font-family: var(--mono, monospace);
  opacity: 0.72;
}

/* Client Bubble (Right) */
.chat-bubble.client {
  align-self: flex-end;
  background: linear-gradient(135deg, #071F33 0%, #0E4B75 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 14px rgba(7, 31, 51, 0.18);
}
.chat-bubble.client .chat-bubble-sender {
  color: #E8A93B;
  text-align: right;
}
.chat-bubble.client .chat-bubble-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.75);
}

/* Admin Bubble (Left) */
.chat-bubble.admin {
  align-self: flex-start;
  background: #ffffff;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 8px rgba(7, 31, 51, 0.05);
}
.chat-bubble.admin .chat-bubble-sender {
  color: #0E7C93;
}
.chat-bubble.admin .chat-bubble-time {
  color: #64748B;
}

/* ── Attachment Preview ── */
.chat-attachment-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #EFF6FF;
  border-top: 1px solid #DBEAFE;
  font-size: 0.76rem;
  color: #1E40AF;
  font-weight: 500;
  flex-shrink: 0;
}
.chat-preview-info {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-preview-remove {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.chat-preview-remove:hover {
  transform: scale(1.2);
}

/* ── Typing Indicator ── */
.chat-typing-indicator {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
  display: none;
  gap: 5px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.chat-typing-indicator.visible {
  display: flex;
}
.chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  animation: typingBounce 1.3s 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(-5px); background: #D63868; }
}

/* ── Input Footer ── */
.chat-box-foot {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

/* Bulletproof hidden file input — completely removed from layout & flex */
.chat-file-input,
#chatFileInput,
input[type="file"]#chatFileInput {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Attachment Clip Button */
.chat-attach-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.18s ease;
}
.chat-attach-btn:hover {
  background: #F1F5F9;
  color: #0E7C93;
  transform: scale(1.08);
}
.chat-attach-btn:active {
  transform: scale(0.95);
}

/* Text Input Wrapper */
.chat-input-wrapper {
  flex: 1;
  min-width: 0;
  position: relative;
}
.chat-input-wrapper input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: 22px;
  font-size: 0.88rem;
  outline: none;
  background: #F1F5F9;
  color: #0F172A;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-wrapper input:focus {
  background: #ffffff;
  border-color: #0E7C93;
  box-shadow: 0 0 0 3px rgba(14, 124, 147, 0.12);
}
.chat-input-wrapper input::placeholder {
  color: #94A3B8;
}

/* Send Button */
.chat-send-btn {
  background: linear-gradient(135deg, #D63868 0%, #b8254f 100%);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(214, 56, 104, 0.38);
}
.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(214, 56, 104, 0.55);
}
.chat-send-btn:active {
  transform: scale(0.94);
}
.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── WhatsApp Quick Link ── */
.chat-quick-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #F0FDF4;
  border-top: 1px solid #DCFCE7;
  font-size: 0.76rem;
  color: #166534;
  text-decoration: none;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.chat-quick-wa:hover {
  background: #DCFCE7;
}
.chat-quick-wa svg {
  color: #22C55E;
  flex-shrink: 0;
}

/* ── Responsive adjustments for mobile ── */
@media (max-width: 480px) {
  .chat-widget-fab {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
  .chat-box-container {
    bottom: 84px;
    right: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 100px);
    border-radius: 18px;
  }
}


@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 !important; width: auto !important; max-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, .social-row a svg { width: 18px !important; height: 18px !important; max-width: 18px !important; max-height: 18px !important; flex-shrink: 0; }
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}}
