/* ═══════════════════════════════════════════
   CASA CALMA — GEDEELDE STYLESHEET v3
   Japandi Interieurdesign · Costa Blanca
═══════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────── */
:root {
  --w:    #faf8f5;
  --cr:   #f2ede4;
  --li:   #ece8df;
  --sa:   #e4dbd0;
  --ta:   #c2b6a5;
  --st:   #978b7f;
  --ba:   #68594d;
  --dk:   #282018;
  --serif:'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.25,.8,.25,1);
  --ease2:cubic-bezier(.22,.68,0,1.2);
  --max:  1240px;
}

/* ── DEMO BANNER ─────────────────────────── */
.demo-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  background: var(--dk);
  padding: .6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.demo-banner-text {
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--ta);
  text-align: center;
}
.demo-banner-text strong {
  color: var(--cr);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.demo-banner-link {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--w);
  border: 1px solid rgba(255,255,255,.25);
  padding: .3rem .9rem;
  white-space: nowrap;
  transition: all .3s;
  flex-shrink: 0;
}
.demo-banner-link:hover {
  background: var(--w);
  color: var(--dk);
  border-color: var(--w);
}

/* Banner + nav offset — set dynamically by JS */
body.has-demo-banner nav {
  top: var(--banner-h, 38px);
}
body.has-demo-banner .hero        { padding-top: var(--banner-h, 38px); }
body.has-demo-banner .page-hero   { padding-top: calc(var(--topbar-h, 110px) + 3rem); }
body.has-demo-banner .aanpak-hero { padding-top: var(--banner-h, 38px); }
body.has-demo-banner .proj-hero   { padding-top: var(--banner-h, 38px); }

@media (max-width: 768px) {
  .demo-banner { padding: .5rem 1rem; gap: .6rem; }
  .demo-banner-text { font-size: .62rem; }
}

/* ── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--dk);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ── CURSOR ──────────────────────────────── */
#cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--ba); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s;
  mix-blend-mode: multiply;
}
#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(104,89,77,.3); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .45s var(--ease);
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 44px; height: 44px;
  background: rgba(104,89,77,.1);
  mix-blend-mode: normal;
}

/* ── NAVIGATION ──────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2.5rem;
  background: rgba(40,32,24,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .45s var(--ease), box-shadow .45s;
}
nav.scrolled {
  background: rgba(250,248,245,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(104,89,77,.1);
}
.nav-logo {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  letter-spacing: .1em; color: var(--w); transition: color .4s;
}
nav.scrolled .nav-logo { color: var(--dk); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .72rem; font-weight: 400; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
  transition: color .3s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
nav.scrolled .nav-links a { color: var(--ba); }
nav.scrolled .nav-links a:hover { color: var(--dk); }
.nav-cta {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .65rem 1.5rem;
  border: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.85);
  transition: all .35s var(--ease); display: inline-block;
}
.nav-cta:hover { background: var(--w); color: var(--dk); border-color: var(--w); }
nav.scrolled .nav-cta { border-color: var(--ta); color: var(--ba); }
nav.scrolled .nav-cta:hover { background: var(--dk); color: var(--w); border-color: var(--dk); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; padding: 4px;
}
.burger span { display: block; width: 22px; height: 1px; background: var(--w); transition: all .3s; }
nav.scrolled .burger span { background: var(--dk); }

/* ── MOBILE MENU ─────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--dk); z-index: 9980;
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 300;
  color: var(--cr); letter-spacing: .05em; transition: color .25s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--ta); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 2.5rem;
  color: var(--st); font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; cursor: none; background: none; border: none;
  font-family: var(--sans);
}

/* ── MARQUEE ─────────────────────────────── */
.marquee-wrap { background: var(--dk); overflow: hidden; padding: .65rem 0; white-space: nowrap; }
.marquee-track { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-track span { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--st); padding: 0 2.2rem; }
.marquee-track span.d { color: rgba(151,139,127,.35); padding: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0;
  transform: scale(1.07); transition: transform 9s ease;
}
.hero-media.loaded { transform: scale(1); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(40,32,24,.1) 0%, rgba(40,32,24,.04) 40%, rgba(40,32,24,.68) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 2.5rem 5.5rem;
  max-width: var(--max); margin: 0 auto; width: 100%;
}
.hero-kicker {
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 1.3rem;
  opacity: 0; animation: riseUp .8s .25s var(--ease) both;
}
.hero-h1 {
  font-family: var(--serif); font-size: clamp(3rem,7.5vw,6.5rem);
  font-weight: 300; line-height: 1.04; color: var(--w);
  max-width: 720px; margin-bottom: 1.6rem;
  opacity: 0; animation: riseUp .9s .5s var(--ease) both;
}
.hero-h1 em { font-style: italic; }
.hero-sub {
  font-size: 1.05rem; font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,.72); max-width: 460px; margin-bottom: 2.8rem;
  opacity: 0; animation: riseUp .9s .72s var(--ease) both;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: riseUp .8s .92s var(--ease) both;
}
.hero-scroll-hint {
  position: absolute; right: 2.5rem; bottom: 3rem; z-index: 2;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: .6rem;
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
  opacity: 0; animation: riseUp .7s 1.2s var(--ease) both;
}
.hero-scroll-hint::before {
  content: ''; width: 1px; height: 0; background: rgba(255,255,255,.25);
  animation: growLine 1s 1.5s var(--ease) forwards;
}
@keyframes growLine { to { height: 60px; } }
@keyframes riseUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: .9rem 2.1rem; transition: all .35s var(--ease);
  cursor: none;
}
.btn svg { width: 13px; height: 13px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn-white  { background: var(--w); color: var(--dk); }
.btn-white:hover { background: var(--dk); color: var(--w); }
.btn-ghost  { border: 1px solid rgba(255,255,255,.45); color: var(--w); }
.btn-ghost:hover { background: var(--w); color: var(--dk); border-color: var(--w); }
.btn-dark   { background: var(--dk); color: var(--w); }
.btn-dark:hover { background: var(--ba); }
.btn-sand   { border: 1px solid var(--ta); color: var(--ba); }
.btn-sand:hover { background: var(--dk); color: var(--w); border-color: var(--dk); }
.btn-full   { width: 100%; justify-content: center; }

/* ── LAYOUT ──────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 2.5rem; }
.sec  { padding: 7rem 0; }
.sec-sm { padding: 4.5rem 0; }

/* ── TYPOGRAPHY ──────────────────────────── */
.eyebrow {
  display: block; font-size: .66rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--st); margin-bottom: 1.2rem;
}
.serif-xl {
  font-family: var(--serif); font-size: clamp(2rem,4.5vw,3.6rem);
  font-weight: 300; line-height: 1.18; color: var(--dk);
}
.serif-xl em { font-style: italic; }
.serif-lg {
  font-family: var(--serif); font-size: clamp(1.7rem,3.5vw,2.8rem);
  font-weight: 300; line-height: 1.2; color: var(--dk);
}
.serif-lg em { font-style: italic; }
.body-copy { font-size: .93rem; line-height: 1.88; font-weight: 300; color: var(--ba); }
.body-copy p { margin-bottom: 1rem; }
.body-copy p:last-child { margin-bottom: 0; }
.rule { width: 40px; height: 1px; background: var(--ta); margin: 1.8rem 0; }

/* ── FADE-IN ON SCROLL ───────────────────── */
.fi {
  opacity: 0; transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.fi.in { opacity: 1; transform: translateY(0); }
.fd1 { transition-delay: .1s; }
.fd2 { transition-delay: .2s; }
.fd3 { transition-delay: .3s; }
.fd4 { transition-delay: .4s; }
.fd5 { transition-delay: .5s; }

/* ── FOOTER ──────────────────────────────── */
footer { background: var(--dk); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--serif); font-size: 1.25rem;
  font-weight: 300; color: var(--cr); margin-bottom: .8rem;
}
.footer-tagline { font-size: .78rem; color: var(--st); line-height: 1.7; max-width: 255px; }
.footer-col-h { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--st); margin-bottom: 1rem; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: .45rem; }
.footer-list a { font-size: .78rem; color: rgba(194,182,165,.5); transition: color .25s; }
.footer-list a:hover { color: var(--cr); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: .68rem; color: rgba(151,139,127,.4); }
.footer-seo { font-size: .62rem; color: rgba(151,139,127,.28); line-height: 1.4; max-width: 580px; text-align: right; }

/* ── FORMS ───────────────────────────────── */
input, select, textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--cr); border: 1px solid transparent;
  border-bottom: 1px solid var(--sa);
  font-family: var(--sans); font-size: .85rem;
  font-weight: 300; color: var(--dk);
  outline: none; appearance: none; border-radius: 0;
  transition: all .25s;
}
input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--ba); background: var(--w);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23978b7f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem; cursor: none;
}
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fgroup { margin-bottom: 1.4rem; }
.flabel {
  display: block; font-size: .66rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--st); margin-bottom: .5rem; font-weight: 400;
}
.flabel span { color: var(--ta); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .sec { padding: 4.5rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-seo { text-align: left; }
  .hero-h1 { font-size: 2.8rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  button { cursor: pointer; }
  a { cursor: pointer; }
}
