/* ========== Kolibri — Next (homepage only) ========== */
/* Assumes base.css + nav.css are already loaded. */

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(to bottom, var(--peach) 0%, var(--surface, #fff) 65%);
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { padding-top: 3rem; padding-bottom: 2rem; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin: 0 0 .5rem; }
.hero p  { margin: 0; color: var(--muted); }

/* ---------- Sections ---------- */
.section { align-items: center; }
.col-text h2 {
  font-weight: 800;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin: 0 0 .5rem;
}
.col-text p { margin: 0 0 .75rem; }
.lead { font-size: 1.05rem; }

.figure {
  aspect-ratio: 3 / 2;              /* wider frame reduces aggressive crop */
  box-shadow: 0 6px 20px rgba(2, 20, 31, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;                 /* keep tidy card */
  object-position: center;           /* <-- center the subject (no top-bias) */
}

/* Mobile: a bit taller for comfort (optional) */
@media (max-width: 900px){
  .figure { aspect-ratio: 4 / 3; }
  .figure img { object-position: center; }
}

/* Optional utilities for tricky shots */
.img-focus-center { object-position: center center !important; }
.img-focus-top    { object-position: center top !important; }
.img-focus-bottom { object-position: center bottom !important; }
.img-contain-desktop { object-fit: contain !important; background:#fff; }



/* ---------- Footer spacing ---------- */
.footer { padding: 2.5rem 0 3rem; }

/* ---------- Inline links (modern lilac underline) ---------- */
main a {
  position: relative;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid rgba(238, 205, 246, 0.6); /* visible lilac underline */
  transition: border-color 0.25s ease, color 0.25s ease;
}

/* Hover and focus states */
main a:hover,
main a:focus {
  border-bottom-color: var(--lilac); /* stronger underline */
  color: var(--text);
}

/* External + mail links: consistent color */
main a[href^="http"],
main a[href^="mailto"] {
  color: var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section { grid-template-columns: 1fr; }
  .section .col-text { order: 1 !important; }
  .section .col-media { order: 2 !important; }
}


/* Desktop/tablet: top-align text and media */
@media (min-width: 901px){
  .section{
    align-items: start;            /* was: center */
  }
  .section .col-text,
  .section .col-media{
    align-self: flex-start;        /* ensures both columns start at the top */
  }
  .section .col-media{
    display: flex;                 /* prevent figure from stretching */
    align-items: flex-start;
  }
}
