/* hometronic.nl — clean modern journal redesign */
:root {
  --bg: #eef2f5;
  --surface: #ffffff;
  --text: #1a2330;
  --muted: #5a6a7a;
  --accent: #c45a1a;
  --accent-dark: #953f0f;
  --accent-soft: rgba(196, 90, 26, 0.1);
  --line: #d4dde6;
  --hero-from: #1a2a38;
  --hero-to: #2f4a5c;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(26, 35, 48, 0.07);
  --shadow-hover: 0 14px 36px rgba(26, 35, 48, 0.12);
  --content: 720px;
  --grid: 1180px;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 0% -10%, rgba(196, 90, 26, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 0%, rgba(26, 42, 56, 0.07), transparent 45%),
    linear-gradient(180deg, #e4eaef 0%, var(--bg) 28%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: min(100% - 2rem, var(--grid));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--content));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 242, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--hero-from);
}

.brand__tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list > li > a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-list .submenu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  z-index: 50;
}

.nav-list > li:hover > .submenu,
.nav-list > li:focus-within > .submenu {
  display: block;
}

.submenu a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
}

.submenu a:hover,
.submenu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.header-util {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 0.5rem;
}

.header-util a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.header-util a:hover,
.header-util a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.site-content {
  flex: 1;
  padding: 1.75rem 0 3.5rem;
}

.page-hero {
  margin-bottom: 1.75rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: #fff;
}

.page-hero p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-display);
  font-weight: 400;
}

.page-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn--outline {
  background: var(--surface);
  color: var(--accent-dark);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem;
  transition: transform var(--transition), box-shadow var(--transition);
  min-width: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card h2,
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--hero-from);
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.card .card-cta {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

.prose {
  max-width: var(--content);
  min-width: 0;
}

.prose--wide {
  max-width: none;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--hero-from);
}

.prose h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.7rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.55rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose img {
  border-radius: 8px;
  margin: 1rem 0;
}

.prose .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-dark);
}

.prose .note {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

.doc-links {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.doc-links a {
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
}

.doc-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.subnav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pager a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.home-media {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.home-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-from);
  margin: 0 0 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #e7edf2;
  padding: 2.25rem 0 1.75rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--hero-from);
}

.site-footer p,
.site-footer li {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-footer a:hover {
  color: var(--accent-dark);
}

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 32rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.gallery {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-media,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .layout--with-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
  }

  .nav-list .submenu {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0.15rem 0 0.35rem 0.75rem;
    min-width: 0;
  }

  .header-util {
    display: none;
  }

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

  .page-hero {
    padding: 1.35rem 1.15rem;
  }
}
