/*
Theme Name: Atelier NIEN
Theme URI: https://ateliernien.nl
Author: Atelier NIEN
Description: Officieel thema voor Atelier NIEN — interieurontwerp studio
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: atelier-nien
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variabelen ──────────────────────────────────────────────────────────── */
:root {
  --bg:       #EAE0D5;
  --bg-cta:   #A89070;
  --bg-footer:#DDD3C4;
  --text:     #2B2420;
  --muted:    #8A7E75;
  --border:   #D0C4B8;
  --btn-bg:   #2B2420;
  --btn-txt:  #F5F0EB;
  --sand:     #D4C4A8;
  --white:    #F5F0EB;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', sans-serif;
}

/* ── Basis ───────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.75; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav ul li a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.main-nav ul li a:hover { opacity: 0.6; }
.main-nav ul li.current-menu-item a {
  opacity: 0.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.social-links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links a {
  display: flex;
  align-items: center;
  color: var(--text);
  transition: opacity .2s;
}
.social-links a:hover { opacity: 0.55; }
.btn-contact-header {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--btn-txt);
  background: var(--btn-bg);
  border-radius: 9999px;
  padding: 11px 24px;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-contact-header:hover { opacity: 0.8; }

/* ── Hamburger ───────────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile nav ──────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding-top: 80px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.mobile-nav.is-open { opacity: 1; pointer-events: all; }
.mobile-nav-list { list-style: none; padding: 0 32px; margin: 0; }
.mobile-nav-list li { border-bottom: 1px solid var(--border); }
.mobile-nav-list li a {
  display: block;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
  padding: 20px 0;
  transition: opacity .2s;
}
.mobile-nav-list li a:hover { opacity: 0.6; }
.mobile-nav-footer { padding: 32px 32px 48px; }
.mobile-social-links { display: flex; gap: 20px; margin-bottom: 24px; }
.mobile-social-links a { color: var(--text); opacity: 0.7; transition: opacity .2s; }
.mobile-social-links a:hover { opacity: 1; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-footer);
  padding: 72px 0 48px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
.footer-tagline { font-size: 13px; color: var(--muted); }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  padding: 13px 32px;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
}
.btn:hover { opacity: 0.85; }
.btn-dark  { background: var(--btn-bg); color: var(--btn-txt); }
.btn-sand  { background: var(--sand);   color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .header-right .main-nav { display: none; }
  .header-right .social-links { display: none; }
  .header-right .btn-contact-header { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .site-footer .container { grid-template-columns: 1fr; }
}

.footer-legal {
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 24px;
  font-size: 11px;
  opacity: 0.6;
}

.footer-legal a {
  margin: 0 10px;
  text-decoration: none;
  color: inherit;
}

.footer-legal a:hover {
  text-decoration: underline;
}