/* Custom Architecture Typography Rule Engine */

:root {
  --primary-serif: 'Libre Caslon Text', serif;
  --primary-sans: 'Inter', sans-serif;
}

body {
  font-family: var(--primary-sans);
  color: #111827;
}

img, svg, video {
  max-width: 100%;
}

h1, h2, h3, h4, .serif-text {
  font-family: var(--primary-serif) !important;
  font-weight: 400;
}

.font-sans {
  font-family: var(--primary-sans) !important;
}

/* Tracking & Text Helper Overrides */

.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-wide {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.15em;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Micro Sizing Engine */

.text-xs {
  font-size: 0.75rem !important;
}

.text-xxs {
  font-size: 0.65rem !important;
}

.text-sm {
  font-size: 0.875rem !important;
}

/* Custom Component Layout Overrides */

.max-w-7xl {
  max-width: 80rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-sm {
  max-width: 24rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.h-400 {
  height: 400px;
}

.min-h-300 {
  min-height: 300px;
}

/* Color Blocks & Background Gradients */

.hero-card-bg {
  background-color: #C67E4D !important;
}

.gradient-bg {
  background: linear-gradient(180deg, #FDE68A 0%, #FFFFFF 100%) !important;
}

.bg-gradient-blueprint {
  background: linear-gradient(180deg, #EFF6FF 0%, #FFFFFF 100%) !important;
}

.bg-warning-subtle {
  background-color: #FEF9C3 !important;
}

.text-warning-dark {
  color: #854D0E !important;
}

.text-orange {
  color: #EA580C !important;
}

/* Component Styling Hooks */

.sticky-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1030;
}

.header-link {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.ux-web-nav-inner {
  gap: 1rem;
}

.ux-web-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 0.25rem;
  background-color: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
}

.ux-web-nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1px;
  background-color: #111827;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ux-web-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.38rem) rotate(45deg);
}

.ux-web-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.ux-web-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.38rem) rotate(-45deg);
}

.meta-label {
  font-size: 10px !important;
  text-uppercase: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-family: var(--primary-sans) !important;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background-color: #000;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.filter-grayscale {
  filter: grayscale(100%);
}

.gallery-img {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

.journey-table th, .journey-table td {
  padding: 1rem 0.5rem !important;
}

/* Utilities for Layout Engine Alignment */

@media (min-width: 992px) {
  .border-end-lg {
    border-end: 1px solid #dee2e6 !important;
  }
}

.gradient-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.hover-text-dark:hover {
  color: #000000 !important;
}

.hover-opacity-70:hover {
  opacity: 0.7;
}

.transition-colors {
  transition: color 0.2s ease-in-out;
}

.transition-opacity {
  transition: opacity 0.2s ease-in-out;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

@media (max-width: 991.98px) {
  .display-1 {
    font-size: 4.25rem;
  }
}

@media (max-width: 991.98px) {
  .display-3 {
    font-size: 3.2rem;
  }
}

@media (max-width: 991.98px) {
  .display-4 {
    font-size: 2.65rem;
  }
}

@media (max-width: 991.98px) {
  .h-400 {
    height: 320px;
  }
}

@media (max-width: 767.98px) {
  body.pt-5 {
    padding-top: 4.75rem !important;
  }
}

@media (max-width: 767.98px) {
  .ux-web-nav-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .ux-web-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}

@media (max-width: 767.98px) {
  .ux-web-nav-links {
    display: none !important;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem !important;
    padding-top: 1rem;
    padding-bottom: 0.35rem;
    border-top: 1px solid rgba(17, 24, 39, 0.1);
  }
}

@media (max-width: 767.98px) {
  .ux-web-nav-links.is-open {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .header-link {
    padding: 0.25rem 0;
  }
}

@media (max-width: 767.98px) {
  main.pt-4 {
    padding-top: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .display-1 {
    font-size: 3rem;
    line-height: 1.05;
  }
}

@media (max-width: 767.98px) {
  .display-3 {
    font-size: 2.4rem;
    line-height: 1.1;
  }
}

@media (max-width: 767.98px) {
  .display-4 {
    font-size: 2.1rem;
    line-height: 1.12;
  }
}

@media (max-width: 767.98px) {
  .fs-3 {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 767.98px) {
  .h-400 {
    height: 240px;
  }
}

@media (max-width: 767.98px) {
  .hero-card-bg {
    padding: 1.5rem !important;
  }
}

@media (max-width: 767.98px) {
  .journey-table {
    min-width: 680px;
  }
}

@media (max-width: 767.98px) {
  #footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 767.98px) {
  #footer .text-center {
    margin-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  #footer a {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

@media (max-width: 767.98px) {
  #footer svg {
    margin-right: 0 !important;
  }
}

@media (max-width: 420px) {
  .display-1 {
    font-size: 2.45rem;
  }
}

@media (max-width: 420px) {
  .display-3 {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .display-4 {
    font-size: 1.8rem;
  }
}

@media (max-width: 420px) {
  .h-400 {
    height: 210px;
  }
}

