:root {
  --ink: #161616;
  --navy: #071426;
  --muted: #6f6a63;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8cf;
  --gold: #b88a44;
  --gold-dark: #8a642e;
  --teal: #0f5d5e;
  --wine: #7b2d3b;
  --shadow: 0 20px 70px rgba(22, 22, 22, 0.12);
  --soft-shadow: 0 12px 36px rgba(22, 22, 22, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(15, 93, 94, 0.08), transparent 35%, rgba(123, 45, 59, 0.08)),
    var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(222, 216, 207, 0.76);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-logo-frame {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}

.brand-logo-frame img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

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

.brand strong {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.nav-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}

.nav-tab.active {
  background: #151515;
  color: #fff8ec;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.view {
  display: none;
  padding: clamp(18px, 4vw, 52px);
}

.view.active {
  display: block;
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(241, 236, 228, 0.92)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.page-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 500;
  line-height: 0.92;
}

.page-header p:not(.eyebrow) {
  max-width: 44ch;
  margin: 0;
  color: #56504a;
  line-height: 1.65;
}

.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy    gallery"
    "metrics gallery";
  gap: clamp(26px, 4vw, 58px);
  min-height: min(640px, calc(100vh - 96px));
  padding-bottom: 28px;
}

.hero-copy    { grid-area: copy;    align-self: end; }
.hero-gallery { grid-area: gallery; }
.hero-metrics { grid-area: metrics; }

.hero-copy {
  max-width: 620px;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

.hero-copy h1 {
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4.1vw, 56px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.16;
  overflow-wrap: normal;
  padding: 18px 0;
  position: relative;
  text-transform: uppercase;
  word-break: normal;
}

.admin-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
}

.hero-copy h1::before,
.hero-copy h1::after {
  display: block;
  width: min(520px, 74%);
  height: 1px;
  margin-left: auto;
  margin-right: auto;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(184, 138, 68, 0.95), transparent);
}

.hero-copy h1::before {
  margin-bottom: 22px;
}

.hero-copy h1::after {
  margin-top: 22px;
}

.hero-copy p:not(.eyebrow),
.admin-header p:not(.eyebrow) {
  max-width: 58ch;
  margin: 18px 0 0;
  color: #56504a;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.58;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-metrics span {
  min-width: 124px;
  padding: 14px 16px;
  border: 1px solid rgba(222, 216, 207, 0.9);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.hero-metrics strong {
  display: block;
  color: var(--teal);
  font-size: 24px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 16px;
  height: min(560px, 66vh);
  min-height: 390px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: #222;
  box-shadow: var(--shadow);
}

.hero-card.large {
  grid-row: 1 / 3;
}

.hero-card img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.hero-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.62));
}

.hero-card figcaption,
.hero-card .hero-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  color: #fff8ec;
}

.hero-caption strong {
  display: block;
  font-size: clamp(17px, 2vw, 24px);
}

.hero-caption span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 248, 236, 0.72);
  font-size: 13px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.search-box,
.control-row label,
.field-grid label,
.product-form label {
  display: grid;
  gap: 8px;
}

.search-box {
  position: relative;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--gold-dark);
}

.search-box input {
  padding-left: 48px;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input,
select {
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 93, 94, 0.62);
  box-shadow: 0 0 0 4px rgba(15, 93, 94, 0.12);
}

.catalog-band {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 42px) 0 20px;
}

.section-heading,
.admin-header,
.form-heading,
.table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.product-form h2,
.bulk-panel h2,
.table-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
}

.section-heading > p,
.table-heading > span {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading.compact h2 {
  font-size: clamp(28px, 3vw, 38px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--gold-dark);
}

.home-sections {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  margin-top: 22px;
}

.home-category-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.page-button,
.page-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.page-button {
  gap: 6px;
  padding: 0 12px;
}

.page-number.active,
.page-button:hover:not(:disabled),
.page-number:hover {
  border-color: #151515;
  background: #151515;
  color: #fff8ec;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(222, 216, 207, 0.82);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(184, 138, 68, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e2d8;
  cursor: pointer;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.72);
  color: #fff8ec;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.05;
}

.detail-title {
  cursor: pointer;
}

.detail-title:hover {
  color: var(--teal);
}

.product-card p {
  margin: 0;
  color: #625d56;
  font-size: 14px;
  line-height: 1.55;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-row span {
  padding: 7px 9px;
  border: 1px solid #e5ded4;
  border-radius: 999px;
  color: #554f48;
  font-size: 12px;
}

.detail-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  border: 0;
  background: #151515;
  color: #fff8ec;
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.detail-button {
  width: 100%;
}

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

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.contact-button.whatsapp {
  background: #1f8f5f;
}

.contact-button.call {
  background: var(--navy);
}

.contact-button:hover {
  filter: brightness(0.94);
}

.contact-button.disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.detail-button:hover,
.primary-action:hover,
.secondary-action:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff8ec;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 62px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.admin-view {
  padding-top: 34px;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 170px);
  place-items: center;
}

.auth-card {
  display: grid;
  width: min(460px, 100%);
  gap: 18px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 0.95;
}

.auth-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card label {
  display: grid;
  gap: 8px;
}

.admin-header {
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  background:
    linear-gradient(125deg, rgba(21, 21, 21, 0.95), rgba(15, 93, 94, 0.84)),
    #151515;
  color: #fff8ec;
  box-shadow: var(--shadow);
}

.admin-header .eyebrow {
  color: #e4bd7d;
}

.admin-header p:not(.eyebrow) {
  color: rgba(255, 248, 236, 0.74);
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(222, 216, 207, 0.88);
  border-radius: 6px;
  background: #fff;
  color: #151515;
}

.icon-button:hover {
  border-color: rgba(184, 138, 68, 0.58);
  color: var(--gold-dark);
}

.danger-soft {
  color: var(--wine);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 22px;
  margin-top: 22px;
}

.admin-products-section {
  margin-top: 22px;
}

.product-form,
.bulk-panel,
.table-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.product-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 22px;
}

.form-heading {
  align-items: center;
}

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

.toggle-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.admin-panel {
  display: grid;
  gap: 22px;
  align-content: start;
}

.bulk-panel,
.table-shell {
  padding: 22px;
}

.bulk-panel {
  display: grid;
  gap: 16px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.upload-box {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 116px;
  padding: 18px;
  border: 1px dashed rgba(15, 93, 94, 0.42);
  border-radius: var(--radius);
  background: rgba(15, 93, 94, 0.05);
  color: var(--teal);
  cursor: pointer;
}

.upload-box:hover {
  border-color: rgba(184, 138, 68, 0.78);
  background: rgba(184, 138, 68, 0.08);
}

.upload-box svg {
  width: 28px;
  height: 28px;
}

.upload-box strong {
  color: var(--ink);
  font-size: 14px;
}

.upload-box small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.upload-box input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.file-drop {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 26px 18px;
  border: 1px dashed rgba(15, 93, 94, 0.4);
  border-radius: var(--radius);
  background: rgba(15, 93, 94, 0.05);
  color: var(--teal);
  text-align: center;
}

.file-drop input {
  max-width: 260px;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.file-drop svg {
  width: 30px;
  height: 30px;
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #e9e2d9;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
}

.table-product {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
}

.table-product img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
}

.table-product strong,
.table-product span {
  display: block;
}

.table-product span {
  color: var(--muted);
  font-size: 12px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions .icon-button {
  width: 36px;
  height: 36px;
}

.product-modal {
  width: min(1060px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-modal::backdrop {
  background: rgba(12, 12, 12, 0.58);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: 0;
  background: #fff;
}

.modal-image {
  min-height: 520px;
  background: #e8e2d8;
}

.modal-image img {
  height: 100%;
  object-fit: cover;
}

.modal-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 58px);
}

.modal-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 500;
  line-height: 0.98;
}

.modal-copy p {
  margin: 0;
  color: #5d574f;
  line-height: 1.65;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-specs div {
  padding: 14px;
  border: 1px solid #e8e1d8;
  border-radius: 6px;
}

.modal-specs span,
.modal-specs strong {
  display: block;
}

.modal-specs span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-specs strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .catalog-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

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

@media (max-width: 820px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .nav-tabs {
    width: 100%;
  }

  .catalog-hero {
    min-height: auto;
    grid-template-areas: none;
    grid-template-rows: auto;
  }

  .hero-copy,
  .hero-gallery,
  .hero-metrics {
    grid-area: auto;
    align-self: auto;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    height: auto;
    min-height: 0;
  }

  .hero-card.large {
    grid-column: 1 / 3;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-card.small {
    aspect-ratio: 1;
  }

  .toolbar,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .page-header {
    align-items: start;
    flex-direction: column;
  }

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

  .modal-image {
    min-height: auto;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 620px) {
  .view {
    padding: 16px;
  }

  .topbar {
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-copy h1 {
    font-size: 28px;
    letter-spacing: 0.08em;
    line-height: 1.05;
  }

  .admin-header h1 {
    font-size: 42px;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
  }

  .hero-card.large,
  .hero-card.small {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .control-row,
  .field-grid,
  .button-row,
  .product-grid,
  .modal-specs {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .admin-header,
  .form-heading,
  .table-heading,
  .page-header {
    align-items: start;
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }
}

/* ----- contact actions + inquiry modal (added in production refactor) ----- */

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

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--soft-shadow);
}

.contact-button.whatsapp {
  background: #128c7e;
  color: #fff;
  border-color: #0a6b62;
}

.contact-button.call {
  background: var(--teal);
  color: #fff;
  border-color: #0a4647;
}

.contact-button.inquiry {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold-dark);
}

.contact-button.disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.contact-button i {
  width: 14px;
  height: 14px;
}

.nav-tab.admin-tab {
  display: none;
}

/* ----- contact page ----- */

.contact-page-body {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1060px;
  padding: clamp(28px, 4vw, 52px) clamp(22px, 4vw, 52px) 72px;
}

.contact-info {
  padding-top: 8px;
}

.contact-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-info > p {
  color: #56504a;
  line-height: 1.65;
  margin-bottom: 28px;
}

.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--soft-shadow);
}

.contact-form .eyebrow {
  margin-bottom: 4px;
}

.contact-form h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 22px;
}

.contact-form .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-bottom: 16px;
}

.contact-form .field-grid label:first-child {
  grid-column: 1 / -1;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form label > span {
  display: block;
}

.contact-form > label {
  margin-bottom: 20px;
}

.contact-hint-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .contact-page-body {
    grid-template-columns: 1fr;
  }

  .contact-form .field-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .field-grid label:first-child {
    grid-column: auto;
  }
}

dialog.inquiry-modal {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
}

dialog.inquiry-modal::backdrop {
  background: rgba(15, 13, 10, 0.5);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}

.inquiry-form h2 {
  margin: 0;
  font-size: 22px;
}

.inquiry-form .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.inquiry-form input,
.inquiry-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 110px;
}

.inquiry-row.status-new td {
  background: rgba(184, 138, 68, 0.08);
}

.inquiry-row.status-replied td {
  opacity: 0.7;
}

.inquiry-row.status-archived td {
  opacity: 0.45;
}

.inquiry-message {
  max-width: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.inquiry-contact a {
  color: var(--teal);
}

/* ----- site footer ----- */

.site-footer {
  border-top: 2px solid var(--line);
  background: #f0ebe2;
  margin-top: 60px;
}

.footer-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 52px) clamp(28px, 4vw, 44px);
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav button {
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s;
}

.footer-nav button:hover {
  color: var(--teal);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact .contact-button {
  justify-content: flex-start;
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px clamp(20px, 4vw, 52px);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-body {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ----- status badge ----- */

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-ok {
  background: rgba(15, 93, 94, 0.1);
  color: var(--teal);
}

.status-draft {
  background: rgba(111, 106, 99, 0.12);
  color: var(--muted);
}

/* ----- social icons ----- */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(184, 138, 68, 0.06);
}

.header-social .social-links {
  margin-top: 0;
}

.header-social .social-links a {
  width: 30px;
  height: 30px;
  background: transparent;
  border-color: transparent;
}

.header-social .social-links a:hover {
  background: rgba(184, 138, 68, 0.08);
  border-color: var(--line);
}

/* ----- blog grid ----- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--line);
}

.blog-card-cover-empty {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(184,138,68,0.12), rgba(15,93,94,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.blog-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.blog-card-date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.35;
}

.blog-card-excerpt {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 4px;
}

/* ----- blog modal ----- */

.blog-modal {
  width: min(820px, 95vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0;
  overflow-y: auto;
}

.blog-modal::backdrop {
  background: rgba(7, 20, 38, 0.54);
  backdrop-filter: blur(4px);
}

.blog-modal-content {
  padding: clamp(24px, 4vw, 52px);
}

.blog-post-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 28px;
}

.blog-post-meta {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.blog-post-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.25;
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
}

/* ----- blog form modal ----- */

.blog-form-modal {
  width: min(720px, 95vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 48px);
  overflow-y: auto;
}

.blog-form-modal::backdrop {
  background: rgba(7, 20, 38, 0.54);
  backdrop-filter: blur(4px);
}

/* ----- table heading actions ----- */

.table-heading-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ----- WhatsApp float ----- */

.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  background: #1ebe5d;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37,211,102,0.55);
}

@media (max-width: 820px) {
  .header-social {
    display: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .wa-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
  }
}
