*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --brand-navy: #0f172a;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --brand-blue-light: #60a5fa;
  --text-dark: #0f172a;
  --header-offset: 7.5rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

[id] {
  scroll-margin-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  background: #fff;
}

a {
  color: var(--brand-blue);
}

a:hover {
  color: var(--brand-blue-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.text-brand {
  color: var(--brand-blue);
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand-blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo img {
  height: 84px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--brand-blue);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #111827 100%);
  color: #fff;
  padding: 3.5rem 0 4rem;
}

.eyebrow {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin: 0 0 1.75rem;
}

.btn {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.35rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-muted {
  background: #f8fafc;
}

.section-dark {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}

.section-dark h2 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.88);
}

.section h2 {
  font-size: 1.65rem;
  margin: 0 0 1.25rem;
  color: var(--text-dark);
}

.section h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-dark);
}

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

.card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text-dark);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

/* DealWald product showcase — compact, site theme; logo keeps DealWald branding */
.section-dealwald {
  background: #f8fafc;
  padding: 2rem 0;
}

.section-dealwald > .wrap > h2 {
  margin-bottom: 1rem;
}

.dealwald-showcase {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  border-left: 3px solid var(--brand-blue);
}

.dealwald-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand-blue);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.dealwald-showcase__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dealwald-showcase__logo {
  flex-shrink: 0;
  display: block;
  width: min(100%, 240px);
  height: auto;
}

.dealwald-showcase__body {
  flex: 1;
  min-width: 0;
}

.dealwald-showcase__lead {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.dealwald-cta {
  font-size: 0.875rem;
  padding: 0.55rem 1rem;
}

@media (max-width: 640px) {
  .dealwald-showcase {
    padding: 1rem 1.1rem;
  }

  .dealwald-showcase__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .dealwald-showcase__logo {
    width: min(100%, 200px);
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  margin-bottom: 0.35rem;
}

.legal p,
.legal li {
  color: #64748b;
  max-width: 72ch;
}

.legal h3 {
  margin-top: 1.75rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.page-title {
  padding-top: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--brand-navy);
  color: #94a3b8;
  padding: 1.25rem 0;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--brand-blue-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.footer-links span {
  color: #64748b;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--brand-navy);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--brand-blue-light);
}

.cookie-banner .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  :root {
    --header-offset: 6.5rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .logo img {
    height: 72px;
  }
}
