/* =========================================================
   VERITAS AI — Clean Light Design
   Professional · Trustworthy · AI-focused
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === DESIGN TOKENS === */
:root {
  --navy:        #0f172a;
  --navy-2:      #1e293b;
  --slate:       #334155;
  --muted:       #64748b;
  --subtle:      #94a3b8;

  --blue:        #d4632a;
  --blue-dark:   #b8511f;
  --blue-tint:   #fff4ee;
  --blue-mid:    #f5c4a0;
  --blue-dim:    rgba(212, 99, 42, 0.08);

  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --border:      #e2e8f0;
  --border-blue: #f5c4a0;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;

  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease:  cubic-bezier(0.4, 0, 0.2, 1);
  --t:     0.25s;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color var(--t) var(--ease); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.02em;
}

p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--blue-tint);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(212, 99, 42, 0.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(212, 99, 42, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  color: var(--blue);
  border-color: var(--blue-mid);
  background: var(--blue-tint);
  transform: translateY(-1px);
}

/* === NAVIGATION === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-logo .logo-icon { width: 32px; height: 32px; object-fit: contain; }
.nav-logo .logo-name { height: 20px; object-fit: contain; }

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--bg-alt); }

.nav-link svg {
  width: 14px; height: 14px;
  opacity: 0.5;
  transition: transform var(--t) var(--ease);
}
.nav-item:hover .nav-link svg { transform: rotate(180deg); opacity: 0.8; }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.18s var(--ease);
  box-shadow: var(--shadow-md);
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  top: calc(100% + 0.25rem);
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.nav-dropdown a:hover { color: var(--navy); background: var(--bg-alt); }

/* CTA nav button */
.nav-cta .nav-link {
  background: var(--navy);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-md);
  margin-left: 0.5rem;
}
.nav-cta .nav-link:hover {
  background: var(--blue);
  color: #fff !important;
}

/* Language selector */
.nav-lang select {
  appearance: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t) var(--ease);
  margin-left: 0.5rem;
}
.nav-lang select:hover { border-color: var(--blue-mid); color: var(--navy); }
.nav-lang select option { background: var(--bg); color: var(--navy); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--t) var(--ease);
}
.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); }

/* Language picker label hidden */
.language-picker__form label { display: none; }

/* === HERO === */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  background: var(--bg-alt);
  overflow: hidden;
}
/* Decorative blue glow top-right */
.hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(212,99,42,0.07) 0%, transparent 65%);
  top: -200px; right: -150px;
  pointer-events: none;
}
/* Subtle dot-grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 80% at 80% 20%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.hero-title .accent {
  color: var(--blue);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* === DIVIDER === */
.divider {
  height: 1px;
  background: var(--border);
}

/* === SECTIONS === */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  max-width: 580px;
  margin-bottom: 3.5rem;
}
.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.85rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

/* === PRINCIPLE CARDS === */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.principle-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  transition: all var(--t) var(--ease);
  box-shadow: var(--shadow-sm);
}
.principle-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-top-color: var(--blue-dark);
}

.principle-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-tint);
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
}
.principle-icon svg {
  width: 28px; height: 28px;
  color: var(--blue);
  flex-shrink: 0;
}

.principle-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.principle-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  padding: 4.5rem 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,99,42,0.06) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-top: 0.25rem;
}
.page-hero h1 .accent { color: var(--blue); }

/* === MISSION PAGE === */
.mission-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.mission-sidebar {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: sticky;
  top: 5rem;
}
.mission-sidebar img {
  border-radius: var(--r-lg);
  margin-bottom: 1.5rem;
  width: 100%;
  box-shadow: var(--shadow-sm);
}
.mission-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.goal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.goal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all var(--t) var(--ease);
}
.goal-list li:hover {
  border-color: var(--border-blue);
  background: var(--blue-tint);
  color: var(--navy);
}
.goal-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.mission-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 1.5rem;
}
.mission-body p {
  font-size: 0.975rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

/* === ABOUT / FOUNDER PAGE === */
.founder-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.founder-photo img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.founder-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.founder-quote {
  border-left: 3px solid var(--blue);
  padding: 0.9rem 1.1rem;
  background: var(--blue-tint);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--slate);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.social-link {
  height: 36px;
  min-width: 36px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--t) var(--ease);
}
.social-link:hover {
  background: var(--blue-tint);
  border-color: var(--border-blue);
  color: var(--blue);
}
.social-link img {
  width: 16px; height: 16px;
  object-fit: contain;
  filter: invert(40%) sepia(10%) saturate(400%) hue-rotate(180deg);
}

.founder-bio p {
  font-size: 0.975rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}
.founder-bio p:last-child { margin-bottom: 0; }

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  position: sticky;
  top: 5rem;
}
.contact-info-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  align-items: flex-start;
}
.ci-label {
  color: var(--subtle);
  font-weight: 600;
  min-width: 52px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1px;
}
.ci-value { color: var(--muted); word-break: break-word; }
.ci-value a { color: var(--blue); }
.ci-value a:hover { color: var(--blue-dark); }

.iframe-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-alt);
}
.iframe-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Footer logo — images have opaque white backgrounds so we use a hybrid approach */
.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-icon-badge {
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-icon-badge img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}
.footer-brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  text-transform: uppercase;
}

/* SVG social icons */
.footer-social a svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  max-width: 300px;
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t) var(--ease);
}
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.footer-social a {
  height: 36px;
  min-width: 36px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all var(--t) var(--ease);
}
.footer-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom p { color: rgba(255,255,255,0.3); margin: 0; }

/* === RTL SUPPORT === */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero::before { right: unset; left: -150px; }
[dir="rtl"] .page-hero::before { right: unset; left: -100px; }
[dir="rtl"] .section-header { margin-left: 0; }
[dir="rtl"] .section-header.centered { margin-left: auto; }
[dir="rtl"] .founder-quote {
  border-left: none;
  border-right: 3px solid var(--blue);
  padding-left: 0;
  padding-right: 1.1rem;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}
[dir="rtl"] .mission-sidebar h3,
[dir="rtl"] .contact-info-card h3 { text-align: right; }
[dir="rtl"] .goal-list li { flex-direction: row-reverse; }
[dir="rtl"] .ci-label { text-align: right; }
[dir="rtl"] .nav-dropdown {
  left: unset;
  right: 50%;
  transform: translateX(50%);
}
[dir="rtl"] .badge::before { margin-left: 0.5rem; margin-right: 0; }
[dir="rtl"] .footer-logo-row { flex-direction: row-reverse; }

/* === ANIMATIONS === */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-grid, .mission-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mission-sidebar, .contact-info-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border-radius: var(--r-sm);
    margin-top: 0.2rem;
  }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; padding: 0.8rem 0.9rem; font-size: 0.95rem; }
  .nav-cta .nav-link { justify-content: center; margin-left: 0; margin-top: 0.5rem; }
  .nav-lang { padding: 0.25rem 0; }
  .nav-lang select { width: 100%; margin-left: 0; padding: 0.6rem 0.9rem; font-size: 0.9rem; }

  .hero { padding: 4.5rem 0 4rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }

  .principles-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; text-align: center; }
}
