/*
Theme Name: RUIG Clean
Theme URI: https://ruigmeubels.nl
Author: Codex voor RUIG
Description: Schoon RUIG theme zonder oude page-builder header/footer.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: ruig-clean
*/

:root {
  --ruig-ink: #24201c;
  --ruig-muted: #706860;
  --ruig-line: #ded8d0;
  --ruig-paper: #fbfaf7;
  --ruig-white: #ffffff;
  --ruig-accent: #8f5f4d;
  --ruig-accent-dark: #604236;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ruig-paper);
  color: var(--ruig-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.ruig-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(36, 32, 28, 0.1);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.admin-bar .ruig-site-header {
  top: 32px;
}

.ruig-site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ruig-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0;
}

.ruig-brand__mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ruig-accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ruig-accent);
  font-size: 0.85rem;
}

.ruig-brand__text {
  display: grid;
  line-height: 1.05;
}

.ruig-brand__text small {
  color: var(--ruig-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 42px;
}

.ruig-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
}

.ruig-nav .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ruig-nav a {
  text-decoration: none;
  color: var(--ruig-muted);
}

.ruig-nav a:hover,
.ruig-nav .current-menu-item > a {
  color: var(--ruig-ink);
}

.ruig-nav__cart {
  border: 1px solid var(--ruig-line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--ruig-white);
}

.ruig-main {
  min-height: 70vh;
  background: var(--ruig-paper);
}

.ruig-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
}

.ruig-site-footer {
  border-top: 1px solid var(--ruig-line);
  background: #f1eee8;
}

.ruig-site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--ruig-muted);
  font-size: 0.9rem;
}

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

.ruig-site-footer a:hover {
  color: var(--ruig-ink);
}

@media (max-width: 760px) {
  .admin-bar .ruig-site-header {
    top: 46px;
  }

  .ruig-site-header__inner {
    min-height: 68px;
  }

  .ruig-nav {
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .ruig-brand__text small {
    display: none;
  }

  .ruig-site-footer__inner {
    display: grid;
  }
}
