/* =====================================================================
   MD Goatco Farm — public.css
   Landing page, about, services, legal pages, contact page.
   ===================================================================== */

:root {
  --blue: #2b5ba8;
  --blue-deep: #1e3f7a;
  --blue-light: #4375c4;
  --blue-pale: #edf2fb;
  --blue-tint: #f4f7fd;
  --white: #ffffff;
  --off: #f8f9fc;
  --slate: #4a5568;
  --slate-light: #718096;
  --border: #d8e1f0;
  --ink: #1a2238;
  --green: #059669;
  --green-pale: #ecfdf5;
  --amber: #d97706;
  --amber-pale: #fffbeb;
  --red: #dc2626;
  --red-pale: #fef2f2;
  --font-body: "Poppins", sans-serif;
  --font-display: "Fraunces", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --maxw: 1200px;
}

/* ── RESET & BASE ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue-deep);
  line-height: 1.1;
}
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── FLASH MESSAGES ──────────────────────────────────────────────── */
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 0.94rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.flash-success {
  background: var(--green-pale);
  border-color: #a7f3d0;
  color: #065f46;
}
.flash-error {
  background: var(--red-pale);
  border-color: #fecaca;
  color: var(--red);
}
.flash-warning {
  background: var(--amber-pale);
  border-color: #fde68a;
  color: #92400e;
}
.flash-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: inherit;
  opacity: 0.6;
  margin-left: 16px;
}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 14px -6px rgba(43, 91, 168, 0.45);
}
.btn-primary:hover {
  background: var(--blue-deep);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue-pale);
}
.btn-white {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-pale);
}
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}
.btn-sm {
  padding: 9px 20px;
  font-size: 0.84rem;
}

/* ── EYEBROW ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--blue-light);
  display: inline-block;
}

/* ── HEADER ──────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}
.logo-text strong {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-deep);
}
.logo-text small {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a {
  color: var(--slate);
  padding: 4px 0;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--blue-deep);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 12px -4px rgba(30, 63, 122, 0.5);
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-toggle:hover {
  background: var(--blue);
}
.nav-toggle:active {
  transform: scale(0.94);
}
.nav-toggle span {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  margin: 0;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}
.nav-toggle span:nth-child(2) {
  width: 14px;
  align-self: flex-end;
  margin-right: 12px;
}
.nav-toggle.open span:nth-child(2) {
  width: 20px;
  margin-right: 0;
  align-self: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile-menu {
  display: none;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 10px 0 28px;
  order: 3;
}
.nav-mobile-menu.open {
  display: block;
}
.nav-mobile-menu > a {
  display: block;
  padding: 12px 0;
  color: var(--slate);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
}
.nav-mobile-menu > a:last-of-type {
  border-bottom: none;
}
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 90px 0 0;
  overflow: hidden;
  position: relative;
}
/* Full-bleed farm photo behind the gradient — a blue-tinted overlay keeps
   the white hero text readable while still showing the photo through. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 63, 122, 0.92) 0%, rgba(43, 91, 168, 0.86) 65%, rgba(30, 63, 122, 0.94) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1),
    transparent 70%
  );
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}
.hero-copy {
  padding-bottom: 80px;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.4);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: #a8c4f0;
}
.hero .lead {
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 26px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.hero-stat span {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-img {
  align-self: flex-end;
  position: relative;
}
.hero-img img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
  height: 400px;
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, 0.4);
}
.hero-badge {
  position: absolute;
  top: 20px;
  left: -18px;
  background: var(--white);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px -12px rgba(30, 63, 122, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate);
}
.hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue);
}

/* ── TAGLINE STRIP — infinite CSS marquee ───────────────────────────
   Two identical .tagline-set groups sit side by side in a flex track;
   animating the track from translateX(0) to translateX(-50%) — exactly
   the width of one set — loops seamlessly with no JS and no visible
   "reset" jump. Edge masks (::before/::after gradients) fade items in
   and out at the strip's boundaries instead of a hard clip. */
.tagline-strip {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  padding: 20px 0;
  overflow: hidden;
  position: relative;
}
.tagline-strip::before,
.tagline-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.tagline-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--blue-deep) 0%, transparent 100%);
}
.tagline-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--blue) 0%, transparent 100%);
}
.tagline-track {
  display: flex;
  width: max-content;
  animation: tagline-scroll 32s linear infinite;
}
.tagline-strip:hover .tagline-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .tagline-track {
    animation: none;
  }
}
.tagline-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
@keyframes tagline-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.tagline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 34px;
  position: relative;
}
.tagline-item + .tagline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}
.tagline-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  flex-shrink: 0;
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
section {
  padding: 80px 0;
}
.section-alt {
  background: var(--off);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  max-width: 640px;
  margin-bottom: 50px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}
.section-head p {
  color: var(--slate);
  font-size: 1rem;
}

/* ── VIDEOS ──────────────────────────────────────────────────────── */
.video-section-head {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: 10px;
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-youtube:hover {
  background: var(--blue-pale);
  text-decoration: none;
  transform: translateY(-1px);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* "Never miss an upload" — the subscribe nudge below the grid. Always
   shown once a channel URL is set (not gated by video count), pairing a
   clear "view more" escape hatch with a warmer subscribe ask than a bare
   button. */
.video-subscribe-banner {
  margin-top: 32px;
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.video-subscribe-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.video-subscribe-copy {
  flex: 1;
  min-width: 220px;
}
.video-subscribe-copy strong {
  display: block;
  font-size: 1rem;
  color: var(--blue-deep);
  margin-bottom: 4px;
}
.video-subscribe-copy span {
  display: block;
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.5;
}
.video-subscribe-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.video-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  font-size: 0.86rem;
}
@media (max-width: 640px) {
  .video-subscribe-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .video-subscribe-actions {
    width: 100%;
    justify-content: space-between;
  }
}
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.video-thumb-wrap:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.video-thumb-wrap:hover .video-play-btn {
  background: #dc2626;
  transform: scale(1.08);
}
.video-thumb-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card-body {
  padding: 16px 18px;
}
.video-card-body h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.video-card-body p {
  font-size: 0.82rem;
  color: var(--slate-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ── TIKTOK ──────────────────────────────────────────────────────── */
.btn-tiktok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 21px;
  border-radius: 10px;
  background: #111;
  border: 1.5px solid #111;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-tiktok:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #fe2c55;
}
.tiktok-grid {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  margin: 0 -2px;
}
.tiktok-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.tiktok-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
}
.tiktok-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tiktok-play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 18px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  text-align: center;
  background: linear-gradient(160deg, #111 0%, #1e3f7a 100%);
}
.tiktok-play-logo { font-size: 2.4rem; text-shadow: -2px 0 #25f4ee, 2px 0 #fe2c55; }
.tiktok-play-title { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.tiktok-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fe2c55;
  font-weight: 700;
  font-size: 0.85rem;
}
.tiktok-play:hover .tiktok-play-btn { filter: brightness(1.1); }
.tiktok-more {
  margin-top: 20px;
  text-align: center;
}
@media (max-width: 640px) {
  .tiktok-card {
    flex-basis: 72vw;
    max-width: 280px;
  }
}

/* ── ABOUT SECTION ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3.1;
}
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy p {
  color: var(--slate);
  margin-bottom: 16px;
  font-size: 0.96rem;
}
.about-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--blue-deep);
  font-size: 0.92rem;
}
.about-list li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  background: var(--blue-pale);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── SERVICES ────────────────────────────────────────────────────── */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
}
.photo-strip img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-light);
  box-shadow: 0 14px 36px -18px rgba(43, 91, 168, 0.22);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue);
}
.service-icon svg {
  width: 24px;
  height: 24px;
}
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--blue-deep);
}
.service-card p {
  color: var(--slate);
  font-size: 0.88rem;
}
.service-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ── GOAT BANKING SPOTLIGHT ──────────────────────────────────────── */
.banking-wrap {
  background: var(--blue-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.banking-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
}
.banking-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}
.banking-head p {
  color: var(--slate);
  font-size: 0.96rem;
  margin-bottom: 24px;
}
.banking-img {
  border-radius: 14px;
  overflow: hidden;
}
.banking-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.role-card:hover {
  box-shadow: 0 10px 30px -14px rgba(43, 91, 168, 0.2);
}
.role-photo {
  height: 140px;
  background-size: cover;
  background-position: center;
}
.role-body {
  padding: 20px;
}
.role-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
  font-weight: 600;
}
.role-card h4 {
  color: var(--blue-deep);
  font-size: 1rem;
  margin-bottom: 10px;
}
.role-card ul {
  display: grid;
  gap: 8px;
}
.role-card li {
  font-size: 0.85rem;
  color: var(--slate);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.role-card li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-light);
  margin-top: 7px;
  flex-shrink: 0;
}

/* ── WHY CHOOSE US ───────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.why-item {
  background: var(--white);
  padding: 30px;
  display: flex;
  gap: 16px;
}
.why-num {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue-light);
  font-size: 0.82rem;
  flex-shrink: 0;
  padding-top: 3px;
}
.why-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--blue-deep);
}
.why-item p {
  color: var(--slate);
  font-size: 0.88rem;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.test-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
}
.test-stars {
  color: var(--blue);
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.test-card p {
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 18px;
  font-style: italic;
}
.test-who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 2px solid var(--blue-pale);
  background-color: var(--blue-pale);
}
.test-who strong {
  display: block;
  font-size: 0.88rem;
  color: var(--blue-deep);
}
.test-who span {
  font-size: 0.76rem;
  color: var(--slate-light);
}
.test-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  font-weight: 800;
  font-size: 0.98rem;
}

/* Carousel — same .test-card design, used once there are >3 active
   testimonials (see app/Views/public/home.php). Slides scroll horizontally
   with snap points; prev/next buttons + dots are progressively enhanced by
   public.js (works as a plain scrollable strip without JS too). */
.test-carousel {
  position: relative;
}
.test-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.test-track::-webkit-scrollbar {
  display: none;
}
.test-slide {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  min-width: 280px;
}
.test-slide .test-card {
  height: 100%;
}
.test-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--blue-deep);
  box-shadow: 0 6px 20px -8px rgba(26, 34, 56, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
}
.test-nav:hover {
  background: var(--blue);
  color: #fff;
}
.test-nav-prev {
  left: -21px;
}
.test-nav-next {
  right: -21px;
}
.test-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.test-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.test-dots button.active {
  background: var(--blue);
  transform: scale(1.3);
}
@media (max-width: 900px) {
  .test-slide {
    flex-basis: calc((100% - 22px) / 2);
  }
}
@media (max-width: 640px) {
  .test-slide {
    flex-basis: 88%;
  }
  .test-nav {
    display: none;
  }
}

/* ── CTA ─────────────────────────────────────────────────────────── */
.cta-wrap {
  padding: 80px 0;
}
.cta {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(30, 63, 122, 0.92), rgba(43, 91, 168, 0.88)),
    url("https://images.pexels.com/photos/326929/pexels-photo-326929.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center/cover no-repeat;
  border-radius: 22px;
  padding: 70px 40px;
  color: var(--white);
}
.cta h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  max-width: 560px;
  margin: 0 auto 14px;
}
.cta p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 0.96rem;
}
.cta .eyebrow {
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
}
.cta .eyebrow::before {
  background: rgba(255, 255, 255, 0.4);
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── CONTACT SECTION ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 18px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}
a.contact-value {
  color: var(--blue);
}
a.contact-value:hover {
  text-decoration: underline;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.contact-form-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 91, 168, 0.1);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-errors {
  background: var(--red-pale);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.form-errors p {
  color: var(--red);
  font-size: 0.84rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.foot-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.foot-logo strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}
.foot-tagline {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 270px;
  line-height: 1.7;
}
.foot-grid h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.foot-grid ul {
  display: grid;
  gap: 10px;
}
.foot-grid a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.foot-grid a:hover {
  color: var(--white);
}
.foot-grid li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ── LEGAL / DOC PAGES ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: var(--white);
  padding: 60px 0;
}
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}
.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
}
.page-hero .breadcrumb a:hover {
  color: var(--white);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--white);
  margin-bottom: 12px;
}
.page-hero p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
  max-width: 600px;
}
.page-meta {
  margin-top: 18px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.48);
}
.doc-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 52px;
  padding: 56px 0 80px;
  align-items: start;
}
.doc-layout > * {
  /* Grid items don't shrink below their content's natural width by default
     (even with a 1fr track), which caused page-level horizontal overflow
     on narrow screens once the layout collapses to a single column below. */
  min-width: 0;
}
.doc-toc {
  position: sticky;
  top: 80px;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.doc-toc h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 12px;
}
.doc-toc ul {
  display: grid;
  gap: 3px;
}
.doc-toc a {
  display: block;
  font-size: 0.82rem;
  color: var(--slate);
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.14s ease;
  font-weight: 500;
}
.doc-toc a:hover,
.doc-toc a.active {
  color: var(--blue);
  background: var(--blue-pale);
}
.doc-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--blue-deep);
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.doc-body h2:first-child {
  margin-top: 0;
  border-top: none;
}
.doc-body h3 {
  font-size: 1.04rem;
  color: var(--blue-deep);
  margin: 22px 0 10px;
  font-weight: 700;
}
.doc-body p {
  color: var(--slate);
  font-size: 0.93rem;
  margin-bottom: 14px;
}
.doc-body ul {
  margin-bottom: 14px;
  display: grid;
  gap: 8px;
}
.doc-body ul li {
  color: var(--slate);
  font-size: 0.93rem;
  padding-left: 18px;
  position: relative;
}
.doc-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}
.doc-body strong {
  color: var(--ink);
  font-weight: 600;
}
.doc-body a {
  color: var(--blue);
}
.highlight-box {
  background: var(--blue-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.highlight-box p {
  color: var(--ink);
  font-size: 0.9rem;
  margin: 0;
}
.warn-box {
  background: var(--amber-pale);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 18px 0;
}
.warn-box p {
  color: #92400e;
  font-size: 0.9rem;
  margin: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.87rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.data-table th {
  background: var(--blue-deep);
  color: var(--white);
  padding: 11px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  vertical-align: top;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:nth-child(even) td {
  background: var(--off);
}
/* Auto-wrapped by public.js so wide tables scroll horizontally on mobile
   instead of squishing illegibly. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 700px) {
  .table-scroll table {
    min-width: 520px;
    /* .data-table's overflow:hidden (for rounded corners) makes the table
       its own scroll container, which breaks position:sticky below — the
       cell would stick relative to the table instead of .table-scroll. */
    overflow: visible;
  }
  /* Freeze the first column so the row's identity stays visible while the
     rest of the row scrolls underneath it. */
  .table-scroll td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 2px 0 6px rgba(26, 34, 56, 0.08);
  }
  .table-scroll tr:nth-child(even) td:first-child {
    background: var(--off);
  }
  .table-scroll th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--blue-deep);
  }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-img {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .banking-head {
    grid-template-columns: 1fr;
  }
  .banking-img {
    display: none;
  }
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .test-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
  }
}
@media (max-width: 720px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }
  .nav {
    flex-wrap: nowrap;
    padding: 8px 18px;
  }
  .logo {
    min-width: 0;
    gap: 8px;
  }
  .logo img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .logo-text {
    min-width: 0;
  }
  .logo-text strong {
    font-size: 0.88rem;
    line-height: 1.2;
  }
  .logo-text small {
    letter-spacing: 0.1em;
    font-size: 0.5rem;
    white-space: nowrap;
  }
  .nav-toggle {
    margin-left: auto;
  }
  .nav-toggle span {
    flex-shrink: 0;
  }
  .wrap {
    padding: 0 18px;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 56px 0 0;
  }
  .hero-copy {
    padding-bottom: 52px;
  }
  .photo-strip {
    grid-template-columns: 1fr 1fr;
  }
  .photo-strip img:nth-child(3) {
    display: none;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .cta {
    padding: 48px 22px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* WhatsApp chat button (contact section) */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 16px;
  border-radius: 9px;
  background: #25d366;
  color: #0b3d1f;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1fbd5a;
  text-decoration: none;
}

