/* Demerara Bank demo portal page styles (not needed when embedding the widget elsewhere).
   The chat widget styles live in widget.css, which widget.js loads by itself. */
:root {
  /* Brand: Demerara Bank green and gold */
  --brand-green: #09473a;
  --brand-green-dark: #04332a;
  --accent-gold: #d9a21b;
  --gold-gradient: linear-gradient(135deg, #f4c542 0%, #c98e12 100%);
  --green-gradient: linear-gradient(145deg, #0b5443 0%, #04332a 100%);
  --surface-glass: rgba(255, 255, 255, 0.95);
  --surface-glass-dark: rgba(4, 51, 42, 0.92);
  --border-light: rgba(217, 162, 27, 0.28);
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --success: #10b981;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-float: 0 20px 40px -10px rgba(4, 51, 42, 0.35), 0 0 1px 1px rgba(217, 162, 27, 0.3);
  --shadow-widget: 0 12px 30px rgba(4, 51, 42, 0.25);
}

/* Reset & Fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------------------------------------------
   Demerara Bank Portal Showcase Styles
   ---------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 5%;
  background: var(--brand-green);
  color: #fff;
  border-bottom: 2px solid var(--accent-gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 46px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(244, 197, 66, 0.35));
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  white-space: nowrap;
}

.nav-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.btn-portal-login {
  background: var(--gold-gradient);
  color: #04332a;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-portal-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 197, 66, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at top right, #0b5443, #04332a);
  color: white;
  padding: 5rem 5% 7rem;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-page), transparent);
}

.hero-tag {
  display: inline-block;
  background: rgba(217, 162, 27, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero h1 span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.stat-item p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

/* Portal Grid Showcase */
.container {
  max-width: 1200px;
  margin: -3rem auto 5rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bank-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.bank-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(4, 51, 42, 0.12);
  border-color: var(--accent-gold);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(4, 51, 42, 0.05);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 1.2rem;
}

.bank-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.bank-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.card-link {
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.2s;
}

.card-link:hover {
  color: #c98e12;
}


body {
  transition: padding-right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  body.dbl-panel-open {
    padding-right: 440px;
  }
}

/* The page is narrower while the panel is open: tighten the nav; the "Chat with DIA" button may
   slide under the panel (the panel has its own header) */
body.dbl-panel-open .nav-links {
  gap: 1.25rem;
}

/* Portal page on tablets and phones */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 32px;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 0.75rem 16px;
    gap: 0.75rem;
  }

  .brand-container {
    gap: 8px;
    min-width: 0;
  }

  .brand-emblem {
    width: 34px;
    height: 30px;
    flex-shrink: 0;
  }

  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.3px;
  }

  .brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }

  .btn-portal-login {
    flex-shrink: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .navbar {
    padding: 0.6rem 12px;
    gap: 0.5rem;
  }

  .brand-title {
    font-size: 0.85rem;
  }

  .brand-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
  }

  .brand-emblem {
    width: 28px;
    height: 25px;
  }

  .btn-portal-login {
    padding: 6px 10px;
    font-size: 0.72rem;
  }
}
