/* =====================================================
   Trevor William Lawrence — Real Estate Landing Page
   Luxury navy + gold palette · Fraunces × Manrope
   ===================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Navy palette */
  --navy-deepest: #04091a;
  --navy-deep:    #07101f;
  --navy:         #0a1628;
  --navy-mid:     #102544;
  --navy-light:   #1a3766;
  --blue-real:    #1d4378;
  --blue-glow:    #2d5896;

  /* Gold accents */
  --gold:         #c9a961;
  --gold-bright:  #e8cc8e;
  --gold-deep:    #8d6f30;
  --gold-soft:    rgba(201, 169, 97, 0.18);

  /* Neutrals */
  --ivory:        #f4f1ea;
  --cream:        #ddd6c4;
  --text:         rgba(244, 241, 234, 0.92);
  --text-muted:   rgba(244, 241, 234, 0.62);
  --text-dim:     rgba(244, 241, 234, 0.42);

  /* Surfaces */
  --surface:      rgba(10, 22, 40, 0.72);
  --surface-hi:   rgba(15, 32, 58, 0.82);
  --border:       rgba(201, 169, 97, 0.22);
  --border-soft:  rgba(201, 169, 97, 0.12);

  /* Typography */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--navy-deepest);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
button { font: inherit; cursor: pointer; }

/* ---------- Top Bar ---------- */
.topbar {
  position: relative;
  z-index: 5;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(2px);
}
.topbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.brand__monogram {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-transform: none;
  font-feature-settings: 'lnum';
}
.brand__divider {
  width: 1px;
  height: 22px;
  background: var(--border);
}
.topbar__link {
  color: var(--ivory);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topbar__link:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--navy-deepest);
  isolation: isolate;
  overflow: hidden;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__backdrop svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 56px) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 960px) {
  .hero__container {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }
}

/* ---------- Intro (left column) ---------- */
.hero__intro {
  display: flex;
  flex-direction: column;
  animation: fadeUp 1s var(--ease) both;
}
.portrait {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 0 28px;
  border-radius: 50%;
  isolation: isolate;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  filter: saturate(1.05) contrast(1.02);
  box-shadow:
    0 20px 50px -20px rgba(0, 0, 0, 0.6),
    inset 0 0 0 4px var(--navy-deep);
}
.portrait__ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.portrait__ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.display-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ivory);
  font-variation-settings: 'opsz' 144;
  /* Subtle gradient on display name for depth */
  background: linear-gradient(180deg, #fbf7eb 0%, #ddd6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display-name__accent {
  display: block;
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text);
}
.role__sep {
  margin: 0 12px;
  color: var(--gold);
  font-weight: 300;
}
.role__brokerage {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.gold-rule {
  display: block;
  width: 64px;
  height: 1px;
  margin: 28px 0 32px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  position: relative;
}
.gold-rule::before {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---------- Contact list ---------- */
.contact-list {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--text);
}
.contact-list__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid var(--border-soft);
  margin-top: -2px;
}
.contact-list__icon svg {
  width: 14px;
  height: 14px;
}
.contact-list__text {
  padding-top: 4px;
}
a.contact-list__text {
  position: relative;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
a.contact-list__text:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* ---------- CTA bar ---------- */
.cta-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, rgba(201, 169, 97, 0.02) 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.cta-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(201, 169, 97, 0.06) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cta-bar:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(201, 169, 97, 0.25);
}
.cta-bar:hover::before { opacity: 1; }
.cta-bar:hover .cta-bar__arrow {
  transform: translateX(4px);
  color: var(--gold-bright);
}
.cta-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.cta-bar__icon svg { width: 18px; height: 18px; }
.cta-bar__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.cta-bar__title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ivory);
  letter-spacing: -0.005em;
}
.cta-bar__sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.cta-bar__arrow {
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
  position: relative;
  z-index: 1;
}

/* ---------- Form (right column) ---------- */
.hero__form-wrap {
  position: relative;
  animation: fadeUp 1s var(--ease) 0.15s both;
}
.contact-form {
  position: relative;
  padding: clamp(28px, 3.5vw, 40px);
  background:
    linear-gradient(180deg, rgba(15, 32, 58, 0.85) 0%, rgba(10, 22, 40, 0.82) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.contact-form__header {
  margin-bottom: 24px;
}
.contact-form__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-form__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

/* Field */
.field {
  display: block;
  margin-bottom: 16px;
}
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ivory);
  background: rgba(4, 9, 26, 0.55);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  font-family: var(--font-body);
}
.field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:hover,
.field textarea:hover {
  border-color: var(--border);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  background: rgba(4, 9, 26, 0.75);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.12);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: rgba(220, 90, 90, 0.5);
}

/* Checkbox variant */
.field.field--checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  margin: 4px 0 18px;
  cursor: pointer;
  user-select: none;
  position: relative;
}
.field--checkbox .checkbox-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.field--checkbox .checkbox-mark {
  width: 22px;
  height: 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: rgba(4, 9, 26, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-deep);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  margin-top: 1px;
  flex-shrink: 0;
}
.field--checkbox .checkbox-mark svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.field--checkbox:hover .checkbox-mark {
  border-color: var(--border);
}
.field--checkbox .checkbox-input:focus-visible + .checkbox-mark {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.18);
}
.field--checkbox .checkbox-input:checked + .checkbox-mark {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border-color: var(--gold-deep);
}
.field--checkbox .checkbox-input:checked + .checkbox-mark svg {
  opacity: 1;
  transform: scale(1);
}
.field__check-label {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.field__check-label strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.field__check-label a {
  color: var(--gold);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.25s var(--ease);
}
.field__check-label a:hover {
  color: var(--gold-bright);
}

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-deep);
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  border: 1px solid var(--gold-deep);
  border-radius: var(--r-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(201, 169, 97, 0.4);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(201, 169, 97, 0.5);
  filter: brightness(1.04);
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
  position: relative;
  z-index: 1;
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.consent {
  margin: 18px 0 0;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.consent strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.consent a {
  color: var(--gold);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.25s var(--ease);
}
.consent a:hover {
  color: var(--gold-bright);
}

/* Form success */
.form-success {
  text-align: center;
  padding: 32px 16px 8px;
  animation: fadeUp 0.6s var(--ease);
}
.form-success svg {
  width: 56px;
  height: 56px;
  color: var(--gold);
  margin: 0 auto 16px;
  display: block;
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--ivory);
}
.form-success p {
  margin: 0;
  color: var(--text-muted);
}
.form-success a {
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

/* ---------- Features ---------- */
.features {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0;
  background:
    linear-gradient(180deg, var(--navy-deepest) 0%, var(--navy-deep) 50%, var(--navy-deepest) 100%);
}
.features::before,
.features::after {
  content: '';
  position: absolute;
  left: 50%;
  width: clamp(280px, 50%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  transform: translateX(-50%);
}
.features::before { top: 0; }
.features::after  { bottom: 0; }

.features__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
@media (max-width: 800px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(15, 32, 58, 0.5) 0%, rgba(10, 22, 40, 0.4) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.5);
}
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.08);
  border: 1px solid var(--border);
  color: var(--gold);
  margin-bottom: 20px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ivory);
}
.feature-card__copy {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deepest);
  padding: clamp(40px, 6vw, 64px) 0 28px;
  border-top: 1px solid var(--border-soft);
}
.footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  text-align: center;
}
.footer__brand {
  margin-bottom: 24px;
}
.footer__monogram {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}
.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--ivory);
}
.footer__meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.footer__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.footer__nav a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.footer__nav a:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}
.footer__sep { color: var(--gold); }
.footer__legal {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 600px) {
  .topbar__inner { font-size: 13px; }
  .brand__label { display: none; }
  .portrait { width: 110px; height: 110px; }
  .display-name { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .cta-bar { padding: 16px; gap: 14px; }
  .cta-bar__title { font-size: 1.05rem; }
  .cta-bar__sub { font-size: 0.8rem; }
  .contact-form { padding: 24px 20px; }
}
