/* =========================
   Fonts
   ========================= */
@font-face{
  font-family:"A2Mazarin";
  src:url("../fonts/A2 Mazarin.otf") format("opentype");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* General Sans variable font */
@font-face{
  font-family:"GeneralSans";
  src:url("../fonts/GeneralSans-Variable.ttf") format("truetype");
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}

/* Smooth anchor scrolling */
html{ scroll-behavior:smooth; }

/* =========================
   Variables
   ========================= */
:root{
  --bg:#1f1f1f;
  --panel:#7CA09C;
  --panel-accent:#20929C;
  --text:#eaeaea;
  --muted:#bfc3c7;
  --rule:rgba(255,255,255,.25);
  --card:rgba(255,255,255,.02);
  --max:1100px;
  --gutter:24px;
  --footer-bg:#1f1f1f;
  --footer-text:#eaeaea;
  --footer-pattern:url("../img/footer-pattern.svg");
}

body.light-theme{
  --bg:#e9e6e0;
  --text:#2b2b2b;
  --muted:#5a5a5a;
  --panel:#6fa9a5;
  --panel-accent:#008f94;
  --rule:rgba(0,0,0,.22);

  --footer-bg:#1f1f1f;
  --footer-text:#eaeaea;
  --footer-pattern:url("../img/footer-pattern.svg");
}

/* =========================
   Language switch highlighting
   ========================= */
.lang{
  display:flex;
  align-items:center;
  gap:8px;
}

.lang a{
  padding:4px 6px;
  border-radius:999px;
  opacity:.85;
}

/* Active language (use aria-current="page") */
.lang a[aria-current="page"]{
  opacity:1;
  color:var(--text);
  background:rgba(255,255,255,.10);
  box-shadow:0 0 0 1px rgba(255,255,255,.15) inset;
}

/* =========================
   Base
   ========================= */

body{
  background:var(--bg);
  color:var(--text);
  font-family:GeneralSans, system-ui, sans-serif;
  font-weight:400;   /* force normal */
  line-height:1.35;
}

/* Headline font */
.hero h1{
  font-family:GeneralSans, system-ui, sans-serif;
  
  /* keep your existing size/weight rules */
}

/* Optional: also use A2 for the teal panel heading */
.panel h2{
  font-family:GeneralSans, system-ui, sans-serif;
  font-weight:400;   /* force normal */
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:GeneralSans, system-ui, sans-serif;
  font-weight:400;   /* force normal */
  line-height:1.35;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.9}
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter);
}

/* =========================
   Header / Nav
   ========================= */
header{padding:22px 0 10px}
.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{height:36px}
.brand .label{color:var(--muted)}
nav{
  display:flex;
  gap:26px;
  font-size:14px;
  color:var(--muted);
}
.rule{
  border-top:1px solid var(--rule);
  margin-top:16px;
}

.theme-toggle{
  border:1px solid var(--rule);
  border-radius:999px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:14px;
  line-height:1;
  padding:5px 10px;
  cursor:pointer;
}

.theme-toggle:hover{
  color:var(--text);
}

body.light-theme .theme-toggle{
  color:var(--text);
}

.logo{
  height:36px;
  display:block;
}

/* default = dark theme */
.logo-light{
  display:none;
}

.logo-dark{
  display:block;
}

/* light theme */
body.light-theme .logo-dark{
  display:none;
}

body.light-theme .logo-light{
  display:block;
}

/* =========================
   Hero
   ========================= */
.hero{padding:54px 0 34px}
.hero h1{
  font-size:44px;
  font-weight:400;
  margin:0 0 10px;
}
.hero p{
  font-size:22px;
  color:var(--muted);
  max-width:820px;
  margin:0;
}

/* =========================
   Split section
   ========================= */
.split{
  margin:28px 0 44px;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  overflow:hidden;
}
.split img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.panel{
  background:var(--panel);
  color:#fff;
  padding:28px 26px;
  border-right:5px solid #20929C;
}
.panel h2{
  margin:0 0 12px;
  font-size:22px;
}
.panel::after{
  background:var(--panel-accent);
}
.cta{
  display:flex;
  align-items:center;
  gap:16px;          /* space between line and link */
  margin-top:18px;
}

.cta .line{
  width:56px;
  height:1px;
  background:rgba(255,255,255,.6);
  margin:0;          /* remove vertical margin */
}

/* =========================
   People
   ========================= */
.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:34px 26px;
  padding:16px 0 28px;
}
.person{text-align:center}
.photo{
  width:120px;
  height:120px;
  border-radius:50%;
  overflow:hidden;
  margin:0 auto 14px;
}
.photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.person .name{
  font-size:13px;
  font-weight:600;
  color:var(--muted);
}
.person p{
  font-size:13px;
  color:var(--muted);
  margin:4px 0;
}

/* =========================
   Services
   ========================= */

.services{
  padding:22px 0 42px;
}

.services h2{
  color:var(--panel);
  font-family:GeneralSans, system-ui, sans-serif;
  font-weight:300;
  font-size:30px;
  margin:42px 0 28px 68px;
}

.accordion{
  margin-left:68px;
  max-width:620px;
}

.accordion details{
  margin-bottom:18px;
}

.accordion summary{
  list-style:none;
  cursor:pointer;
  border:1px solid var(--panel);
  border-radius:999px;
  border-color:var(--panel);
  color:var(--panel);
  background:transparent;
  font-family:GeneralSans, system-ui, sans-serif;
  font-size:30px;
  font-weight:300;
  line-height:1;
  padding:5px 16px 8px;
  display:inline-flex;
  align-items:center;
  gap:14px;
}

.accordion summary::-webkit-details-marker{
  display:none;
}

.accordion summary span{
  display:inline-block;
  transition:transform .2s ease;
}

.accordion details[open] summary{
  color:var(--text);
}

.accordion details[open] summary span{
  transform:rotate(90deg);
}

.accordion details p{
  color:var(--text);
  font-size:18px;
  line-height:1.45;
  margin:16px 0 0 20px;
  max-width:520px;
}

@media (max-width:700px){
  .services h2,
  .accordion{
    margin-left:0;
  }

  .services h2{
    font-size:24px;
  }

  .accordion summary{
    font-size:22px;
  }

  .accordion details p{
    font-size:16px;
  }
}

/* =========================
   Footer
   ========================= */
footer{
  font-size:13px;
  background:var(--footer-bg);
  color:var(--footer-text);
  padding:18px 0 0;
}

footer .wrap{
  position:relative;
}

footer .fine{
  margin-top:28px;
  margin-bottom:18px;
  text-align:center;
}

/* footer pattern */
footer .wrap::after{
  content:"";
  display:block;
  width:100%;
  height:80px;
  margin-top:0;
  margin-bottom:0;

  background-image:var(--footer-pattern);
  background-repeat:repeat-x;
  background-size:auto 240px;
  background-position:left top;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .hero h1{font-size:38px}
  .hero p{font-size:20px}
  .grid{grid-template-columns:repeat(2,1fr)}
  .split{grid-template-columns:1fr}
}
@media (max-width:520px){
  .hero h1{font-size:32px}
  .grid{grid-template-columns:1fr}
}