:root {
  --ink: #221b17;
  --muted: #70645d;
  --paper: #fffaf1;
  --card: #ffffff;
  --line: #eadfd0;
  --accent: #2b211c;
  --soft: #f5ecdf;
  --red: #bf6f4a;
  --gold: #c7a96c;
  --berry: #8c4a36;
  --clay: #bf6f4a;
  --mint: #f7efe4;
  --shadow: 0 22px 54px rgba(75, 47, 31, 0.13);
  --title-font: "Cormorant Garamond", Georgia, serif;
  --body-font: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body-font);
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(191, 111, 74, 0.18);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 1px solid rgba(21, 23, 24, 0.12);
  border-radius: 50%;
  background: white;
  object-fit: contain;
}

nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-weight: 750;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--red);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(620px, calc(100vh - 70px));
  align-items: end;
  padding: clamp(80px, 13vw, 150px) clamp(18px, 5vw, 64px) clamp(38px, 7vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(34, 27, 23, 0.74), rgba(34, 27, 23, 0.42), rgba(34, 27, 23, 0.12)),
    url("../assets/hero-sewing-no-ring.png") center / cover;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(34, 27, 23, 0.42));
  content: "";
}

.hero-text {
  max-width: 680px;
}

.hero-card {
  width: min(690px, 100%);
  color: white;
}

.hero-card .tag {
  color: #f4d8b8;
}

.hero-card p:not(.tag) {
  color: rgba(255, 255, 255, 0.88);
}

.tag {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(3.4rem, 7.4vw, 6.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-family: var(--title-font);
  font-weight: 700;
}

.hero-text p:not(.tag) {
  max-width: 600px;
  margin: 18px 0 22px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--clay);
  color: white;
  box-shadow: 0 12px 26px rgba(191, 111, 74, 0.24);
}

.primary:hover {
  background: #a85b3b;
}

.secondary {
  border: 1px solid rgba(21, 23, 24, 0.28);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.48);
}

.about-section {
  background:
    linear-gradient(90deg, rgba(247, 239, 228, 0.9), transparent 45%),
    var(--paper);
}

.section {
  scroll-margin-top: 94px;
  padding: clamp(42px, 7vw, 72px) clamp(18px, 5vw, 64px);
}

.section-title {
  max-width: 900px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.price-warning {
  max-width: 880px;
  margin: 18px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  line-height: 1.65;
  box-shadow: 0 10px 28px rgba(39, 35, 30, 0.06);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
}

.about-copy {
  align-self: center;
  max-width: 820px;
}

.about-copy h2 {
  max-width: 780px;
}

.about-copy p:not(.tag) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.about-copy strong {
  color: var(--ink);
}

.press-card {
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(80, 70, 58, 0.16);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.press-header {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: linear-gradient(135deg, #7c3f2c, var(--clay));
  color: white;
}

.press-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.press-header strong {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
}

.press-card img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.press-card blockquote {
  margin: 0;
  padding: 14px 20px 16px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(39, 35, 30, 0.08);
}

.reviews-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(140, 74, 54, 0.08), transparent 42%),
    var(--paper);
}

.reviews-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.reviews-heading .section-title {
  margin-bottom: 0;
}

.review-score {
  display: grid;
  min-width: 230px;
  gap: 7px;
  padding: 20px 22px;
  border: 1px solid rgba(199, 169, 108, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(199, 169, 108, 0.2), rgba(255, 255, 255, 0.92)),
    white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(39, 35, 30, 0.08);
}

.review-score span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-line {
  display: flex;
  align-items: end;
  gap: 4px;
}

.score-line em {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
}

.review-score strong {
  color: var(--clay);
  font-family: var(--title-font);
  font-size: 3rem;
  line-height: 1;
}

.score-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.review-score small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.review-score b {
  color: var(--berry);
  font-size: 0.92rem;
}

.reviews-marquee {
  position: relative;
  margin-right: calc(clamp(18px, 5vw, 64px) * -1);
  margin-left: calc(clamp(18px, 5vw, 64px) * -1);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}

.reviews-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 8px clamp(18px, 5vw, 64px);
  animation: review-marquee 38s linear infinite;
}

.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;
}

.review-card {
  display: grid;
  width: clamp(260px, 31vw, 380px);
  min-height: 190px;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(21, 23, 24, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: 0 14px 34px rgba(39, 35, 30, 0.07);
}

.stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.review-card p {
  margin: 0;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.review-card span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

@keyframes review-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.prices-section {
  background:
    radial-gradient(circle at top right, rgba(191, 111, 74, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(199, 169, 108, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(245, 236, 223, 0.95)),
    var(--soft);
}

.prices-section .section-title {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.prices-section .price-warning {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.price-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  gap: 14px;
}

.price-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(21, 23, 24, 0.12);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(39, 35, 30, 0.07);
}

.price-card h3 {
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(151, 116, 52, 0.24);
  background:
    linear-gradient(135deg, rgba(199, 169, 108, 0.34), rgba(199, 169, 108, 0.14)),
    #fbf7ed;
  color: #4d3b21;
  font-size: 1.22rem;
  text-transform: uppercase;
}

.price-card ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 2px 18px 16px;
  list-style: none;
}

.price-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.price-card li:last-child {
  border-bottom: 0;
}

.price-card span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.price-card strong {
  min-width: max-content;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.quote-card {
  align-content: start;
  gap: 10px;
}

.quote-card p {
  margin: 18px 18px 0;
  color: var(--muted);
  line-height: 1.6;
}

.quote-card > strong {
  margin: 0 18px 18px;
  color: var(--berry);
  font-size: 1.4rem;
}

.contact-section {
  background: var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-panel,
.map-panel {
  min-height: 180px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid rgba(21, 23, 24, 0.12);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(39, 35, 30, 0.06);
}

.contact-panel h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.contact-panel p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.online-message-button,
.online-message-link {
  border: 0;
  background: var(--clay);
  color: white;
  cursor: pointer;
}

.map-panel {
  position: relative;
  grid-column: 1 / -1;
  min-height: 380px;
  padding: 0;
  overflow: hidden;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-fallback {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  background: white;
  box-shadow: 0 12px 26px rgba(18, 24, 24, 0.16);
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
}

.floating-message {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--clay);
  box-shadow: 0 14px 34px rgba(191, 111, 74, 0.3);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: none;
  width: min(380px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(21, 23, 24, 0.14);
  border-radius: 12px;
  background: white;
  box-shadow: 0 24px 70px rgba(30, 26, 22, 0.22);
}

.chat-widget.is-open .chat-window {
  display: block;
}

.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--accent);
  color: white;
}

.chat-header div {
  display: grid;
  gap: 3px;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.chat-header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.chat-messages {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 14px;
  background: #eef2ef;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  border-radius: 14px 14px 14px 4px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow: 0 6px 18px rgba(39, 35, 30, 0.06);
}

.bubble.user {
  justify-self: end;
  border-radius: 14px 14px 4px 14px;
  background: var(--clay);
  color: white;
}

.chat-form {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.chat-form input,
.chat-form select,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(21, 23, 24, 0.18);
  border-radius: 6px;
  background: #fbfcfb;
  color: var(--ink);
  font: inherit;
}

.chat-form input,
.chat-form select {
  min-height: 42px;
  padding: 0 12px;
}

.chat-form textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
}

.chat-form input:focus,
.chat-form select:focus,
.chat-form textarea:focus {
  border-color: var(--clay);
  outline: 3px solid rgba(191, 111, 74, 0.14);
}

.chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--clay);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.chat-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.chat-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.chat-status.success {
  color: var(--clay);
  font-weight: 800;
}

.chat-status.error {
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero,
  .about-layout,
  .photo-grid,
  .price-groups,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .reviews-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .price-groups {
    grid-auto-rows: auto;
  }

  .review-score {
    width: min(100%, 320px);
  }
}

@media (max-width: 560px) {
  .section {
    scroll-margin-top: 124px;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: auto;
  }

  .brand {
    justify-self: center;
  }

  nav {
    grid-column: 1;
    justify-self: center;
    width: 100%;
    justify-content: center;
    gap: clamp(12px, 4.4vw, 18px);
  }

  h1 {
    font-size: 3rem;
  }

  .button {
    width: 100%;
  }

  .map-fallback {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .hero {
    gap: 18px;
    min-height: 560px;
    padding-top: 80px;
    background-position: 44% center;
  }

  .price-card li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .price-card strong {
    min-width: 0;
  }

  .reviews-marquee {
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
  }

  .reviews-track {
    animation-duration: 34s;
  }

  .review-card {
    width: 278px;
    min-height: 178px;
  }

  footer {
    flex-direction: column;
  }

  .floating-message {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .chat-widget {
    right: 12px;
    bottom: 12px;
  }

  .chat-window {
    width: calc(100vw - 24px);
    bottom: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation: none;
  }
}
