@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Palette */
  --bg: #FAFAF7;
  --bg2: #F2F1ED;
  --bg3: #EAEAE5;
  --surface: #FFFFFF;
  --surface2: #F7F6F3;

  --text: #1B1F2B;
  --text2: #2D3243;
  --muted: #6B7085;
  --muted2: #8C90A0;
  --light: #B0B3BF;

  --accent: #4A9FE5;
  --accent-light: #6DB4EC;
  --accent-bg: rgba(74, 159, 229, 0.06);
  --accent-border: rgba(74, 159, 229, 0.18);

  --border: rgba(27, 31, 43, 0.08);
  --border2: rgba(27, 31, 43, 0.14);

  --teal: #2A8F85;
  --teal-bg: rgba(42, 143, 133, 0.06);
  --red: #C44B4B;
  --red-bg: rgba(196, 75, 75, 0.05);

  /* Type */
  --hf: 'Inter', sans-serif;
  --bf: 'Plus Jakarta Sans', sans-serif;
  --mf: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 7rem);
  --side-pad: clamp(1.5rem, 5vw, 6rem);
  --max-w: 1200px;
  --narrow: 800px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--bf);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--side-pad);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 32px;
  width: auto;
}
.nav-links {
  display: flex; gap: 2.2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  border: 1.5px solid var(--text) !important;
  color: var(--text) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 3px;
  transition: all 0.2s !important;
}
.nav-cta:hover {
  background: var(--text) !important;
  color: var(--bg) !important;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--bf); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; padding: 0.9rem 2.2rem;
  border-radius: 3px; cursor: pointer; border: none;
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover {
  background: var(--text2);
}
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-secondary:hover {
  border-color: var(--text);
}
.btn-accent {
  background: var(--accent); color: #fff;
}
.btn-accent:hover {
  background: var(--accent-light);
}
.btn-sm {
  font-size: 0.75rem; padding: 0.55rem 1.4rem;
}

/* ═══════════════════════════════════
   SHARED TYPOGRAPHY
   ═══════════════════════════════════ */
.tag {
  font-family: var(--mf);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}
.heading {
  font-family: var(--hf);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}
.heading em, .heading i {
  font-style: italic;
  color: inherit;
}
.h-xl { font-size: clamp(3rem, 6.5vw, 5.5rem); }
.h-lg { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.h-md { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.h-sm { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

.body-lg {
  font-size: 1.1rem; color: var(--muted); font-weight: 400;
  line-height: 1.85; max-width: 560px;
}
.body-md {
  font-size: 0.95rem; color: var(--muted); font-weight: 400;
  line-height: 1.8;
}

/* ═══════════════════════════════════
   LAYOUT
   ═══════════════════════════════════ */
.section {
  padding: var(--section-pad) var(--side-pad);
}
.section-alt { background: var(--surface); }
.section-accent { background: var(--text); color: var(--bg); }
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.inner-narrow {
  max-width: var(--narrow);
  margin: 0 auto;
}
.divider {
  height: 1px;
  background: var(--border);
}

/* ═══════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════ */
.page-hero {
  padding: 10rem var(--side-pad) 5rem;
  border-bottom: 1px solid var(--border);
}
.page-hero .inner { max-width: var(--max-w); }
.breadcrumb {
  font-family: var(--mf); font-size: 0.68rem;
  color: var(--light); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--light); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; }
.page-hero .body-lg { margin-top: 1.5rem; }

/* ═══════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   CARDS
   ═══════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--accent-border);
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer {
  padding: 3rem var(--side-pad);
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-logo:hover .footer-logo-img {
  opacity: 1;
}
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.75rem; color: var(--muted); text-decoration: none;
  letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.72rem; color: var(--light); }

/* ═══════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════ */
.cform { display: flex; flex-direction: column; gap: 1.2rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fg { display: flex; flex-direction: column; gap: 0.4rem; }
.flabel {
  font-family: var(--mf); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.15em; text-transform: uppercase;
}
.finput, .fselect, .ftextarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: var(--bf); font-size: 0.92rem;
  padding: 0.85rem 1rem; border-radius: 4px;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.finput::placeholder, .ftextarea::placeholder { color: var(--light); }
.finput:focus, .fselect:focus, .ftextarea:focus { border-color: var(--accent); }
.fselect { appearance: none; cursor: pointer; }
.fselect option { background: var(--surface); }
.ftextarea { resize: vertical; min-height: 120px; }
#fstatus { display: none; padding: 1rem; border-radius: 4px; font-size: 0.88rem; }
#fstatus.success {
  background: var(--teal-bg);
  border: 1px solid rgba(42,143,133,0.2);
  color: var(--teal); display: block;
}
#fstatus.error {
  background: var(--red-bg);
  border: 1px solid rgba(196,75,75,0.2);
  color: var(--red); display: block;
}
.fnote { font-size: 0.75rem; color: var(--light); }

/* ═══════════════════════════════════
   CHIPS
   ═══════════════════════════════════ */
.chip {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mf); font-size: 0.68rem;
  padding: 0.35rem 0.75rem; border-radius: 3px;
  letter-spacing: 0.04em; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent-border); color: var(--accent); }
.chip.hi {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-bg);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ═══════════════════════════════════
   HAMBURGER MENU
   ═══════════════════════════════════ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .frow { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
}
