/* style.css — forsiden til Nadia Mørch */

:root {
  --rose: #c48ea1;
  --rose-dark: #a8768a;
  --rose-soft: #efdde3;
  --cream: #f6f0e6;
  --sand: #efe5da;
  --ink: #3a2028;
  --muted: #7a5c66;
  --border: #e6d6d9;
  --white: #fffdfa;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space: clamp(4rem, 10vw, 8rem);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.eyebrow {
  display: block;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1rem;
}
.muted { color: var(--muted); }

/* --- Knapper --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.75rem; border-radius: 999px;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: 0.55rem 1.25rem; font-size: 0.875rem; }
.link-arrow {
  font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.15rem;
}
.link-arrow:hover { color: var(--rose-dark); }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 240, 230, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.wordmark {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-size: 1.15rem;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.wordmark img { width: auto; height: 40px; }
@media (max-width: 380px) { .wordmark { font-size: 1rem; letter-spacing: 0.16em; gap: 0.5rem; } .wordmark img { height: 34px; } }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-size: 0.9rem; text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* --- Hero --- */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--space); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-logo { margin: 0 0 1.5rem; line-height: 0; }
.hero-logo img { width: clamp(180px, 19vw, 260px); height: auto; }
.hero .eyebrow { margin-bottom: 0; }
.hero-copy { margin-top: 1.75rem; }
.hero .lead { max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2.25rem; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.hero-media { border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
/* Mobil: logo øverst (centreret), så billedet, så teksten */
@media (max-width: 899px) {
  .hero-text { display: contents; }
  .hero-brand { order: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-logo { margin-bottom: 1rem; }
  .hero-logo img { width: 170px; }
  .hero-media { order: 1; }
  .hero-copy { order: 2; margin-top: 0; }
  .hero-media img { aspect-ratio: 1; object-position: 50% 45%; }
}

/* Navnet i headeren vises først, når man har scrollet forbi det store logo */
.wordmark { transition: opacity 0.3s ease; }
.js .site-header.has-hero-logo:not(.show-brand) .wordmark { opacity: 0; pointer-events: none; }

.open-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted);
}
.open-status::before {
  content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--border);
}
.open-status.is-open::before { background: #5f9e6e; box-shadow: 0 0 0 4px rgba(95, 158, 110, 0.15); }
.open-status.is-closed::before { background: var(--rose); }

.socials { display: flex; gap: 0.5rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.socials svg { width: 18px; height: 18px; }

/* --- Mærker --- */
.brands { padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.brands .eyebrow { margin: 0; }
.brand-list { display: flex; flex-wrap: wrap; gap: 1rem 2.75rem; list-style: none; margin: 0; padding: 0; }
.brand-list li { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; color: var(--muted); }

/* --- Looks --- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.looks-grid { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(2, 1fr); }
.looks-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.looks-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s ease; }
.looks-grid figure:hover img { transform: scale(1.03); }
.looks-grid .feature { grid-column: span 2; }
@media (min-width: 760px) {
  .looks-grid { grid-template-columns: repeat(4, 1fr); }
  .looks-grid .feature { grid-row: span 2; }
  .looks-grid .feature img { aspect-ratio: auto; }
}

/* --- Om butikken --- */
.about { background: var(--sand); }
.about-grid { display: grid; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 0.9fr 1fr; } }
.about-media { border-radius: var(--radius); overflow: hidden; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 30%; }
.about-text p { margin-top: 1.25rem; color: var(--muted); max-width: 32rem; }
.about-text h2 { max-width: 28rem; }

/* --- Formularer (fælles) --- */
form { display: flex; flex-direction: column; gap: 0.75rem; }
input[type="email"], input[type="text"], textarea {
  width: 100%; padding: 0.9rem 1.25rem; border-radius: 0.9rem;
  border: 1px solid var(--border); background: var(--white);
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(196, 142, 161, 0.2); }
textarea { min-height: 8rem; resize: vertical; }
button[type="submit"]:disabled { opacity: 0.45; cursor: not-allowed; }
.consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.8rem; line-height: 1.5; color: inherit; opacity: 0.85;
}
.consent input { margin-top: 0.2rem; accent-color: var(--ink); }
.hint { font-size: 0.8rem; opacity: 0.8; }
.status { min-height: 1.25rem; font-size: 0.9rem; }
.status.success { font-weight: 500; }
.status.error { color: #a33; }

/* Honeypot — display:none holder feltet uden for browserens autofuld */
.hp { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Nyhedsbrev --- */
.newsletter-box {
  background: var(--rose); color: var(--white);
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2rem, 6vw, 4rem);
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 860px) { .newsletter-box { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.newsletter-box .eyebrow { color: rgba(255, 253, 250, 0.8); }
.newsletter-box p.sub { margin-top: 1rem; opacity: 0.9; max-width: 26rem; }
.newsletter-box .row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 520px) { .newsletter-box .row { flex-direction: row; } }
.newsletter-box input[type="email"], .newsletter-box input[type="text"] { border-color: transparent; border-radius: 999px; }
.newsletter-box .btn { border-color: var(--ink); white-space: nowrap; }
.newsletter-box .consent a { color: inherit; }
.newsletter-box .status.error { color: var(--white); }

/* --- Besøg os --- */
.visit-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.1fr; } }
.address { font-size: 1.15rem; margin-top: 1.5rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 2rem; margin: 1.5rem 0 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.visit-info .btn { margin-top: 2rem; }
.contact-block { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.contact-block h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-block > p { margin-bottom: 1.5rem; }
.contact-block button { align-self: flex-start; }
.map-link {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  min-height: 22rem; height: 100%; background: var(--sand);
}
.map-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-link .btn { position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--white); border-color: var(--white); color: var(--ink); }
.map-link:hover .btn { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* --- Footer --- */
.site-footer { background: var(--ink); color: rgba(246, 240, 230, 0.75); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-logo { display: inline-block; margin-bottom: 1.25rem; }
.footer-logo img { width: 140px; height: auto; }
.site-footer h3 { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.75rem; }
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--cream); }
.site-footer .socials a { border-color: rgba(246, 240, 230, 0.25); color: var(--cream); }
.site-footer .socials a:hover { background: var(--cream); color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 240, 230, 0.15); font-size: 0.8rem;
}

/* --- Fade-in ved scroll (kun når JS kører, og kun hvis brugeren ikke har slået bevægelse fra) --- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.8s ease, transform 0.8s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
