/* --- THEME SYSTEM --- */
:root {
  --primary: #0d1f38;
  --primary-soft: #1c365b;
  --accent: #c8a15d;
  --accent-strong: #b4873f;
  --bg-light: #f7f4ef;
  --bg-panel: #ffffff;
  --text-dark: #1f2833;
  --text-soft: #4a5663;
  --text-light: #ffffff;
  --border-soft: #d8dbe2;

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --spacing: clamp(3rem, 5vw, 5rem);
  --radius: 16px;
  --shadow: 0 20px 40px rgba(11, 23, 41, 0.12);
}

/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  color: var(--text-dark);
  background: radial-gradient(circle at top right, #fdf8ec 0%, #fff 40%);
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(92%, 1120px);
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: var(--spacing) 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.8rem;
}

p + p {
  margin-top: 0.9rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

.section-heading {
  margin-bottom: 2rem;
}

/* --- BUTTONS & LINKS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--text-light);
}

.btn-outline:hover {
  background: var(--text-light);
  color: var(--primary);
}

.btn-card {
  background: var(--primary);
  color: var(--text-light);
  margin-top: 1.25rem;
}

.btn-card:hover {
  background: var(--primary-soft);
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

/* --- HEADER --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 31, 56, 0.95);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav a {
  color: var(--text-light);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.btn-nav {
  background: var(--accent);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--text-light);
  transition: 0.2s ease;
}

/* --- HERO --- */
.hero {
  min-height: min(88vh, 860px);
  position: relative;
  background-image: url("assets/images/hero-dallas.webp");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  min-height: inherit;
  display: flex;
  align-items: center;
  background: linear-gradient(110deg, rgba(13, 31, 56, 0.88), rgba(13, 31, 56, 0.45));
}

.hero-content {
  color: var(--text-light);
  max-width: 700px;
}

.hero-content h1,
.hero-content p {
  color: var(--text-light);
}

.hero-copy {
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero-btns {
  margin-top: 1.7rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- ABOUT --- */
.split-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.6rem;
  align-items: center;
}

.image-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- LISTINGS --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.listing-card,
.card {
  background: var(--bg-panel);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(11, 23, 41, 0.1);
  border: 1px solid rgba(200, 161, 93, 0.18);
  overflow: hidden;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.listing-content {
  padding: 1.2rem;
}

.listing-content p {
  color: var(--text-soft);
}

/* --- TESTIMONIALS --- */
.testimonials-grid {
  margin-top: 0.5rem;
}

.quote-card {
  padding: 1.5rem;
}

.quote-card p {
  font-size: 1rem;
  color: var(--text-soft);
}

.quote-card cite {
  margin-top: 1rem;
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}

/* --- VALUATION --- */
.valuation-section {
  background: linear-gradient(135deg, #0f2847, #1c365b);
  color: var(--text-light);
}

.valuation-section h2,
.valuation-section p {
  color: var(--text-light);
}

/* --- FORM --- */
.contact-form {
  margin: 2rem auto 0;
}

.form-status {
  display: none;
  margin-top: 0.7rem;
  font-weight: 700;
}

.agent-info {
  margin-top: 1.6rem;
  padding: 1.4rem;
}

.agent-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1.2;
}

.agent-brokerage {
  margin-top: 0.45rem;
  font-weight: 700;
  color: var(--text-dark);
}

.agent-links {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.agent-links a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 161, 93, 0.7);
}

input:not([type="checkbox"]),
select {
  width: 100%;
  padding: 0.9rem 1rem;
  margin-bottom: 0.95rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font: inherit;
}

input:not([type="checkbox"]):focus,
select:focus {
  outline: 2px solid rgba(200, 161, 93, 0.3);
  border-color: var(--accent);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.2rem 0 1rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.consent-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-strong);
  flex: 0 0 auto;
}

.consent-note {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.full-width {
  width: 100%;
  border: none;
}

/* --- FOOTER --- */
footer {
  background: #081425;
  color: #dfe6ef;
  padding: 1.6rem 0;
}

footer a {
  color: var(--accent);
}

.tiny {
  margin-top: 0.3rem;
  font-size: 0.84rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(13, 31, 56, 0.98);
    flex-direction: column;
    padding: 1.2rem 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    display: block;
    margin: 0.35rem 0;
  }

  .hamburger {
    display: block;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 74vh;
  }

  .agent-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
