/*
Theme Name: Rörexperten Modern
Theme URI: https://rorexperten.se/
Author: Rörexperten Sverige AB
Description: Ett lätt WordPress-tema för Rörexperten Sverige AB med modern VVS-startsida.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: rorexperten
*/

:root {
  --rx-ink: #102235;
  --rx-muted: #5c6b79;
  --rx-line: #dbe3ea;
  --rx-surface: #f4f7f9;
  --rx-white: #ffffff;
  --rx-blue: #0e6eb8;
  --rx-blue-dark: #084b80;
  --rx-copper: #c96f2d;
  --rx-green: #2f8f72;
  --rx-shadow: 0 16px 40px rgba(16, 34, 53, 0.12);
  --rx-radius: 8px;
  --rx-max: 1180px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rx-ink);
  background: var(--rx-white);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 32px), var(--rx-max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--rx-ink);
  color: var(--rx-white);
}

.skip-link:focus {
  left: 12px;
}

.topbar {
  background: var(--rx-ink);
  color: var(--rx-white);
  font-size: 0.9rem;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar a {
  color: var(--rx-white);
  text-decoration: none;
  font-weight: 650;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 227, 234, 0.85);
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rx-blue), var(--rx-green));
  color: var(--rx-white);
  font-weight: 900;
  letter-spacing: 0;
}

.brand__name {
  display: block;
  color: var(--rx-ink);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand__tagline {
  display: block;
  margin-top: 3px;
  color: var(--rx-muted);
  font-size: 0.82rem;
}

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

.nav a {
  color: var(--rx-ink);
  text-decoration: none;
  font-weight: 750;
  font-size: 0.96rem;
}

.nav a:hover {
  color: var(--rx-blue);
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--rx-radius);
  border: 1px solid transparent;
  background: var(--rx-blue);
  color: var(--rx-white);
  text-decoration: none;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 8px 22px rgba(14, 110, 184, 0.18);
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--rx-blue-dark);
}

.site-header .nav .button {
  min-height: 46px;
  padding: 12px 28px;
  border-radius: 40px;
  background: #e5322a;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(229, 50, 42, 0.22);
}

.site-header .nav .button:hover {
  background: #c92520;
  color: #ffffff;
}

.button--light {
  background: var(--rx-white);
  color: var(--rx-blue-dark);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.button--outline {
  background: transparent;
  color: var(--rx-blue-dark);
  border-color: var(--rx-line);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: var(--rx-white);
  color: var(--rx-ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  color: var(--rx-white);
  background:
    linear-gradient(90deg, rgba(10, 29, 48, 0.92), rgba(10, 29, 48, 0.64) 58%, rgba(10, 29, 48, 0.24)),
    url("assets/img/vvs-hero.svg") center/cover no-repeat;
}

.hero__inner {
  min-height: 690px;
  display: grid;
  align-items: center;
  padding: 88px 0 120px;
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rx-copper);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero__trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(50%);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: var(--rx-line);
  box-shadow: var(--rx-shadow);
}

.trust-item {
  min-height: 142px;
  padding: 28px;
  background: var(--rx-white);
  color: var(--rx-ink);
}

.trust-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.1rem;
}

.trust-item span {
  color: var(--rx-muted);
}

.section {
  padding: 96px 0;
}

.section--after-hero {
  padding-top: 142px;
}

.section--soft {
  background: var(--rx-surface);
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section__header p {
  margin: 14px 0 0;
  color: var(--rx-muted);
  font-size: 1.08rem;
}

.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.intro__media {
  border-radius: var(--rx-radius);
  overflow: hidden;
  box-shadow: var(--rx-shadow);
}

.intro__media img {
  width: 100%;
}

.check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rx-green);
  box-shadow: inset 0 0 0 4px var(--rx-white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: var(--rx-white);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: var(--rx-radius);
  background: #e9f3fb;
  color: var(--rx-blue-dark);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--rx-muted);
}

.cta-band {
  color: var(--rx-white);
  background: linear-gradient(135deg, var(--rx-blue-dark), var(--rx-blue));
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.cta-band p {
  max-width: 640px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.contact-card,
.form-card {
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: var(--rx-white);
  box-shadow: var(--rx-shadow);
}

.contact-card {
  padding: 30px;
}

.contact-card h3,
.form-card h3 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.contact-list {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list span {
  display: block;
  color: var(--rx-muted);
  font-size: 0.92rem;
}

.contact-list a {
  color: var(--rx-blue-dark);
  font-weight: 850;
  text-decoration: none;
}

.form-card {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  color: var(--rx-ink);
  background: var(--rx-white);
  font: inherit;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--rx-ink);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--rx-white);
  text-decoration: none;
}

.page-content {
  padding: 72px 0;
}

.elementor-page-content {
  width: 100%;
  overflow: hidden;
}

.rx-elementor-entry {
  margin: 0;
}

.rx-elementor-entry > .elementor {
  width: 100%;
}

.rx-elementor-canvas {
  background: var(--rx-white);
}

.elementor-page .elementor-widget-icon-box,
.elementor-page .elementor-widget-html form {
  border-radius: var(--rx-radius);
  background: var(--rx-white);
  box-shadow: 0 14px 34px rgba(16, 34, 53, 0.1);
}

.elementor-page .elementor-widget-icon-box {
  min-height: 340px;
  padding: 28px;
  border: 1px solid var(--rx-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-page .elementor-widget-icon-box .elementor-widget-container {
  width: 100%;
}

.elementor-page .elementor-icon-box-title {
  margin-bottom: 8px;
  color: var(--rx-ink);
  font-weight: 850;
}

.elementor-page .elementor-icon-box-description {
  color: var(--rx-muted);
}

.elementor-page .rx-contact-section .elementor-widget-html form {
  padding: 28px;
  border: 1px solid var(--rx-line);
}

.elementor-page .rx-elementor-lead-form {
  padding: 28px;
  border: 1px solid var(--rx-line);
  border-radius: var(--rx-radius);
  background: var(--rx-white);
  box-shadow: 0 14px 34px rgba(16, 34, 53, 0.1);
}

.elementor-page .rx-elementor-lead-form .elementor-field {
  border-color: var(--rx-line);
  border-radius: var(--rx-radius);
}

.elementor-page .rx-elementor-lead-form .elementor-button {
  min-height: 50px;
  border-radius: 40px;
  background: #e5322a;
  color: #ffffff;
  font-weight: 800;
}

.elementor-page .rx-elementor-lead-form .elementor-button:hover {
  background: #c92520;
}

.elementor-page .rx-hero-primary,
.elementor-page .rx-hero-secondary {
  display: inline-block;
  width: auto;
  max-width: 100%;
  vertical-align: top;
}

.elementor-page .rx-hero-primary .elementor-button,
.elementor-page .rx-hero-secondary .elementor-button {
  min-width: max-content;
  padding-right: 28px;
  padding-left: 28px;
  white-space: nowrap;
}

.elementor-page .rx-hero-secondary {
  margin-left: 12px;
}

@media (max-width: 620px) {
  .elementor-page .rx-hero-primary,
  .elementor-page .rx-hero-secondary {
    display: block;
    margin-left: 0;
  }

  .elementor-page .rx-hero-primary .elementor-button,
  .elementor-page .rx-hero-secondary .elementor-button {
    width: 100%;
    min-width: 0;
  }
}

.page-content :where(h1, h2, h3) {
  line-height: 1.12;
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .topbar__inner {
    justify-content: center;
  }

  .topbar__note {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 124px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--rx-line);
    border-radius: var(--rx-radius);
    background: var(--rx-white);
    box-shadow: var(--rx-shadow);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a,
  .nav .button {
    width: 100%;
  }

  .hero__inner {
    min-height: 620px;
    padding-top: 72px;
  }

  .trust-grid,
  .intro,
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__trust {
    position: static;
    transform: none;
    padding-bottom: 22px;
  }

  .section--after-hero {
    padding-top: 74px;
  }

  .cta-band__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 24px), var(--rx-max));
  }

  .site-header__inner {
    min-height: 72px;
  }

  .brand__tagline {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(10, 29, 48, 0.94), rgba(10, 29, 48, 0.68)),
      url("assets/img/vvs-hero.svg") center/cover no-repeat;
  }

  .hero__inner {
    min-height: auto;
    padding: 56px 0 34px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero p {
    font-size: 1.04rem;
  }

  .hero__actions,
  .topbar__links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .topbar__links {
    gap: 2px;
    padding: 8px 0;
    text-align: center;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .section--after-hero {
    padding-top: 58px;
  }

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