/* ==========================================================================
   MJ VVS & Bygg AB – sidspecifika stilar för Om oss och Kontakt
   Laddas efter styles.css och bygger vidare på dess designvariabler.
   ========================================================================== */

/* ---- Om oss: hero + rubrik ---------------------------------------------- */
.hero--om .hero__media img { object-position: center 70%; }
.headline--om { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.headline--om .headline__text { width: 100%; max-width: 600px; justify-self: end; font-size: 16px; line-height: 1.6; }

/* ---- Om oss: Vår ambition ----------------------------------------------- */
.ambition__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ambition__text {
  max-width: 560px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey);
}
.ambition__media {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  background: #D9DEE3;
}
.ambition__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* ---- Om oss: Varför välja oss? (kort i statistikstil) ------------------- */
.fordelar { margin-top: 36px; }
.fordel__body { margin-top: auto; padding-top: 40px; }
.fordel__title {
  font-family: var(--font-head);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.fordel__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--grey); }

/* ---- Om oss: certifieringar -------------------------------------------- */
.cert__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cert {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.cert__logo {
  flex: 0 0 auto;
  width: 156px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.cert__logo img { width: 100%; border-radius: 10px; }
.cert__name {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.cert__desc { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--grey); }

/* ---- Om oss: team -------------------------------------------------------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.team {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.team__avatar { width: 56px; height: 56px; font-size: 18px; }
.team__body { margin-top: auto; padding-top: 40px; }
.team__name {
  font-family: var(--font-head);
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.team__role { margin-top: 6px; font-size: 15px; color: var(--grey); }

/* ---- Kontakt: sidhuvud (ljus rundad panel under sidhuvudet) ------------ */
.page-hero { padding-top: var(--gutter-wide); }
.page-hero__panel {
  padding: clamp(116px, 10vw, 150px) clamp(24px, 4.6vw, 64px) clamp(44px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(100deg, #EDF3F8 0%, #E6EEF5 60%, #E9F0F5 100%);
}
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 28px 48px;
  align-items: start;
}
.page-hero__text { width: 100%; max-width: 560px; justify-self: end; padding-top: 8px; font-size: 16px; line-height: 1.6; color: var(--grey); }

/* ---- Kontakt: uppgifter + formulär ------------------------------------- */
.kontakt { margin-top: clamp(48px, 6vw, 88px); }
.kontakt__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}
.info__list { display: grid; gap: 14px; }
.info {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.info__icon { flex: 0 0 auto; width: 48px; height: 48px; }
.info__icon svg { width: 20px; height: 20px; }
.info__body { min-width: 0; padding-top: 2px; }
.info__label { font-size: 13px; font-weight: 500; color: var(--grey); }
.info__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-head);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color var(--dur) var(--ease);
}
a.info__value:hover { color: var(--accent); }
.info__extra { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.info__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--dur) var(--ease);
}
.info__link:hover { color: var(--accent-dark); }
.info__link svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.info__hours { display: grid; gap: 4px; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink); }

.form-card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: #fff;
}
.form-card__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.form-card__lead { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--grey); }

.form { display: grid; gap: 18px; margin-top: 26px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--grey); }
.field__input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--grey-2); }
.field__input:hover { border-color: #D9D9DD; }
.field__input:focus,
.field__input:focus-visible {
  outline: none;
  border-color: var(--accent);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea.field__input { height: auto; min-height: 150px; padding: 14px 18px; line-height: 1.5; resize: vertical; }
.field.is-invalid .field__input { border-color: #D0452B; box-shadow: 0 0 0 4px rgba(208, 69, 43, .12); }
.field__error { display: none; font-size: 13px; line-height: 1.4; color: #B93A20; }
.field.is-invalid .field__error { display: block; }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.form__note { font-size: 14px; line-height: 1.5; color: var(--grey); }
.form__note a { font-weight: 600; color: var(--ink); transition: color var(--dur) var(--ease); }
.form__note a:hover { color: var(--accent); }
.form a[href^="tel:"] { white-space: nowrap; }
.form__status { border-radius: 18px; font-size: 15px; line-height: 1.55; } /* alltid renderad (live-region), tom = 0 px hög */
.form__status.is-error, .form__status.is-success { padding: 18px 22px; margin-bottom: 18px; }
.form__status.is-error { background: #FDECE8; color: #9C2E1A; }
.form__status.is-success { background: var(--accent-soft); color: var(--ink); }
.form__status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form__status p + p { margin-top: 8px; }

/* ---- Kontakt: smal jour-ruta ------------------------------------------- */
.jour {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 4.6vw, 56px);
  border-radius: var(--r-xl);
  background: var(--dark);
  color: #fff;
}
.jour__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.jour__text { max-width: 560px; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--dark-text); }

/* ==========================================================================
   Responsivt
   ========================================================================== */
@media (max-width: 960px) {
  .kontakt__grid { grid-template-columns: 1fr; }
  .page-hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .page-hero__text { max-width: 640px; justify-self: start; padding-top: 0; }
  .cert__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .headline--om { grid-template-columns: 1fr; }
  .headline--om .headline__text { max-width: none; justify-self: start; }
  .ambition__grid { grid-template-columns: 1fr; }
  .ambition__media { aspect-ratio: 4 / 3; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .team__grid { grid-template-columns: 1fr; }
  .team { min-height: 0; }
  .team__body { padding-top: 26px; }
  .cert { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 24px; }
  .cert__logo { width: 140px; }
  .info { padding: 20px; gap: 14px; }
  .form-card { padding: 22px 20px 24px; border-radius: var(--r-lg); }
  .form__actions .btn { width: 100%; justify-content: center; }
}

/* ---- Integritetspolicy: läsbar löptext ---------------------------------- */
.policy__body { max-width: 720px; }
.policy__date { font-size: 14px; color: var(--grey); }
.policy__body h2 {
  margin-top: 44px;
  font-family: var(--font-head);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.policy__body p, .policy__body ul { margin-top: 14px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.policy__body ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.policy__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.policy__body a:hover { color: var(--accent-dark); }

/* ---- 404 ----------------------------------------------------------------- */
.fel__knappar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn--ljus { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ljus:hover { background: #fff; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.policy__body .nowrap, .policy__body a[href^="tel:"] { white-space: nowrap; }
