:root {
  --bg: #f6f1eb;
  --ink: #1c1610;
  --muted: #6b5f55;
  --accent: #c5752d;
  --accent-dark: #8a4d1d;
  --accent-soft: #f2ddc6;
  --surface: #ffffff;
  --stone: #efe7df;
  --shadow: 0 28px 60px rgba(22, 12, 6, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff7ef 0%, var(--bg) 40%, #efe5da 100%);
  line-height: 1.6;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 235, 0.94);
  border-bottom: 1px solid rgba(28, 22, 16, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Fraunces", serif;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fbe6d2, #c5752d);
  color: #27180c;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 1.3rem;
}

.brand span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

.site-nav a.active {
  color: var(--ink);
}

.quote-link {
  color: var(--accent-dark);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

main {
  position: relative;
}

main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 800px;
  height: 800px;
  margin: auto;
  background-image: url('../images/Logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 0.30;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.hero h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(197, 117, 45, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent-dark);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: var(--surface);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card img {
  border-radius: 14px;
  height: 320px;
  object-fit: cover;
}

.hero-card .card-caption {
  margin-top: 1rem;
  font-weight: 600;
}

.card-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-header h3 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  margin: 0.5rem 0 0.8rem;
}

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

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  padding: 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card img {
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
}

.card h4 {
  margin: 1rem 0 0.4rem;
}

.price {
  font-weight: 700;
  color: var(--accent-dark);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-panel {
  background: var(--stone);
  padding: 2rem;
  border-radius: var(--radius);
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 9, 4, 0.7));
  color: #fff;
  padding: 0.8rem;
  font-weight: 600;
}

.store-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.store-card {
  background: #fff9f2;
  padding: 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}

.store-card img {
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
}

.quote-panel {
  background: #1d1611;
  color: #f8efe7;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.quote-panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.8rem;
}

.quote-panel li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding-bottom: 0.4rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(28, 22, 16, 0.15);
  font: inherit;
  background: #fbf8f5;
}

label {
  font-weight: 600;
  color: var(--muted);
}

.form-card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-status {
  min-height: 1.2rem;
  font-weight: 600;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.quote-table th,
.quote-table td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(28, 22, 16, 0.08);
}

.quote-table th {
  color: var(--muted);
}

.remove-item {
  border: none;
  background: none;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 600;
}

.gallery-slideshow {
  grid-column: span 1;
  position: relative;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 16px;
  background: #000;
}

.slideshow-container .slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.slideshow-container .slide.active {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slideshow-container .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.3s ease;
}

.slide-prev:hover,
.slide-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slide-prev {
  left: 0.5rem;
}

.slide-next {
  right: 0.5rem;
}

.slide-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.dot.active {
  background: #ffffff;
  opacity: 0.9;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 5, 0.85);
  display: none;
  place-items: center;
  padding: 2rem;
  z-index: 30;
}

.lightbox:not([hidden]) {
  display: grid;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 16px;
}

.lightbox .card-caption {
  color: #f5eee7;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 31;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 1.4rem;
  border-radius: 6px;
  transition: background 0.3s ease;
  z-index: 31;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.95);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(28, 22, 16, 0.1);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.75rem 1.2rem;
  background: #1d1611;
  color: #fdf4ec;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-card img {
    height: 240px;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

.hero-slideshow .hero-slide-container {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 14px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-slide .card-caption {
  margin-top: 1rem;
  font-weight: 600;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.2);
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .hero-slide img {
    height: 240px;
  }

  .hero-slideshow .hero-slide-container {
    height: 320px;
  }
}
