/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #ed1f24;
  --red-dark: #c41920;
  --black: #111111;
  --charcoal: #2d2d2d;
  --grey-dark: #4a4a4a;
  --grey: #7a7a7a;
  --grey-light: #f4f4f4;
  --white: #ffffff;
  --border: #e8e8e8;
  --font: 'Inter', sans-serif;
  --font-display: 'IBM Plex Serif', serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.2s ease;

  /* ── Z-INDEX SCALE ── */
  --z-base:     10;
  --z-dropdown: 20;
  --z-sticky:   30;
  --z-overlay:  50;
  --z-modal:    60;
  --z-header:   100;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--black); }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-family: var(--font-display); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-family: var(--font-display); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
p { color: var(--grey-dark); }

.label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 12px;
  display: block;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-header h2 { margin-bottom: 16px; }

.section-sub {
  font-size: 1.05rem;
  color: var(--grey);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-white:hover { border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}
.btn-white:hover { background: var(--grey-light); transform: translateY(-1px); }

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
  padding: 10px 22px;
  font-size: 0.875rem;
}
.btn-outline-dark:hover { background: var(--black); color: var(--white); }

/* Focus states — keyboard accessibility */
.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.main-nav a:focus-visible,
.footer-col a:focus-visible,
.footer-links a:focus-visible,
.service-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 0;
}

/* cursor-pointer on all interactive elements */
.service-links a,
.footer-col a,
.footer-links a,
.faq-question,
.has-dropdown > a { cursor: pointer; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo--white .logo-img {
  filter: brightness(0) invert(1);
}

/* Legacy text logo spans (kept for safety) */
.logo-trebla { display: none; }
.logo-sub { display: none; }
.logo-dot { display: none; }

/* Nav */
.main-nav { flex: 1; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.nav-active {
  color: var(--red);
  background: rgba(200,16,46,0.06);
}

.chevron {
  font-style: normal;
  font-size: 0.8em;
  margin-left: 2px;
  display: inline-block;
  transition: transform var(--transition);
}

.has-dropdown:hover .chevron { transform: rotate(90deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  padding: 10px 14px;
  font-size: 0.875rem;
  border-radius: 6px;
  color: var(--charcoal);
}

.dropdown li a:hover { background: var(--grey-light); color: var(--red); }

.dropdown-label {
  padding: 10px 14px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  cursor: default;
  pointer-events: none;
  margin-top: 4px;
}
.dropdown-label a {
  color: var(--grey);
  text-decoration: none;
  pointer-events: all;
  cursor: pointer;
  transition: color 0.15s;
}
.dropdown-label a:hover {
  color: var(--red);
}

.header-cta { margin-left: auto; flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(17,17,17,0.78) 0%,
    rgba(17,17,17,0.55) 50%,
    rgba(17,17,17,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 72px;
  max-width: 660px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--red);
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ── TRUST BAR ── */
.trust-bar {
  background: var(--black);
  color: var(--white);
  padding: 32px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-item strong {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.trust-item span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* ── SERVICES ── */
.services { background: var(--grey-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card--featured {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.service-card--featured h3,
.service-card--featured p,
.service-card--featured .service-icon { color: var(--white); }

.service-card--featured .service-links a { color: rgba(255,255,255,0.85); }
.service-card--featured .service-links a:hover { color: var(--white); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 24px;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { margin-bottom: 24px; font-size: 0.95rem; }

.service-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--red);
  transition: color var(--transition);
}

.service-links a:hover { color: var(--red-dark); }

/* ── ABOUT ── */
.about { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-stat {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--red);
  color: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-stat strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.about-stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
  display: block;
}

.about-text h2 { margin-bottom: 20px; }
.about-text > p { margin-bottom: 16px; font-size: 1.05rem; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  border-left: 3px solid var(--red);
  padding-left: 20px;
}

.pillar h4 { color: var(--red); margin-bottom: 6px; }
.pillar p { font-size: 0.9rem; }

/* ── TEAM ── */
.team { background: var(--grey-light); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.team-photo {
  aspect-ratio: 4/5;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo img { transform: scale(1.04); }

.team-info {
  padding: 24px 20px;
}

.team-info h3 { font-size: 1rem; margin-bottom: 4px; }

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 12px;
}

.team-info > p {
  font-size: 0.875rem;
  color: var(--grey);
  margin-bottom: 16px;
  line-height: 1.55;
}

.team-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red);
  transition: color var(--transition);
}

.team-link:hover { color: var(--red-dark); }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  border: 1px solid var(--border);
}

.testimonial-card--featured {
  background: var(--black);
  border-color: var(--black);
}

.testimonial-card.testimonial-card--featured p,
.testimonial-card.testimonial-card--featured .testimonial-author strong,
.testimonial-card.testimonial-card--featured .quote-mark { color: var(--white); }

.testimonial-card.testimonial-card--featured .testimonial-author span { color: rgba(255,255,255,0.65); }

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--red);
  margin-bottom: 20px;
  display: block;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--charcoal);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--black);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--red);
  padding: 52px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  color: var(--white);
  max-width: 560px;
  margin-bottom: 12px;
}

.cta-text p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 44px;
  align-items: start;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand > p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  max-width: 200px;
}

/* Consistent column label — sits above all content columns */
.footer-col-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
  margin-bottom: 14px;
}

/* Person name h4 inside a col — normal case, readable */
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 3px;
  letter-spacing: 0;
  text-transform: none;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 3px;
  transition: color var(--transition);
  text-decoration: none;
  border: none;
  outline: none;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--white); }

.footer-links a { margin-bottom: 6px; }

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: var(--red); }

.footer-social svg { width: 15px; height: 15px; }

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
}

.footer-legal .container p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-copy { color: rgba(255,255,255,0.25) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }

  .footer-inner .footer-brand { grid-column: 1 / -1; }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stat {
    right: 0;
    bottom: -16px;
  }

  .about-image img { height: 380px; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }

  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { gap: 16px; }

  /* Mobile nav overlay */
  .main-nav {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
    z-index: var(--z-overlay);
  }

  .main-nav.mobile-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav > ul > li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    padding: 14px 4px;
    font-size: 1rem;
    border-radius: 0;
  }

  /* Mobile dropdown */
  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--grey-light);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    padding: 0 0 8px 16px;
    display: none;
  }

  .has-dropdown.mobile-expanded .dropdown {
    display: block;
  }

  .has-dropdown .chevron {
    float: right;
    font-size: 1.1em;
    transition: transform var(--transition);
  }

  .has-dropdown.mobile-expanded .chevron {
    transform: rotate(90deg);
  }

  /* Hamburger → X animation */
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-content { max-width: 100%; }

  .trust-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .trust-divider { display: none; }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { text-align: center; justify-content: center; }
}

/* ── INNER PAGE HERO ── */
.inner-hero {
  background: var(--black);
  padding: 120px 0 52px;
  position: relative;
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,16,46,0.18) 0%, transparent 60%);
}

.inner-hero .container { position: relative; z-index: 1; }
.inner-hero .label { color: var(--red); }
.inner-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.inner-hero p { color: rgba(255,255,255,0.65); font-size: 1.05rem; max-width: 600px; }

/* ── DETAIL CARDS ── */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.detail-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.detail-card h3 {
  color: var(--red);
  font-size: 1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-card h3::before {
  content: '';
  display: block;
  width: 4px;
  height: 18px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-card p { font-size: 0.9rem; line-height: 1.65; }

/* ── SPLIT SECTION ── */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-section.reverse .split-image { order: 2; }
.split-section.reverse .split-text { order: 1; }

.split-image img { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); }

.split-text .label { margin-bottom: 10px; }
.split-text h2 { margin-bottom: 20px; }
.split-text p { margin-bottom: 16px; font-size: 1rem; }

/* ── SECTION DIVIDER ── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── TWO-COL INTRO ── */
.intro-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.intro-two-col p { font-size: 1rem; }

/* ── TEAM BIO PAGE ── */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.bio-card--flat {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.bio-card--flat .bio-card-body {
  border-top: 1px solid var(--border);
}

.bio-card-top {
  display: flex;
  align-items: stretch;
}

.bio-card-photo { width: 180px; min-height: 160px; flex-shrink: 0; overflow: hidden; }
.bio-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Circular partner photos — container handles the clip, not the img */
.bio-card-photo--circle {
  width: 120px;
  height: 120px;
  min-height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin: 28px 0 28px 28px;
  box-shadow: 0 0 0 3px var(--border);
}
.bio-card-photo--circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
}

.bio-card-header {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--grey-light);
  flex: 1;
  gap: 4px;
}

.bio-card-header h3 { font-size: 1.05rem; margin-bottom: 4px; }
.bio-card-header .team-role { margin-bottom: 12px; }

.bio-card-body { padding: 24px; border-top: 1px solid var(--border); }
.bio-card-body p { font-size: 0.875rem; line-height: 1.75; margin-bottom: 12px; }
.bio-card-body p:last-child { margin-bottom: 0; }

.bio-contact { display: flex; flex-direction: column; gap: 4px; }
.bio-contact a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  transition: color var(--transition);
}
.bio-contact a:hover { color: var(--red-dark); }
.bio-contact a.btn-red,
.bio-contact a.btn-red:hover { color: var(--white); }

/* ── FAQ ── */
.faq-category { margin-bottom: 40px; }
.faq-category h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--red); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--red); display: inline-block; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
  gap: 16px;
  user-select: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
  line-height: 1;
  transition: all var(--transition);
  color: var(--charcoal);
}

.faq-item.open .faq-icon { background: var(--red); color: var(--white); transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--grey-dark);
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer { display: block; }

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }

.contact-info h3 { margin-bottom: 8px; }
.contact-info > p { margin-bottom: 32px; font-size: 0.95rem; }

.contact-adviser {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-adviser-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-adviser-photo img { width: 100%; height: 100%; object-fit: cover; }

.contact-adviser-details h4 { font-size: 0.9rem; margin-bottom: 2px; }
.contact-adviser-details p { font-size: 0.8rem; color: var(--red); font-weight: 600; margin: 0; }
.contact-adviser-details a { font-size: 0.8rem; color: var(--grey); display: block; transition: color var(--transition); }
.contact-adviser-details a:hover { color: var(--red); }
.contact-adviser-details a.btn-red,
.contact-adviser-details a.btn-red:hover { color: var(--white); }

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-box h3 { margin-bottom: 28px; font-size: 1.2rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── CALCULATORS ── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.calc-inputs {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.calc-inputs h3 { margin-bottom: 28px; }

.input-prefix-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input-prefix-wrap:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.08);
}

.input-prefix-wrap input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--white);
  min-width: 0;
}

.input-prefix,
.input-suffix {
  padding: 12px 14px;
  background: var(--grey-light);
  color: var(--grey);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  flex-shrink: 0;
}

.field-hint {
  font-size: 0.8rem !important;
  color: var(--grey) !important;
  margin-top: 6px;
  line-height: 1.5;
}

.calc-results {
  background: var(--black);
  border-radius: var(--radius);
  padding: 36px;
  color: var(--white);
  position: sticky;
  top: 88px;
}

.calc-result-hero {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}

.calc-result-hero .label { color: var(--red); }

.calc-result-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  margin-top: 8px;
}

.calc-big-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 8px 0;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-result-card {
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

.calc-result-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.calc-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.calc-disclaimer p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.calc-disclaimer a { color: rgba(255,255,255,0.7); text-decoration: underline; }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-results { position: static; }
}

@media (max-width: 480px) {
  .calc-inputs, .calc-results { padding: 24px; }
  .calc-result-grid { grid-template-columns: 1fr; }
}

/* ── COMPLAINTS ── */
.complaints-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.complaints-step {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.complaints-step:first-child { padding-top: 0; }
.complaints-step:last-child { border-bottom: none; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content { flex: 1; }
.step-content h3 { margin-bottom: 12px; color: var(--black); }
.step-content p { font-size: 0.95rem; margin-bottom: 0; }

.step-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.step-contact a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  border: 1px solid rgba(200,16,46,0.2);
  padding: 8px 16px;
  border-radius: 6px;
  transition: background var(--transition);
}

.step-contact a:hover { background: rgba(200,16,46,0.05); }

.fscl-box {
  margin-top: 20px;
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 24px;
  border-left: 4px solid var(--red);
}

.fscl-box h4 {
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 10px;
  color: var(--black);
}

.fscl-box p { font-size: 0.875rem; margin-bottom: 0; }

@media (max-width: 640px) {
  .complaints-step { flex-direction: column; gap: 16px; }
}

/* ── PRINT STYLES ── */
.print-header { display: none; }

@media print {
  /* Hide all web chrome */
  .site-header,
  .site-footer,
  .cta-banner,
  .inner-hero,
  .print-btn-wrap,
  .hero,
  .hero-scroll-hint,
  .trust-bar { display: none !important; }

  /* Show branded print header */
  .print-header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 2px solid #E8112E;
    padding-bottom: 16px;
    margin-bottom: 32px;
  }
  .print-logo-name {
    font-size: 22pt;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    line-height: 1;
  }
  .print-logo-name span { color: #E8112E; }
  .print-logo-sub {
    font-size: 7pt;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-top: 4px;
    display: block;
  }
  .print-meta {
    text-align: right;
    font-size: 8pt;
    color: #4a4a4a;
    line-height: 1.7;
  }
  .print-meta strong { color: #111; }

  /* Print snapshot for calculators */
  .print-snapshot {
    display: block !important;
    background: #f4f4f4;
    border-left: 3px solid #E8112E;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 9pt;
    page-break-inside: avoid;
  }
  .print-snapshot h4 {
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a7a7a;
    margin-bottom: 8px;
    font-weight: 700;
  }
  .print-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
  }
  .print-snapshot-grid span { color: #4a4a4a; }
  .print-snapshot-grid strong { color: #111; display: block; font-size: 10pt; }

  /* General print formatting */
  body {
    font-size: 10pt;
    color: #111;
    background: #fff;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  h1 { font-size: 18pt; }
  h2 { font-size: 14pt; }
  h3 { font-size: 11pt; color: #E8112E; margin-top: 18pt; }

  .container { max-width: 100%; padding: 0; }
  .section { padding: 0; }

  a { color: inherit !important; text-decoration: none; }
  a[href^="http"]::after { content: none; }

  /* Calc results - clean table-like layout */
  .calc-layout { grid-template-columns: 1fr; gap: 20px; }
  .calc-result-hero { padding: 16px; }
  .calc-big-number { font-size: 28pt; }
  .calc-result-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-inputs { page-break-after: always; display: none; }

  /* Disclosure */
  .disclosure-content { max-width: 100%; }
  .disclosure-content ul { padding-left: 16pt; list-style: disc; }
  .disclosure-content li { margin-bottom: 4pt; }

  /* Avoid page breaks inside key blocks */
  .calc-results,
  .calc-result-card,
  .disclosure-content h3 + p,
  .disclosure-content h3 + ul { page-break-inside: avoid; }

  /* Print footer */
  .print-footer {
    display: block !important;
    margin-top: 32pt;
    border-top: 1px solid #e8e8e8;
    padding-top: 10pt;
    font-size: 7.5pt;
    color: #7a7a7a;
    line-height: 1.6;
  }
}

/* Hide print-only elements on screen */
.print-snapshot,
.print-footer { display: none; }

/* ── HAMBURGER FOCUS RING ── */
.hamburger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── PROCESS CARD HEADER FOCUS RING ── */
.process-card-header:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
  border-radius: var(--radius);
}

/* ── CALCULATOR RESULT UPDATE FLASH ── */
@keyframes result-flash {
  0%   { background: rgba(200,16,46,0.06); }
  100% { background: transparent; }
}
.calc-results.updated {
  animation: result-flash 0.4s ease-out;
}

/* ── PREFERS-REDUCED-MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .detail-card:hover { transform: none; }
  .btn-red:hover    { transform: none; }
  .btn-white:hover  { transform: none; }
}

/* ── FORM FEEDBACK ── */
.required { color: var(--red); }

.form-feedback {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.form-feedback--error {
  background: rgba(200,16,46,0.06);
  border: 1px solid rgba(200,16,46,0.2);
  color: var(--red);
}

.form-success {
  text-align: center;
  padding: 48px 32px;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: #16a34a;
  margin: 0 auto 20px;
}

.form-success h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--black);
  text-transform: none;
  letter-spacing: 0;
}

.form-success p {
  color: var(--grey);
  font-size: 0.95rem;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

/* ── DISCLOSURE ── */
.disclosure-content { max-width: 800px; }
.disclosure-content h3 { font-size: 1rem; color: var(--red); margin: 36px 0 10px; }
.disclosure-content p { font-size: 0.95rem; margin-bottom: 14px; }
.disclosure-content ul { padding-left: 20px; margin-bottom: 14px; }
.disclosure-content ul li { font-size: 0.95rem; color: var(--grey-dark); margin-bottom: 6px; }

/* ── INNER PAGE RESPONSIVE ── */
@media (max-width: 900px) {
  .split-section { grid-template-columns: 1fr; gap: 40px; }
  .split-section.reverse .split-image,
  .split-section.reverse .split-text { order: unset; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-card-photo { width: 150px; }
  .contact-grid { grid-template-columns: 1fr; }
  .intro-two-col { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .bio-card-top { flex-direction: column; }
  .bio-card-photo { width: 100%; height: 220px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-box { padding: 24px; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll-hint { display: none; }

  .service-card:hover,
  .detail-card:hover,
  .team-card:hover,
  .bio-card:hover {
    transform: none;
  }

  .btn-red:hover,
  .btn-white:hover {
    transform: none;
  }
}

/* ── ADVICE PROCESS ── */
.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: flex;
  gap: 40px;
  padding: 0 0 56px 0;
}

.process-step--last {
  padding-bottom: 0;
}

.process-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 56px;
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-number--last {
  background: var(--black);
}

.process-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin: 8px 0;
  min-height: 40px;
}

.process-step-content {
  flex: 1;
  padding-bottom: 16px;
}

.process-step-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin-bottom: 16px;
  color: var(--black);
}

.process-step-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--charcoal);
}

.process-step-content p:last-of-type {
  margin-bottom: 0;
}

.process-compliance-note {
  margin-top: 20px;
  background: rgba(200,16,46,0.04);
  border: 1px solid rgba(200,16,46,0.15);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.825rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

.compliance-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .process-step {
    gap: 20px;
  }
  .process-step-left {
    width: 40px;
  }
  .process-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ── LENDING PAGE MOBILE FIXES ── */
.ira-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.ira-tranche-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
@media (max-width: 640px) {
  .ira-grid {
    grid-template-columns: 1fr;
  }
  .ira-tranche-row {
    grid-template-columns: auto 1fr auto;
    row-gap: 8px;
  }
  .ira-tranche-row .ira-rolls {
    display: none;
  }
  .ira-tranche-row input[type="number"] {
    width: 80px !important;
  }
}
