/* ============================================
   A1 REALTORS — Design System
   Editorial luxury meets human warmth
   ============================================ */

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

:root {
  /* Color Palette */
  --bg:          #F8F5F0;
  --text:        #1C1C1A;
  --accent:      #B5714A;
  --accent-hover:#9A5D3A;
  --stone:       #7A7368;
  --linen:       #E2DDD7;
  --white:       #FFFFFF;
  --charcoal:    #1C1C1A;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Segoe UI', sans-serif;

  /* Spacing */
  --unit: 8px;
  --max-w: 1280px;
  --gutter: 24px;

  /* Shadows */
  --shadow-subtle: 0 2px 12px rgba(0,0,0,0.06);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

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

/* --- UTILITY --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--text);
}

/* ============================================
   1. NAVIGATION BAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--linen);
  backdrop-filter: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.25s ease;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 24px;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.navbar__cta:hover {
  background: var(--accent);
  color: var(--white);
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}

.navbar__hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
  transition: all 0.3s ease;
}

/* ============================================
   2. HERO SECTION
   ============================================ */
.hero {
  background: var(--bg);
  padding: 80px 0 100px;
  overflow: visible;
}

.hero .container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}

.hero__content {
  padding-right: 40px;
}

.hero__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 28px;
}

.hero__subtext {
  font-size: 18px;
  line-height: 1.65;
  color: var(--stone);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 2px;
  transition: background 0.25s ease;
}

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

.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.btn-text:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.92);
  margin-top: -40px;
}

/* ============================================
   3. TRUST STRIP (Stats Bar)
   ============================================ */
.trust-strip {
  background: var(--white);
  border-top: 1px solid var(--linen);
  border-bottom: 1px solid var(--linen);
  padding: 56px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-strip__item {
  text-align: center;
  position: relative;
}

.trust-strip__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--linen);
}

.trust-strip__number {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 52px;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.trust-strip__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================
   4. OUR SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--bg);
}

.services__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--linen);
  border-radius: 2px;
  padding: 40px 32px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background-color: var(--charcoal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.service-card__name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.service-card__desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  min-height: 72px;
  margin-bottom: 40px;
  flex-grow: 1;
}

.service-card__link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease;
  margin-top: auto;
}

.service-card__link:hover {
  color: var(--accent);
}

.service-card__link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.services__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 64px;
}

.services__footer-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 600px;
}

.btn-black {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease;
  white-space: nowrap;
}

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

/* ============================================
   5. HOW WE WORK (Process)
   ============================================ */
.process {
  background: var(--charcoal);
  padding: 100px 0;
}

.process .section-label {
  color: var(--accent);
}

.process .section-headline {
  font-size: 44px;
  color: var(--bg);
  margin-bottom: 64px;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.process__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.process__step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.process__step-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 72px;
  color: var(--bg);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: -28px;
  position: relative;
  z-index: 0;
}

.process__step-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--bg);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.process__step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================
   6. ABOUT / HUMAN TOUCH
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--bg);
}

.about .container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 64px;
  align-items: center;
}

.about__image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 3px;
  filter: saturate(0.92);
}

.about__content {
  padding-left: 24px;
}

.about__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 28px;
}

.about__body p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--stone);
  margin-bottom: 20px;
}

.about__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  margin-top: 32px;
}

/* ============================================
   7. TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 100px 0;
  background: var(--bg);
}

.testimonials__header {
  margin-bottom: 56px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: var(--white);
  padding: 48px;
  border-radius: 2px;
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 16px;
  user-select: none;
}

.testimonial-card__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.testimonial-card__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.testimonial-card__detail {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--stone);
}

.testimonials__rating {
  text-align: center;
}

.testimonials__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.testimonials__stars svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.testimonials__rating-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone);
}

/* ============================================
   8. CONTACT / CTA SECTION
   ============================================ */
.contact {
  background: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.contact .section-label {
  text-align: center;
}

.contact .section-headline {
  font-size: 56px;
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact__subtext {
  font-size: 18px;
  color: var(--stone);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--accent);
  color: var(--white);
  padding: 16px 40px;
  border-radius: 2px;
  transition: background 0.25s ease;
  margin-bottom: 20px;
}

.contact__cta:hover {
  background: var(--accent-hover);
}

.contact__phone {
  display: block;
  font-size: 14px;
  color: var(--stone);
  margin-bottom: 56px;
}

.contact__thumbnails {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.contact__thumb {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.92);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.contact__thumb:hover {
  opacity: 1;
}

/* ============================================
   9. FOOTER
   ============================================ */
.footer {
  background: var(--charcoal);
  padding: 72px 0 0;
}

.footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--bg);
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.65;
  color: var(--stone);
  max-width: 260px;
}

.footer__heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  font-size: 14px;
  color: var(--linen);
  transition: color 0.25s ease;
}

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

.footer__contact-line {
  font-size: 14px;
  color: var(--linen);
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--stone);
  border-radius: 2px;
  transition: border-color 0.25s ease;
}

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

.footer__socials svg {
  width: 16px;
  height: 16px;
  stroke: var(--linen);
  fill: none;
  stroke-width: 1.5;
}

.footer__bottom {
  border-top: 1px solid rgba(226,221,215,0.15);
  padding: 20px 0;
}

.footer__bottom .container {
  display: flex;
  justify-content: center;
}

.footer__bottom p {
  font-size: 12px;
  color: var(--stone);
}

/* ============================================
   ANIMATIONS (Scroll Reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.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; }

/* Number counter animation */
.count-up {
  display: inline-block;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__content {
    padding-right: 0;
    text-align: left;
  }

  .hero__headline {
    font-size: 52px;
  }

  .hero__image img {
    height: 400px;
    margin-top: 0;
  }

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

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process__steps::before {
    display: none;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__content {
    padding-left: 0;
  }

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

  .footer .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .contact .section-headline {
    font-size: 44px;
  }

  /* Sections padding */
  .hero { padding: 64px 0; }
  .listings,
  .process,
  .about,
  .testimonials { padding: 64px 0; }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px var(--gutter);
    gap: 28px;
    border-top: 1px solid var(--linen);
    z-index: 999;
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__links a {
    font-size: 18px;
  }

  .navbar__hamburger {
    display: flex;
  }

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

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

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

  .hero__headline {
    font-size: 40px;
  }

  .hero__subtext {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__image img {
    height: 300px;
  }

  .trust-strip .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .trust-strip__item:nth-child(2)::after {
    display: none;
  }

  .trust-strip__number {
    font-size: 40px;
  }

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

  .listings__header .section-headline,
  .process .section-headline,
  .about__headline {
    font-size: 32px;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about__image img {
    height: 350px;
  }

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

  .testimonial-card {
    padding: 32px;
  }

  .contact .section-headline {
    font-size: 32px;
  }

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

  .footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Sections padding */
  .hero { padding: 40px 0; }
  .listings,
  .process,
  .about,
  .testimonials { padding: 40px 0; }
  .contact { padding: 64px 0 40px; }
}

@media (max-width: 480px) {
  .hero__headline {
    font-size: 34px;
  }

  .trust-strip .container {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip__item::after {
    display: none;
  }

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