:root {
  --bg: #f7f5ef;
  --ink: #171a18;
  --muted: #66706b;
  --panel: #ffffff;
  --line: #dedbd2;
  --accent: #0f766e;
  --accent-dark: #103c37;
  --coral: #d95f43;
  --gold: #d7a23c;
  --soft: #e7f2ef;
  --danger: #a83232;
  --shadow: 0 24px 70px rgba(23, 26, 24, 0.14);
  --soft-shadow: 0 12px 32px rgba(23, 26, 24, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(231, 242, 239, 0.55), transparent 420px),
    var(--bg);
  color: var(--ink);
}
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(222, 219, 210, 0.86);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: white;
  font-weight: 900;
  overflow: hidden;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand strong, .brand small { display: block; }
.brand small, .muted { color: var(--muted); line-height: 1.55; }

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topnav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 14px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.topnav a:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: calc(100vh - 76px);
  gap: clamp(26px, 5vw, 72px);
  padding: clamp(28px, 5vw, 76px);
}
.hero-copy h1, .section-head h2, .split-section h2, .contact-section h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-copy h1 { font-size: clamp(44px, 7vw, 92px); max-width: 820px; }
.hero-copy p { max-width: 660px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 26, 24, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover, .icon-button:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow: var(--soft-shadow);
}
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.button.danger { color: var(--danger); }
.icon-button { width: 44px; padding: 0; font-size: 24px; }

.hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background: linear-gradient(135deg, #173f3a, #0f766e 48%, #f4c66c);
  box-shadow: var(--shadow);
}
.hero-media.has-product-photo {
  background: #ffffff;
}
.product-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.booth {
  position: absolute;
  left: 12%;
  bottom: 8%;
  width: 48%;
  min-width: 230px;
  height: 74%;
  border-radius: 28px 28px 8px 8px;
  background: #f8faf8;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.lens {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border: 16px solid #17211d;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 10%, #59a7a0 11% 34%, #102421 35%);
}
.flash {
  position: absolute;
  top: 13%;
  right: 12%;
  width: 44px;
  height: 28px;
  border-radius: 6px;
  background: var(--gold);
}
.screen {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 45%;
  display: grid;
  place-items: center;
  min-height: 92px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}
.slot {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 15%;
  height: 18px;
  border-radius: 999px;
  background: #1f2824;
}
.print {
  position: absolute;
  width: 210px;
  height: 280px;
  border: 12px solid #fff;
  border-bottom-width: 42px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d95f43, #f4c66c 48%, #0f766e);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.print.one { right: 10%; top: 16%; transform: rotate(8deg); }
.print.two { right: 20%; bottom: 12%; transform: rotate(-10deg); background: linear-gradient(135deg, #173f3a, #fff 45%, #d95f43); }

.band, .split-section, .calendar-section, .contact-section, .photo-section {
  padding: clamp(42px, 6vw, 86px) clamp(18px, 5vw, 76px);
}
.section-head {
  display: grid;
  gap: 8px;
  max-width: 820px;
  margin-bottom: 28px;
}
.section-head h2, .split-section h2, .contact-section h2 { font-size: clamp(30px, 4vw, 56px); }
.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card, .package-list article, .steps article, .panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
}
.feature-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  min-height: 86px;
}
.feature-card span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}
.feature-card p, .package-list p, .steps p { margin: 0; line-height: 1.5; }

.split-section, .contact-section, .admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.spec-list, .package-list, .steps, .admin-stack, .inquiry-list, .table-list {
  display: grid;
  gap: 12px;
}
.spec-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-list span { color: var(--muted); }
.package-list article, .steps article { padding: 18px; }

.photo-section {
  background: #ffffff;
}
.photo-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}
.photo-showcase figure {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--soft-shadow);
}
.photo-showcase figure:first-child {
  grid-row: span 2;
}
.photo-showcase img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transition: transform 0.32s ease;
}
.photo-showcase figure:hover img {
  transform: scale(1.035);
}
.photo-showcase figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(23, 26, 24, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(14px, 3vw, 24px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.calendar-toolbar h3 { margin: 0; font-size: 24px; text-transform: capitalize; }
.weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.day {
  aspect-ratio: 1;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.day:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.42);
}
.day.selected { outline: 3px solid rgba(15, 118, 110, 0.22); border-color: var(--accent); }
.day.reserved { background: #ffe9e2; color: #8e2f1e; border-color: #efb9aa; }
.day.blocked { background: #edeae3; color: #676056; text-decoration: line-through; }
.availability-panel {
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(155deg, var(--accent-dark), #0f766e);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.availability-panel p { color: rgba(255,255,255,0.78); line-height: 1.55; }

.steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.panel {
  padding: 22px;
}
label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.checkbox-field input {
  width: 18px;
  min-height: 18px;
}
input, textarea, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; line-height: 1.45; }
.split-fields, .inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.inline-form { grid-template-columns: 180px 190px minmax(180px, 1fr) auto; align-items: end; }
.photo-upload-form {
  margin-bottom: 18px;
}
.upload-box {
  min-height: 126px;
  place-items: center;
  border: 1px dashed rgba(15, 118, 110, 0.42);
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  cursor: pointer;
}
.upload-box input {
  display: none;
}
.notice {
  margin-bottom: 14px;
  border-left: 4px solid var(--coral);
  padding: 12px 14px;
  background: #fff4ef;
  color: #783322;
}
.notice.success {
  border-left-color: var(--accent);
  background: var(--soft);
  color: var(--accent-dark);
}

.admin-view { padding: clamp(18px, 4vw, 48px); }
.login-panel {
  max-width: 460px;
  margin: 10vh auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}
.admin-grid { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
.admin-menu {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
}
.admin-menu a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.table-list article, .inquiry-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.admin-photo-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.admin-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.admin-photo-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
}
.admin-photo-grid span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-photo-grid form {
  padding: 0 12px 12px;
}
.current-hero-image {
  overflow: hidden;
  max-width: 360px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.current-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.table-list span, .inquiry-list span { display: block; color: var(--muted); font-size: 13px; }
.inquiry-list { display: grid; }
.inquiry-list article {
  display: block;
}
.inquiry-list article.unread { border-color: var(--accent); background: #f8fffd; }
.inquiry-list header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.legal-page {
  padding: clamp(28px, 5vw, 76px);
}
.legal-panel {
  max-width: 920px;
  margin: 0 auto;
}
.legal-panel h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
}
.legal-text {
  color: #2c332f;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.maintenance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.16), transparent 44%),
    var(--bg);
}
.maintenance-panel {
  width: min(480px, 100%);
}
.maintenance-panel .brand-mark {
  margin-bottom: 18px;
}
.maintenance-panel h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1;
}
.maintenance-admin-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 76px) clamp(22px, 4vw, 42px);
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  color: var(--muted);
}
.site-footer strong {
  color: var(--ink);
}
.site-footer p {
  max-width: 520px;
  margin: 8px 0 0;
  line-height: 1.55;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.site-footer a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  font-size: 14px;
}
.site-footer .admin-footer-link {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero, .split-section, .calendar-shell, .contact-section, .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; align-items: start; }
  .hero-media { min-height: 420px; order: 2; }
  .admin-menu { position: static; }
  .inline-form { grid-template-columns: 1fr; }
  .site-footer {
    flex-direction: column;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .topnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .topnav a {
    padding: 10px 8px;
    text-align: center;
  }
  .split-fields, .spec-list div { grid-template-columns: 1fr; }
  .hero {
    gap: 22px;
    padding: 26px 16px 34px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 13vw, 56px);
    line-height: 1.02;
  }
  .hero-copy p {
    font-size: 16px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-media {
    min-height: 300px;
  }
  .booth {
    left: 8%;
    min-width: 168px;
    width: 52%;
    height: 76%;
  }
  .lens {
    width: 78px;
    height: 78px;
    border-width: 12px;
  }
  .flash {
    width: 34px;
    height: 22px;
  }
  .screen {
    min-height: 64px;
    font-size: 24px;
  }
  .band, .split-section, .calendar-section, .contact-section, .photo-section, .legal-page { padding: 42px 18px; }
  .feature-grid, .steps {
    grid-template-columns: 1fr;
  }
  .calendar-shell {
    padding: 12px;
  }
  .photo-showcase {
    grid-template-columns: 1fr;
  }
  .photo-showcase figure,
  .photo-showcase figure:first-child {
    grid-row: auto;
    min-height: 240px;
  }
  .calendar-toolbar h3 {
    font-size: 20px;
  }
  .weekdays, .calendar-grid {
    gap: 5px;
  }
  .day {
    min-height: 38px;
    font-size: 13px;
  }
  .print { width: 118px; height: 166px; border-width: 8px; border-bottom-width: 30px; }
  .print.one { right: 7%; top: 18%; }
  .print.two { right: 17%; bottom: 10%; }
  .contact-section .panel {
    padding: 18px;
  }
  .site-footer {
    margin-inline: 18px;
  }
  .site-footer nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .site-footer a {
    text-align: center;
  }
}
