/* ============================================
   JESSICA PALMER REAL ESTATE — Main Stylesheet
   ============================================
   1.  CSS Custom Properties
   2.  CSS Reset
   3.  Base Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Navigation
   7.  Hero Sections
   8.  Cards
   9.  Footer
   10. Back-to-Top Button
   11. Page: Home
   12. Page: About
   13. Page: Listings
   14. Page: Testimonials
   15. Page: Contact
   16. Animations & Transitions
   17. Responsive: Tablet (768px)
   18. Responsive: Desktop (1024px)
   19. Responsive: Large (1280px)
   ============================================ */

/* ----------------------------------------
   1. CSS Custom Properties
   ---------------------------------------- */
:root {
  /* Colors */
  --color-primary: #1C1C1E;
  --color-gold: #C9A84C;
  --color-gold-dark: #B8943F;
  --color-gold-light: #D4B965;
  --color-cream: #FAF7F0;
  --color-white: #FFFFFF;
  --color-gray-light: #F5F3EF;
  --color-text: #1C1C1E;
  --color-text-light: #6B6B6B;
  --color-text-inverse: #FFFFFF;
  --color-border: #E8E4DC;
  --color-overlay: rgba(28, 28, 30, 0.7);

  /* Fonts */
  --font-heading: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  /* Font Weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.25rem;
  --nav-height: 80px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(28, 28, 30, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 28, 30, 0.08);
  --shadow-lg: 0 8px 30px rgba(28, 28, 30, 0.1);
  --shadow-xl: 0 16px 50px rgba(28, 28, 30, 0.12);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slower: 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----------------------------------------
   2. CSS Reset
   ---------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ----------------------------------------
   3. Base Typography
   ---------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-2xl);
}

h3 {
  font-size: var(--fs-xl);
}

h4 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: var(--lh-normal);
}

p:last-child {
  margin-bottom: 0;
}

.gold-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

/* ----------------------------------------
   4. Layout Utilities
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--cream {
  background-color: var(--color-cream);
}

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

.section--white {
  background-color: var(--color-white);
}

.section--charcoal {
  background-color: var(--color-primary);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__heading {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-lg);
}

.section__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width var(--transition-slower);
}

.section__heading.gold-line--visible::after {
  width: 60px;
}

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

/* ----------------------------------------
   5. Buttons
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary — Gold */
.btn--primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border: 2px solid var(--color-gold);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent 30%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 70%);
  transition: left 0.6s ease;
}

.btn--primary:hover {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover::after {
  left: 100%;
}

.btn--primary:active {
  transform: scale(0.98);
}

/* Outline — Charcoal */
.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

/* Outline — White */
.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

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

/* Button Sizes */
.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-sm);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-xs);
}

/* ----------------------------------------
   6. Navigation
   ---------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: transparent;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar--scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.625rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  z-index: 1001;
}

.navbar--scrolled .navbar__logo,
.page-hero~.navbar .navbar__logo {
  color: var(--color-primary);
}

/* Hamburger checkbox (hidden) */
.navbar__checkbox {
  display: none;
}

/* Hamburger button */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.navbar__checkbox:checked~.navbar__hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__checkbox:checked~.navbar__hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar__checkbox:checked~.navbar__hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.navbar__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(28, 28, 30, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.navbar__checkbox:checked~.navbar__overlay {
  opacity: 1;
  visibility: visible;
}

/* Mobile menu */
.navbar__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--color-white);
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: right var(--transition-base);
  z-index: 1000;
  overflow-y: auto;
}

.navbar__checkbox:checked~.navbar__menu {
  right: 0;
}

.navbar__link {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  position: relative;
  transition: color var(--transition-fast);
  border-bottom: 1px solid var(--color-border);
}

.navbar__link--active {
  color: var(--color-gold);
}

.navbar__link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
  padding: 0.75rem 1.75rem;
  background-color: var(--color-gold);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all var(--transition-base);
}

.navbar__link--cta:hover {
  background-color: var(--color-gold-dark);
}

/* ----------------------------------------
   7. Hero Sections
   ---------------------------------------- */

/* Split Hero (Home) */
.hero-split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.hero-split__image {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

.hero-split__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-split__image::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--color-cream));
  z-index: 1;
  pointer-events: none;
  display: none;
}

.hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-2xl) var(--container-padding);
  background-color: var(--color-cream);
}

.hero-split__heading {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

.hero-split__text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.hero-split__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero entrance animation */
.hero-split__content .gold-label {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards;
}

.hero-split__heading {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards;
}

.hero-split__text {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.hero-split__buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: heroEntrance 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Hero (Inner Pages) */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: var(--nav-height);
  background-color: var(--color-cream);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

/* Cream overlay for readability over background images */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 247, 240, 0.85);
  z-index: 1;
}

/* Bottom gradient for smooth transition into next section */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-white));
  z-index: 2;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-3xl) var(--container-padding);
}

.page-hero__heading {
  font-size: var(--fs-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.page-hero__text {
  font-size: var(--fs-md);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------
   8. Cards
   ---------------------------------------- */

/* Property Card */
.property-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card--hidden {
  display: none;
}

.property-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-gold-light);
}

.property-card__image {
  position: relative;
  overflow: hidden;
  height: 240px;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .property-card__image img {
  transform: scale(1.08);
}

.property-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 0.375rem 1rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.property-card__badge--featured {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.property-card__badge--sale {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.property-card__badge--sold {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.property-card__badge--pending {
  background-color: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.property-card__body {
  padding: var(--space-lg);
}

.property-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.property-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.property-card__address {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.property-card__specs {
  display: flex;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
}

.property-card__spec {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.property-card__spec i {
  color: var(--color-gold);
  font-size: var(--fs-sm);
}

.property-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.property-card__link:hover {
  color: var(--color-gold);
}

.property-card__link i {
  font-size: var(--fs-xs);
  transition: transform var(--transition-fast);
}

.property-card__link:hover i {
  transform: translateX(4px);
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.testimonial-card__quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.testimonial-card__text {
  font-size: var(--fs-base);
  font-style: italic;
  line-height: var(--lh-relaxed);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-md);
}

.testimonial-card__stars i {
  color: var(--color-gold);
  font-size: var(--fs-sm);
}

.testimonial-card__author {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  font-size: var(--fs-sm);
}

.testimonial-card__detail {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* Philosophy Card */
.philosophy-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.philosophy-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.philosophy-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background-color: var(--color-cream);
  color: var(--color-gold);
  font-size: var(--fs-xl);
}

.philosophy-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.philosophy-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

/* ----------------------------------------
   9. Footer
   ---------------------------------------- */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3xl) 0 0;
}

.footer__grid {
  display: grid;
  gap: var(--space-2xl);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__brand-tagline {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
  line-height: var(--lh-normal);
}

.footer__license {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-gold);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-item i {
  color: var(--color-gold);
  margin-top: 3px;
  width: 16px;
  text-align: center;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__contact-item a:hover {
  color: var(--color-gold);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-base);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  transform: scale(1.15);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  line-height: var(--lh-relaxed);
}

.footer__disclaimer {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.3);
  margin-top: var(--space-sm);
  line-height: var(--lh-normal);
}

/* ----------------------------------------
   10. Back-to-Top Button
   ---------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 900;
  box-shadow: var(--shadow-md);
  border: none;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--color-gold-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

/* ----------------------------------------
   11. Page: Home
   ---------------------------------------- */

/* Stats Bar */
.stats-bar {
  background-color: var(--color-cream);
  padding: var(--space-3xl) 0;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stats-bar__item {
  padding: var(--space-lg);
}

.stats-bar__number {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stats-bar__label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Featured Listings */
.featured-listings__grid {
  display: grid;
  gap: var(--space-xl);
}

/* About Preview */
.about-preview {
  display: grid;
  gap: var(--space-2xl);
}

.about-preview__image {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-preview__image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.about-preview__image:hover img {
  filter: grayscale(0%);
}

.about-preview__heading {
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.about-preview__text {
  margin-bottom: var(--space-lg);
}

.about-preview__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.about-preview__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.about-preview__list-item i {
  color: var(--color-gold);
  margin-top: 2px;
}

/* Testimonials Section (Home) */
.testimonials-home__grid {
  display: grid;
  gap: var(--space-xl);
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: var(--space-4xl) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-banner__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cta-banner__heading {
  font-size: var(--fs-2xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner__text {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
}

.cta-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ----------------------------------------
   12. Page: About
   ---------------------------------------- */

/* Bio Section */
.bio-section {
  display: grid;
  gap: var(--space-2xl);
}

.bio-section__image {
  border-radius: var(--radius);
  overflow: hidden;
}

.bio-section__image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center top;
}

.bio-section__heading {
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.bio-section__text {
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.achievement-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.achievement-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.achievement-card__value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.achievement-card__label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* Philosophy Grid */
.philosophy-grid {
  display: grid;
  gap: var(--space-xl);
}

/* Affiliations */
.affiliations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.affiliation-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.affiliation-badge__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-cream);
  color: var(--color-gold);
  font-size: var(--fs-base);
}

.affiliation-badge__text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

/* ----------------------------------------
   13. Page: Listings
   ---------------------------------------- */

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-base);
  background-color: transparent;
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.filter-btn--active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Property Grid */
.property-grid {
  display: grid;
  gap: var(--space-xl);
}

/* Listings Bottom CTA */
.listings-cta {
  text-align: center;
  padding: var(--space-3xl) var(--container-padding);
  background-color: var(--color-cream);
  border-radius: var(--radius-lg);
}

.listings-cta__heading {
  font-size: var(--fs-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.listings-cta__text {
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ----------------------------------------
   14. Page: Testimonials
   ---------------------------------------- */

/* Testimonials Grid */
.testimonials-grid {
  display: grid;
  gap: var(--space-xl);
}

/* Track Record */
.track-record__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.track-record__item {
  padding: var(--space-xl);
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.track-record__number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  margin-bottom: var(--space-xs);
}

.track-record__label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* ----------------------------------------
   15. Page: Contact
   ---------------------------------------- */

/* Contact Layout */
.contact-layout {
  display: grid;
  gap: var(--space-2xl);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem var(--space-lg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-cream);
  color: var(--color-gold);
  font-size: var(--fs-base);
}

.contact-info__label {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

.contact-info__text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-normal);
}

.contact-info__text a {
  transition: color var(--transition-fast);
}

.contact-info__text a:hover {
  color: var(--color-gold);
}

/* Contact Agent Card */
.contact-agent {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background-color: var(--color-cream);
  border-radius: var(--radius);
  margin-top: var(--space-lg);
}

.contact-agent__image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact-agent__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-agent__name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.contact-agent__title {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* Google Map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 350px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Office Hours */
.office-hours {
  display: grid;
  gap: var(--space-sm);
}

.office-hours__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-sm);
}

.office-hours__day {
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.office-hours__time {
  color: var(--color-text-light);
}

/* Social Connect */
.social-connect__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.social-connect__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  transition: all var(--transition-base);
}

.social-connect__link:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: scale(1.05);
}

.social-connect__link i {
  font-size: var(--fs-base);
}

/* ----------------------------------------
   16. Animations & Transitions
   ---------------------------------------- */

/* Fade In + Slide Up */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Delays */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

/* 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;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .hero-split__content .gold-label,
  .hero-split__heading,
  .hero-split__text,
  .hero-split__buttons {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .property-card:hover .property-card__image img {
    transform: none;
  }

  .about-preview__image img {
    filter: none;
  }
}

/* ----------------------------------------
   17. Responsive: Tablet (768px)
   ---------------------------------------- */
@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  h1 {
    font-size: var(--fs-4xl);
  }

  h2 {
    font-size: var(--fs-3xl);
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  /* Nav — still hamburger on tablet but more room */
  .navbar__logo {
    font-size: 1.75rem;
  }

  /* Page Hero */
  .page-hero__heading {
    font-size: var(--fs-4xl);
  }

  /* Stats Bar */
  .stats-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-bar__number {
    font-size: var(--fs-4xl);
  }

  /* Featured Listings */
  .featured-listings__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About Preview */
  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
  }

  .about-preview__image img {
    height: 500px;
  }

  .about-preview__heading {
    font-size: var(--fs-3xl);
  }

  /* Testimonials Home */
  .testimonials-home__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--space-5xl) 0;
  }

  .cta-banner__heading {
    font-size: var(--fs-3xl);
  }

  /* Bio Section */
  .bio-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
  }

  .bio-section__heading {
    font-size: var(--fs-3xl);
  }

  /* Achievements */
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Philosophy */
  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Affiliations */
  .affiliations {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Property Grid */
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials Grid */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Track Record */
  .track-record__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact Layout */
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------
   18. Responsive: Desktop (1024px)
   ---------------------------------------- */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--fs-5xl);
  }

  .section {
    padding: var(--space-5xl) 0;
  }

  /* Navigation — full desktop layout */
  .navbar__hamburger {
    display: none;
  }

  .navbar__overlay {
    display: none;
  }

  .navbar__checkbox {
    display: none;
  }

  .navbar__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    overflow: visible;
  }

  .navbar__link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
    border-bottom: none;
    position: relative;
  }

  /* Gold underline animation — desktop only */
  .navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-base);
  }

  .navbar__link:hover::after,
  .navbar__link--active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .navbar__link--cta {
    margin-top: 0;
    margin-left: var(--space-md);
  }

  .navbar__link--cta::after {
    display: none;
  }

  /* Split Hero */
  .hero-split {
    flex-direction: row;
  }

  .hero-split__image {
    width: 55%;
    height: auto;
    min-height: 100vh;
  }

  .hero-split__image::after {
    display: block;
  }

  .hero-split__content {
    width: 45%;
    padding: var(--space-4xl);
  }

  .hero-split__heading {
    font-size: var(--fs-5xl);
  }

  .hero-split__text {
    font-size: var(--fs-md);
  }

  /* Page Hero */
  .page-hero__heading {
    font-size: var(--fs-5xl);
  }

  /* Featured Listings */
  .featured-listings__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials Home */
  .testimonials-home__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CTA Banner */
  .cta-banner__heading {
    font-size: var(--fs-4xl);
  }

  /* Achievements */
  .achievements-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Affiliations */
  .affiliations {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

/* ----------------------------------------
   19. Responsive: Large (1280px)
   ---------------------------------------- */
@media (min-width: 1280px) {
  :root {
    --container-max: 1240px;
  }

  .hero-split__content {
    padding: var(--space-5xl);
  }

  .hero-split__heading {
    font-size: 3.75rem;
  }

  .property-card__image {
    height: 280px;
  }
}