/* coachellinor.se – stilmall */

:root {
  --sand: #F3EEE6;        /* matt beige, bakgrund */
  --sand-deep: #E9E1D4;   /* mörkare beige, footer & partier */
  --sky: #DEE8FB;         /* mjuk blå */
  --sky-deep: #C6D6F2;
  --blue: #56699B;        /* knappar & länkar */
  --blue-dark: #43547E;
  --ink: #33373E;         /* brödtext */
  --ink-soft: #5C6068;
  --white: #FFFDFA;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { max-width: 62ch; }

a { color: var(--blue); }

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

.wrap {
  width: min(1080px, 92%);
  margin: 0 auto;
}

/* ---------- Meny ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 230, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-deep);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.logo span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 4px; }

.nav > .item { position: relative; }

.nav a.top,
.nav button.top {
  display: inline-block;
  padding: 10px 14px;
  font-family: "Karla", sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.nav a.top:hover,
.nav button.top:hover,
.nav .item:focus-within > .top {
  background: var(--sky);
}

.drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(51, 55, 62, 0.10);
  padding: 8px;
  display: none;
}

.item:hover .drop,
.item:focus-within .drop { display: block; }

.drop a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.drop a:hover { background: var(--sky); }

.drop a.head {
  font-weight: 700;
  color: var(--blue-dark);
}

.cta-nav {
  margin-left: 10px;
  background: var(--blue) !important;
  color: var(--white) !important;
}

.cta-nav:hover { background: var(--blue-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 10px;
}

/* ---------- Knappar ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: var(--blue-dark); }

.btn:disabled {
  background: var(--sand-deep);
  color: var(--ink-soft);
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn.ghost:hover { background: var(--sky); }

/* ---------- Hero med formulär ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(243, 238, 230, 0.88) 0%, rgba(243, 238, 230, 0.45) 45%, rgba(222, 232, 251, 0.35) 100%),
    url("../img/ellinor-hero.jpg") center 25% / cover no-repeat,
    linear-gradient(160deg, var(--sky) 0%, var(--sand-deep) 100%);
  padding: 76px 0 88px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero p.lead {
  margin: 20px 0 0;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

.hero-title { font-size: clamp(2.6rem, 6vw, 4.2rem); }

.hero p.lead {
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.hero p.sub {
  margin-top: 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--ink-soft);
}

.hero-form {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(51, 55, 62, 0.14);
  padding: 24px 28px 22px;
  width: min(620px, 100%);
  text-align: left;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--sand-deep);
  margin-bottom: 18px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 33%;
  border-radius: 999px;
  background: var(--sky-deep);
  transition: width 0.3s ease;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.btn.nasta { justify-self: center; margin: 0 auto; display: block; }

.step-nav .btn { margin: 0; }

.choice.vald {
  background: var(--sky);
  border-color: var(--blue);
  font-weight: 700;
}

.hero-form .step { display: grid; gap: 14px; }

.hero-form .step[hidden] { display: none; }

.hero-form h2 { font-size: 1.35rem; text-align: center; }

.hero-form p.hint {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: center;
  margin-top: 2px;
}

.hero-form textarea { min-height: 90px; }

.hero-form h2 { font-size: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice {
  padding: 14px 12px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 12px;
  background: var(--sand);
  font-family: "Karla", sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.choice:hover, .choice:focus-visible {
  background: var(--sky);
  border-color: var(--sky-deep);
  transform: translateY(-1px);
}

.back {
  justify-self: start;
  background: none;
  border: 0;
  color: var(--blue);
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
}

.back:hover { text-decoration: underline; }

.valt {
  text-align: center;
  font-weight: 700;
  background: var(--sky);
  border-radius: 999px;
  padding: 8px 18px;
  justify-self: center;
  font-size: 0.95rem;
}

/* Valvbågen – används på CV- och om-delar */
.arch {
  aspect-ratio: 4 / 5;
  border-radius: 300px 300px var(--radius) var(--radius);
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arch { position: relative; }

.arch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arch .placeholder {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.55;
}

/* ---------- Sektioner ---------- */

.section { padding: 64px 0; }

.section.tint { background: var(--sand-deep); }

.section.blue-tint { background: var(--sky); }

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section p.intro {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section p.intro + p.intro { margin-top: 20px; }

/* ---------- Tjänstekort ---------- */

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(51, 55, 62, 0.08);
}

.card ul {
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.card ul li { padding: 3px 0; }

.card ul li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-deep);
  margin-right: 9px;
}

.card .more {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Delblock på tjänstesidor ---------- */

.blocks {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

a.block {
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 26px 28px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.block:hover, a.block:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(51, 55, 62, 0.10);
  border-color: var(--sky-deep);
}

a.block h3 { margin-bottom: 2px; }

a.block p { color: var(--ink-soft); }

a.block .valj {
  margin-top: auto;
  padding-top: 10px;
  text-wrap: balance;
  white-space: nowrap;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Om / CV ---------- */

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.timeline { margin-top: 34px; display: grid; gap: 6px; }

.tl-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sand-deep);
}

.tl-item .year {
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
  padding-top: 2px;
}

.tl-item h3 { font-size: 1.12rem; margin-bottom: 4px; }

.tl-item p { color: var(--ink-soft); font-size: 0.98rem; }

.pill-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.pill-list li {
  background: none;
  border-left: 3px solid var(--sky-deep);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pill-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 28px;
}

/* ---------- Formulär ---------- */

.form-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 720px;
}

.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 12px;
  background: var(--white);
  font-family: "Karla", sans-serif;
  font-size: 1rem;
  color: var(--ink);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--sky-deep);
  border-color: var(--sky-deep);
}

textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */

footer {
  background: var(--sand-deep);
  padding: 44px 0;
  margin-top: 40px;
}

footer {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-grid h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-grid p { margin-bottom: 8px; max-width: 34ch; }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(51, 55, 62, 0.12);
  font-size: 0.9rem;
}

footer a { color: var(--blue); }

/* ---------- Mjuk intoning ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: rise 0.7s ease both;
  }
  .hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-inner > .hero-form { animation-delay: 0.2s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Mobil ---------- */

@media (max-width: 860px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 4%;
    gap: 0;
  }

  .nav.open { display: flex; }

  .nav a.top, .nav button.top {
    width: 100%;
    text-align: left;
    padding: 13px 12px;
  }

  .drop {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 6px 16px;
    min-width: 0;
  }

  .cta-nav { margin: 10px 0 4px; text-align: center !important; }

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

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

  .form-row { grid-template-columns: 1fr; }

  .pill-list { grid-template-columns: 1fr; }

  a.block .valj { white-space: normal; }

  .arch { max-width: 340px; margin: 0 auto; }

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

  .tl-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Publikationer ---------- */

.pubs {
  margin-top: 32px;
  display: grid;
  gap: 12px;
}

.pub {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--sand-deep);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pub:hover, .pub:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(51, 55, 62, 0.08);
  border-color: var(--sky-deep);
}

.pub-meta {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.pub-title { font-size: 1.02rem; line-height: 1.45; }

/* ---------- Juridiska sidor ---------- */

.legal { max-width: 760px; }

.legal h2 {
  margin-top: 36px;
  font-size: 1.3rem;
}

.legal p { margin-top: 12px; }

.legal-date {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Footer: länkrad längst ned */

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.hero-kontakt {
  margin-top: 18px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.disclaimer {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Erfarenhetsposter utan årtal */
.tl-item.no-year { grid-template-columns: 1fr; }
