/* ==========================================================================
   Andersen Demo Hub — preview stylesheet
   Colors / patterns based on Andersen brand assets provided by the client.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

:root {
  --navy: #0A1220;
  --navy-2: #0D1B2E;
  --yellow: #FFC400;
  --yellow-dark: #E5AC00;
  --text-light: #EAECEF;
  --text-muted: #A9B2C3;
  --card-bg: #FFFFFF;
  --page-bg: #F1F2F4;
  --tag-bg: #EEF0F3;
  --tag-text: #2B3446;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--page-bg);
  color: #1A2233;
}

/* ---------- Dark navy sections (header / hero / footer) use the uploaded
   contour-pattern background image, repeated / cropped as a texture. ---------- */
.bg-navy-pattern {
  background-color: var(--navy);
  background-image: url('../images/andersen-bg-dark.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-light-pattern {
  background-color: var(--page-bg);
  background-image: url('../images/andersen-bg-light.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.logo-img {
  height: 34px;
  display: block;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 32px;
  opacity: 0.85;
  transition: opacity .15s;
}
.main-nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 40px 96px;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 780px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.search-wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 12px 8px;
  color: #1A2233;
  background: transparent;
}

.search-btn {
  background: var(--yellow);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Filters ---------- */
.filters-section {
  padding: 40px 40px 8px;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7688;
  margin-bottom: 10px;
  display: block;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #D7DBE2;
  background: #fff;
  color: #2B3446;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--yellow-dark); }
.chip.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

.results-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6B7688;
}

.clear-link {
  color: var(--navy);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- Cards grid ---------- */
.cards-section {
  padding: 8px 40px 80px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.demo-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(20,30,50,0.08);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20,30,50,0.14);
}

.card-thumb-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: var(--navy);
}
.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(20,30,50,0.85);
  color: #4ADE80;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 6px #4ADE80;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  margin-bottom: 6px;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: #101A2C;
  margin: 0 0 4px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 13px;
  color: #6B7688;
  margin-bottom: 14px;
  font-weight: 500;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.tag.tag-industry { background: #E9F0FF; color: #1D4ED8; }
.tag.tag-solution { background: #FFF3D6; color: #92650A; }

.card-desc {
  font-size: 14px;
  color: #4B5567;
  line-height: 1.6;
  margin-bottom: 8px;
  flex: 1;
}

.read-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  cursor: pointer;
  align-self: flex-start;
  margin-bottom: 18px;
}

.open-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
}
.open-demo-btn:hover { background: var(--yellow-dark); }

.empty-state {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #6B7688;
  max-width: 1280px;
  margin: 0 auto;
}
.empty-state.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-logo { height: 26px; opacity: 0.9; }
.site-footer .footer-text { color: var(--text-muted); font-size: 13px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Modal (Learn more) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,18,32,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 620px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--tag-bg);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #2B3446;
}

.modal-box h2 { margin: 0 0 4px; font-size: 22px; color: #101A2C; }
.modal-box .modal-subtitle { font-size: 14px; color: #6B7688; margin-bottom: 16px; }
.modal-box p { font-size: 14.5px; line-height: 1.7; color: #3C4658; margin-bottom: 14px; white-space: pre-line; }
.modal-box .open-demo-btn { display: inline-flex; margin-top: 8px; }
