/* ============================================
   REALM HOMEBUYERS — Design System & Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #1A2B50;
  --color-primary-dark: #111D38;
  --color-primary-light: #263D6A;
  --color-accent: #C88C1A;
  --color-accent-dark: #A87514;
  --color-accent-light: #E0A83A;
  --color-bg: #FFFFFF;
  --color-bg-warm: #FAFAFA;
  --color-bg-cream: #F5F2ED;
  --color-bg-dark: #111D38;
  --color-text: #3D4551;
  --color-text-light: #6B7685;
  --color-text-dark: #1A202C;
  --color-heading: #1A2B50;
  --color-success: #2F855A;
  --color-border: #E2E0DB;
  --color-border-light: #F0EDE8;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-small { font-size: 0.9rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-sm {
  padding: 50px 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}
.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-top: 16px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Gold Top Bar (matches marketing) --- */
.gold-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gold-bar span {
  margin: 0 8px;
  opacity: 0.5;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 34px; /* below gold bar */
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}
.nav-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
}
.nav-logo span {
  color: var(--color-accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--color-accent-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.35);
}
.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 150, 62, 0.35);
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
}
.btn-white:hover {
  background: #f0f0f0;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  padding-top: 160px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  color: #fff;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent-light);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}
.hero-content h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--color-accent-light);
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.hero-founder {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-founder img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  object-fit: cover;
}
.hero-founder strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.3;
}
.hero-founder span {
  display: block;
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 500;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* Hero Form */
.hero-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-xl);
}
.hero-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--color-heading);
}
.hero-form-card .form-subtitle {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 24px;
}
.hero-form-card .btn {
  width: 100%;
  margin-top: 8px;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border-light);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
  text-align: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.trust-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-accent-light);
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.trust-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-cream);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}
.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary), var(--color-accent));
  opacity: 0.3;
}
.process-step {
  text-align: center;
  position: relative;
}
.step-number {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.3);
}
.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 700;
}
.process-step p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* --- Situations Section --- */
.situations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.situation-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
}
.situation-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
  background: var(--color-bg-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.situation-tag svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

/* --- Comparison Table --- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.compare-table thead th {
  background: var(--color-primary);
  color: #fff;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
}
.compare-table thead th:first-child {
  background: var(--color-primary-dark);
}
.compare-table thead th:last-child {
  background: var(--color-accent-dark);
  color: #fff;
}
.compare-table tbody td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.95rem;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-text-dark);
  background: var(--color-bg-warm);
}
.compare-table tbody td:last-child {
  background: rgba(200, 150, 62, 0.05);
  color: var(--color-primary);
  font-weight: 500;
}
.compare-table .check {
  color: var(--color-success);
  font-weight: 700;
}
.compare-table .cross {
  color: #c53030;
  font-weight: 700;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover {
  border-color: var(--color-border);
}
.faq-item.active {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.faq-question:hover {
  color: var(--color-primary);
}
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-warm);
  border-radius: 50%;
  transition: all var(--transition);
}
.faq-item.active .faq-icon {
  background: var(--color-accent);
  color: #fff;
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-warm);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--color-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 150, 62, 0.15);
}
.form-control::placeholder {
  color: #A0A8B4;
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-top: 12px;
  line-height: 1.5;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container {
  position: relative;
  z-index: 1;
}
.cta-section h2 {
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 32px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-phone {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-light);
  margin-top: 24px;
  display: inline-block;
}
.cta-phone:hover {
  color: #fff;
}

/* --- Hero Keywords Strip --- */
.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 16px 0 24px;
}
.hero-keywords span {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-right: 2px solid rgba(255,255,255,0.3);
}
.hero-keywords span:last-child {
  border-right: none;
}

/* --- What We Buy Section --- */
.what-we-buy-section {
  background: var(--color-primary);
  color: #fff;
}
.what-we-buy-section .section-label {
  color: var(--color-accent);
}
.what-we-buy-section h2 {
  color: #fff;
}
.what-we-buy-section h2 em {
  color: var(--color-accent);
  font-style: normal;
}
.what-we-buy-section p {
  color: rgba(255,255,255,0.8);
}
.what-we-buy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.buy-category h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
.buy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.buy-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.buy-tag:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-accent);
}
.buy-tag svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.as-is-strip {
  margin-top: 40px;
  background: var(--color-accent);
  color: var(--color-primary-dark);
  text-align: center;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
}
.as-is-strip p {
  color: var(--color-primary-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-keywords {
    margin: 12px 0 20px;
  }
  .hero-keywords span {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
  .what-we-buy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Footer --- */
.footer {
  background: #243B66;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand img {
  height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.footer-brand span {
  color: var(--color-accent);
}
.footer p {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: all var(--transition);
}
.footer-links a:hover {
  color: var(--color-accent-light);
  padding-left: 6px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.footer-contact-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--color-accent);
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item a:hover {
  color: var(--color-accent-light);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}
.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal {
  display: flex;
  gap: 24px;
}

/* --- Page Headers (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 160px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  color: #fff;
  margin-bottom: 16px;
}
.page-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-story-content .section-label {
  margin-bottom: 12px;
}
.about-story-content h2 {
  margin-bottom: 20px;
}
.about-story-content p {
  font-size: 1.02rem;
  line-height: 1.8;
}
.about-founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.about-founder-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 5px solid var(--color-accent);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}
.about-founder-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.about-founder-card .about-founder-title {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 24px;
}
.about-founder-logo {
  height: 240px;
  width: auto;
  margin-bottom: 24px;
}
.about-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-bg-cream), var(--color-bg-warm));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-border);
  color: var(--color-text-light);
  font-size: 0.95rem;
  text-align: center;
  padding: 20px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.value-card {
  text-align: center;
  padding: 40px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.value-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: var(--color-accent-light);
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.value-card h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --- Opt-Out Page --- */
.opt-out-section {
  max-width: 640px;
  margin: 0 auto;
}
.opt-out-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.opt-out-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
}
.opt-out-card > p {
  color: var(--color-text-light);
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.opt-out-notice {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-warm);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-accent);
  margin-top: 24px;
}
.opt-out-notice p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info-card {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: #fff;
}
.contact-info-card h3 {
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.contact-info-card > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 0.95rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-detail-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent-light);
}
.contact-detail h4 {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0;
}
.contact-form-card {
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* --- Success Message (forms) --- */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show {
  display: block;
}
.form-success svg {
  width: 64px;
  height: 64px;
  color: var(--color-success);
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--color-text-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-form-card { max-width: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .about-story { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; padding: 140px 0 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }

  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .features-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .process-steps::before { display: none; }

  .values-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .compare-table { font-size: 0.88rem; }
  .compare-table thead th, .compare-table tbody td { padding: 14px 16px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { justify-content: center; }

  .cta-phone { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-form-card { padding: 28px 20px; }
  .opt-out-card { padding: 28px 20px; }
  .contact-info-card { padding: 28px 20px; }
  .contact-form-card { padding: 28px 20px; }
  .hero-stats { gap: 16px; }
  .hero-stat-number { font-size: 1.5rem; }
  .trust-bar-inner { grid-template-columns: 1fr 1fr; }
}
