/*
Theme Name: Bio AI Logic
Author: Dr. Åsa Hidmark
Version: 2.0.0
Description: Minimalist theme for bio-ai-logic.com
*/

@font-face {
  font-family: "Arsenica";
  src: url("/wp-content/uploads/bio-ai-logic/Arsenica%20Trial%20Regular%20400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/wp-content/uploads/bio-ai-logic/Gotham%20Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/wp-content/uploads/bio-ai-logic/Gotham%20Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --paper: #ffffff;
  --mist: #f7f6f4;
  --sand: #e8e5e0;
  --maxw: 1000px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  padding: 24px 28px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-header--solid {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--sand);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 56px;
  height: auto;
}

.logo__text {
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  opacity: 1;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  transform: scaleX(1);
}

.main {
  display: flex;
  flex-direction: column;
}

.section {
  padding: 80px 28px;
}

.section--mist {
  background: var(--mist);
}

.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Hero with full-width background image */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.1) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0.95) 100%
  );
}

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 140px 28px 100px;
  max-width: 800px;
}

.hero__bird {
  width: 80px;
  height: auto;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.hero__title {
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.hero__lead {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero__meta {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 400;
  transition: background 0.3s ease, color 0.3s ease;
  background: transparent;
}

.button:hover,
.button:focus {
  background: var(--ink);
  color: var(--paper);
}

.button--light {
  border-color: var(--paper);
  color: var(--paper);
}

.button--light:hover,
.button--light:focus {
  background: var(--paper);
  color: var(--ink);
}

/* Content sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 16px;
  line-height: 1.3;
}

.section-text {
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 500px;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--ink-soft);
}

.card h3 {
  margin: 0;
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
}

.card .button {
  margin-top: auto;
  align-self: flex-start;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  padding-left: 20px;
  border-left: 1px solid var(--sand);
}

.timeline-item strong {
  display: block;
  font-weight: 400;
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-item span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Photo gallery */
.section--photo-strip {
  padding: 0;
  overflow: hidden;
}

.photo-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-strip img {
  height: 320px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* About portrait */
.portrait-wrap {
  position: relative;
}

.portrait-wrap img {
  width: 100%;
  max-width: 400px;
}

/* Impressum */
.impressum {
  max-width: 600px;
  padding: 40px;
  border: 1px solid var(--sand);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--sand);
  padding: 40px 28px;
  font-size: 0.85rem;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--ink);
}

.muted {
  color: var(--ink-soft);
}

/* Page content */
.page-content h1,
.page-content h2,
.page-content h3 {
  font-family: "Arsenica", "Times New Roman", serif;
  font-weight: 400;
}

.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 20px;
}

.page-content p {
  max-width: 600px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* Policy content */
.policy-content {
  max-width: 700px;
}

.policy-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}

.policy-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.policy-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 12px;
}

.policy-content p,
.policy-content li {
  color: var(--ink-soft);
  line-height: 1.8;
}

.policy-content ul,
.policy-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* Privacy summary box */
.privacy-summary {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 28px 32px;
  margin-top: 40px;
}

.privacy-summary h3 {
  font-family: "Arsenica", "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 16px;
}

.privacy-summary ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.privacy-summary li {
  margin-bottom: 6px;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  margin-top: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--sand);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--paper);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ink-soft);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 800px) {
  .site-header {
    padding: 20px;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    padding: 120px 20px 80px;
  }

  .section {
    padding: 60px 20px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split--reverse {
    direction: ltr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .photo-strip img {
    height: 220px;
  }

  .logo img {
    width: 48px;
  }

  .logo__text {
    font-size: 16px;
  }
}
