/* =====================================================
   ABOUT US PAGE  -  properties/static/css/about.css
   Desktop first, then tablet (<=1024px), then mobile (<=600px)
   ===================================================== */

.about-page {
  color: #292D2A;
  font-size: 18px;
  line-height: 1.5;
}

.about-page h1,
.about-page h2,
.about-page h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: #24483F;
  margin: 0;
}

.about-page h2 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

/* ---------- Pills and links ---------- */
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.about-pill-forest {
  height: 56px;
  padding: 0 8px 0 30px;
  font-size: 17px;
  background: #24483F;
  color: #fff;
}

.about-pill-cream {
  height: 60px;
  padding: 0 9px 0 32px;
  font-size: 18px;
  background: #FAF7F0;
  color: #24483F;
}

.about-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
}

.about-pill-forest .about-ico { background: #FAF7F0; color: #24483F; }
.about-pill-cream .about-ico  { background: #24483F; color: #FAF7F0; }

.about-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  color: #24483F;
  text-decoration: underline;
  text-decoration-color: #C8795A;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Hero ---------- */
.about-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  min-height: 840px;
  margin-top: 28px;
  padding: 0 36px;
}

.about-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 0 24px 0 48px;
}

.about-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #24483F;
}

.about-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24483F;
}

.about-hero h1 {
  font-size: 68px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.about-lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.65;
}

.about-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 8px;
}

.about-hero-image {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #DCE6DA;
}

.about-hero-image img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* decorative arches */
.about-hero-image::before,
.about-hero-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
}

.about-hero-image::before {
  right: 56px;
  width: 150px;
  height: 214px;
  border: 1.5px solid rgba(250, 247, 240, 0.8);
  border-bottom: 0;
  border-radius: 75px 75px 0 0;
}

.about-hero-image::after {
  right: 80px;
  width: 102px;
  height: 158px;
  border: 1.5px solid rgba(250, 247, 240, 0.6);
  border-bottom: 0;
  border-radius: 51px 51px 0 0;
}

/* ---------- Our Mission ---------- */
.about-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 80px;
  align-items: center;
  padding: 120px 96px 0;
}

.about-mission-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-mission-text p {
  margin: 0;
  max-width: 660px;
  font-size: 20px;
  line-height: 1.7;
}

.about-mission-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  overflow: hidden;
  border-radius: 32px;
  background: #DCE6DA;
}

.about-mission-art::before,
.about-mission-art::after {
  content: "";
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
  border: 1.5px solid rgba(250, 247, 240, 0.9);
  border-bottom: 0;
}

.about-mission-art::before {
  left: 36px;
  width: 120px;
  height: 170px;
  border-radius: 60px 60px 0 0;
}

.about-mission-art::after {
  right: 36px;
  width: 90px;
  height: 120px;
  border-radius: 45px 45px 0 0;
}

.about-mission-art svg {
  position: relative;
}

/* ---------- Who We Help ---------- */
.about-who {
  padding: 120px 96px 0;
}

/* ---------- Cards (shared by both sections) ---------- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: 36px;
  border: 1.5px solid rgba(36, 72, 63, 0.14);
}

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.about-card h3 {
  margin-bottom: 10px;
  line-height: 1.2;
}

.about-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

/* Who We Help: sage cards, forest icon circles */
.about-cards-sage .about-card {
  min-height: 300px;
  background: #DCE6DA;
}
.about-cards-sage .about-card-icon { background: #24483F; color: #FAF7F0; }
.about-cards-sage .about-card h3   { font-size: 30px; }

/* What Makes Us Different: cream cards, sage icon circles */
.about-cards-cream .about-card {
  background: #FAF7F0;
}
.about-cards-cream .about-card-icon { background: #DCE6DA; color: #24483F; }
.about-cards-cream .about-card h3   { font-size: 28px; }

/* ---------- What Makes HomeFinder Different ---------- */
.about-different {
  box-sizing: border-box;
  margin: 120px 36px 0;
  padding: 96px 60px;
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(36, 72, 63, 0.06);
}

/* ---------- Closing call to action ---------- */
.about-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 36px 36px 0;
  padding: 112px 96px;
  border-radius: 36px;
  background: #24483F;
  text-align: center;
}

.about-cta > * {
  position: relative; /* keeps the content above the arches */
}

.about-cta h2 {
  color: #FAF7F0;
}

.about-cta p {
  margin: 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: #DCE6DA;
}

.about-cta .about-pill {
  margin-top: 16px;
}

.about-cta::before,
.about-cta::after {
  content: "";
  position: absolute;
  bottom: 0;
  box-sizing: border-box;
  width: 200px;
  border: 2px solid rgba(250, 247, 240, 0.2);
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}

.about-cta::before { left: 120px;  height: 260px; }
.about-cta::after  { right: 120px; height: 320px; }


/* =====================================================
   TABLET  (design 768px) - applies up to 1024px wide
   ===================================================== */
@media (max-width: 1024px) {

  .about-page h2 { font-size: 46px; }

  /* pills */
  .about-pill { gap: 12px; }
  .about-pill-forest { height: 56px; padding: 0 8px 0 28px; font-size: 17px; }
  .about-pill-cream  { height: 58px; padding: 0 9px 0 30px; font-size: 18px; }
  .about-ico { width: 40px; height: 40px; }

  /* hero: stacked, text first and photo below */
  .about-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    margin-top: 0;
    padding: 0 24px;
  }
  .about-hero-text {
    justify-content: flex-start;
    gap: 20px;
    padding: 56px 16px 0;
  }
  .about-hero h1 { font-size: 56px; line-height: 1.06; }
  .about-lead { font-size: 18px; max-width: 600px; }
  .about-hero-actions { gap: 24px; padding-top: 6px; }
  .about-hero-image {
    height: 440px;
    margin-top: 40px;
    border-radius: 28px;
  }
  .about-hero-image::before { right: 48px; width: 120px; height: 170px; border-radius: 60px 60px 0 0; }
  .about-hero-image::after  { right: 68px; width: 80px;  height: 124px; border-radius: 40px 40px 0 0; }

  /* mission: text then illustration */
  .about-mission {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 88px 40px 0;
  }
  .about-mission-text { gap: 20px; }
  .about-mission-text p { font-size: 18px; max-width: none; }
  .about-mission-art { height: 280px; border-radius: 28px; }
  .about-mission-art::before { left: 40px;  width: 100px; height: 140px; border-radius: 50px 50px 0 0; }
  .about-mission-art::after  { right: 40px; width: 76px;  height: 100px; border-radius: 38px 38px 0 0; }
  .about-mission-art svg { width: 150px; height: 150px; }

  /* who we help: still 3 small columns */
  .about-who { padding: 88px 40px 0; }
  .about-cards { margin-top: 36px; }
  .about-cards-sage { gap: 14px; }
  .about-cards-sage .about-card {
    min-height: 0;
    padding: 24px 20px;
    gap: 16px;
    border-radius: 24px;
  }
  .about-cards-sage .about-card-icon { width: 52px; height: 52px; }
  .about-cards-sage .about-card-icon svg { width: 26px; height: 26px; }
  .about-cards-sage .about-card h3 { font-size: 23px; margin-bottom: 8px; }
  .about-cards-sage .about-card p  { font-size: 15px; line-height: 1.55; }

  /* what makes us different: full-width rows */
  .about-different {
    margin: 88px 24px 0;
    padding: 64px 32px;
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(36, 72, 63, 0.06);
  }
  .about-cards-cream {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-cards-cream .about-card {
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    border-radius: 26px;
  }
  .about-cards-cream .about-card-icon { flex: none; width: 56px; height: 56px; }
  .about-cards-cream .about-card-icon svg { width: 28px; height: 28px; }
  .about-cards-cream .about-card h3 { font-size: 26px; margin-bottom: 4px; }
  .about-cards-cream .about-card p  { font-size: 17px; line-height: 1.55; }

  /* closing call to action */
  .about-cta {
    gap: 16px;
    margin: 24px 24px 0;
    padding: 72px 40px;
    border-radius: 32px;
  }
  .about-cta p { font-size: 18px; max-width: 500px; }
  .about-cta .about-pill { margin-top: 12px; }
  .about-cta::before { left: 20px;  width: 84px; height: 130px; border-radius: 42px 42px 0 0; }
  .about-cta::after  { right: 20px; width: 84px; height: 160px; border-radius: 42px 42px 0 0; }
}


/* =====================================================
   MOBILE  (design 390px) - applies up to 600px wide
   ===================================================== */
@media (max-width: 600px) {

  .about-page h2 { font-size: 34px; }

  /* pills become full-width buttons, text left and arrow right */
  .about-pill-forest,
  .about-pill-cream {
    width: 100%;
    height: 56px;
    justify-content: space-between;
    padding: 0 8px 0 26px;
    font-size: 17px;
  }

  /* hero */
  .about-hero { padding: 0 12px; }
  .about-hero-text { gap: 16px; padding: 36px 8px 0; }
  .about-hero h1 { font-size: 40px; line-height: 1.08; }
  .about-lead { font-size: 16px; }
  .about-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 6px;
  }
  .about-hero-actions .about-link {
    align-self: center;
    min-height: 48px;
  }
  .about-hero-image { height: 300px; margin-top: 24px; border-radius: 24px; }
  .about-hero-image::before { right: 28px; width: 84px; height: 120px; border-radius: 42px 42px 0 0; }
  .about-hero-image::after  { display: none; }

  /* mission */
  .about-mission { gap: 28px; padding: 56px 20px 0; }
  .about-mission-text { gap: 14px; }
  .about-mission-text p { font-size: 17px; }
  .about-mission-art { height: 210px; border-radius: 24px; }
  .about-mission-art::before { left: 24px;  width: 76px; height: 110px; border-radius: 38px 38px 0 0; }
  .about-mission-art::after  { right: 24px; width: 60px; height: 80px;  border-radius: 30px 30px 0 0; }
  .about-mission-art svg { width: 120px; height: 120px; }

  /* who we help: stacked cards */
  .about-who { padding: 56px 20px 0; }
  .about-cards { margin-top: 24px; }
  .about-cards-sage { grid-template-columns: 1fr; }
  .about-cards-sage .about-card { padding: 24px; }
  .about-cards-sage .about-card h3 { font-size: 25px; margin-bottom: 6px; }
  .about-cards-sage .about-card p  { font-size: 16px; }

  /* what makes us different */
  .about-different {
    margin: 56px 12px 0;
    padding: 40px 20px;
    border-radius: 36px;
  }
  .about-cards-cream { gap: 14px; }
  .about-cards-cream .about-card {
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 36px;
  }
  .about-cards-cream .about-card-icon { width: 48px; height: 48px; }
  .about-cards-cream .about-card-icon svg { width: 24px; height: 24px; }
  .about-cards-cream .about-card h3 { font-size: 23px; }
  .about-cards-cream .about-card p  { font-size: 16px; }

  /* closing call to action */
  .about-cta {
    align-items: stretch;
    gap: 14px;
    margin: 12px 12px 0;
    padding: 56px 24px;
    border-radius: 36px;
  }
  .about-cta p { font-size: 16px; max-width: none; }
  .about-cta::before,
  .about-cta::after { display: none; }
}
/* ---------- Breadcrumb ---------- */
/* Look comes from breadcrumb.css; this only sets the spacing. */
.about-crumb { padding: 28px 36px 0; }

@media (max-width: 1024px) {
  .about-crumb { padding: 22px 24px 0; }
}

@media (max-width: 600px) {
  .about-crumb { padding: 16px 20px 0; }
}

/* ---------- Page width and size = the rest of the website ---------- */
/* --about-edge is the navbar's side space (site-nav.css .site-header),
   so every section lines up with the navbar's left and right edges.
   Placed last so it wins over the spacing set above. */
.about-page { --about-edge: max(48px, calc((100% - 1328px) / 2)); }

.about-hero,
.about-mission,
.about-who {
  padding-left: var(--about-edge);
  padding-right: var(--about-edge);
}

.about-different,
.about-cta {
  margin-left: var(--about-edge);
  margin-right: var(--about-edge);
}

/* hero: same height as the home page hero (420px) instead of 840px,
   and the text starts right at the navbar's edge */
.about-hero {
  min-height: 420px;
  margin-top: 48px;
}
.about-hero-text {
  padding-left: 0;
  padding-right: 0;
}

/* less empty space between sections (96px, like the Contact page) */
.about-mission,
.about-who { padding-top: 96px; }
.about-different { margin-top: 96px; }

/* tablets: the hero is stacked, so it needs no minimum height */
@media (max-width: 1024px) {
  .about-hero { min-height: 0; margin-top: 0; }
  .about-hero-image { height: 360px; }
}

/* the navbar uses 22px side space on phones */
@media (max-width: 600px) {
  .about-page { --about-edge: 22px; }
  .about-hero-image { height: 260px; }
  .about-mission,
  .about-who { padding-top: 56px; }
  .about-different { margin-top: 56px; }
}

/* ---------- Smaller text and pictures, same sizes as the home page ---------- */
/* headings: same sizes as the home page hero and section headings */
.about-hero h1 { font-size: clamp(36px, 4.4vw, 54px); }
.about-page h2 { font-size: clamp(28px, 3.2vw, 40px); }

/* body text: 16-17px like the home page */
.about-lead,
.about-mission-text p { font-size: 17px; }
.about-cta p { font-size: 16px; }

/* buttons */
.about-pill-forest,
.about-pill-cream { height: 50px; padding: 0 7px 0 24px; font-size: 16px; }
.about-ico { width: 36px; height: 36px; }
.about-link { font-size: 16px; }

/* hero picture and mission picture */
.about-hero { min-height: 340px; }
.about-mission { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.about-mission-art { height: 260px; }
.about-mission-art svg { width: 130px; height: 130px; }

/* cards */
.about-cards { margin-top: 32px; gap: 20px; }
.about-card { gap: 14px; padding: 26px; border-radius: 28px; }
.about-card-icon { width: 48px; height: 48px; }
.about-card-icon svg { width: 24px; height: 24px; }
.about-cards-sage .about-card { min-height: 0; }
.about-cards-sage .about-card h3,
.about-cards-cream .about-card h3 { font-size: 22px; margin-bottom: 6px; }
.about-card p { font-size: 15px; }

/* the white box and the green box: less inner space */
.about-different { padding: 56px 44px; }
.about-cta { gap: 16px; padding: 72px 48px; }
.about-cta::before { height: 200px; width: 150px; }
.about-cta::after  { height: 240px; width: 150px; }

@media (max-width: 1024px) {
  .about-hero-image { height: 300px; }
  .about-mission { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .about-hero h1 { font-size: 34px; }
  .about-page h2 { font-size: 28px; }
  .about-hero-image { height: 220px; }
  .about-mission-art { height: 200px; }
  .about-different { padding: 36px 20px; }
  .about-cta { padding: 48px 22px; }
}
