/* ═══════════════════════════════════════════════
   BEAUTY BY IDA — Globalt design system
   Varm editorial · Lyst tema · Terrakotta/krem
   ═══════════════════════════════════════════════ */

:root {
  /* ─ Farger ─ */
  --cream:        #FAF8F5;
  --cream-alt:    #F2EAE0;
  --blush:        #FBF0EB;
  --rose:         #C67B5C;
  --rose-h:       #AD6044;
  --rose-light:   rgba(198,123,92,0.13);
  --rose-pale:    rgba(198,123,92,0.06);
  --gold:         #C9993A;

  /* ─ Tekst ─ */
  --text:         #1C1410;
  --text-muted:   #7A6355;
  --text-light:   #B8A898;

  /* ─ Grenser ─ */
  --border:       rgba(28,20,16,0.08);
  --border-warm:  rgba(198,123,92,0.2);

  /* ─ Skygger ─ */
  --shadow-sm:    0 2px 8px rgba(28,20,16,0.06);
  --shadow-md:    0 8px 32px rgba(28,20,16,0.09), 0 2px 8px rgba(28,20,16,0.05);
  --shadow-warm:  0 6px 28px rgba(198,123,92,0.18);

  /* ─ Radius ─ */
  --radius:       14px;
  --radius-lg:    22px;
  --radius-xl:    36px;

  /* ─ Alias ─ */
  --bg:           var(--cream);
  --bg-soft:      var(--cream-alt);
  --bg-gray:      var(--blush);
  --rose-muted:   var(--rose-light);
  --border-rose:  var(--border-warm);
  --shadow-rose:  var(--shadow-warm);
  --rose-hover:   var(--rose-h);
  --text-muted:   #7A6355;
  --rose-light:   rgba(198,123,92,0.13);
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }
a { color: inherit; }

/* ─── NAVBAR ─── */
nav {
  position: fixed; top: 14px;
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 40px); max-width: 1100px;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0.75rem 0.65rem 1.1rem;
  background: rgba(250,248,245,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(28,20,16,0.08);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(28,20,16,0.07);
  animation: fadeDown 0.5s ease both;
}
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.01em; transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 0.82rem; font-weight: 600;
  background: var(--text); color: var(--cream); border: none;
  padding: 0.55rem 1.35rem; border-radius: 100px;
  cursor: pointer; font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--rose); transform: translateY(-1px); }

/* ─── KNAPPER ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--rose); color: #fff; border: none;
  padding: 0.9rem 2.2rem; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(198,123,92,0.3);
}
.btn-primary:hover { background: var(--rose-h); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(198,123,92,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text); border: 1.5px solid var(--border-warm);
  padding: 0.9rem 2.2rem; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-pale); transform: translateY(-1px); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--text); color: var(--cream); border: none;
  padding: 0.9rem 2.2rem; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: var(--rose); transform: translateY(-1px); }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(250,248,245,0.12); color: var(--cream); border: 1.5px solid rgba(250,248,245,0.25);
  padding: 0.75rem 1.75rem; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-white:hover { background: rgba(250,248,245,0.18); transform: translateY(-1px); }

/* ─── SEKSJONSLAYOUT ─── */
.section { padding: 6rem 2rem; }
.section-inner { max-width: 1080px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--rose); margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 400;
  color: var(--text); margin-bottom: 0.875rem; line-height: 1.18;
}
.section-title em { font-style: italic; color: var(--rose); }
.section-sub { font-size: 0.925rem; line-height: 1.8; color: var(--text-muted); max-width: 480px; }

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  color: rgba(250,248,245,0.5);
  padding: 4.5rem 2rem 2.5rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250,248,245,0.07);
}
.footer-logo img {
  height: 56px; width: auto; margin-bottom: 1rem;
  opacity: 0.85;
}
.footer-tagline { font-size: 0.84rem; line-height: 1.8; max-width: 200px; }
.footer-col-title {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(250,248,245,0.8); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
  text-decoration: none; font-size: 0.875rem;
  color: rgba(250,248,245,0.4); transition: color 0.2s;
}
.footer-links a:hover { color: rgba(250,248,245,0.85); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: rgba(250,248,245,0.18);
}
.footer-credit {
  text-align: center; margin-top: 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid rgba(250,248,245,0.12);
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(250,248,245,0.45);
}
.footer-credit a {
  color: #FAF8F5; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(250,248,245,0.35);
  padding-bottom: 1px; transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover { color: #C67B5C; border-color: #C67B5C; }

/* ─── ANIMASJONER ─── */
@keyframes fadeDown {
  from { opacity: 0; transform: translate(-50%, -14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ─── HAMBURGER / MOBILMENY ─── */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Starter UNDER navbar — kan aldri overlappe med pill-nav */
.mobile-menu {
  position: fixed;
  top: 90px; left: 0; right: 0; bottom: 0;
  z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 2rem 3rem;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.mobile-nav {
  display: flex; flex-direction: column; align-items: stretch;
  width: 100%; max-width: 340px;
}
.mobile-nav-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 400;
  color: var(--text); transition: color 0.2s;
  /* Stagger inn */
  opacity: 0; transform: translateY(10px);
  transition: color 0.2s, opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open .mobile-nav-item { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mobile-nav-item:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-nav-item:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav-item:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav-item:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav-item span { flex: 1; min-width: 0; }
.mobile-nav-item:first-child { border-top: 1px solid var(--border); }
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--rose); }
.mobile-nav-item svg { flex-shrink: 0; color: var(--text-light); transition: color 0.2s, transform 0.2s; }
.mobile-nav-item:hover svg { color: var(--rose); transform: translateX(3px); }

/* ─── PAGE HERO (undersidesider) ─── */
.page-hero {
  padding: 9rem 2rem 5rem;
  text-align: center;
  position: relative; overflow: hidden;
  background: var(--cream-alt);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(198,123,92,0.06) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; margin-bottom: 1rem; }
.page-hero h1 em { font-style: italic; color: var(--rose); }
.page-hero p { font-size: 0.95rem; color: var(--text-muted); max-width: 400px; margin: 0 auto; line-height: 1.8; }

/* ─── NAV DROPDOWN ─── */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  cursor: pointer;
}
.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--text); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(250,248,245,0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(28,20,16,0.09);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(28,20,16,0.12);
  padding: 14px 0.5rem 0.5rem;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--cream-alt); color: var(--text); }
.nav-dropdown-menu a .dd-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--rose-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose); flex-shrink: 0;
}
.nav-dropdown-menu .dd-divider {
  height: 1px; background: var(--border); margin: 0.4rem 0.5rem;
}
.nav-dropdown-menu .dd-all {
  color: var(--rose); font-weight: 600;
}
.nav-dropdown-menu .dd-all:hover { background: var(--rose-pale); }

/* ─── RESPONSIV ─── */
@media (max-width: 900px) {
  nav {
    top: 0;
    left: 0 !important;
    right: 0;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
    border: none;
    border-bottom: 1px solid rgba(28,20,16,0.08);
    padding: 0.7rem 1.25rem;
    box-shadow: 0 2px 12px rgba(28,20,16,0.06);
    animation: none;
  }
  .mobile-menu { top: 72px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-dropdown-menu { display: none !important; }
  .section { padding: 4rem 1.25rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
