/* ============================================================
   Elite LUX Realty — Base: Reset, Typography, Utilities
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ── Typography Hierarchy ─────────────────────────── */

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-sm);
}

.section-eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--champagne);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.section-title em { font-style: italic; color: var(--champagne); }

.section-title--light { color: var(--white); }
.section-title--light em { color: var(--champagne); }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid-gray);
  max-width: 560px;
}

.section-subtitle--light { color: rgba(255,255,255,0.55); }

/* ── Container ───────────────────────────────────── */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Utilities ───────────────────────────────────── */

.text-center   { text-align: center; }
.text-champagne { color: var(--champagne); }
.text-white    { color: var(--white); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Scroll margin for sticky nav ───────────────── */
[id] { scroll-margin-top: 100px; }


/* ── Mobile interaction fixes ─────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }

button, a, [role="button"] {
  touch-action: manipulation;
}

/* Prevent images & embeds from causing overflow */
img, video, iframe, embed, object {
  max-width: 100%;
}

/* Input zoom prevention on iOS (font-size >= 16px) */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="url"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px !important;
  }
}