/* Natevia — one-page site
   Tokens: colours from the Natevia logo, one type family (Schibsted Grotesk). */
:root {
  --paper: #ffffff;
  --mist: #f2f5fa;
  --line: #dde3ee;
  --ink: #1c2b57;        /* logo navy, deepened for text */
  --ink-soft: #55627f;
  --blue: #2f6cb3;       /* logo sky blue, darkened for link contrast */
  --sky: #4f8dd1;        /* logo sky blue */
  --focus: #f27f00;      /* logo orange, focus ring only */
  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0; }
section[id] { scroll-margin-top: var(--header-h); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--mist); }
.nav .lang { margin-left: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--paper); color: var(--ink); cursor: pointer;
  }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-radius: 0; font-size: 17px; }
  .nav a:hover { background: none; color: var(--blue); }
  .nav .lang { margin: 8px 0 0; align-self: flex-start; padding: 8px 14px; border-radius: 999px; }
}

/* Hero: the one loud moment */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(28px, 4vw, 44px); }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05; letter-spacing: -0.035em; font-weight: 800;
}
.hero .lead {
  margin-top: clamp(20px, 3vw, 32px); max-width: 34ch;
  font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink-soft);
}
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: clamp(200px, 30vw, 420px); object-fit: cover; object-position: 50% 60%;
  border-radius: var(--radius);
}
.hero-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.about-item svg { width: 28px; height: 28px; color: var(--sky); margin-bottom: 18px; }
.about-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.about-item p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Sites */
.sites { background: var(--mist); }
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.site-card {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.site-card:hover { border-color: var(--sky); }
.site-card:focus-within { border-color: var(--sky); }
.site-card .logo { height: 48px; width: 100%; object-fit: contain; object-position: left center; }
.site-card h3 { font-size: 1.2rem; }
.site-card h3 a { color: inherit; text-decoration: none; }
.site-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.site-card h3 a:focus-visible { outline: none; }
.site-card h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-card p { color: var(--ink-soft); font-size: 16px; }
.site-card .domain { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 500; color: var(--blue); }
.site-card:hover .domain { text-decoration: underline; text-underline-offset: 3px; }

.site-card.featured {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(24px, 4vw, 48px); padding: 0; overflow: hidden;
}
.site-card.featured .photo { flex: 0 0 42%; align-self: stretch; }
.site-card.featured .photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.site-card.featured .body { padding: 32px 32px 32px 0; display: flex; flex-direction: column; gap: 14px; }
.site-card.featured h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

@media (max-width: 760px) {
  .site-grid { grid-template-columns: 1fr; }
  .site-card.featured { flex-direction: column; align-items: stretch; }
  .site-card.featured .photo img { min-height: 0; height: 220px; }
  .site-card.featured .body { padding: 0 24px 28px; }
  .site-card { padding: 24px; }
}

/* Contact + footer */
.contact { background: var(--ink); color: #e6ebf5; padding: clamp(64px, 9vw, 104px) 0 32px; }
.contact a { color: #fff; }
.contact a:hover { color: #bcd4f0; }
.contact .section-head h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.contact-grid h3 { font-size: 14px; font-weight: 500; color: #9fb0d3; margin-bottom: 12px; letter-spacing: 0; }
.contact-grid p { line-height: 1.7; }
.contact-grid .name { color: #fff; font-weight: 700; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.footer {
  margin-top: clamp(56px, 8vw, 88px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9fb0d3;
}
.footer a { color: #9fb0d3; text-decoration: none; }
.footer a:hover { color: #fff; }

/* SEO tools widget (rendered for SEO crawlers only, see widget_pbn_seo.php) */
.seo-links { background: var(--ink); padding: 0 0 32px; }
.seo-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a {
  display: inline-block; padding: 4px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  font-size: 13px; color: #9fb0d3; text-decoration: none;
}
.seo-links a:hover { color: #fff; border-color: rgba(255,255,255,.4); }
