/* Joacim Cederholm — proposal homepage */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --text: #262626;
  --muted: #5c5c5c;
  --gold: #c47d00;
  --gold-hover: #a86b00;
  --gold-press: #8f5b00;
  --cream: #fffbeb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --max: 1000px;
  --wide: 1120px;
  --radius: 6px;
  --nav-h: 72px;
  --shadow: 0 10px 30px rgba(38, 38, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(38, 38, 38, 0.18);
  --green: #16803c;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover {
  background: var(--gold-hover);
}
.btn:active {
  background: var(--gold-press);
}
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: #f7f7f7;
  border-color: var(--text);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-light:hover {
  background: #fff;
  color: var(--text);
  border-color: #fff;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}
.logo img {
  width: 42px;
  height: 42px;
}
.logo-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.logo-name span {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-cta {
  margin-left: 8px;
  padding: 9px 16px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 28%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.52) 45%, rgba(0, 0, 0, 0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 48px));
  padding: 64px 0 80px;
}
.hero-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.15rem, 5.6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-wrap: balance;
}
.hero-sub {
  margin: 0 auto 32px;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Sections */
.section {
  padding: 96px 0;
}
.section-cream {
  background: var(--cream);
}
.section-head {
  margin: 0 0 48px;
  max-width: 640px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h2, .h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.lede + .lede {
  margin-top: 14px;
}

/* How it works */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 26px 24px;
}
.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}
.how-card h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.how-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px 24px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  border-color: #d6b06a;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.service-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}
.service-price {
  margin: 18px 0 0;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.service-go {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.service-go svg {
  transition: transform 0.18s ease;
}
.service-card:hover .service-go svg {
  transform: translateX(5px);
}

/* Kost */
.kost-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.kost-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}
.kost-copy p:last-child {
  margin-bottom: 0;
}
.kost-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.kost-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500;
  line-height: 1.45;
}
.kost-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

/* About */
.about-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
}
.about-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}
.merit-list {
  list-style: none;
  margin: 28px 0 24px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.merit-list li {
  padding-left: 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.merit-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.merit-list p {
  margin: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  padding: 22px 4px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.faq-item button:hover span.q {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  position: relative;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.faq-icon::before {
  width: 14px;
  height: 2px;
  left: 4px;
  top: 10px;
}
.faq-icon::after {
  width: 2px;
  height: 14px;
  left: 10px;
  top: 4px;
}
.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg);
}
.faq-body {
  display: none;
  padding: 0 36px 24px 4px;
  color: var(--muted);
}
.faq-item[open] .faq-body {
  display: block;
}
.faq-body p {
  margin: 0 0 12px;
}
.faq-body p:last-child {
  margin-bottom: 0;
}
.faq-sub {
  margin: 16px 0 0;
}
.faq-sub h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.faq-sub p {
  margin: 0 0 12px;
}

/* Contact / closing CTA */
.cta-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cta-note {
  margin-top: 10px;
  font-size: 13px;
  color: #8a8a8a;
  line-height: 1.5;
}
.form {
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 125, 0, 0.18);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Footer */
.footer {
  background: var(--text);
  color: #f3f3f3;
  padding: 56px 0 28px;
}
.footer-inner {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px 64px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 48px;
  height: 48px;
}
.footer-brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.footer-brand span {
  display: block;
  font-size: 13px;
  color: #c8c8c8;
}
.footer-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 40px;
  justify-content: end;
  font-size: 14.5px;
  line-height: 1.55;
}
.footer a {
  color: #fff;
  text-decoration: none;
}
.footer a:hover {
  color: #f0c36a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 50%;
}
.footer-social-link svg {
  width: 22px;
  height: 22px;
  display: block;
}
.footer-social-link:hover {
  color: #f0c36a;
  text-decoration: none;
}

.footer-bottom {
  width: min(var(--wide), calc(100% - 48px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #b8b8b8;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Modal */
.modal-root[hidden] {
  display: none;
}
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(4px);
}
.modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(720px, calc(100svh - 32px));
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
}
.modal-close:hover {
  background: #f3f3f3;
}
.modal-progress-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 28px;
}
.progress span {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
}
.progress span.done,
.progress span.current {
  background: var(--gold);
}
.modal h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 22px;
}
.option-list {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.option:hover {
  border-color: #d6b06a;
}
.option[aria-checked="true"] {
  border-color: var(--gold);
  background: var(--cream);
  box-shadow: 0 0 0 1px var(--gold);
}
.option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
}
.option[aria-checked="true"] .option-dot {
  border-color: var(--gold);
}
.option[aria-checked="true"] .option-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--gold);
}
.modal-error {
  min-height: 20px;
  margin: -16px 0 16px;
  color: #b42318;
  font-size: 13.5px;
  font-weight: 500;
}
.modal-error:empty {
  margin: 0;
  min-height: 0;
}
.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}
.modal-actions .btn {
  min-width: 120px;
}
.modal .field input,
.modal .field textarea {
  font-size: 16px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  margin: 8px 0 12px;
}
.check-field input {
  margin-top: 3px;
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.thanks {
  text-align: center;
  padding: 20px 8px 12px;
}
.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 8px auto 22px;
  border-radius: 50%;
  background: #e8f8ee;
  color: var(--green);
  display: grid;
  place-items: center;
}
.thanks h2 {
  margin-bottom: 10px;
}
.thanks p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.step[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 860px) {
  .how-grid,
  .kost-layout,
  .about-layout,
  .cta-box,
  .footer-inner,
  .footer-meta {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    justify-content: start;
  }
  .about-photo {
    position: static;
    max-width: 420px;
  }
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    gap: 0;
  }
  body.nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }
  .nav-links .nav-cta {
    margin: 12px 0 0;
    width: 100%;
  }
  .wrap,
  .wrap-wide,
  .nav-inner,
  .footer-inner,
  .footer-bottom {
    width: calc(100% - 32px);
  }
  .hero-content {
    width: calc(100% - 32px);
    padding: 48px 0 64px;
  }
  .hero-kicker {
    letter-spacing: 0.08em;
    font-size: 11.5px;
  }
  .hero-media img {
    object-position: 58% 22%;
  }
  .hero-actions,
  .cta-actions,
  .modal-actions {
    flex-direction: column;
  }
  .hero-actions .btn,
  .cta-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 56px 0;
  }
  .modal {
    padding: 24px 18px 20px;
    border-radius: 12px;
  }
  .service-sub {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal.is-in,
  .service-card,
  .service-go svg,
  .btn {
    transition: none;
  }
}
