:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --surface: #121212;
  --surface-alt: #171717;
  --surface-strong: #1f1f1f;
  --surface-2: #151515;
  --surface-3: #1c1c1c;
  --text: #ffffff;
  --text-soft: #d4d8df;
  --text-muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(200, 169, 107, 0.24);
  --brand: #c8a96b;
  --gold: #c8a96b;
  --brand-strong: #b48f49;
  --brand-soft: rgba(200, 169, 107, 0.16);
  --accent: #7fd1a8;
  --accent-soft: rgba(127, 209, 168, 0.16);
  --warning: #e3c56f;
  --warning-soft: rgba(184, 134, 11, 0.16);
  --danger: #f07d7d;
  --danger-soft: rgba(240, 125, 125, 0.14);
  --shadow-sm: 0 16px 40px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.34);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --container: min(1180px, calc(100vw - 40px));
  --transition: 180ms ease;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-alt: #f7f4ee;
  --surface-strong: #ece7de;
  --surface-2: #f7f4ee;
  --surface-3: #ece7de;
  --text: #111827;
  --text-soft: #5b6472;
  --text-muted: #5b6472;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(200, 169, 107, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(200, 169, 107, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.06), transparent 18%),
    linear-gradient(180deg, #0d0d0d 0%, #111111 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at top right, rgba(200, 169, 107, 0.12), transparent 22%),
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.06), transparent 18%),
    linear-gradient(180deg, #f4f1ea 0%, #ede6da 100%);
}

.container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

body[data-theme="light"] header {
  background: rgba(244, 241, 234, 0.82);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
  min-width: 0;
}

.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--brand);
  font-family: "Playfair Display", serif;
  letter-spacing: 0.6px;
  min-width: 0;
}

.logo .logo-sub {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 4px;
  margin-left: 18px;
}

.logo .logo-crown {
  position: absolute;
  left: 2px;
  top: -24px;
  width: 18px;
  height: 12px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links a {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  opacity: 0.85;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, opacity 0.2s ease;
  flex: 0 1 auto;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
  background: rgba(200, 169, 107, 0.25);
  outline: none;
}

.nav-links a.active {
  opacity: 1;
  background: rgba(200, 169, 107, 0.25);
}

.nav-links .btn,
.nav-links .btn.btn-primary,
.nav-links .login-toggle {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  white-space: nowrap;
}

.nav-links .btn,
.nav-links .btn.btn-primary {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text);
  font-weight: 600;
  opacity: 0.85;
}

.nav-links .btn:hover,
.nav-links .btn:focus-visible {
  background: rgba(200, 169, 107, 0.25);
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.nav-links .login-toggle {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.nav-links #bookViewingBtn {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 150px;
}

.nav-links #userProfileBtn {
  max-width: 150px;
  overflow: hidden;
  min-width: 0;
  flex: 0 1 150px;
}

.nav-actions .theme-toggle {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--text);
  display: inline-flex;
  font-weight: 600;
  margin-left: auto;
  opacity: 0.85;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-actions .theme-toggle:hover,
.nav-actions .theme-toggle:focus-visible {
  background: rgba(200, 169, 107, 0.25);
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.profile-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-2);
  flex: 0 0 auto;
}

.btn,
.login-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  background: var(--gold);
  color: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.35s ease, height 0.35s ease, opacity 0.35s ease;
}

.btn:active::after {
  width: 220%;
  height: 220%;
  opacity: 0;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.35);
}

.btn-primary {
  background: var(--gold);
  color: #111;
}

.theme-toggle span {
  font-size: 0.9rem;
}

.btn:hover,
.btn:focus-visible,
.login-toggle:hover,
.login-toggle:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.35);
  transform: translateY(-1px);
}

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

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

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

button {
  cursor: pointer;
}

main {
  min-height: calc(100vh - 360px);
}

.shell-container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  padding-top: 112px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

body[data-theme="light"] .site-header {
  background: rgba(244, 241, 234, 0.86);
}

.header-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-crown {
  width: 18px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1;
}

.brand-copy strong,
.page-banner-card h1,
.section-heading h2,
.section-header h1,
.section-header h2,
.detail-copy h1,
.article-main h1,
.detail-card h2,
.article-main h2,
.footer-panel h2,
.card-eyebrow,
.stat-block strong,
.contact-card h3,
.admin-header h1,
.admin-auth-card h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
}

.brand-copy strong {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.brand-copy small {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-brand .brand-copy strong {
  font-size: 1.6rem;
}

.footer-brand .brand-copy small {
  letter-spacing: 0.16em;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

.site-nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  opacity: 0.86;
}

.site-nav-links a:hover,
.site-nav-links a:focus-visible,
.site-nav-links a.active {
  background: rgba(200, 169, 107, 0.2);
  color: var(--text);
  opacity: 1;
  outline: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--brand);
  color: #111111;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d6b67c;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(200, 169, 107, 0.14);
  border-color: rgba(200, 169, 107, 0.34);
}

.button-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
}

.button-danger {
  background: var(--danger-soft);
  color: #ffd2d2;
  border-color: rgba(240, 125, 125, 0.18);
}

.site-nav .nav-cta,
.site-nav .nav-cta:visited,
.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  flex: 0 0 auto;
  min-width: 176px;
  color: #111111;
}

.site-nav .nav-cta span,
.site-nav .nav-cta .icon {
  color: inherit;
}

.theme-toggle .icon {
  width: 1rem;
  height: 1rem;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.page-hero,
.section {
  padding: 72px 0;
}

.hero-eyebrow,
.card-eyebrow,
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 169, 107, 0.16);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-header,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-header h1,
.section-header h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

.page-banner {
  padding: 36px 0 12px;
}

.page-banner-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(200, 169, 107, 0.14), rgba(18, 18, 18, 0.96) 44%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

body[data-theme="light"] .page-banner-card {
  background:
    linear-gradient(135deg, rgba(200, 169, 107, 0.12), rgba(255, 255, 255, 0.98) 44%),
    var(--surface);
}

.page-banner-card h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-banner-card p,
.section-header p,
.section-heading p,
.article-body-copy p,
.quote-card blockquote,
.testimonial-card blockquote,
.admin-list-card p,
.helper-text,
.field-note,
.detail-copy p,
.footer-panel p,
.contact-card p {
  color: var(--text-soft);
}

.page-banner-card p {
  margin: 0;
  max-width: 64ch;
}

.section-stack {
  display: grid;
  gap: 24px;
}

.hero-actions,
.section-actions,
.inventory-actions,
.contact-actions,
.admin-toolbar,
.card-meta,
.item-meta,
.muted-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.grid-2,
.grid-3,
.grid-4,
.projects-grid,
.inventory-grid,
.article-grid,
.metrics-grid,
.process-grid,
.contact-grid,
.testimonial-grid,
.admin-list,
.content-grid,
.form-grid,
.filter-row,
.availability-grid,
.meta-grid,
.stats-row,
.market-points-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

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

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

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

.article-grid {
  grid-template-columns: 1.35fr 0.65fr;
}

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

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

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

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

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

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

.market-points-grid,
.contact-page-grid .contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: start;
}

.contact-page-grid .field,
.contact-page-grid .field input,
.contact-page-grid .field select,
.contact-page-grid .field textarea {
  min-width: 0;
}

.contact-page-grid .field select {
  max-width: 100%;
}

.article-main,
.article-sidebar,
.detail-copy,
.gallery-shell,
.admin-shell {
  display: grid;
  gap: 18px;
}

.card,
.project-card,
.inventory-card,
.article-card,
.contact-card,
.admin-card,
.info-card,
.toolbar-card,
.form-card,
.surface-card,
.detail-card,
.admin-auth-card,
.admin-panel,
.lead-card,
.testimonial-card,
.quote-card,
.cta-band,
.empty-state,
.skeleton-card {
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

body[data-theme="light"] .card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .inventory-card,
body[data-theme="light"] .article-card,
body[data-theme="light"] .contact-card,
body[data-theme="light"] .admin-card,
body[data-theme="light"] .info-card,
body[data-theme="light"] .toolbar-card,
body[data-theme="light"] .form-card,
body[data-theme="light"] .surface-card,
body[data-theme="light"] .detail-card,
body[data-theme="light"] .admin-auth-card,
body[data-theme="light"] .admin-panel,
body[data-theme="light"] .lead-card,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .quote-card,
body[data-theme="light"] .cta-band,
body[data-theme="light"] .empty-state,
body[data-theme="light"] .skeleton-card {
  background: var(--surface);
}

.project-card,
.inventory-card,
.article-card,
.contact-card,
.admin-card {
  overflow: hidden;
  position: relative;
  z-index: 0;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.project-card:hover,
.inventory-card:hover,
.article-card:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
  border-color: rgba(200, 169, 107, 0.26);
}

.toolbar-card,
.form-card,
.info-card,
.surface-card,
.detail-card,
.admin-auth-card,
.admin-panel,
.quote-card,
.cta-band {
  padding: 24px;
}

.page-banner-card,
.admin-auth-card,
.admin-panel {
  border-radius: var(--radius-xl);
}

.card-media,
.project-thumb,
.inventory-media,
.article-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1f1f1f, #151515);
}

body[data-theme="light"] .card-media,
body[data-theme="light"] .project-thumb,
body[data-theme="light"] .inventory-media,
body[data-theme="light"] .article-cover {
  background: linear-gradient(135deg, #f7f4ee, #ece7de);
}

.card-media img,
.project-thumb img,
.inventory-media img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.project-body,
.inventory-body,
.article-body,
.contact-body,
.admin-card-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.item-meta,
.muted-row {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.item-meta .icon,
.muted-row .icon,
.footer-link-inline .icon,
.button .icon {
  color: var(--brand);
}

.project-body h3,
.inventory-body h3,
.article-body h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.35;
}

.project-body p,
.inventory-body p,
.article-body p {
  margin: 0;
  color: var(--text-soft);
}

.status-chip,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-chip.available,
.status-chip.published {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-chip.coming,
.status-chip.draft {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-chip.sold,
.status-chip.reserved {
  background: var(--danger-soft);
  color: var(--danger);
}

.availability-pill,
.stat-block,
.meta-grid .meta-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.availability-pill {
  display: grid;
  gap: 4px;
}

.availability-pill strong,
.stat-block strong {
  font-size: 1.1rem;
  color: var(--brand);
}

.stat-block span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.field,
.field-stack {
  display: grid;
  gap: 8px;
}

.field label,
.field-stack label,
.form-card h3,
.surface-card h3,
.info-card h3 {
  font-weight: 700;
  font-size: 0.96rem;
}

.field input,
.field select,
.field textarea,
.field-stack input,
.field-stack select,
.field-stack textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field[hidden] {
  display: none !important;
}

.field textarea,
.field-stack textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(156, 163, 175, 0.76);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.field-stack input:focus,
.field-stack select:focus,
.field-stack textarea:focus {
  outline: none;
  border-color: rgba(200, 169, 107, 0.45);
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.1);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-alt);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-thumb {
  padding: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  overflow: hidden;
  background: var(--surface-alt);
}

.gallery-thumb.is-active {
  border-color: rgba(200, 169, 107, 0.34);
}

.gallery-thumb img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.detail-copy h1,
.article-main h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.detail-card h2,
.article-main h2 {
  margin: 0 0 12px;
}

.article-cover {
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.article-body-copy p {
  margin: 0 0 18px;
}

.quote-card {
  background: linear-gradient(180deg, rgba(200, 169, 107, 0.14), rgba(18, 18, 18, 0.68));
  border-color: var(--line-strong);
}

body[data-theme="light"] .quote-card {
  background: linear-gradient(180deg, rgba(200, 169, 107, 0.14), rgba(255, 255, 255, 0.92));
}

.quote-card blockquote,
.testimonial-card blockquote {
  margin: 0;
}

.contact-card {
  min-height: 0;
}

.contact-card .contact-body {
  align-content: start;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.contact-page-grid .contact-card {
  min-height: 0;
}

.contact-page-grid .contact-body {
  height: 100%;
  gap: 14px;
}

.map-frame {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.testimonial-card {
  display: grid;
  gap: 16px;
}

.testimonial-author strong,
.lead-card strong,
.meta-item strong {
  display: block;
}

.cta-band {
  display: grid;
  gap: 18px;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  background: linear-gradient(135deg, rgba(200, 169, 107, 0.22), rgba(18, 18, 18, 0.96) 52%);
}

body[data-theme="light"] .cta-band {
  background: linear-gradient(135deg, rgba(200, 169, 107, 0.18), rgba(255, 255, 255, 0.95) 52%);
}

.site-footer {
  margin-top: 72px;
  padding: 0 0 24px;
}

.site-footer .footer-grid {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.site-footer .footer-grid h4 {
  margin-bottom: 12px;
  color: var(--text);
}

.site-footer .footer-grid p,
.site-footer .footer-grid a {
  color: var(--text-muted);
  display: block;
  line-height: 1.65;
}

.footer-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-panel-brand p {
  max-width: 34ch;
}

.footer-link-stack {
  display: grid;
  gap: 8px;
}

.footer-link-stack-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.footer-link-inline {
  color: var(--brand) !important;
  font-weight: 700;
}

.site-footer .footer-grid a:hover,
.site-footer .footer-grid a:focus-visible {
  color: var(--brand);
  outline: none;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
}

.whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #111111;
  box-shadow: var(--shadow-lg);
}

.admin-auth-card,
.admin-panel {
  padding: 28px;
}

.admin-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-header h1,
.admin-auth-card h1,
.admin-form h2,
.admin-card-body h2,
.admin-list-card h3 {
  margin: 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.admin-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-weight: 700;
}

.admin-tab.is-active {
  background: var(--brand);
  color: #111111;
  border-color: transparent;
}

.admin-section {
  display: none;
  gap: 20px;
}

.admin-section.is-active {
  display: grid;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 20px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-list-card {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.admin-list-card:last-child {
  border-bottom: 0;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: var(--surface-alt);
}

.table-list {
  display: grid;
  gap: 14px;
}

.lead-card {
  padding: 20px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(200, 169, 107, 0.24);
  text-align: center;
}

.skeleton-card {
  padding: 18px;
}

.skeleton-block {
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(200, 169, 107, 0.05), rgba(200, 169, 107, 0.14), rgba(200, 169, 107, 0.05));
  background-size: 240% 100%;
  animation: shimmer 1.1s linear infinite;
}

.skeleton-media {
  aspect-ratio: 16 / 10;
}

.skeleton-line {
  height: 14px;
  margin-top: 14px;
}

.skeleton-line.short {
  width: 65%;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #111111;
  color: #f7fbff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.success {
  background: #0d5f43;
}

.toast.error {
  background: #8b2f2f;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  z-index: 1500;
}

.spinner-ring {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 4px solid rgba(200, 169, 107, 0.12);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1100px) {
  .detail-layout,
  .contact-page-grid,
  .article-grid,
  .cta-band,
  .admin-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics-grid,
  .process-grid,
  .contact-grid,
  .projects-grid,
  .inventory-grid,
  .testimonial-grid,
  .footer-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .market-points-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1003;
    color: var(--brand);
    background: var(--surface);
    border-color: var(--line);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  }

  nav {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-actions {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    position: static;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    margin-left: 0;
    margin-top: 0;
    background: rgba(13, 13, 13, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
  }

  body[data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a,
  .nav-links .btn,
  .nav-links .btn.btn-primary,
  .nav-links .login-toggle {
    width: 100%;
    justify-content: center;
  }

  .nav-links .login-toggle {
    max-width: none;
  }

  .nav-links #bookViewingBtn,
  .nav-links #userProfileBtn {
    max-width: none;
    flex: 0 0 auto;
  }

  .nav-links #userProfileBtn {
    justify-content: flex-start;
    padding: 12px 16px;
    min-height: 58px;
    border-radius: 18px;
    background: rgba(200, 169, 107, 0.18);
    border: 1px solid rgba(200, 169, 107, 0.34);
    box-shadow: none;
    color: var(--text);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    text-transform: none;
  }

  .nav-links #userProfileBtn:hover,
  .nav-links #userProfileBtn:focus-visible {
    background: rgba(200, 169, 107, 0.24);
    box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.16);
    transform: none;
  }

  .nav-links #userProfileBtn .profile-chip {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
  }

  .nav-links #userProfileBtn .profile-chip span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  .nav-links #userProfileBtn .profile-chip img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
  }

  .nav-actions .theme-toggle {
    margin-left: 0;
    order: 2;
    min-height: 46px;
    min-width: 46px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    opacity: 1;
  }

  .nav-actions .theme-toggle #themeToggleText {
    display: none;
  }

  .nav-actions .theme-toggle #themeToggleIcon {
    display: inline-flex;
    font-size: 1rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    margin-left: 0;
    background: rgba(13, 13, 13, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body[data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.96);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .site-nav-links a {
    padding: 12px 14px;
  }

  .nav-cta {
    width: 100%;
  }

  .login-toggle {
    width: 100%;
  }

  .theme-toggle {
    width: auto;
    justify-content: center;
  }

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

  .page-shell {
    padding-top: 94px;
  }

  .header-row {
    min-height: 74px;
    gap: 12px;
  }

  .brand-mark {
    gap: 12px;
  }

  .brand-copy strong {
    font-size: 1.72rem;
  }

  .brand-copy small {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .page-banner-card {
    padding: 24px;
  }

  .page-banner-card h1,
  .detail-copy h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }

  .section,
  .page-hero {
    padding: 56px 0;
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-page-grid > :first-child {
    order: 2;
  }

  .contact-page-grid > :last-child {
    order: 1;
  }

  .contact-page-grid .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card .contact-body {
    gap: 10px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-thumb img {
    height: 84px;
  }

  .admin-auth-card,
  .admin-panel {
    padding: 22px;
  }

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

  .admin-toolbar,
  .section-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar .button,
  .section-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .admin-tab {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .site-footer {
    margin-top: 48px;
    padding-bottom: 18px;
  }

  .site-footer .footer-grid {
    padding: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .footer-link-stack-compact {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 84px;
  }

  .header-row {
    min-height: 78px;
  }

  .brand-copy strong {
    font-size: 1.65rem;
  }

  .brand-copy small {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .page-banner-card,
  .toolbar-card,
  .form-card,
  .surface-card,
  .info-card,
  .detail-card,
  .admin-auth-card,
  .admin-panel,
  .cta-band {
    padding: 18px;
  }

  .page-banner-card h1,
  .detail-copy h1 {
    font-size: 1.95rem;
  }

  .stats-row,
  .availability-grid,
  .meta-grid,
  .gallery-thumbs,
  .filter-row,
  .filter-row.compact,
  .form-grid,
  .contact-page-grid .contact-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-card .field {
    min-width: 0;
  }

  .toolbar-card .field label {
    line-height: 1.35;
  }

  .toolbar-card .field input,
  .toolbar-card .field select {
    min-height: 50px;
  }

  .page-banner {
    padding: 24px 0 6px;
  }

  .page-banner-card p,
  .helper-text,
  .article-body-copy p,
  .detail-copy p,
  .contact-card p {
    font-size: 0.98rem;
  }
}


