:root {
  --ink: #1f2428;
  --muted: #66706a;
  --line: #dfe6df;
  --paper: #ffffff;
  --soft: #f5f7f2;
  --sage: #476653;
  --sage-dark: #243c31;
  --coral: #c9654f;
  --gold: #a8793c;
  --sky: #e8f2f5;
  --shadow: 0 16px 40px rgba(31, 36, 40, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--sage-dark);
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover {
  color: var(--sage-dark);
}

.nav-toggle {
  display: none;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch button {
  min-width: 42px;
  border: 0;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch .active {
  color: #fff;
  background: var(--sage-dark);
}

.section-pad {
  padding: clamp(58px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 72px));
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 31, 26, 0.82), rgba(18, 31, 26, 0.34) 52%, rgba(18, 31, 26, 0.12)),
    url("assets/images/nicemoon-hero-wedding-event.png") center/cover;
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c887;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.08;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  margin: 0 0 8px;
  line-height: 1.25;
  font-size: 18px;
}

.hero-content p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.product-toolbar,
.contact .btn + .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--sage-dark);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(31, 36, 40, 0.12);
}

.btn.primary {
  color: #fff;
  background: var(--sage-dark);
}

.btn.secondary {
  color: var(--sage-dark);
  background: rgba(255, 255, 255, 0.88);
}

.btn.compact {
  min-height: 42px;
  padding: 10px 16px;
  background: #fff;
}

.btn.full {
  width: 100%;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 28px 16px;
  text-align: center;
  background: var(--soft);
}

.trust-strip strong {
  display: block;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3vw, 38px);
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 20px;
  max-width: 1180px;
}

.category-tabs button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
}

.category-tabs button.active {
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.product-toolbar {
  align-items: end;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 22px;
}

.product-toolbar label {
  display: grid;
  gap: 6px;
  width: min(460px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 36, 40, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card h3 {
  font-size: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  padding: 4px 8px;
  background: var(--sky);
  border-radius: 999px;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-band {
  background: linear-gradient(135deg, var(--soft), var(--sky));
  border-block: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.split p {
  color: var(--muted);
}

.process-list,
.shipping-options,
.strength-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.process-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-list article,
.shipping-options article,
.strength-grid article,
.faq details {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--coral);
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
}

.strength-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strength-grid p,
.shipping-options p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.shipping-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
}

summary {
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin-top: 12px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 68px);
  background: var(--sage-dark);
  color: #fff;
}

.contact .eyebrow {
  color: #f1c887;
}

.contact p,
.contact address {
  color: rgba(255, 255, 255, 0.78);
}

address {
  margin-top: 22px;
  font-style: normal;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
}

.inquiry-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #f8faf6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 28, 24, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(640px, 100%);
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
  }

  .main-nav {
    position: absolute;
    top: 71px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .lang-switch {
    justify-self: end;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 31, 26, 0.82), rgba(18, 31, 26, 0.45)),
      url("assets/images/nicemoon-hero-wedding-event.png") center/cover;
  }

  .trust-strip,
  .process-list,
  .strength-grid,
  .shipping-options,
  .faq-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-toolbar {
    align-items: stretch;
  }

  .product-toolbar .btn {
    width: 100%;
  }
}
