/* ============================================================
   Mollys Smykker — Stylesheet
   Farvepalette: Skovgrøn, varm creme, guld, jordfarver
   ============================================================ */

:root {
  --green:        #4a7c59;
  --green-dark:   #2e5339;
  --green-light:  #eaf2ec;
  --cream:        #f8f4ee;
  --cream-dark:   #efe9e0;
  --gold:         #b8935a;
  --gold-light:   #f0e6d3;
  --text:         #2c2c2c;
  --text-muted:   #6b7280;
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.14);
  --transition:   0.25s ease;
}

/* ── Sidebar leaves ── */
.shop::before,
.shop::after {
  content: '';
  position: absolute;
  top: 0;
  width: 200px;
  height: 100%;
  background-image: url('Photos/Designer (1).png');
  background-repeat: repeat-y;
  background-size: 480px auto;
  background-position: top center;
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}
.shop::before { left: 0; }
.shop::after  { right: 0; transform: scaleX(-1); }

@media (max-width: 900px) {
  .shop::before, .shop::after { display: none; }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--green-dark);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46,83,57,0.25);
}

.btn-secondary {
  display: inline-block;
  color: var(--green);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid var(--green);
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

/* ── Section tags & headings ── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 8px;
  margin-bottom: 40px;
}

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition);
}
#navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--green-dark);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f2eb 0%, #f5f0e8 40%, #edf5ef 100%);
  padding: 100px 24px 60px;
}

.hero-inner {
  text-align: center;
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--green-dark);
  margin-bottom: 20px;
  font-style: italic;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.leaf {
  position: absolute;
  font-size: 3rem;
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
}
.leaf-1 { top: 15%; left: 8%;  animation-delay: 0s;   font-size: 4rem; }
.leaf-2 { top: 60%; right: 6%; animation-delay: 2s;   font-size: 3.5rem; }
.leaf-3 { bottom: 15%; left: 20%; animation-delay: 4s; font-size: 2.5rem; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50%       { transform: translateY(-16px) rotate(5deg); }
}

/* ── About ── */
.about {
  background: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-leaves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.about > .container {
  position: relative;
  z-index: 1;
}

.aleaf {
  position: absolute;
  opacity: 0.45;
  animation: float 7s ease-in-out infinite;
}
.aleaf-1  { top: 5%;    left: 2%;   font-size: 5rem;   animation-delay: 0s; }
.aleaf-2  { top: 45%;  left: 88%;  font-size: 4rem;   animation-delay: 1.5s; }
.aleaf-3  { bottom: 6%; left: 10%; font-size: 3.5rem; animation-delay: 3s; }
.aleaf-4  { top: 18%;  right: 5%;  font-size: 6rem;   animation-delay: 2s; }
.aleaf-5  { bottom: 18%; right: 15%; font-size: 3rem; animation-delay: 4.5s; }
.aleaf-6  { top: 35%;  left: 5%;   font-size: 4.5rem; animation-delay: 1s; }
.aleaf-7  { top: 10%;  left: 45%;  font-size: 3rem;   animation-delay: 3.5s; }
.aleaf-8  { top: 70%;  left: 55%;  font-size: 2.5rem; animation-delay: 2.5s; }
.aleaf-9  { bottom: 5%; right: 40%; font-size: 4rem;  animation-delay: 0.5s; }
.aleaf-10 { top: 60%;  left: 25%;  font-size: 3.5rem; animation-delay: 4s; }
.aleaf-11 { top: 25%;  right: 30%; font-size: 2.8rem; animation-delay: 1.8s; }
.aleaf-12 { bottom: 30%; left: 70%; font-size: 5rem;  animation-delay: 3.2s; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-text .btn-secondary {
  margin-top: 12px;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--green-light);
  border-radius: var(--radius);
  padding: 18px 24px;
}

.about-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.about-card-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-dark);
}

/* ── Shop / Product Grid ── */
.shop {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-light);
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 18px 20px 22px;
}

.product-card-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.product-card-price {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold);
}

/* ── Sold out badge ── */
.sold-out-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(120, 80, 60, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  pointer-events: none;
}
.sold-out-price {
  color: #a0856e;
  font-size: 0.85rem;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 35, 25, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--cream-dark); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 0;
  background: var(--green-light);
}
.modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-details h2 {
  font-size: 1.7rem;
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold);
}

.modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--green-light);
  color: var(--green-dark);
}

.modal-comments {
  border-top: 1px solid var(--cream-dark);
  padding: 36px;
}
.modal-comments h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.comments-notice {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Order Form ── */
.order {
  background: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.order-flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.order > .container {
  position: relative;
  z-index: 1;
}

.oflower {
  position: absolute;
  opacity: 0.45;
  animation: float 7s ease-in-out infinite;
}
.oflower-1  { top: 5%;    left: 3%;   font-size: 4rem;   animation-delay: 0s; }
.oflower-2  { top: 20%;   right: 4%;  font-size: 5rem;   animation-delay: 1s; }
.oflower-3  { top: 50%;   left: 6%;   font-size: 3.5rem; animation-delay: 2s; }
.oflower-4  { bottom: 10%; right: 8%; font-size: 4.5rem; animation-delay: 0.5s; }
.oflower-5  { top: 35%;   right: 20%; font-size: 3rem;   animation-delay: 3s; }
.oflower-6  { bottom: 25%; left: 15%; font-size: 3.5rem; animation-delay: 1.5s; }
.oflower-7  { top: 10%;   left: 40%;  font-size: 2.8rem; animation-delay: 4s; }
.oflower-8  { bottom: 5%;  left: 50%; font-size: 4rem;   animation-delay: 2.5s; }
.oflower-9  { top: 65%;   right: 35%; font-size: 3rem;   animation-delay: 3.5s; }
.oflower-10 { top: 80%;   left: 30%;  font-size: 2.5rem; animation-delay: 1.8s; }

.order-form {
  max-width: 680px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

/* ── Footer ── */
footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
}

.footer-sub {
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
  .modal-image-wrap {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 4 / 3;
  }
  .modal-details {
    padding: 28px 24px;
  }
  .modal-comments {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-card-body {
    padding: 12px 14px 16px;
  }
  .product-card-name {
    font-size: 0.95rem;
  }
}
