:root {
  --ink: #2c2621;
  --ink-soft: #6f655c;
  --cream: #f7f3ee;
  --paper: #f1ebe4;
  --paper-deep: #e7dfd5;
  --taupe: #8b7d72;
  --taupe-deep: #74675d;
  --brown: #3a322c;
  --brown-deep: #241f1b;
  --gold: #c2a97f;
  --gold-soft: #d8c6a6;
  --line: rgba(36, 31, 27, 0.12);
  --shadow: 0 22px 50px rgba(36, 31, 27, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", sans-serif;
  --header-h: 5.75rem;
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-weight: 300;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ——— Header (over hero) ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-solid {
  background: rgba(247, 243, 238, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-solid .site-nav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(36, 31, 27, 0.12);
}

.site-header.is-solid .site-nav a,
.site-header.is-solid .nav-toggle span {
  color: var(--ink);
}

.header-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.brand-logo {
  height: 4.75rem;
  width: auto;
  max-width: min(300px, 58vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.site-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(36, 31, 27, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(247, 243, 238, 0.14);
  z-index: 1;
}

.site-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 238, 0.92);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-nav a:hover {
  background: rgba(247, 243, 238, 0.14);
  color: #fff;
}

.site-header.is-solid .site-nav a:hover {
  background: rgba(36, 31, 27, 0.08);
  color: var(--ink);
}

.site-header.is-solid .brand-logo {
  filter: drop-shadow(0 3px 10px rgba(36, 31, 27, 0.15));
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  padding: 0.45rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.38rem;
  margin-left: auto;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #f7f3ee;
  transition: background 0.3s ease;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--brown-deep);
}

.hero-media,
.hero-fallback {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.hero-fallback {
  background:
    radial-gradient(circle at 70% 40%, rgba(194, 169, 127, 0.2), transparent 45%),
    linear-gradient(135deg, #3a322c, #241f1b);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 5rem;
  background:
    linear-gradient(90deg, rgba(36, 31, 27, 0.72) 0%, rgba(36, 31, 27, 0.35) 48%, rgba(36, 31, 27, 0.12) 100%);
}

.hero-copy {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  color: #f7f3ee;
  animation: fade-up 0.9s ease both;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 11ch;
  color: #f7f3ee;
}

.hero-copy > p {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 0.98rem;
  color: rgba(247, 243, 238, 0.86);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 1.7rem;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-hero {
  background: var(--brown-deep);
  border-color: rgba(247, 243, 238, 0.35);
  color: #f7f3ee;
}

.btn-hero:hover {
  background: transparent;
  border-color: #f7f3ee;
}

.btn-outline-light {
  margin-top: 1.5rem;
  color: #f7f3ee;
  border-color: rgba(247, 243, 238, 0.45);
}

.btn-outline-light:hover {
  background: rgba(247, 243, 238, 0.08);
}

/* ——— Features ——— */
.features {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.features-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature {
  text-align: center;
  padding: 0.4rem 0.5rem;
}

.feature svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--gold);
  margin: 0 auto 0.75rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brown);
}

.feature p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ——— Collections ——— */
.collections {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-line {
  display: block;
  width: 42px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.1rem;
}

.section-head h2,
.contact-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 600;
  color: var(--brown-deep);
}

.section-head p,
.contact-copy p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-soft);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.category-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--brown-deep);
  display: block;
  animation: fade-up 0.7s ease both;
  animation-delay: calc(0.07s * var(--i, 0));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.8s ease, opacity 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

.category-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 1.15rem 1.4rem;
  background: linear-gradient(transparent, rgba(24, 20, 17, 0.82));
  color: #f7f3ee;
}

.category-card-body h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.category-card-body span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.split-cards {
  display: grid;
  gap: 1.1rem;
}

.split-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 210px;
  overflow: hidden;
  background: var(--taupe);
  animation: fade-up 0.7s ease both;
  animation-delay: calc(0.08s * var(--i, 0));
}

.split-card-media {
  overflow: hidden;
  min-height: 210px;
}

.split-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.split-card:hover .split-card-media img {
  transform: scale(1.04);
}

.split-card-text {
  color: #f7f3ee;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.split-card-text h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.split-card-text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(247, 243, 238, 0.85);
  max-width: 24rem;
}

.split-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.15rem;
  font-size: 1.2rem;
  opacity: 0.85;
}

.empty-note {
  text-align: center;
  color: var(--ink-soft);
}

/* ——— About ——— */
.about-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 460px;
}

.about-panel {
  background: var(--brown-deep);
  color: #f7f3ee;
  padding: 4.5rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.about-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 600;
  color: #f7f3ee;
}

.about-panel p {
  margin: 0;
  max-width: 30rem;
  color: rgba(247, 243, 238, 0.8);
}

.about-visual {
  background: var(--paper-deep);
  overflow: hidden;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

/* ——— Contact ——— */
.contact {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.contact-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}

.contact-details {
  display: grid;
  gap: 1rem;
}

.contact-details a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color 0.25s ease;
}

.contact-details a:hover {
  border-color: var(--taupe);
}

.contact-details span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--brown-deep);
  color: rgba(247, 243, 238, 0.78);
  padding: 3.5rem 1.5rem 1.4rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap: 2rem;
}

.footer-brand .footer-logo {
  height: 4.75rem;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.footer-brand > p {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social span {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(247, 243, 238, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 238, 0.75);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.footer-cols h4,
.footer-news h4 {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

.footer-cols a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  color: rgba(247, 243, 238, 0.7);
  transition: color 0.25s ease;
}

.footer-cols a:hover { color: #f7f3ee; }

.footer-news p {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
}

.news-form {
  display: flex;
  border: 1px solid rgba(247, 243, 238, 0.22);
}

.news-form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #f7f3ee;
  padding: 0.8rem 0.9rem;
  font: inherit;
  outline: none;
}

.news-form input::placeholder {
  color: rgba(247, 243, 238, 0.45);
}

.news-form button {
  border: 0;
  background: transparent;
  color: var(--gold-soft);
  padding: 0 1rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.footer-copy {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 243, 238, 0.12);
  text-align: center;
  font-size: 0.78rem;
}

/* ——— Admin ——— */
.admin-body { background: var(--cream); min-height: 100vh; }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 55% 40% at 15% 0%, rgba(194, 169, 127, 0.18), transparent 55%),
    var(--cream);
}

.login-form,
.admin-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.login-logo {
  width: min(280px, 100%);
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.login-sub {
  margin: 0.25rem 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-align: center;
}

.login-form label,
.upload-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.login-form input,
.upload-form input[type="text"],
.upload-form input[type="email"],
.upload-form textarea,
.upload-form input[type="file"] {
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.8rem;
}

.upload-form textarea { resize: vertical; }

.login-form button,
.upload-form button,
.btn-danger {
  font: inherit;
  cursor: pointer;
  border: 0;
  padding: 0.75rem 1.1rem;
  background: var(--taupe);
  color: #f7f3ee;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background 0.25s ease;
}

.login-form button:hover,
.upload-form button:hover { background: var(--brown); }

.back-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.form-error {
  color: #8b2e2e;
  background: rgba(139, 46, 46, 0.08);
  padding: 0.65rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.admin-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.admin-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.admin-header nav { display: flex; gap: 1.25rem; }
.admin-header a { color: var(--ink-soft); font-size: 0.92rem; }
.admin-header a:hover { color: var(--brown); }

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  gap: 1.5rem;
}

.admin-card { width: 100%; }

.admin-card h1,
.admin-card h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--brown-deep);
}

.content-form { width: 100%; }

.content-group {
  border: 1px solid var(--line);
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 0.25rem;
  background: rgba(255, 255, 255, 0.65);
}

.content-group legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown-deep);
}

.check-row {
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem !important;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.admin-item {
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
}

.admin-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-item-body { padding: 0.85rem; }
.admin-item-body h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.admin-item-body p {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-height: 2.4em;
}

.edit-form label { margin-bottom: 0.75rem; }
.edit-form .hint {
  font-size: 0.75rem;
  color: var(--taupe);
  text-transform: none;
  letter-spacing: 0;
}

.admin-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.admin-actions button { width: 100%; }

.badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid rgba(139, 125, 114, 0.35);
  background: rgba(194, 169, 127, 0.15);
  padding: 0.15rem 0.45rem;
}

.btn-danger { background: #6e2f2f; width: 100%; }
.btn-danger:hover { background: #542323; }

.flash {
  padding: 0.75rem 1rem;
  margin: 0;
  border: 1px solid var(--line);
}

.flash-ok {
  background: rgba(194, 169, 127, 0.18);
  color: var(--brown-deep);
}

.flash-error {
  background: rgba(139, 46, 46, 0.08);
  color: #8b2e2e;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Responsive ——— */
@media (max-width: 1050px) {
  :root { --header-h: 4.75rem; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner,
  .about-split,
  .contact-shell { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    transform: translateY(-120%);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 0;
    background: rgba(247, 243, 238, 0.98);
    border-bottom: 1px solid var(--line);
    border-top: 0;
    box-shadow: 0 12px 28px rgba(36, 31, 27, 0.12);
    backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.95rem 1.5rem;
    color: var(--ink);
    border-radius: 0;
  }

  .site-nav a:hover {
    background: rgba(36, 31, 27, 0.06);
  }

  .site-header.is-solid .site-nav {
    background: rgba(247, 243, 238, 0.98);
  }

  .site-header .brand-logo {
    height: 3.4rem;
    max-width: min(220px, 58vw);
  }

  .site-header.is-solid .site-nav a { color: var(--ink); }

  .contact-shell { gap: 1.75rem; }
  .footer-news { max-width: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 4.35rem; }

  .header-inner,
  .hero-overlay,
  .features-inner,
  .collections,
  .contact-shell,
  .site-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero-overlay {
    align-items: flex-end;
    background: linear-gradient(180deg, transparent 8%, rgba(36, 31, 27, 0.82) 68%);
    padding-top: calc(var(--header-h) + 1.5rem);
    padding-bottom: 3rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 9.5vw, 3.1rem);
    max-width: 12ch;
  }

  .hero-copy > p {
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    width: 100%;
    max-width: 18rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .section-head h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .split-card { grid-template-columns: 1fr; }
  .split-card-media { min-height: 220px; }
  .split-card-text { padding: 1.4rem 1.2rem 2.4rem; }

  .category-grid,
  .features-inner,
  .footer-cols { grid-template-columns: 1fr; }

  .feature { padding-block: 0.35rem; }

  .about-panel { padding: 2.5rem 1.25rem; }
  .about-visual img { min-height: 260px; }

  .contact-shell { padding-top: 3rem; padding-bottom: 3rem; }
  .contact-details a {
    word-break: break-word;
  }

  .footer-inner { gap: 2.25rem; }
  .footer-brand .footer-logo {
    height: 3.6rem;
    max-width: 200px;
  }

  .news-form {
    flex-direction: column;
    align-items: stretch;
  }

  .news-form button { width: 100%; }

  .body-nav-open { overflow: hidden; }
}

@media (max-width: 420px) {
  .category-grid { gap: 0.75rem; }
  .hero-kicker { letter-spacing: 0.18em; font-size: 0.65rem; }
  .site-header .brand-logo {
    height: 3rem;
    max-width: min(180px, 55vw);
  }
}
