/* Hallmark · base stylesheet (Warm Luxury Light Theme) */

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

html {
  font-size: 16px;
  background-color: var(--color-paper);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: var(--color-paper);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

main, section, header, footer, .page-header {
  position: relative;
}

/* Typography Hierarchy (Merriweather + Antic Didone + Rhodium Libre Pairing) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: var(--color-text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

h1 {
  font-size: clamp(1.85rem, 5.2vw, 4.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.32;
}

h4 {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
}

.subheading-didone, .quote-didone {
  font-family: var(--font-subhead);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

p {
  font-family: var(--font-body);
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--color-paper-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: #FFFFFF;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

@media (max-width: 480px) {
  .container, .container-narrow {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 360px) {
  .container, .container-narrow {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Section Spacing */
.section-padding {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
}

/* Button Voice & Micro-Interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              background var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base) var(--ease-out-expo),
              color var(--duration-base) var(--ease-out-expo);
  border: 1px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 640px) {
  .btn {
    padding: 12px 22px;
    font-size: 0.875rem;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .btn {
    padding: 10px 18px;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
  }
}

.btn:active, .btn.is-active {
  transform: translateY(1px) scale(0.98);
}

.btn:focus-visible, .btn.is-focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(135deg, #D49A3D 0%, #B87B1D 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(194, 138, 43, 0.28);
}

.btn-primary:hover, .btn-primary.is-hover {
  background: linear-gradient(135deg, #B87B1D 0%, #9C6714 100%);
  box-shadow: 0 8px 26px rgba(194, 138, 43, 0.38);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(60, 42, 22, 0.04);
}

.btn-secondary:hover, .btn-secondary.is-hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface-hover);
  box-shadow: 0 6px 20px rgba(194, 138, 43, 0.12);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 10px 18px;
}

.btn-ghost:hover, .btn-ghost.is-hover {
  color: var(--color-text-primary);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-ongoing {
  background: var(--color-status-ongoing-bg);
  color: var(--color-status-ongoing);
  border-color: rgba(21, 128, 61, 0.25);
}
.badge-ongoing::before {
  background: var(--color-status-ongoing);
}

.badge-completed {
  background: var(--color-status-completed-bg);
  color: var(--color-status-completed);
  border-color: rgba(179, 128, 36, 0.25);
}
.badge-completed::before {
  background: var(--color-status-completed);
}

.badge-upcoming {
  background: var(--color-status-upcoming-bg);
  color: var(--color-status-upcoming);
  border-color: rgba(29, 78, 216, 0.25);
}
.badge-upcoming::before {
  background: var(--color-status-upcoming);
}

.badge-rera {
  background: var(--color-paper-secondary);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
  font-family: var(--font-mono);
}

/* Custom Cursor Elements */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  display: none;
}

@media (pointer: fine) and (min-width: 992px) {
  .custom-cursor {
    display: block;
  }
}

@media (max-width: 991px), (pointer: coarse) {
  .custom-cursor,
  .cursor-dot,
  .cursor-follower {
    display: none !important;
  }
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(179, 128, 36, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-out-expo),
              border-color 0.3s var(--ease-out-expo);
}

.cursor-follower.is-hovering {
  width: 72px;
  height: 72px;
  background: rgba(179, 128, 36, 0.12);
  border-color: var(--color-accent);
  backdrop-filter: blur(4px);
}

.cursor-follower.is-drag {
  width: 88px;
  height: 88px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.cursor-text {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cursor-follower.is-drag .cursor-text,
.cursor-follower.is-view .cursor-text {
  opacity: 1;
  transform: scale(1);
}

.cursor-follower.is-view {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-paper);
  z-index: var(--z-curtain);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 5vw, 64px);
  pointer-events: all;
  overflow: hidden;
}

@media (max-width: 480px) {
  .preloader {
    padding: 18px 16px;
  }
}

.preloader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.preloader-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.preloader-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 1.2vw, 0.8125rem);
  color: var(--color-text-muted);
}

.preloader-center {
  align-self: flex-start;
  max-width: 100%;
}

.preloader-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.98;
  color: var(--color-text-primary);
  word-break: break-word;
}

.preloader-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-md);
  gap: 12px;
}

.preloader-counter {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.preloader-status {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

/* Page Wipe Transition Curtain */
.page-wipe {
  position: fixed;
  inset: 0;
  background: var(--color-paper-secondary);
  border-top: 2px solid var(--color-accent);
  z-index: 10500;
  transform: translateY(100%);
  pointer-events: none;
}

/* Split-text masking container */
.split-line {
  overflow: hidden;
  display: block;
}

.split-line-inner {
  display: block;
  transform: translateY(110%);
  will-change: transform;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .split-line-inner {
    transform: none !important;
  }
}
