/* ============================================================
   Brock Walker — Mortgage Loan Originator
   Production Stylesheet
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------- */
:root {
  /* Colors */
  --primary: #1B2A4A;
  --primary-light: #2D4A7A;
  --accent: #C5A55A;
  --accent-hover: #D4B86A;
  --bg-light: #F8F6F2;
  --bg-white: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --success: #2D6A4F;
  --border-color: #D1D5DB;
  --error: #DC2626;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  --radius-circle: 50%;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-overlay: 900;
  --z-modal: 1000;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Layout */
  --container-max: 1200px;
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.7;
  -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;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--space-2); }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   3. UTILITY CLASSES
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

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

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

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

.section__header h2 {
  margin-bottom: var(--space-2);
}

.section__header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visible-mobile {
  display: none;
}

.hidden-mobile {
  display: block;
}

/* ----------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: var(--space-1) var(--space-4);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn--primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background-color: transparent;
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.btn--outline:hover {
  background-color: var(--bg-white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline-dark:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 14px var(--space-5);
  font-size: 1rem;
}

/* ----------------------------------------------------------
   5. NAVIGATION
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  padding: var(--space-2) 0;
  transition: all var(--transition-base);
  background-color: transparent;
}

.nav--scrolled {
  background-color: var(--primary);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-white);
  letter-spacing: 0.5px;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-base);
}

.nav__link:hover {
  color: var(--bg-white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--bg-white);
}

.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  margin-left: var(--space-2);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: calc(var(--z-overlay) + 10);
  padding: var(--space-1);
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--bg-white);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__hamburger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger--active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--primary);
  padding: var(--space-12) var(--space-4) var(--space-4);
  transition: right var(--transition-base);
  z-index: calc(var(--z-overlay) + 10);
  flex-direction: column;
  gap: var(--space-3);
}

.nav__mobile-menu--open {
  right: 0;
}

.nav__mobile-menu .nav__link {
  font-size: 1.25rem;
  display: block;
  padding: var(--space-1) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__mobile-menu .nav__link::after {
  display: none;
}

.nav__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav__overlay--visible {
  opacity: 1;
}

/* ----------------------------------------------------------
   6. HERO SECTION
   ---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--primary);
  overflow: hidden;
}

/* Photo — left ~40%, full height, edges feathered via mask */
.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  z-index: 1;
  -webkit-mask-image:
    linear-gradient(to right, black 50%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right, black 50%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
  mask-composite: intersect;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Overlay hidden — masking handles the fade now */
.hero__overlay {
  display: none;
}

/* No separate ::before needed — overlay handles all edge feathering */

/* Content — right side */
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 620px;
  margin-left: auto;
  margin-right: 8%;
  padding: var(--space-12) var(--space-3);
  text-align: left;
}

.hero__tagline {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-2);
  animation: fadeInUp 0.6s ease forwards;
}

.hero__title {
  font-size: 3.25rem;
  color: var(--bg-white);
  margin-bottom: var(--space-3);
  line-height: 1.15;
  animation: fadeInUp 0.8s 0.15s ease forwards;
  opacity: 0;
}

.hero__title span {
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-5);
  font-weight: 400;
  line-height: 1.7;
  max-width: 520px;
  animation: fadeInUp 0.8s 0.3s ease forwards;
  opacity: 0;
}

.hero__cta-group {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s ease forwards;
  opacity: 0;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  z-index: 3;
  animation: bounce 2s infinite;
}

.hero__scroll-indicator::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ----------------------------------------------------------
   7. ABOUT SECTION
   ---------------------------------------------------------- */
.about {
  background-color: var(--bg-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.about__text h2 {
  margin-bottom: var(--space-3);
}

.about__text p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about__highlight {
  background: linear-gradient(135deg, var(--bg-light) 0%, rgba(197, 165, 90, 0.08) 100%);
  border-left: 4px solid var(--accent);
  padding: var(--space-3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-3) 0;
}

.about__highlight p {
  color: var(--text-primary);
  font-style: italic;
  font-size: 1.0625rem;
}

.about__trust {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.trust-badge__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.5rem;
}

.trust-badge__content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-badge__content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.service-card__icon svg,
.trust-badge__icon svg,
.footer__social-link svg {
  display: block;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   8. SERVICES SECTION
   ---------------------------------------------------------- */
.services {
  background-color: var(--bg-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.service-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.06) 0%, rgba(197, 165, 90, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  font-size: 2rem;
  color: var(--primary);
  transition: background var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 700;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   9. PROCESS SECTION
   ---------------------------------------------------------- */
.process {
  background-color: var(--bg-white);
}

.process__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: var(--space-4);
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light), var(--accent));
  z-index: 0;
}

.process__step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: var(--z-base);
}

.process__number {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base);
}

.process__step:hover .process__number {
  transform: scale(1.1);
}

.process__step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
  font-weight: 700;
}

.process__step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 220px;
  margin: 0 auto;
}

/* ----------------------------------------------------------
   10. TESTIMONIALS SECTION
   ---------------------------------------------------------- */
.testimonials {
  background-color: var(--bg-light);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.testimonial-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-4);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__quote {
  font-size: 3rem;
  color: var(--accent);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: var(--space-1);
  opacity: 0.5;
}

.testimonial-card__text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-3);
}

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

.testimonial-card__star {
  color: var(--accent);
  font-size: 1rem;
}

.testimonial-card__star::before {
  content: '\2605';
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-2);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------
   11. STATS SECTION
   ---------------------------------------------------------- */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: var(--space-8) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stat-card {
  padding: var(--space-4) var(--space-2);
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-card__label {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ----------------------------------------------------------
   12. CONTACT SECTION
   ---------------------------------------------------------- */
.contact {
  background-color: var(--bg-white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact__form-wrapper {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}

.contact__form-wrapper h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.contact__form-wrapper > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.form__group {
  margin-bottom: var(--space-3);
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: var(--space-2) var(--space-2);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-primary);
  background-color: var(--bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: #9CA3AF;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: var(--space-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form__submit {
  width: 100%;
  margin-top: var(--space-1);
}

.form__error {
  display: block;
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 4px;
  min-height: 1.2em;
}

.form__input--error,
.form__select--error,
.form__textarea--error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.contact__info h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.contact__info > p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.contact__detail {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.contact__detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(27, 42, 74, 0.06) 0%, rgba(197, 165, 90, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--primary);
}

.contact__detail h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact__detail p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.contact__detail a {
  color: var(--primary-light);
  transition: color var(--transition-fast);
}

.contact__detail a:hover {
  color: var(--accent);
}

/* ----------------------------------------------------------
   13. FOOTER
   ---------------------------------------------------------- */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-8) 0 var(--space-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-6);
}

.footer__brand h3 {
  font-size: 1.5rem;
  color: var(--bg-white);
  margin-bottom: var(--space-2);
}

.footer__brand h3 span {
  color: var(--accent);
}

.footer__brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
}

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

.footer__links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer__social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

.footer__divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-4);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__copyright {
  font-size: 0.8125rem;
}

.footer__compliance {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 600px;
  line-height: 1.6;
}

.footer__equal-housing {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__equal-housing-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-align: center;
}

/* ----------------------------------------------------------
   14. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Scroll reveal class (toggled via JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }
.reveal--delay-5 { transition-delay: 0.5s; }
.reveal--delay-6 { transition-delay: 0.6s; }

/* ----------------------------------------------------------
   15. RESPONSIVE — 1280px
   ---------------------------------------------------------- */
@media (max-width: 1280px) {
  .container {
    max-width: 1100px;
  }
}

/* ----------------------------------------------------------
   16. RESPONSIVE — 1024px (Tablet Landscape)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero__photo {
    width: 38%;
  }

  .hero__content {
    margin-right: 5%;
    max-width: 550px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .stat-card:nth-child(2)::after {
    display: none;
  }

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

/* ----------------------------------------------------------
   17. RESPONSIVE — 768px (Tablet Portrait)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }

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

  /* Nav — switch to hamburger */
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__mobile-menu {
    display: flex;
  }

  /* Hero — stack on tablet */
  .hero {
    flex-direction: column;
    min-height: auto;
  }

  .hero__photo {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    -webkit-mask-image:
      linear-gradient(to bottom, black 40%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image:
      linear-gradient(to bottom, black 40%, transparent 100%),
      linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-composite: intersect;
  }

  .hero__content {
    margin: 0 auto;
    text-align: center;
    padding: var(--space-5) var(--space-3) var(--space-8);
    max-width: 600px;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__title {
    font-size: 2.25rem;
  }

  .hero__subtitle {
    font-size: 1.0625rem;
    max-width: 100%;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  /* Services */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  /* Process — stack vertical */
  .process__steps {
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
  }

  .process__steps::before {
    top: 40px;
    bottom: 40px;
    left: 50%;
    right: auto;
    width: 2px;
    height: calc(100% - 80px);
    transform: translateX(-50%);
  }

  .process__step {
    max-width: 320px;
  }

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

  /* Contact */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

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

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .visible-mobile {
    display: block;
  }

  .hidden-mobile {
    display: none;
  }
}

/* ----------------------------------------------------------
   18. RESPONSIVE — 480px (Mobile)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding: 0 var(--space-2);
  }

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

  /* Hero */
  .hero__photo {
    height: 40vh;
    min-height: 280px;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta-group .btn {
    width: 100%;
    max-width: 280px;
  }

  /* Services — single column */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials — single column */
  .testimonials__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

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

  .stat-card__number {
    font-size: 2.25rem;
  }

  .stat-card::after {
    display: none !important;
  }

  /* Contact */
  .contact__form-wrapper {
    padding: var(--space-3);
  }

  .btn--lg {
    padding: 12px var(--space-4);
    font-size: 0.9375rem;
  }

}

/* ----------------------------------------------------------
   19. REDUCED MOTION
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ----------------------------------------------------------
   20. PRINT STYLES
   ---------------------------------------------------------- */
@media print {
  .nav,
  .hero__scroll-indicator,
  .footer__social {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    background: var(--primary) !important;
    color: #000;
    padding: var(--space-4) 0;
  }

  .hero__photo {
    display: none;
  }

  .hero__title,
  .hero__subtitle {
    color: #000;
  }

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