:root{
  --bg: #fbfaf7;
  --text: #121417;
  --muted: #5b6470;
  --line: rgba(18,20,23,.10);
  --card: rgba(255,255,255,.72);
  --accent: #0A2D5E;            /* FRAMALI Blue */
  --max: 1040px;
  --pad: 28px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 64px;
}

/* Subtle paper texture (no images) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 30% -10%, rgba(10,45,94,.06), transparent 60%),
    radial-gradient(1000px 700px at 90% 0%, rgba(18,20,23,.04), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,.25), transparent 22%);
  mix-blend-mode: multiply;
}

a{
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{ text-decoration: underline; }

.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Fixed top nav */
.nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(251,250,247,.78);
  border-bottom: 1px solid var(--line);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;   /* stable height */
  padding: 0 var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.brand{
  letter-spacing: .12em;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.logo {
  height: 26px;
  width: auto;
}
.menu{
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}


.menu a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.menu a:hover{
  color: var(--text);
  background: rgba(18,20,23,.04);
  text-decoration: none;
}

/* Hero */
.hero{
  padding: 64px 0 28px;
}
.kicker{
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 10px;
}
h1{
  margin: 0 0 12px;
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: .02em;
  line-height: 1.04;
}
.subtitle{
  margin: 0;
  max-width: 70ch;
  font-size: 18px;
  color: var(--muted);
}
.hero-cta{
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.btn-primary{
  background: var(--accent);
  color: #fff;
  border-color: rgba(10,45,94,.35);
  box-shadow: 0 10px 18px rgba(10,45,94,.18);
}
.btn-primary:hover{
  text-decoration: none;
  filter: brightness(1.03);
}
.btn-ghost{
  background: rgba(255,255,255,.55);
  color: var(--text);
}
.btn-ghost:hover{
  text-decoration: none;
  background: rgba(255,255,255,.85);
}

/* Sections */
section{
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.section-title{
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 22px;
  margin: 0 0 14px;
}
.section-lead{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 80ch;
}

/* Grid + cards */
.grid{
  display: grid;
  gap: 16px;
}
.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset;
}
.card h3{
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: .01em;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact-box{
  display: grid;
  gap: 10px;
}
.contact-line{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  color: var(--muted);
}
.pill{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.60);
  font-size: 13px;
}

/* Team section */
#team .team-card {
  max-width: 820px;
  padding: 28px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#team .team-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: .02em;
}

#team .role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#team .team-card + .team-card {
  margin-top: 22px;
}

/* Footer */
footer{
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Extra scroll room so the last anchor (e.g., Contact) can reach the top */
body::after{
  content: "";
  display: block;
  height: 1000px;   /* increase to 320px if you want more */
}

.signature{
  margin-top: 14px;
  color: rgba(18,20,23,.55);
  font-style: italic;
}

/* Legal pages */
.legal h1{
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: .01em;
}
.legal p, .legal li{
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px){
  .grid-2, .grid-3{ grid-template-columns: 1fr; }
  .hero{ padding: 46px 0 22px; }
  .menu{ gap: 8px; }
}
/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Offset for fixed navigation */
section {
  scroll-margin-top: 86px;
}

/* Subtle highlight when section is targeted */
section:target .section-title {
  position: relative;
}

section:target .section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--accent);
  margin-top: 6px;
}

/* --- Mobile Hamburger --- */

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile only */
@media (max-width: 768px){

  .nav-inner{
    height: 64px;
    align-items: center;
  }

  .menu{
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(251,250,247,.98);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--pad);
    flex-direction: column;
    gap: 10px;
  }

  .menu.is-open{
    display: flex;
  }

  .nav-toggle{
    display: block;
  }

  .menu a{
    display: block;
    padding: 10px 0;
  }
}