/* =========================================================
   SVIS Städ & Fönsterputs — stylesheet
   Sister site to svisservice.se, deliberately different in
   register: soft and rounded for a home-services brand, vs.
   the sharp/technical treatment over there. Same discipline
   though — system fonts only, no third-party requests.
   ========================================================= */

:root {
  /* Blue is inherited from their existing brand (site header/
     footer background, Facebook/Instagram presence) rather than
     invented from scratch — a rebrand of a business that already
     has recognition should keep the colour people know. */
  --blue: #2a66a1;
  --blue-deep: #163a5c;
  --blue-bright: #164eef;
  --blue-tint: #eaf1f8;

  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --ink: #16202b;
  --ink-soft: #55697a;
  --line: #e1e8ef;
  --line-strong: #c3d1de;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1160px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 12px 28px -14px rgba(22, 58, 92, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--blue-tint);
  color: var(--blue);
  padding: 0.4em 0.95em;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

section.alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 200;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { left: 0; top: 0; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

/* =========================
   Header
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .brand img { height: 30px; }
}

.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.main-nav ul { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }

.main-nav a {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.main-nav a:hover, .main-nav a:focus-visible {
  color: var(--blue);
  border-color: var(--blue-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.header-call {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.lang-switch { position: relative; flex: none; }

.lang-switch button {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45em 0.85em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.lang-switch button:hover { border-color: var(--blue); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  min-width: 170px;
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
}

.lang-menu[data-open="true"] { display: block; }

.lang-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 0;
  background: none;
  padding: 0.65em 0.9em;
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
}

.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--bg-alt); }
.lang-menu button[aria-checked="true"] { color: var(--blue); font-weight: 600; }
.lang-menu .lang-code { color: var(--ink-soft); font-size: 0.78rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 8px;
  margin-inline: -8px 0;
}

.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* =========================
   Buttons
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 0.55em 1em; font-size: 0.85rem; }

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

/* =========================
   Hero
   ========================= */

.hero { padding-block: clamp(3rem, 9vw, 5.5rem) clamp(3rem, 7vw, 4.5rem); }

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  max-width: 17ch;
}

.hero-sub {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-figure img { height:auto; border-radius: var(--radius); }

/* =========================
   Facts strip (About)
   ========================= */

.about-body { font-size: 1.06rem; color: var(--ink-soft); max-width: 66ch; }

.fact-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact { background: #fff; padding: 1.3rem 1.4rem; }

.fact-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  display: block;
}

.fact-value { font-size: 1.02rem; font-weight: 600; }

/* =========================
   Services
   ========================= */

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

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card figure {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-tint);
  border-radius:24px;
}

.service-card img { width: 100%; height: 100%; object-fit: cover; }

.service-card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.service-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; }

.service-grid .service-card:nth-child(3),
.service-grid .service-card:nth-child(4) {
  grid-column: span 1;
}

@media (min-width: 981px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .container .service-grid .service-card { grid-column: span 2; }
  /*
  .service-grid .service-card:nth-child(3) { grid-column: 2 / span 2; }
  .service-grid .service-card:nth-child(4) { grid-column: 4 / span 2; }
  */
}

/* =========================
   Mattrengöring (carpet-care feature section)
   ========================= */

.carpet-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.carpet-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carpet-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 980px) {
  /* Image goes BELOW the copy on small screens, not above — unlike
     .hero-figure, this one gets no order:-1. The hero leads with its
     image because that's the first thing on the page; here the reader
     has already arrived mid-pitch, so the explanation comes first and
     the product photo follows as confirmation. */
  .carpet-top { grid-template-columns: 1fr; }
}

.feature-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.feature-group h3 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  color: var(--blue-deep);
}

.feature-list { display: flex; flex-direction: column; gap: 1.1rem; }

.feature-item {
  padding-left: 1rem;
  border-left: 3px solid var(--blue-tint);
}

.feature-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

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

.perfect-for {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.perfect-for-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.55em 1.1em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.perfect-for-item .icon { color: var(--blue); }

.carpet-cta { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.carpet-cta .hero-actions { margin-top: 1.25rem; }

@media (max-width: 980px) {
  .feature-groups { grid-template-columns: 1fr; }
}

/* =========================
   Contact
   ========================= */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.contact-body { color: var(--ink-soft); font-size: 1.08rem; max-width: 52ch; margin-bottom: 1.75rem; }

.contact-links { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.5rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  width: fit-content;
}

.contact-link .icon { color: var(--blue); }
.contact-link:hover { color: var(--blue); }

.social-links { display: flex; gap: 0.75rem; }

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-links a:hover { background: var(--blue); color: #fff; }

.contact-panel {
  background: var(--blue-tint);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.25rem);
}

.contact-panel h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: var(--blue-deep); }
.contact-panel p { color: var(--ink-soft); }
.contact-panel p + p { margin-top: 0.85rem; }

/* =========================
   Footer
   ========================= */

.site-footer { background: var(--blue-deep); color: #cddaea; }

.footer-main {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  margin-bottom: 0.9rem;
  text-decoration: none;
  font-weight: 700;
}

.footer-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: #9fb7d1;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(159, 183, 209, 0.35);
  padding-bottom: 1px;
  width: fit-content;
  margin-bottom: 0.9rem;
}

.footer-parent:hover { color: #fff; border-color: #fff; }

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 600;
  color: #9fb7d1;
  letter-spacing: 0.03em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { text-decoration: none; color: #dbe6f2; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }

.footer-legal p { font-size: 0.88rem; color: #9fb7d1; margin-bottom: 0.4rem; max-width: 42ch; }

.footer-bottom {
  border-top: 1px solid rgba(159, 183, 209, 0.2);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8ba4c1;
}

.page-weight { display: inline-flex; align-items: center; gap: 0.5em; }
.page-weight .dot { width: 6px; height: 6px; border-radius: 50%; background: #4fd18a; flex: none; }

/* =========================
   Sticky mobile call bar
   ========================= */

.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 0.7rem clamp(1rem, 4vw, 1.5rem);
  box-shadow: 0 -8px 20px -12px rgba(22, 58, 92, 0.25);
}

.mobile-call-bar .btn { width: 100%; justify-content: center; }

@media (max-width: 720px) {
  .mobile-call-bar { display: block; }
  body { padding-bottom: 76px; }
}

/* =========================
   Reveal / motion
   ========================= */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .main-nav ul { display: none; }
  .header-call { display: none; }
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .main-nav ul { display: flex; flex-direction: column; gap: 1rem; }

  .site-header.is-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header.is-open .main-nav ul { display: flex; }

  .service-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
