/* ============================================================
   RBA Ventures — Stylesheet (Poppins, Black & White)
   ============================================================ */

:root {
  --black:      #0a0a0a;
  --black-soft: #111111;
  --black-mid:  #1a1a1a;
  --grey-dark:  #333333;
  --grey-mid:   #666666;
  --grey-light: #999999;
  --grey-pale:  #cccccc;
  --offwhite:   #f5f5f3;
  --white:      #ffffff;
  --border:     #e2e2e2;

  --font: 'Poppins', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);

  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; transition: color var(--transition); }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section-pad { padding: 70px 0; }
.bg-black    { background: var(--black); }
.bg-offwhite { background: var(--offwhite); }

/* ---------- Typography ---------- */
.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 6px;
}
.section-eyebrow.light { color: var(--grey-pale); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title.light   { color: var(--white); }
.section-title.centered { text-align: center; }

.section-lead {
  font-size: 1rem;
  color: var(--grey-mid);
  max-width: 640px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.section-lead.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-lg   { padding: 14px 32px; font-size: 0.92rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline-dark:hover {
  background: var(--black);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--offwhite);
  transform: translateY(-1px);
}

/* ============================================================
   NAVIGATION — Always white
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 4px;
  gap: 24px;
}

.nav-logo { flex-shrink: 0; }
.logo-img {
  height: 130px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--grey-dark);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--black);
  background: var(--offwhite);
}

.nav-cta-link {
  background: var(--black) !important;
  color: var(--white) !important;
  font-weight: 600;
  border: 2px solid var(--black);
}
.nav-cta-link:hover {
  background: var(--grey-dark) !important;
  border-color: var(--grey-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 72vh;
  background: var(--black);
  display: flex;
  align-items: center;
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  display: block;
  margin-top: 4px;
}

.hero-sub {
  font-size: clamp(0.93rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* White border buttons on dark hero */
.hero-actions .btn-outline-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn-outline-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}



/* ============================================================
   WHAT WE DO
   ============================================================ */
.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s ease;
  background: var(--white);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--grey-pale);
}
.pillar-card--accent {
  background: var(--black);
  border-color: var(--black);
}
.pillar-card--accent:hover { border-color: var(--grey-dark); }

.pillar-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--border);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.pillar-card--accent .pillar-num { color: rgba(255,255,255,0.07); }
.pillar-card:hover .pillar-num { color: var(--grey-pale); }

.pillar-icon {
  font-size: 1.4rem;
  color: var(--grey-dark);
  margin-bottom: 10px;
}
.pillar-card--accent .pillar-icon { color: var(--grey-pale); }

.pillar-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.pillar-card--accent .pillar-title { color: var(--white); }

.pillar-desc {
  font-size: 0.91rem;
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.75;
  margin-bottom: 18px;
}
.pillar-card--accent .pillar-desc { color: rgba(255,255,255,0.55); }

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pillar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--grey-dark);
}
.pillar-card--accent .pillar-list li { color: rgba(255,255,255,0.65); }
.pillar-list li i {
  font-size: 0.72rem;
  margin-top: 4px;
  flex-shrink: 0;
  color: var(--grey-mid);
}
.pillar-card--accent .pillar-list li i { color: var(--grey-pale); }

/* ============================================================
   WHY US
   ============================================================ */
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.why-statement p {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.why-statement strong {
  color: var(--white);
  font-weight: 600;
}

.why-pillars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
}
.why-item h4 {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.why-item p {
  font-size: 0.86rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--offwhite);
  border: 1.5px solid var(--border);
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
}
.photo-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  background: linear-gradient(160deg, #1a1a1a 0%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}
.photo-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-photo-placeholder.photo-missing .about-photo  { display: none; }
.about-photo-placeholder.photo-missing .photo-fallback { display: flex; }
.fallback-initials {
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.fallback-name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  position: relative;
  z-index: 1;
}

.about-name-block {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}
.about-logo {
  height: 52px;
  width: auto;
  opacity: 0.3;
}

.about-text {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-quote {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--black);
  line-height: 1.55;
  border-left: 3px solid var(--black);
  padding-left: 18px;
  margin: 20px 0 24px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { padding: 60px 0; }
.cta-banner-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta-text { flex: 1; min-width: 280px; }
.cta-text h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-style: italic;
  font-weight: 400;
  color: var(--white);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  font-size: 0.91rem;
  font-weight: 300;
  color: var(--grey-mid);
  line-height: 1.75;
  margin-bottom: 24px;
}

.contact-assurances {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.assurance-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.assurance-item i {
  color: var(--grey-pale);
  font-size: 0.95rem;
  margin-top: 3px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.assurance-item div { display: flex; flex-direction: column; gap: 2px; }
.assurance-item strong { font-size: 0.88rem; font-weight: 600; color: var(--black); }
.assurance-item span  { font-size: 0.8rem; font-weight: 300; color: var(--grey-light); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.form-row { display: flex; gap: 14px; }
.form-row.two-col > * { flex: 1; min-width: 0; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
}
.req { color: var(--grey-light); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #c0392b;
}
.form-group textarea { resize: vertical; min-height: 110px; }

.field-err {
  font-size: 0.74rem;
  color: #c0392b;
  min-height: 14px;
}

.form-privacy {
  font-size: 0.73rem;
  font-weight: 300;
  color: var(--grey-light);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.form-success {
  text-align: center;
  padding: 48px 20px;
}
.form-success i   { font-size: 2.8rem; color: var(--black); margin-bottom: 14px; display: block; }
.form-success h3  { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.form-success p   { font-size: 0.9rem; font-weight: 300; color: var(--grey-mid); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 44px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.footer-brand .footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: 10px;
  /* The white-background logo has a black background — blend it into the footer */
  mix-blend-mode: screen;
  opacity: 0.9;
}
.footer-brand p {
  font-size: 0.83rem;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  max-width: 240px;
  line-height: 1.65;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-bottom p:first-child {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
}
.footer-legal {
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(255,255,255,0.14);
  max-width: 620px;
  line-height: 1.6;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-logo-block { display: none; }

  .two-col-cards { grid-template-columns: 1fr; }

  .why-layout { grid-template-columns: 1fr; gap: 40px; }

  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 300px; aspect-ratio: 1; }

  .contact-layout { grid-template-columns: 1fr; gap: 48px; }

  .footer-top { flex-direction: column; gap: 28px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }

  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1050;
  }
  .nav-links.open { display: flex; }
  .nav-link { color: var(--grey-dark); font-size: 1.1rem; padding: 12px 28px; }
  .nav-link:hover, .nav-link.active { color: var(--black); background: var(--offwhite); }
  .nav-cta-link {
    margin-top: 8px;
    background: var(--black) !important;
    color: var(--white) !important;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .cta-banner-inner { flex-direction: column; gap: 28px; }
  .cta-banner-inner .btn { width: 100%; text-align: center; }

  .form-row.two-col { flex-direction: column; }
  .contact-form-wrap { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 1.9rem; }
  .pillar-card   { padding: 32px 24px; }
  .about-photo-wrap { max-width: 100%; }
}
