/* ============================================================
   robustmediation.com — Stylesheet
   Palette: Navy #1A3A5C | Slate #708090 | White #FFFFFF | Light #F4F6F8
   Fonts:  Lora (headings/quotes) | Inter (body)
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1A3A5C;
  --navy-dark:  #142E4A;
  --navy-alpha: rgba(26, 58, 92, 0.82);
  --slate:      #708090;
  --white:      #FFFFFF;
  --light:      #F4F6F8;
  --text:       #2C3E50;
  --text-light: #5A6A7A;

  --font-head: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,58,92,0.10);
  --shadow-lg: 0 8px 40px rgba(26,58,92,0.15);

  --max-w: 1100px;
  --section-py: 5rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Scroll-fade-in animation ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── Containers ───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 740px;
}

/* ── Section shared ───────────────────────────────────────── */
.section { padding: var(--section-py) 0; }
.section--white { background: var(--white); }
.section--grey  { background: var(--light); }
.section--navy  { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header--light { color: var(--white); }
.section-header--light .section-lead { color: rgba(255,255,255,0.80); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section--navy h2 { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(26,58,92,0.25);
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.30);
}
.btn--large { padding: 1rem 2.4rem; font-size: 1.05rem; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,58,92,0.08);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo span { color: var(--slate); }

.nav-links {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

.lang-switcher {
  display: flex;
  gap: 0.3rem;
  flex-shrink: 0;
}
.lang-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0.45;
  padding: 3px 6px;
  border-radius: 4px;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
  color: var(--navy);
}
.lang-btn:hover  { opacity: 0.8; }
.lang-btn.active { opacity: 1; color: var(--navy); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.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 {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1.5rem 4rem;
  /* Solid colour shows while image loads */
  background: #2a3f58;
}

/* Background image lives in ::before so we can hue-shift it independently
   without affecting the overlay or text.
   hue-rotate(185deg) pushes autumn orange/gold → cool blue-mauve-pink.
   Photo: Pexels #10209032, free Pexels License. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    url('https://images.pexels.com/photos/10209032/pexels-photo-10209032.jpeg?auto=compress&cs=tinysrgb&w=1920'),
    url('../images/hero-bg.jpg'); /* local fallback once downloaded */
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  /* Soft hopeful dawn-blue: lighter, airier, less moody than before */
  filter: hue-rotate(162deg) saturate(0.60) brightness(1.10);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Very light veil — just enough contrast for white text, no heavy darkness */
  background: linear-gradient(
    180deg,
    rgba(10, 25, 55,  0.22) 0%,
    rgba(30, 55, 100, 0.10) 50%,
    rgba(10, 20, 50,  0.28) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--white);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ══════════════════════════════════════════════════════════
   PROBLEM / SOLUTION
   ══════════════════════════════════════════════════════════ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--problem {
  background: var(--white);
  border-left: 4px solid #c0392b22;
}
.card--solution {
  background: var(--white);
  border-left: 4px solid var(--navy);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.93rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.service-item {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.service-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  margin-top: 0.55rem;
}
.service-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.service-item p { font-size: 0.93rem; color: var(--text-light); }

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap { display: flex; justify-content: center; }

.about-image-frame {
  position: relative;
  width: 360px;
  height: 380px;    /* nearly square — matches the reference headshot format */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid var(--white);
  outline: 3px solid rgba(26,58,92,0.12);
  /* GPU compositing layer — prevents pixelation from overflow+border-radius */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.about-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 10%; /* vertical crop — head near top */
  /* Portrait image fills frame width exactly → no horizontal overflow →
     object-position X has no effect. Instead: scale up to create overflow,
     then translateX to shift the visible crop (positive = face moves left). */
  transform: scale(1.22) translateX(-2%) translateZ(0);
  transform-origin: top center;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.2rem;
  text-align: left;
}

blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  border-left: 3px solid var(--navy);
  padding: 0.6rem 0 0.6rem 1.2rem;
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-credentials {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26,58,92,0.10);
}
.credential { display: flex; flex-direction: column; }
.credential-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}
.credential-label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════
   SOCIAL PROOF
   ══════════════════════════════════════════════════════════ */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.proof-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
}
.proof-badge:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.proof-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.proof-badge h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.proof-badge p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════ */
.contact-form {
  background: var(--light);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(112,128,144,0.30);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(112,128,144,0.55);
}

.form-submit { text-align: center; margin-top: 0.5rem; }

/* KwesForms error/success overrides */
.kf-field-error { color: #c0392b; font-size: 0.82rem; margin-top: 0.3rem; }
.kf-success-msg  { color: var(--navy); font-weight: 600; text-align: center; padding: 1rem 0; }

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--white);
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.60);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-lang { display: flex; gap: 0.5rem; }
.footer-lang .lang-btn { font-size: 1.1rem; }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 900px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-py: 3.5rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-content h2 { text-align: center; }
  blockquote { text-align: left; }
  .about-credentials { justify-content: center; }

  .proof-grid { grid-template-columns: 1fr 1fr; }

  .services-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 640px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-py: 2.8rem; }

  /* Nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(26,58,92,0.08);
    padding: 1rem 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .lang-switcher { margin-left: 0; }

  /* Two-col grids → single */
  .two-col { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .about-image-frame { width: 300px; height: 316px; }
  .about-credentials { flex-direction: column; gap: 1rem; align-items: center; }

  .contact-form { padding: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
