@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Brand — OneTALA: jade greens + warm earth */
  --green:       #1F5A3D;   /* jade primary */
  --green-mid:   #3A7F5C;   /* jade mid — eyebrows, links, accents */
  --green-light: #D7E5D6;   /* sage pale — badges, avatars */
  --green-pale:  #EFF5EF;   /* pale jade — hover / soft fills */
  --ink:         #14201A;   /* green-black text */
  --ink-2:       #1B2C23;   /* dark surfaces */
  --ink-3:       #2C3B33;
  --muted:       #6E7A72;
  --border:      #DDE6DF;
  --sand:        #F4EFE3;   /* cream — section backgrounds */
  --sand-2:      #EBE3D4;
  --white:       #FAF7EE;   /* paper — page background */
  --gold:        #6B4423;   /* earth — accent (was gold) */
  --gold-light:  #ECDDC8;   /* earth soft — accent backgrounds */
  --red:         #A8443A;
  --red-light:   #F6E7E3;
  --blue:        #2A6F78;
  --blue-light:  #E2EEF0;

  /* Typography — Sora workhorse + Instrument Serif editorial accent */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, sans-serif;
  --font-ui:      'Sora', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 24px;  --space-6: 32px;
  --space-7: 48px; --space-8: 64px;  --space-9: 96px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --r-xl: 20px; --r-2xl: 32px; --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10,15,13,0.06), 0 1px 2px rgba(10,15,13,0.04);
  --shadow-md: 0 4px 16px rgba(10,15,13,0.08), 0 2px 6px rgba(10,15,13,0.04);
  --shadow-lg: 0 16px 48px rgba(10,15,13,0.12), 0 4px 12px rgba(10,15,13,0.06);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 64px;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.1; }

.display-xl { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -2.5px; }
.display-lg { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -2px; }
.display-md { font-size: clamp(32px, 4vw, 50px); font-weight: 800; letter-spacing: -1.5px; }
.display-sm { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -1px; }
.display-xl em, .display-lg em, .display-md em, .display-sm em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  color: var(--green-mid); letter-spacing: 0;
}

.text-lg   { font-size: 18px; line-height: 1.75; }
.text-md   { font-size: 16px; line-height: 1.7; }
.text-sm   { font-size: 14px; line-height: 1.65; }
.text-xs   { font-size: 12px; line-height: 1.5; }

.text-muted   { color: var(--muted); }
.text-green   { color: var(--green-mid); }
.text-white   { color: #fff; }

/* ─── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-7); }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 var(--space-7); }
.section { padding: var(--space-9) 0; }
.section-sm { padding: var(--space-8) 0; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--r-lg); cursor: pointer;
  border: none; transition: all 0.2s; white-space: nowrap;
  text-decoration: none; letter-spacing: -0.1px;
}
.btn-primary   { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-secondary:hover { background: var(--green-pale); }
.btn-white     { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-ghost     { background: transparent; color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.25); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.08); }
.btn-dark      { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-lg { font-size: 17px; padding: 16px 32px; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--space-6);
  transition: all 0.25s;
}
.card:hover { border-color: rgba(11,94,62,0.25); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-dark { background: var(--ink-2); border-color: rgba(255,255,255,0.07); }
.card-green { background: var(--green); border-color: var(--green); }
.card-sand  { background: var(--sand); border-color: transparent; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-full); letter-spacing: 0.3px;
}
.badge-green  { background: var(--green-light); color: var(--green); border: 1px solid rgba(11,94,62,0.2); }
.badge-gold   { background: var(--gold-light);  color: var(--gold);  border: 1px solid rgba(200,148,26,0.2); }
.badge-dark   { background: var(--ink-2); color: rgba(255,255,255,0.7); }
.badge-dot    { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ─── Eyebrow Labels ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--green-mid);
  margin-bottom: var(--space-3);
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  background: rgba(253,252,250,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11,94,62,0.08);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-7);
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-ui); font-size: 20px; font-weight: 700;
  color: var(--ink); display: flex; align-items: center; gap: 10px;
  letter-spacing: -0.5px;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--green); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; font-weight: 400; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-dark { background: var(--ink); border-color: rgba(255,255,255,0.06); }
.nav-dark .nav-logo { color: #fff; }
.nav-dark .nav-links a { color: rgba(255,255,255,0.5); }
.nav-dark .nav-links a:hover { color: #fff; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); padding: 72px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8); margin-bottom: var(--space-8);
}
.footer-brand { font-family: var(--font-ui); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; font-weight: 300; }
.footer-col-title { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.2s; }
.footer-socials a:hover { color: rgba(255,255,255,0.7); }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: var(--white);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(19,166,104,0.12);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }

/* ─── Utilities ──────────────────────────────────────────── */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
.mb-3 { margin-bottom: var(--space-3); } .mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); } .mb-7 { margin-bottom: var(--space-7); }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 var(--space-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-8) 0; }
  .display-xl { font-size: 40px; }
  .display-lg { font-size: 34px; }
}


/* ─── Seriba Technology brand integration ───────────────── */
.seriba-wordmark-nav { height: 28px; width: auto; object-fit: contain; }
.nav-product-pill {
  margin-left: 10px; padding: 4px 8px; border-left: 1px solid var(--border);
  color: var(--green-mid); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.nav-logo { gap: 0; }
.seriba-wordmark-footer { height: 38px; width: auto; object-fit: contain; }
.seriba-footer-brand { display:flex; align-items:center; min-height: 44px; }
.seriba-identity-section { padding-top: 56px; padding-bottom: 56px; background: var(--sand); }
.seriba-identity-card {
  display:grid; grid-template-columns: 280px 1fr; gap: 40px; align-items:center;
  background: rgba(250,247,238,.78); border: 1px solid var(--border); border-radius: var(--r-2xl);
  padding: 38px; box-shadow: var(--shadow-sm);
}
.seriba-identity-logo img { max-width: 260px; }
.seriba-company-section { background: var(--green-pale); }
.seriba-about-logo { max-width: 260px; }
.seriba-banner-img { width:100%; border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); border:1px solid rgba(31,90,61,.18); }
@media (max-width: 768px) {
  .seriba-identity-card { grid-template-columns: 1fr; padding: 28px; }
  .seriba-wordmark-nav { height: 24px; max-width: 120px; }
  .nav-product-pill { font-size: 9px; padding: 3px 6px; margin-left: 6px; }
}
