/* ==========================================================================
   SMARTBINS.IE - MASTER DESIGN SYSTEM & VISUAL ASSET SUITE
   Parkside (Dublin 13) & Hunterswood (Dublin 24) Rollout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Brand Core */
  --brand-primary: #0F52BA;
  --brand-primary-dark: #0A367B;
  --brand-secondary: #0D9488;
  --brand-accent: #F59E0B;
  --brand-cyan: #06B6D4;
  --brand-dark: #0F172A;
  --brand-surface: #1E293B;

  /* Irish National Waste Stream Standards */
  --stream-recycling: #0072CE;
  --stream-recycling-dark: #004D8C;
  --stream-recycling-light: #EBF5FF;
  
  --stream-general: #334155;
  --stream-general-dark: #1E293B;
  --stream-general-light: #F1F5F9;

  --stream-food: #854D0E;
  --stream-food-dark: #5C3410;
  --stream-food-light: #FEF3C7;

  /* Property Colors */
  --parkside-primary: #15803D;
  --parkside-accent: #84CC16;
  --parkside-bg: #F0FDF4;

  --hunterswood-primary: #0F766E;
  --hunterswood-accent: #14B8A6;
  --hunterswood-bg: #F0FDFA;

  /* UI Tokens */
  --bg-main: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --border-light: #E2E8F0;
  --border-focus: #3B82F6;

  /* Status Colors */
  --success: #10B981;
  --success-bg: #D1FAE5;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* App Header & Navigation */
.app-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}
.brand-badge img {
  height: 58px;
  width: auto;
  max-width: 320px;
  display: block;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(15, 82, 186, 0.3);
}

.brand-titles h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-titles p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--brand-primary);
  background-color: #EFF6FF;
}

.nav-btn-highlight {
  background: var(--brand-primary);
  color: white !important;
}

.nav-btn-highlight:hover {
  background: var(--brand-primary-dark) !important;
}

/* Studio Layout */
.studio-layout {
  max-width: 1360px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.studio-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  color: white;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.studio-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, rgba(15, 82, 186, 0.15) 50%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #38BDF8;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(4px);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #38BDF8;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Touchpoint Grid */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.touchpoint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.touchpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.touchpoint-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #CBD5E1;
}

.card-preview-thumb {
  height: 200px;
  background: #F1F5F9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.badge-parkside { background: var(--parkside-primary); }
.badge-hunterswood { background: var(--hunterswood-primary); }
.badge-universal { background: var(--brand-primary); }

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.meta-pill {
  padding: 0.25rem 0.6rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn {
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
}

.btn-outline {
  background: white;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-main);
  border-color: #94A3B8;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

/* Waste Streams Reference Box */
.streams-reference-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.stream-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stream-col {
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stream-col.recycling {
  background: var(--stream-recycling-light);
  border: 2px solid var(--stream-recycling);
}

.stream-col.general {
  background: var(--stream-general-light);
  border: 2px solid var(--stream-general);
}

.stream-col.food {
  background: var(--stream-food-light);
  border: 2px solid var(--stream-food);
}

.stream-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stream-col-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
}

.recycling .stream-col-icon { background: var(--stream-recycling); }
.general .stream-col-icon { background: var(--stream-general); }
.food .stream-col-icon { background: var(--stream-food); }

.stream-col-title {
  font-size: 1.2rem;
  font-weight: 800;
}

.stream-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recycling .stream-tagline { color: var(--stream-recycling-dark); }
.general .stream-tagline { color: var(--stream-general-dark); }
.food .stream-tagline { color: var(--stream-food-dark); }

.stream-item-list {
  list-style: none;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.stream-item-list li {
  padding: 0.35rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.stream-item-list li::before {
  content: '✓';
  font-weight: 800;
  color: #10B981;
}

.stream-no-list {
  list-style: none;
  font-size: 0.82rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
}

.stream-no-list li {
  padding: 0.25rem 0;
  color: #991B1B;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.stream-no-list li::before {
  content: '✕';
  font-weight: 800;
  color: #EF4444;
}

/* Agent Interactive Simulator Box */
.agent-simulator-container {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
  box-shadow: var(--shadow-xl);
  margin-bottom: 3.5rem;
}

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

/* Agent Phone Frame & Simulator */
.agent-phone-frame {
  max-width: 380px;
  margin: 0 auto;
  background: #000;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 4px solid #334155;
}
.phone-screen {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
}
.channel-switcher-bar {
  display: flex;
  background: #0F172A;
  border-bottom: 1px solid #1E293B;
  padding: 4px;
}
.channel-tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 2px;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.channel-tab-btn.active {
  background: #1E293B;
  color: #38BDF8;
}
.channel-tab-btn.tab-whatsapp.active {
  color: #25D366;
}
.phone-top-bar {
  background: #F1F5F9;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}
.phone-top-bar.wa-header {
  background: #075E54;
  color: white;
}
.phone-top-bar.sms-header {
  background: #F8FAFC;
  color: #0F172A;
}
.phone-body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.phone-body.wa-theme {
  background: #EFEAE2;
}
.chat-history {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px;
}
.chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
}
.chat-agent {
  background: #F1F5F9;
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-agent.wa-bubble {
  background: #FFFFFF;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
  color: #111B21;
}
.chat-user {
  background: var(--brand-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-user.wa-bubble {
  background: #D9FDD3;
  color: #111B21;
}
.chat-user.sms-bubble {
  background: #007AFF;
  color: white;
}
.app-grid-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
}
.app-bin-card {
  background: white;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.app-bin-card:hover {
  border-color: #0F52BA;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.bin-selector-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bin-pill-btn {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.bin-pill-btn:hover {
  border-color: var(--brand-primary);
  background: #EFF6FF;
}

.bin-pill-btn.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.chat-input-bar {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.chat-input:focus {
  border-color: var(--brand-primary);
}

/* Modal and Print Preview Window */
.preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 2rem;
  overflow-y: auto;
}

.preview-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-sheet {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 1.25rem 2rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  background: #E2E8F0;
  display: flex;
  justify-content: center;
}

/* Footer */
.app-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  padding: 3rem 1.5rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-credits {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PRINT SYSTEM STYLES (Clean, High-DPI Vector Print Layouts)
   ========================================================================== */

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  .no-print, .app-header, .app-footer, .btn, .nav-links {
    display: none !important;
  }

  .print-page {
    page-break-after: always;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  @page {
    margin: 10mm;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .hero-title { font-size: 2rem; }
  .agent-grid { grid-template-columns: 1fr; }
  .touchpoint-grid { grid-template-columns: 1fr; }
  .header-container { flex-direction: column; gap: 1rem; }
}
