@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

:root {
  --primary: #800020;
  --primary-dark: #600018;
  --accent: #953553;
  --accent-dark: #7e2b45;
  --deep: #1c0f17;
  --gold: #d4af37;
  --text-dark: #292524;
  --text-muted: #78716c;
  --bg-light: #faf9f6;
  --bg-cream: #fdf2f5;
  --border: #e7e5e4;
  --font-serif: "Cinzel", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", Arial, sans-serif;
  --font-mono: "Space Mono", Consolas, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a,
button,
input,
select,
textarea {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(128, 0, 32, 0.28);
}

.container {
  width: min(100% - 2rem, 80rem);
}

.t1-header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.t1-header-bar .container {
  min-height: 88px;
}

.t1-logo img {
  display: none;
}

.t1-logo-text {
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.t1-logo-sub {
  color: var(--primary);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.t1-header-info {
  color: #57534e;
  font-size: 13px;
}

.btn-login-t1,
.btn-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.btn-login-t1:hover,
.btn-login:hover {
  background: var(--primary);
  color: #fff;
}

.t1-nav {
  position: sticky;
  top: 88px;
  z-index: 40;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: #fff;
  scrollbar-width: none;
}

.t1-nav::-webkit-scrollbar {
  display: none;
}

.t1-nav .container {
  width: max-content;
  min-width: min(100%, 80rem);
}

.t1-nav ul li a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #57534e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.t1-nav ul li a:hover,
.t1-nav ul li a.active {
  color: var(--primary);
}

.t1-nav ul li a.active {
  box-shadow: inset 0 -2px 0 var(--primary);
}

.inner-hero,
.pagesx-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.75rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
}

.inner-hero h1,
.pagesx-hero h1,
.viewx-hero h2 {
  max-width: 18ch;
  color: #a8a29e;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.inner-hero p,
.pagesx-hero p,
.viewx-hero p {
  max-width: 68ch;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.inner-panel {
  min-height: 520px;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--bg-light);
}

.content-grid {
  gap: 20px;
}

.content-card,
.service-card,
.viewx-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.content-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-card h2,
.content-card h3,
.service-card h3,
.viewx-card h3 {
  color: var(--primary);
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.content-card p,
.content-card li,
.service-card p {
  max-width: 72ch;
  color: #57534e;
  line-height: 1.75;
}

.highlight-box h3,
.highlight-box p {
  color: #fff;
}

.highlight-box .btn-white-cta {
  border-color: #fff;
  background: #fff;
  color: var(--primary);
}

.service-card {
  padding: 24px;
}

.service-card .svc-icon {
  color: var(--primary);
}

.process-step {
  border-color: var(--border);
}

.process-step::before {
  background: var(--primary);
  color: #fff;
}

.btn-primary-cta,
.btn-gold-cta,
.btn-white-cta,
.viewx-submit,
.pagesx-hero-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-primary-cta,
.viewx-submit {
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(128, 0, 32, 0.75);
}

.btn-gold-cta,
.btn-white-cta,
.pagesx-hero-link {
  border: 2px solid #d6d3d1;
  background: #fff;
  color: var(--primary);
  box-shadow: none;
}

.btn-primary-cta:hover,
.viewx-submit:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gold-cta:hover,
.btn-white-cta:hover,
.pagesx-hero-link:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.field label,
.viewx-form-grid label {
  color: #44403c;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea,
.viewx-form-grid input,
.viewx-form-grid select,
.viewx-form-grid textarea,
.data-table input {
  min-height: 44px;
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  background: #fff;
  color: var(--text-dark);
  font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.viewx-form-grid input:focus,
.viewx-form-grid select:focus,
.viewx-form-grid textarea:focus,
.data-table input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.12);
}

.data-table,
.orders-table {
  overflow: hidden;
  border-radius: 12px;
}

.data-table th,
.orders-table th {
  background: var(--primary);
}

.summary-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: none;
}

.t1-footer {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: #57534e;
}

.t1-fc .tf-label,
.t1-fc p,
.t1-fc .tf-value,
.t1-fc a,
.t1-fc i {
  color: inherit;
}

.t1-fc .tf-label {
  color: #a8a29e;
}

.t1-fc .tf-value {
  color: var(--text-dark);
}

.t1-footer-bottom {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: #78716c;
}

.t1-footer-bottom a {
  color: #78716c;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .content-card:hover {
    border-color: #a8a29e;
  }
}

@media (max-width: 900px) {
  .services-grid[style],
  .content-grid,
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .t1-header-bar .container {
    min-height: 76px;
  }

  .t1-nav {
    top: 76px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.25rem, 80rem);
  }

  .t1-header-bar {
    position: relative;
  }

  .t1-header-bar .container {
    min-height: 70px;
  }

  .t1-header-right .t1-header-info {
    display: none;
  }

  .btn-login-t1 {
    padding-inline: 12px;
  }

  .t1-nav {
    top: 0;
  }

  .inner-hero .container,
  .pagesx-hero .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .services-grid[style],
  .content-grid,
  .form-grid,
  .viewx-form-grid,
  .summary-strip {
    grid-template-columns: 1fr !important;
  }

  .content-card.wide,
  .form-grid .full,
  .viewx-form-grid .full {
    grid-column: 1;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .table-scroll {
    margin-inline: -12px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
