/* ConsumerTrust Hub — homepage redesign */
:root {
  --bg-page: #f6f4ef;
  --bg-card: #ffffff;
  --ink: #1b1b2f;
  --ink-muted: #5d5d7a;
  --primary: #1e3a5f;
  --primary-soft: rgba(30, 58, 95, 0.08);
  --accent: #b8895c;
  --accent-soft: rgba(184, 137, 92, 0.12);
  --border: rgba(27, 27, 47, 0.07);
  --hero-deep: #0d1b2a;
  --shadow-sm: 0 2px 8px rgba(27, 27, 47, 0.04);
  --shadow: 0 8px 30px rgba(27, 27, 47, 0.06);
  --shadow-lg: 0 20px 60px rgba(27, 27, 47, 0.1);
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --space: clamp(1rem, 4vw, 2rem);
  --container: min(1120px, 100% - 2 * var(--space));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
}

/* ========= Header ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
  transition: background 0.2s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  background: var(--accent);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: var(--space);
    right: var(--space);
    top: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav a::after {
    display: none;
  }
}

/* ========= Hero ========= */
.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 8rem) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 25%, rgba(184, 137, 92, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 45% at 85% 75%, rgba(30, 58, 95, 0.25), transparent 50%),
    linear-gradient(160deg, #0d1b2a 0%, #132743 50%, #1a2d44 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1.25rem;
  letter-spacing: -0.01em;
}

.lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 2rem;
  line-height: 1.75;
}

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(184, 137, 92, 0.3);
}

.btn-primary:hover {
  background: #a67a4e;
  border-color: #a67a4e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 137, 92, 0.35);
}

/* ========= Sections ========= */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 1.5rem;
  max-width: 28ch;
  color: var(--ink);
}

.section p {
  color: var(--ink-muted);
}

.prose {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.section-story h2 {
  max-width: none;
}

/* ========= Services / Cards ========= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-num {
  position: relative;
  padding-top: 3rem;
}

.card-index {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-soft);
  line-height: 1;
  letter-spacing: -0.03em;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.65rem;
  color: var(--primary);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ========= Values ========= */
.section-values {
  background: var(--bg-card);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.value {
  padding: 0;
  border-top: none;
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.value p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.value::before {
  content: '';
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ========= Process ========= */
.section-process {
  background: linear-gradient(180deg, #ede9e2 0%, var(--bg-page) 100%);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 769px) {
  .process-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.process-list li {
  position: relative;
  padding-left: 0;
}

.process-step {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.process-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.process-list p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ========= Testimonials ========= */
.section-testimonials {
  background: var(--bg-card);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.quote {
  margin: 0;
  padding: 1.75rem;
  background: var(--bg-page);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}

.quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  position: absolute;
  top: 0.25rem;
  left: 1rem;
  opacity: 0.25;
  pointer-events: none;
}

.quote p {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
}

.quote footer {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  font-style: normal;
}

/* ========= Legal ========= */
.section-legal {
  padding-top: 0;
  border-top: 1px solid var(--border);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}

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

.legal-block {
  scroll-margin-top: 5rem;
}

.legal-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--primary);
}

.legal-block p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.legal-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-block a:hover {
  color: #a67a4e;
  text-decoration: underline;
}

/* ========= Footer ========= */
.site-footer {
  background: #132743;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand .logo:hover {
  color: var(--accent);
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 22ch;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.to-top {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.to-top:hover {
  color: #d4a574;
}
