/* ============================================================
   Circa Iceland — stylesheet
   Palette drawn from the logo: growth green, deep forest,
   root-earth brown, on warm Icelandic off-white.
   ============================================================ */

:root {
  --forest:    #16261b;   /* deep green — dark text & footer   */
  --green:     #3f8b42;   /* primary brand green               */
  --green-700: #2f6a32;   /* hover / darker green              */
  --leaf:      #8bc34a;   /* bright accent (logo leaf)         */
  --earth:     #9c7a54;   /* roots / warm accent               */
  --cream:     #f7f5ef;   /* page background                   */
  --sand:      #eef1e7;   /* alt section background            */
  --paper:     #ffffff;   /* cards                             */
  --ink:       #1f2a22;   /* body text                         */
  --muted:     #5c6b60;   /* secondary text                    */
  --line:      #e2e6da;   /* borders                           */

  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px -12px rgba(20, 40, 25, .18);
  --shadow-lg: 0 26px 60px -20px rgba(20, 40, 25, .30);
  --maxw:      1160px;
  --ease:      cubic-bezier(.22,.61,.36,1);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; color: var(--forest); font-weight: 700; overflow-wrap: break-word; }
section { scroll-margin-top: 80px; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--leaf); border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 22px -8px rgba(63,139,66,.7); }
.btn-primary:hover { background: var(--green-700); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

/* ============================================================
   Header / nav
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(247,245,239,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; color: var(--forest); letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span b { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; }
.nav-links a {
  color: var(--ink); font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--sand); color: var(--green-700); }
.nav-links .btn { padding: 10px 20px; margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--forest); border-radius: 2px; transition: .3s; }
.nav-toggle span + span { margin-top: 6px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/hero.webp") center 40%/cover no-repeat;
  transform: scale(1.04);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(11,26,15,.86) 0%, rgba(15,35,20,.66) 42%, rgba(18,40,24,.28) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 72px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; backdrop-filter: blur(4px); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(139,195,74,.3); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.2vw, 4.5rem); max-width: 15ch; margin-bottom: 22px; }
.hero h1 .accent { color: var(--leaf); }
.hero p.lead { font-size: clamp(1.08rem, 2.2vw, 1.4rem); max-width: 46ch; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 60px); margin-top: 56px; }
.hero-stats .stat b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: #fff; font-weight: 800; line-height: 1; }
.hero-stats .stat span { font-size: .9rem; color: rgba(255,255,255,.8); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.75); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; animation: bob 2.4s var(--ease) infinite;
}
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,.8), transparent); }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,7px);} }

/* ============================================================
   About
   ============================================================ */
.about { padding: clamp(70px, 9vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 20px; }
.about-copy p { color: var(--ink); margin-bottom: 16px; }
.about-copy p .hl { color: var(--green-700); font-weight: 600; }
.about-name-note {
  margin-top: 24px; padding: 18px 22px; background: var(--sand); border-left: 3px solid var(--leaf);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .98rem; color: var(--muted);
}
.about-name-note b { color: var(--forest); }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; }
.about-media .float-card {
  position: absolute; bottom: -26px; left: -26px; background: var(--paper); padding: 18px 22px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.about-media .float-card img { width: 42px; height: 42px; border-radius: 0; box-shadow: none; aspect-ratio: 1; }
.about-media .float-card b { display: block; color: var(--forest); font-size: .98rem; }
.about-media .float-card span { font-size: .84rem; color: var(--muted); }

/* pillars */
.pillars { margin-top: clamp(50px, 7vw, 84px); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .28s var(--ease), box-shadow .28s, border-color .28s;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.pillar .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(139,195,74,.22), rgba(63,139,66,.16)); color: var(--green-700);
}
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 8px; }
.pillar p { font-size: .95rem; color: var(--muted); }

/* ============================================================
   Projects
   ============================================================ */
.projects { padding: clamp(70px, 9vw, 120px) 0; background: var(--sand); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filter {
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: .2s;
}
.filter:hover { border-color: var(--green); color: var(--green-700); }
.filter.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--forest); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-media.branded { display: grid; place-items: center; background: linear-gradient(140deg, #1d3b26, #2f6a32 70%, #3f8b42); }
.card-media.branded img {
  width: 46%; height: auto; object-fit: contain; background: #fff; padding: 20px; border-radius: 20px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.5);
}
.card-tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .03em; background: rgba(255,255,255,.94); color: var(--green-700); backdrop-filter: blur(4px); z-index: 2;
}
.card-credit {
  position: absolute; bottom: 8px; right: 10px; z-index: 2; font-size: .64rem; color: rgba(255,255,255,.9);
  background: rgba(0,0,0,.42); padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(2px);
}
.card-link {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--green-700);
}
.card-link:hover { color: var(--green); gap: 9px; }
.card-link svg { width: 14px; height: 14px; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.card-meta .yr { color: var(--earth); }
.card-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card-body p { font-size: .96rem; color: var(--muted); flex: 1; }
.card-foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .74rem; font-weight: 600; color: var(--green-700); background: rgba(139,195,74,.16); padding: 5px 11px; border-radius: 999px; }
.eu-note {
  margin-top: 30px; display: flex; align-items: center; gap: 14px; font-size: .86rem; color: var(--muted);
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 18px;
}
.eu-note .flag { font-size: 1.4rem; }

/* ============================================================
   Get involved / contact
   ============================================================ */
.contact { padding: clamp(70px, 9vw, 120px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 14px 0 16px; }
.contact-copy p { color: var(--muted); margin-bottom: 24px; max-width: 46ch; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 15px; }
.contact-list .ci {
  width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--sand); color: var(--green-700);
}
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: var(--forest); font-size: .96rem; }
.contact-list a, .contact-list span { color: var(--muted); font-size: .95rem; }
.contact-list a:hover { color: var(--green); }

.join-card {
  background: linear-gradient(150deg, var(--forest), #1f4028); color: #fff; border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.join-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,195,74,.35), transparent 70%);
}
.join-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 12px; }
.join-card p { color: rgba(255,255,255,.85); font-size: .98rem; margin-bottom: 22px; }
.join-card .btn-primary { background: var(--leaf); color: var(--forest); box-shadow: none; }
.join-card .btn-primary:hover { background: #fff; color: var(--forest); }
.socials { display: flex; gap: 12px; margin-top: 26px; position: relative; z-index: 2; }
.socials a {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); color: #fff; transition: .2s; border: 1px solid rgba(255,255,255,.2);
}
.socials a:hover { background: var(--leaf); color: var(--forest); transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; }
.qr-row { display: flex; gap: 18px; margin-top: 26px; position: relative; z-index: 2; }
.qr-row figure { text-align: center; }
.qr-row img { width: 92px; height: 92px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-row figcaption { font-size: .74rem; color: rgba(255,255,255,.75); margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--forest); color: rgba(255,255,255,.72); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand img { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 4px; }
.footer .brand span { color: #fff; }
.footer .brand span b { color: var(--leaf); }
.footer p { font-size: .92rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,.72); font-size: .93rem; }
.footer ul a:hover { color: var(--leaf); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: .84rem; color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media .float-card { left: 16px; bottom: -22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--cream); padding: 16px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .35s var(--ease); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; border-radius: var(--radius-sm); }
  .nav-links .btn { margin: 6px 0 0; justify-content: center; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
