/* ===================================================
   CFD Sweden — Extra theme styles
   Kompletterar theme.json med layoutklasser och
   stilar som block-systemet inte kan hantera direkt
   =================================================== */

/* Typsnittet Inter laddas lokalt via theme.json (assets/fonts/inter/).
   Inga externa anrop — besökarnas IP skickas inte till tredje part. */

:root {
  --black:  #111;
  --white:  #fff;
  --paper:  #f5f3ef;
  --text:   #151515;
  --muted:  #4b4b4b;
  --orange: #f19d21;
  --coral:  #ff7866;
  --peach:  #ffc19f;
  --blue:   #85aab2;
  --line:   #151515;
}

/* --- Reset & bas --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--wp--preset--font-family--inter, Arial, Helvetica, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
}
.header-inner {
  display: grid;
  grid-template-columns: 290px 1fr;
  align-items: center;
  gap: 28px;
  min-height: 130px;
  padding: 18px clamp(24px, 4.4vw, 84px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}
.wp-block-site-title a,
.wp-block-site-title {
  color: var(--white) !important;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0;
}
.wp-block-site-title a::after {
  content: "";
  display: block;
  background: var(--orange);
  width: 88px;
  height: 3px;
  margin-top: 8px;
}
.header-menus {
  display: grid;
  justify-items: end;
  gap: 18px;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}
.quick-link .wp-block-button__link {
  border: 2px solid var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  background: transparent;
  border-radius: 0;
}
.quick-link.active .wp-block-button__link {
  background: var(--white);
  color: var(--black);
}
.wp-block-navigation a {
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 800;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.15s;
}
.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  border-bottom-color: var(--white);
}

/* --- Hero / Join-sektion --- */
.join-section {
  background:
    radial-gradient(circle at 20% 45%, #ffffff2e, transparent 24rem),
    linear-gradient(102deg, #ffc08d 0%, #ff736b 42%, #9caeb0 72%, #7ea6ad 100%);
  min-height: calc(100vh - 130px);
  padding: clamp(72px, 8vw, 110px) clamp(24px, 5vw, 96px);
}
.join-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(430px, 1fr);
  align-items: start;
  gap: clamp(34px, 5vw, 132px);
  width: min(1410px, 100%);
  margin: 0 auto;
}
.intro-column { padding-top: 4px; }
h1, h2, p { margin: 0; }
h1 {
  letter-spacing: -0.055em;
  max-width: 720px;
  font-size: clamp(3.5rem, 5.1vw, 6.05rem);
  font-weight: 900;
  line-height: 0.96;
}
.lead {
  max-width: 620px;
  color: var(--black);
  letter-spacing: -0.035em;
  margin-top: clamp(36px, 5vw, 58px);
  font-size: clamp(1.25rem, 1.75vw, 1.7rem);
  font-weight: 900;
  line-height: 1.05;
}

/* --- Form Panel --- */
.form-panel {
  background: var(--white);
  padding: clamp(28px, 3.4vw, 62px) clamp(24px, 3.4vw, 58px);
}
.form-panel h2 {
  max-width: 560px;
  color: var(--black);
  letter-spacing: -0.055em;
  text-align: center;
  margin: 0 auto 56px;
  font-size: clamp(2.1rem, 3.2vw, 3.3rem);
  font-weight: 900;
  line-height: 0.98;
}
/* Generisk formulärstil — gäller formulär från plugin som placeras i .form-panel */
.form-panel form {
  display: grid;
  gap: 30px;
}
.form-panel label { font-weight: 700; font-size: 0.9rem; color: #303030; }
.field-grid, .field-row {
  display: grid;
  gap: 28px 22px;
}
.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
  color: #303030;
  display: grid;
  gap: 8px;
  font-size: 1rem;
}
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.9rem; }
input, select, textarea {
  border: 2px solid var(--line);
  background: var(--white);
  width: 100%;
  color: var(--black);
  border-radius: 0;
  outline: none;
  min-height: 54px;
  padding: 10px 14px;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 138px;
}
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px #f19d2157;
}
.submit-button,
.form-panel button[type="submit"],
.form-panel input[type="submit"] {
  width: auto;
  border: 2px solid var(--black);
  background: var(--black);
  min-height: 58px;
  color: var(--white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  font-weight: 900;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.submit-button:hover,
.form-panel button[type="submit"]:hover,
.form-panel input[type="submit"]:hover {
  background: var(--white);
  color: var(--black);
}

/* --- Content / Info-sektion --- */
.content-section {
  background: var(--paper);
  padding: clamp(70px, 8vw, 120px) clamp(24px, 5vw, 96px);
}
.content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 100px);
  width: min(1180px, 100%);
  margin: 0 auto;
}
.text-block, .action-list {
  border-top: 3px solid var(--black);
  padding-top: 24px;
}
.text-block h2, .action-list h2 {
  letter-spacing: -0.055em;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 900;
  line-height: 0.98;
}
.text-block p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}
.cfd-action-list, .action-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cfd-action-list li, .action-list li {
  border: 2px solid var(--black);
  background: var(--white);
  padding: 16px 18px;
  font-weight: 800;
}

/* --- Subpage hero --- */
.subpage-hero {
  background:
    radial-gradient(circle at 14% 28%, #ffffff29, transparent 22rem),
    linear-gradient(102deg, #ffc08d 0%, #ff736b 42%, #9caeb0 72%, #7ea6ad 100%);
  padding: clamp(70px, 8vw, 118px) clamp(24px, 5vw, 96px);
}
.subpage-hero-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}
.subpage-eyebrow {
  color: var(--black);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

/* --- Dark CTA band --- */
.resource-band, .subpage-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(44px, 6vw, 78px) clamp(24px, 5vw, 96px);
  background: var(--black);
  color: var(--white);
}

/* --- Footer --- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 48px clamp(24px, 5vw, 96px);
}
.site-footer .wp-block-site-title a,
.site-footer .wp-block-site-title {
  color: var(--white) !important;
}
.site-footer .wp-block-navigation a {
  color: rgba(255,255,255,0.7);
  border-bottom-color: transparent;
  font-size: 0.9rem;
}
.site-footer .wp-block-navigation a:hover {
  color: var(--white);
}

/* --- Responsiv --- */
@media (max-width: 1240px) {
  .header-inner { grid-template-columns: 1fr; }
  .header-menus, .quick-links, .wp-block-navigation {
    justify-content: flex-start;
    justify-items: start;
  }
}
@media (max-width: 920px) {
  .join-inner { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: auto; padding: 18px; }
  .wp-block-site-logo img { width: 64px; }
  .wp-block-site-title { font-size: 1rem !important; }
  .quick-links { gap: 10px; }
  .quick-link .wp-block-button__link {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.75rem;
  }
  .wp-block-navigation { display: none; } /* mobil: dold tills hamburgermeny byggs */
  .join-section { min-height: 0; padding: 46px 18px; }
  h1 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .lead { margin-top: 28px; font-size: 1.25rem; }
  .form-panel { padding: 28px 18px; }
  .form-panel h2 { margin-bottom: 34px; font-size: 2.35rem; }
  .field-grid { grid-template-columns: 1fr; }
  .content-inner { grid-template-columns: 1fr; }
  .resource-band, .subpage-cta { grid-template-columns: 1fr; }
}
