/* ============================================
   HOME PAGE
   ============================================ */

.home-frame {
  position: relative;
  max-width: 1510px;
  margin: 0 auto;
  border: 1px solid rgba(192, 138, 53, 0.45);
  border-top: 0;
  background:
    linear-gradient(90deg, rgba(192, 138, 53, 0.16) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, rgba(192, 138, 53, 0.12) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--cream-light);
  box-shadow: inset 0 0 0 12px rgba(250, 246, 238, 0.85);
  overflow: hidden;
}

.home-frame::before,
.home-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 76px;
  height: 76px;
  z-index: 3;
  opacity: 0.72;
  background:
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 0 top 0 / 58px 1px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 0 top 0 / 1px 58px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 10px top 10px / 46px 1px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 10px top 10px / 1px 46px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 20px top 20px / 34px 1px no-repeat,
    linear-gradient(var(--gold-soft), var(--gold-soft)) left 20px top 20px / 1px 34px no-repeat;
}

.home-frame::before {
  left: 10px;
}

.home-frame::after {
  right: 10px;
  transform: scaleX(-1);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: 70px;
  overflow: hidden;
  background: radial-gradient(circle at 58% 34%, rgba(255, 255, 255, 0.88), transparent 38%),
    linear-gradient(100deg, #fbf6ed 0%, #f6ead7 100%);
}

.hero-bg-collage {
  position: absolute;
  right: 0;
  top: 0;
  width: 68%;
  height: 100%;
  opacity: 0.34;
  background-image: url("../images/hero-service-collage.png");
  background-size: cover;
  background-position: center;
  filter: sepia(0.85) saturate(0.45) contrast(0.9);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 16%, #000 30%, #000 100%);
  pointer-events: none;
}

.hero-arch {
  position: absolute;
  right: -92px;
  top: 0;
  width: 52%;
  height: 100%;
  border-top-left-radius: 58% 100%;
  background: linear-gradient(135deg, rgba(192, 138, 53, 0.18), rgba(255, 255, 255, 0.08) 58%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(320px, 1.12fr);
  align-items: end;
  min-height: 415px;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-text {
  align-self: center;
  padding: 2rem 0 4rem;
  max-width: 760px;
}

.hero-eyebrow {
  color: var(--navy-deep);
  font-weight: 500;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  margin: 0 0 1.2rem;
}

.hero-title {
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.35rem);
  color: var(--navy-deep);
  margin-bottom: 0.85rem;
  letter-spacing: 0;
  line-height: 0.95;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  color: #b64227;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.hero-rule {
  width: 104px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.8rem 0 0.85rem;
}

.hero-cta-row {
  display: flex;
}

.hero .btn-primary {
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(18, 39, 76, 0.544);
}

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

.hero-portrait-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-self: end;
  overflow: visible;
}

.hero-portrait-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(246, 234, 215, 0), rgba(246, 234, 215, 0.82));
  filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}

.hero-portrait-wrap img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: 430px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 18px 26px rgba(15, 31, 61, 0.18));
}

/* ---- Service cards ---- */
.service-snapshots {
  position: relative;
  z-index: 4;
  padding: 1.1rem 0 1.45rem;
  background: rgba(250, 246, 238, 0.88);
  border-top: 1px solid rgba(192, 138, 53, 0.2);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 205px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.35rem 1.2rem 1.1rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 238, 0.74)),
    radial-gradient(circle at 88% 86%, rgba(192, 138, 53, 0.12), transparent 34%);
  border: 1px solid rgba(192, 138, 53, 0.22);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 31, 61, 0.11);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #55724c;
  background: #e8eadf;
}

.service-icon svg {
  width: 34px;
  height: 34px;
}

.service-icon-sage {
  color: #55734f;
  background: #eceee4;
}

.service-icon-warm {
  color: #b85b36;
  background: #f2dfcf;
}

.service-icon-olive {
  color: #627a58;
  background: #e7eadf;
}

.service-card h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.55rem);
  margin-top: 0.15rem;
}

.card-rule {
  width: 42px;
  height: 2px;
  background: var(--gold);
  margin: 0.55rem 0 0.9rem;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 58px;
}

/* ---- Three core pillars ---- */
.core-pillars-section {
  background:
    linear-gradient(180deg, var(--cream-light), var(--cream)),
    radial-gradient(circle at 12% 0%, rgba(192, 138, 53, 0.12), transparent 34%);
  padding-top: var(--space-xl);
}

.core-pillars-section .section-intro {
  max-width: 860px;
  font-size: 1.08rem;
}

.core-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.core-pillar-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  border-radius: 8px;
  background: rgba(250, 246, 238, 0.94);
  border: 1px solid rgba(192, 138, 53, 0.26);
  box-shadow: 0 12px 30px rgba(15, 31, 61, 0.08);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.core-pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 31, 61, 0.14);
}

.core-pillar-card.featured {
  background: linear-gradient(180deg, #fffaf0, #f7ead6);
  border-color: rgba(192, 138, 53, 0.42);
}

.core-pillar-card img {
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.core-pillar-card img[src*="Red-Ribbon-College-Event-Clear"],
.area-card img[src*="Red-Ribbon-College-Event-Clear"] {
  object-position: center 38%;
}

.core-pillar-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.55rem;
}

.core-pillar-body span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 1rem;
}

.core-pillar-body h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.core-pillar-body p {
  flex: 1;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ---- Journey panel ---- */
.journey-panel {
  padding: 0 0 2.3rem;
  background: var(--cream-light);
}

.journey-panel-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  align-items: center;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border: 1px solid rgba(192, 138, 53, 0.24);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.76);
  box-shadow: 0 10px 28px rgba(15, 31, 61, 0.05);
}

.journey-copy h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  margin-bottom: 0.55rem;
}

.journey-copy .section-rule {
  margin-bottom: 1rem;
}

.journey-copy p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.journey-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: #9bb18a;
  z-index: 0;
}

.journey-track::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 9px;
  background: radial-gradient(circle, #4f7449 0 3px, transparent 4px) left center / 25% 9px repeat-x;
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.journey-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: #edf0e6;
  border: 1px solid rgba(192, 138, 53, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #647c59;
}

.journey-icon svg {
  width: 31px;
  height: 31px;
}

.journey-icon-gold {
  color: #fff;
  background: linear-gradient(135deg, #c79843, #d8b764);
}

.journey-step h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--navy-deep);
  margin-bottom: 0.28rem;
  font-weight: 800;
}

.journey-step p {
  font-size: 0.68rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ---- Pillars curved band ---- */
.pillars {
  position: relative;
  z-index: 6;
  background:
    radial-gradient(circle at 50% 20%, rgba(29, 58, 105, 0.55), transparent 48%),
    linear-gradient(180deg, #061b35 0%, #0b213e 52%, #071b34 100%);
  color: var(--cream-light);
  padding: 6.8rem 0 6.8rem;
  margin-top: -5.8rem;
  overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M0 26 C16 14 34 9 52 14 C68 18 84 11 100 4 L100 78 C84 90 66 95 48 90 C32 86 16 93 0 82 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M0 26 C16 14 34 9 52 14 C68 18 84 11 100 4 L100 78 C84 90 66 95 48 90 C32 86 16 93 0 82 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.pillars::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.28;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 49%, transparent 58%),
    radial-gradient(circle at 76% 20%, rgba(217, 169, 79, 0.12), transparent 28%);
  pointer-events: none;
}

.pillars-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.pillar-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--gold-light);
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream-light);
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.pillar p {
  max-width: 170px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: rgba(245, 237, 225, 0.78);
  line-height: 1.55;
}

/* ---- Areas of service ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.area-card {
  background: var(--cream-light);
  border: 1px solid rgba(192, 138, 53, 0.28);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 31, 61, 0.07);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.area-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(15, 31, 61, 0.12);
}

.area-card img {
  width: 100%;
  height: 172px;
  object-fit: cover;
}

.area-card-body {
  padding: 1rem 1.05rem 1.25rem;
}

.area-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.area-card-body p {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- Testimonials ---- */
.testimonials-section {
  background: var(--cream-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--cream-light);
  border-radius: 8px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-person img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-soft);
}

.testimonial-person strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-deep);
}

.testimonial-person span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.testimonial-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.testimonial-dots span.active {
  background: var(--gold);
}

/* ---- Quote band ---- */
.quote-band {
  background: var(--navy-deep);
  color: var(--cream-light);
  padding: 2.8rem 0 2.6rem;
  text-align: center;
  border-radius: 64px 64px 0 0 / 64px 64px 0 0;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.quote-text {
  font-family: var(--font-script);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  max-width: 700px;
  margin: 0 auto 1rem;
  font-weight: 600;
}

.quote-author {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.95rem;
}

@media (max-width: 1060px) {
  .hero-inner,
  .journey-panel-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 0;
    text-align: center;
  }

  .hero-text {
    padding: 0 0 3rem;
    max-width: 100%;
  }

  .hero-rule,
  .hero-cta-row {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-portrait-wrap {
    justify-content: center;
    order: -1;
  }

  .service-grid,
  .areas-grid,
  .core-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .home-frame {
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-arch,
  .hero-bg-collage {
    width: 82%;
    opacity: 0.16;
  }

  .service-grid,
  .areas-grid,
  .core-pillars-grid,
  .pillars-grid,
  .journey-track {
    grid-template-columns: 1fr;
  }

  .core-pillar-card {
    min-height: auto;
  }

  .service-card {
    min-height: auto;
  }

  .journey-track::before,
  .journey-track::after {
    display: none;
  }

  .pillars {
    margin-top: -4.3rem;
    padding-top: 7.8rem;
    padding-bottom: 7.8rem;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M0 16 C22 8 44 10 62 13 C78 16 90 9 100 5 L100 84 C78 92 56 90 38 87 C22 84 10 91 0 95 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='white' d='M0 16 C22 8 44 10 62 13 C78 16 90 9 100 5 L100 84 C78 92 56 90 38 87 C22 84 10 91 0 95 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 2.35rem;
    white-space: normal;
  }

  .service-card {
    grid-template-columns: 54px 1fr;
    padding: 1.1rem;
  }

  .service-icon {
    width: 50px;
    height: 50px;
  }
}
