/* ============================================
   LMH KERAMIK — style.css
   Mobile-first, refined minimal aesthetic
   ============================================ */

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

:root {
  --clay:       #5d4d42;
  --clay-light: #c9b8a8;
  --sand:       #f5f2ee;
  --sand-dark:  #ede8e2;
  --warm-white: #faf8f5;
  --ink:        #1e1814;
  --accent:     #8a6e5e;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease-out-expo);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--clay);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; }

/* ============================================
   HEADER / LOGO
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* subtle fade at top */
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 100%);
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(245, 242, 238, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(93,77,66,0.1);
}

.site-header.scrolled .logo {
  color: var(--clay);
  text-shadow: none;
}

.site-header.scrolled .header-contact {
  color: var(--clay);
  border-color: var(--clay);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Logo image variant, mobile */
.logo-img {
  height: 70px;
  width: auto !important;
  max-width: none;
  filter: brightness(0) invert(1); /* hvid over hero */
  transition: filter var(--transition);
}
.site-header.scrolled .logo-img {
  filter: none; /* original sage-grøn på lys baggrund */
}

.header-contact {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 8px 16px;
  text-decoration: none;
  transition: all var(--transition);
}

.header-contact:hover {
  background: white;
  color: var(--clay);
}

/* ============================================
   HERO — Fullscreen crossfade slideshow
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;          /* full viewport on mobile */
  min-height: 500px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  transform: scale(1.04);
  transition: opacity 1.4s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* dark gradient overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(20,14,10,0.55) 0%,  transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, transparent 30%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  bottom: 48px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: white;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
  margin-bottom: 16px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 28px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  text-decoration: none;
  transition: all var(--transition);
}

.hero-cta:hover {
  background: white;
  color: var(--clay);
  border-color: white;
}

/* Slide dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

/* ============================================
   INTRO TEXT
   ============================================ */
.intro {
  padding: 64px 24px 48px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  margin-bottom: 20px;
  line-height: 1.2;
}

.intro p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ============================================
   GALLERY GRID
   ============================================ */
.gallery-section {
  padding: 0 0 80px;
}

.gallery-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay-light);
  text-align: center;
  margin-bottom: 28px;
  padding: 0 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 2 cols on mobile */
  gap: 3px;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;  /* 3 on tablet+ */
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);  /* 4 on wide */
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sand-dark);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,24,20,0);
  transition: background 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(30,24,20,0.15); }

/* First item spans 2 cols on mobile for a featured look */
.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 2 / 1.1;
}

@media (min-width: 700px) {
  .gallery-item:first-child {
    grid-column: span 1;
    aspect-ratio: 1 / 1;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 10, 8, 0.96);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-main {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 16px 8px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100svh - 160px);
  object-fit: contain;
  width: auto;
  height: auto;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color var(--transition);
  font-weight: 300;
}
.lightbox-close:hover { color: white; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: 16px 20px;
  transition: color var(--transition);
  line-height: 1;
  font-weight: 200;
}
.lightbox-nav:hover { color: white; }
.lightbox-nav.prev { left: 4px; }
.lightbox-nav.next { right: 4px; }

/* Thumbnail strip */
.lightbox-thumbs {
  width: 100%;
  padding: 12px 16px 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  justify-content: center;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }

.lightbox-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: cover;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity var(--transition), outline-offset 0.2s;
  outline: 1.5px solid transparent;
}

.lightbox-thumb.active {
  opacity: 1;
  outline-color: rgba(255,255,255,0.7);
  outline-offset: 2px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  background: var(--sand-dark);
  padding: 64px 24px;
  text-align: center;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--clay);
  margin-bottom: 12px;
}

.contact-section p {
  font-size: 0.9rem;
  color: var(--accent);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--clay-light);
  background: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clay);
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--clay-light);
  letter-spacing: 0.04em;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--clay);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 15px 40px;
  background: var(--clay);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: var(--ink);
}

.form-success {
  display: none;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--clay);
  padding: 20px 0;
}

/* ============================================
   INSTAGRAM STRIP + FOOTER
   ============================================ */
.instagram-strip {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--sand-dark);
}

.instagram-strip a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  text-decoration: none;
  border: 1px solid var(--clay-light);
  padding: 14px 28px;
  transition: all var(--transition);
}

.instagram-strip a:hover {
  background: var(--clay);
  color: white;
  border-color: var(--clay);
}

.instagram-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}

footer {
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--clay-light);
  letter-spacing: 0.08em;
  border-top: 1px solid var(--sand-dark);
}

/* ============================================
   DESKTOP OVERRIDES
   ============================================ */
@media (min-width: 768px) {
  .site-header { padding: 28px 48px; }
  .logo-img { height: 90px; width: auto !important; }
  .hero-content { bottom: 64px; left: 56px; right: 56px; max-width: 600px; }
  .hero-dots { bottom: 36px; right: 48px; }
  .intro { padding: 96px 24px 64px; }
  .lightbox-nav { padding: 24px 32px; font-size: 2.4rem; }
  .lightbox-thumbs { padding: 16px 48px 28px; gap: 10px; }
  .lightbox-thumb { width: 68px; height: 68px; }
}
