/* ==========================================================================
   Svensk Installationspartner – static stylesheet
   Ported from the Tailwind/shadcn theme in SIP-website (src/index.css,
   tailwind.config.ts). Values are kept 1:1 with the original utilities.
   ========================================================================== */

:root {
  --background: hsl(210 20% 98%);
  --foreground: hsl(213 32% 14%);

  --card: hsl(0 0% 100%);
  --card-foreground: hsl(213 32% 14%);

  --primary: hsl(213 52% 23%);
  --primary-foreground: hsl(210 40% 98%);

  --muted: hsl(210 25% 95%);
  --muted-foreground: hsl(215 16% 47%);

  --accent: hsl(217 91% 60%);
  --accent-foreground: hsl(0 0% 100%);

  --border: hsl(214 32% 91%);
  --border-60: hsl(214 32% 91% / 0.6);

  --radius: 0.75rem;
  --radius-lg: var(--radius);
  --radius-md: calc(var(--radius) - 2px);
  --radius-sm: calc(var(--radius) - 4px);

  --hero-gradient: linear-gradient(135deg, hsl(213 52% 23%) 0%, hsl(217 60% 35%) 50%, hsl(217 91% 60%) 100%);
  --section-alt: hsl(210 25% 97%);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* --------------------------------------------------------------------------
   Base / reset (subset of Tailwind preflight)
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: var(--border);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

p, ol, ul {
  margin: 0;
}

ol, ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg {
  display: block;
  vertical-align: middle;
}

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

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1400px) { .container { max-width: 1400px; } }

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 768px) {
  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }
}

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

.section-header {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
  text-align: center;
}

.section-header h2,
.process-wrap h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
@media (min-width: 768px) {
  .section-header h2,
  .process-wrap h2 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Buttons (shadcn Button: default / sm / lg variants)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  background-color: var(--primary);
  color: var(--primary-foreground);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  height: 2.5rem;
  padding: 0.5rem 1rem;
}
.btn:hover {
  background-color: hsl(213 52% 23% / 0.9);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--accent);
}
.btn svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-sm {
  height: 2.25rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.btn-lg {
  height: 2.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.btn-accent:hover {
  background-color: hsl(217 91% 60% / 0.9);
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  margin-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom-width: 1px;
  background-color: hsl(0 0% 100% / 0.95);
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .navbar {
    background-color: hsl(0 0% 100% / 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}

.navbar-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
}
.navbar-logo img {
  height: 2rem;
  max-width: 180px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .navbar-logo img {
    height: 2.5rem;
    max-width: 240px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}
.nav-desktop > a:not(.btn) {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-desktop > a:not(.btn):hover {
  color: var(--primary);
}

/* Mobile toggle (checkbox hack – no JS) */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  color: var(--foreground);
  cursor: pointer;
}
@media (min-width: 768px) {
  .nav-toggle-btn {
    display: none;
  }
}
.nav-toggle-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.nav-toggle-btn .icon-x {
  display: none;
}
.nav-toggle:checked ~ .navbar-inner .icon-menu {
  display: none;
}
.nav-toggle:checked ~ .navbar-inner .icon-x {
  display: block;
}
.nav-toggle:focus-visible ~ .navbar-inner .nav-toggle-btn {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-mobile {
  display: none;
  border-top-width: 1px;
  background-color: var(--card);
  padding: 0 1rem 1rem;
}
.nav-toggle:checked ~ .nav-mobile {
  display: block;
}
@media (min-width: 768px) {
  .nav-toggle:checked ~ .nav-mobile {
    display: none;
  }
}
.nav-mobile > a:not(.btn) {
  display: block;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-mobile > a:not(.btn):hover {
  color: var(--primary);
}
.nav-mobile > .btn {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: var(--hero-gradient);
}
@media (min-width: 768px) {
  .hero {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

.hero-circle {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
}
.hero-circle-1 {
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
  background-color: hsl(217 91% 60% / 0.2);
  filter: blur(64px);
}
.hero-circle-2 {
  left: -6rem;
  bottom: -6rem;
  width: 18rem;
  height: 18rem;
  background-color: hsl(217 91% 60% / 0.1);
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary-foreground);
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3.75rem; }
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: hsl(210 40% 98% / 0.8);
}
@media (min-width: 768px) {
  .hero p {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Cards (shadcn Card)
   -------------------------------------------------------------------------- */

.card {
  border-radius: var(--radius-lg);
  border-width: 1px;
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}
.card-header > * + * {
  margin-top: 0.375rem;
}

.card-title {
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.card-content {
  padding: 0 1.5rem 1.5rem;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.service-card {
  border-color: var(--border-60);
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-icon {
  margin-bottom: 0.75rem;
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: hsl(217 91% 60% / 0.1);
  color: var(--accent);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.service-card:hover .service-icon {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.service-card .card-content p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.process-wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 48rem;
  text-align: center;
}

.process-icon {
  margin-bottom: 1.25rem;
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-lg);
}
.process-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.process-intro {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted-foreground);
}
.process-intro .strong {
  font-weight: 600;
  color: var(--foreground);
}

.partners {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.partner-link {
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-color: var(--border-60);
  background-color: var(--card);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.partner-link:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.steps-wrap {
  margin-top: 4rem;
  text-align: left;
}

.steps-wrap h3 {
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--foreground);
}

.steps {
  margin-top: 2rem;
}
.steps > li + li {
  margin-top: 1rem;
}
.steps > li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-color: var(--border-60);
  background-color: var(--card);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.steps > li p {
  color: var(--foreground);
}

.step-number {
  display: flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--accent);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: var(--accent-foreground);
}

.payment-box {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-color: var(--border-60);
  background-color: var(--card);
  padding: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.payment-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.payment-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.payment-box h4 {
  font-weight: 600;
  color: var(--foreground);
}
.payment-box p {
  margin-top: 0.25rem;
  color: var(--muted-foreground);
}

/* --------------------------------------------------------------------------
   Brands
   -------------------------------------------------------------------------- */

.brands {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .brands { gap: 3.5rem; }
}

.brand {
  display: flex;
  width: 10rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-color: var(--border-60);
  background-color: var(--card);
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--muted-foreground);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.brand:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   FAQ (native <details> accordion, single-open via name="faq")
   -------------------------------------------------------------------------- */

.faq {
  margin: 3.5rem auto 0;
  max-width: 48rem;
  width: 100%;
}

.faq-item {
  border-bottom-width: 1px;
}

.faq-item summary {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  list-style: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::marker {
  content: "";
}
.faq-item summary:hover {
  text-decoration: underline;
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  overflow: hidden;
  padding-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
}

.faq-content a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq-content a:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  margin: 3.5rem auto 0;
  max-width: 48rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-item {
  width: 100%; /* full width on phones; content-sized from 640px up */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-radius: var(--radius-lg);
  border-width: 1px;
  border-color: var(--border-60);
  background-color: var(--card);
  padding: 1.5rem;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-item:hover {
  box-shadow: var(--shadow-md);
}
@media (min-width: 480px) {
  .contact-item { flex-direction: row; }
}
@media (min-width: 640px) {
  .contact-item { width: auto; }
}

.contact-icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: hsl(217 91% 60% / 0.1);
  color: var(--accent);
}
.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.contact-value {
  font-size: 0.875rem;
  line-height: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
@media (min-width: 480px) {
  .contact-value { font-size: 1rem; }
}
.contact-value:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top-width: 1px;
  background-color: var(--primary);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  color: var(--primary-foreground);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.footer-tagline {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(210 40% 98% / 0.7);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(210 40% 98% / 0.7);
}
.footer-nav a {
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-nav a:hover {
  color: var(--primary-foreground);
}

.footer-bottom {
  margin-top: 2rem;
  border-top-width: 1px;
  border-color: hsl(210 40% 98% / 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(210 40% 98% / 0.5);
}
