/* =========================
   EKG Websites - style.css
========================= */

:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.72);
  --text: #172033;
  --muted: #5f6b85;
  --line: rgba(23, 32, 51, 0.08);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius: 20px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 35%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 30%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding-left: 0;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

h3 {
  font-size: 1.2rem;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

section {
  padding: 5rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-tag,
.eyebrow {
  display: none;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
  background: rgba(245, 247, 251, 0.7);
  border-bottom: 1px solid rgba(23, 32, 51, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 32, 51, 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.nav-list a {
  display: inline-block;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.25s ease;
}

.nav-list a:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.nav-list a.active,
.nav-list a[aria-current="page"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.28);
  transition: 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: 0.25s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* HERO */

.hero {
  padding: 7rem 0 5rem;
}

.hero-content,
.page-hero .narrow,
.cta-inner {
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.page-hero {
  padding: 5rem 0 2rem;
}

.page-hero p {
  max-width: 680px;
  margin: 0 auto 1rem;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.trust-line {
  font-size: 0.95rem;
  color: var(--muted);
}

/* BUTTONS */

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
}

.button.secondary {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.button.secondary:hover {
  background: rgba(37, 99, 235, 0.08);
}

.button-light {
  background: #fff;
  color: var(--primary);
}

.button.large {
  padding: 1rem 1.7rem;
  font-size: 1rem;
}

/* KORT */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.designs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.design-card,
.info-card,
.pricing-card,
.form-section,
.design-content {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.design-card {
  overflow: hidden;
  transition: 0.3s ease;
}

.design-card:hover {
  transform: translateY(-6px);
}

.design-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 1.4rem;
}

.card-body p {
  margin-bottom: 1.2rem;
}

/* TRUST */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.5rem;
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 2rem;
  text-align: center;
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-card li {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.pricing-card li::before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--primary);
  font-weight: 700;
}

.pricing-card.popular {
  transform: translateY(-6px);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
}

.price {
  margin: 1rem 0;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card .button,
.pricing-card .button.secondary,
.pricing-card.popular .button,
.pricing-card.popular .button.secondary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.20);
}

.pricing-card .button:hover,
.pricing-card .button.secondary:hover,
.pricing-card.popular .button:hover,
.pricing-card.popular .button.secondary:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

/* CTA */

.cta-section {
  padding: 5rem 0;
}

.cta-inner {
  padding: 3rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.28);
}

.cta-inner h2,
.cta-inner p {
  color: #fff;
}

.cta-inner p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

/* FORMS */

.form-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  font: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

/* DESIGN SINGLE / CAROUSEL */

.design-single {
  padding: 5rem 0;
}

.design-single-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.design-carousel-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.design-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 1.5rem 4.5rem;
  border-radius: 24px;
  background: transparent;
}

.carousel-image-button {
  width: 100%;
  min-height: unset;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.carousel-image-button:hover {
  transform: none;
}

.carousel-image-button img {
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  min-height: unset;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

.carousel-counter {
  margin: 0.75rem 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.design-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.design-price {
  margin-bottom: 1.5rem;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: 100%;
}

.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 46px;
  height: 46px;
  min-height: unset;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  min-height: unset;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

.lightbox-arrow-left {
  left: -70px;
}

.lightbox-arrow-right {
  right: -70px;
}

body.lightbox-open {
  overflow: hidden;
}

/* FOOTER */

footer {
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(23, 32, 51, 0.06);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.footer-inner a {
  text-decoration: none;
  color: var(--muted);
}

.footer-inner a:hover {
  color: var(--primary);
}

/* FADE IN */

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 991px) {
  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .logo img {
    height: 48px;
    max-width: 180px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 50%;
    width: min(92%, 700px);
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
  }

  .site-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 24px;
  }

  .nav-list a {
    text-align: center;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-cta {
    display: none;
  }

  .design-single-grid {
    grid-template-columns: 1fr;
  }

  .design-carousel {
    min-height: 420px;
    padding: 1rem 4rem;
  }

  .carousel-image-button img {
    max-height: 400px;
  }
}

@media (max-width: 767px) {
  .designs-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 6rem;
  }

  .logo img {
    height: 42px;
    max-width: 150px;
  }

  .cta-inner,
  .pricing-card,
  .form-section,
  .design-content {
    padding: 1.5rem;
  }

  .design-carousel {
    min-height: 300px;
    padding: 1rem 3.25rem;
  }

  .carousel-image-button img {
    max-height: 280px;
  }

  .carousel-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox-close {
    top: -10px;
    right: -6px;
  }

  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  .lightbox-arrow-left {
    left: 10px;
  }

  .lightbox-arrow-right {
    right: 10px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}