
/* ==========================================================
   Sunset Point - About Us
   Standalone HTML / CSS / JS
   ========================================================== */

.sp-about{
  --blue:#1F4E79;
  --blue-dark:#163B5D;
  --orange:#E07A2D;
  --ink:#1D252C;
  --text:#4A5258;
  --cream:#F7F5F1;
  --white:#FFFFFF;

  position:relative;
  width:100%;
  overflow:hidden;
  background:#f7f5f1;
  isolation:isolate;
}

/* ==========================================================
   BACKGROUND VIDEO
   ========================================================== */

.sp-about__media-bg{
  position:absolute;
  inset:0;
  z-index:-3;
  overflow:hidden;
  background:#eae6df;
}

.sp-about__video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
  opacity:.32;
  transform:scale(1.03);
}

.sp-about__overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.96) 0%,
      rgba(255,255,255,.93) 38%,
      rgba(255,255,255,.76) 58%,
      rgba(255,255,255,.44) 100%
    );
}

.sp-about__soft-light{
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 78% 48%,
      rgba(224,122,45,.12),
      transparent 30%
    );
}

/* ==========================================================
   MAIN LAYOUT
   ========================================================== */

.sp-about__inner{
  width:min(100%,1600px);
  margin:0 auto;
  padding:clamp(70px,7vw,125px) clamp(22px,5vw,80px);
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);
  align-items:center;
  gap:clamp(55px,7vw,120px);
  min-height:720px;
}

/* ==========================================================
   LEFT CONTENT
   ========================================================== */

.sp-about__content{
  max-width:650px;
  position:relative;
  z-index:5;
}

.sp-about__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
  color:var(--orange);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.sp-about__eyebrow:before{
  content:"";
  width:35px;
  height:2px;
  background:var(--orange);
}

.sp-about__content h2{
  margin:0 0 24px;
  color:var(--blue);
  font-size:clamp(2.4rem,4.5vw,4.7rem);
  font-weight:700;
  line-height:.98;
  letter-spacing:-.035em;
}

.sp-about__content p{
  margin:0 0 17px;
  max-width:610px;
  color:var(--text);
  font-size:1rem;
  line-height:1.8;
}

.sp-about__actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:30px;
}

.sp-about__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:11px 21px;
  border-radius:999px;
  background:var(--blue);
  border:1px solid var(--blue);
  color:#fff !important;
  text-decoration:none !important;
  font-size:.92rem;
  font-weight:700;
  line-height:1;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.sp-about__btn:hover{
  background:var(--orange);
  border-color:var(--orange);
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 9px 24px rgba(0,0,0,.1);
}

.sp-about__btn--outline{
  background:transparent;
  color:var(--blue) !important;
}

.sp-about__btn--outline:hover{
  color:#fff !important;
}

/* ==========================================================
   RIGHT VISUAL
   ========================================================== */

.sp-about__visual{
  position:relative;
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* soft decorative circle */

.sp-about__circle{
  position:absolute;
  width:min(44vw,690px);
  aspect-ratio:1;
  border-radius:50%;
  background:#FFD468;
  left:50%;
  top:48%;
  transform:translate(-50%,-50%);
  opacity:.95;
}

/* Main image */

.sp-about__photo-wrap{
  position:relative;
  z-index:2;
  width:min(100%,720px);
  margin-left:auto;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 70px rgba(22,59,93,.18);
}

.sp-about__photo{
  display:block;
  width:100%;
  height:570px;
  object-fit:cover;
  object-position:center;
  transition:transform .8s cubic-bezier(.2,.7,.2,1);
}

.sp-about__photo-wrap:hover .sp-about__photo{
  transform:scale(1.025);
}

/* Floating badges */

.sp-about__badge{
  position:absolute;
  z-index:4;
  overflow:hidden;
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 40px rgba(0,0,0,.16);
  transition:transform .3s ease;
}

.sp-about__badge img{
  display:block;
  width:100%;
  height:auto;
}

.sp-about__badge--years{
  width:min(330px,40%);
  left:-10%;
  top:19%;
}

.sp-about__badge--residents{
  width:min(285px,35%);
  right:-3%;
  bottom:12%;
}

.sp-about__badge:hover{
  transform:translateY(-4px);
}

/* ==========================================================
   FALLBACK STAT CARDS
   Used if the old graphic images fail to load
   ========================================================== */

.sp-about__fallback-stat{
  display:none;
  align-items:center;
  gap:12px;
  padding:16px 20px;
  background:#fff;
  min-width:210px;
}

.sp-about__fallback-stat strong{
  display:block;
  color:var(--blue);
  font-size:1.7rem;
  line-height:1;
}

.sp-about__fallback-stat span{
  color:#62686d;
  font-size:.83rem;
  font-weight:600;
  line-height:1.25;
}

/* ==========================================================
   ENTRANCE ANIMATION
   ========================================================== */

.sp-about__reveal{
  opacity:0;
  transform:translateY(28px);
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22,.7,.22,1);
}

.sp-about__reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}

.sp-about__visual.sp-about__reveal{
  transform:translateY(35px) scale(.985);
}

.sp-about__visual.sp-about__reveal.is-visible{
  transform:translateY(0) scale(1);
}

/* ==========================================================
   TABLET
   ========================================================== */

@media(max-width:1100px){

  .sp-about__inner{
    grid-template-columns:1fr 1fr;
    gap:45px;
    min-height:auto;
  }

  .sp-about__visual{
    min-height:520px;
  }

  .sp-about__photo{
    height:490px;
  }

  .sp-about__badge--years{
    left:-6%;
  }

  .sp-about__badge--residents{
    right:-2%;
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:900px){

  .sp-about__overlay{
    background:rgba(255,255,255,.91);
  }

  .sp-about__inner{
    grid-template-columns:1fr;
    padding-top:70px;
    padding-bottom:75px;
    gap:50px;
  }

  .sp-about__content{
    max-width:760px;
  }

  .sp-about__visual{
    width:min(100%,720px);
    margin:0 auto;
    min-height:auto;
    padding:30px 25px 55px;
  }

  .sp-about__circle{
    width:90%;
  }

  .sp-about__photo-wrap{
    width:88%;
    margin:0 auto;
  }

  .sp-about__photo{
    height:clamp(380px,65vw,550px);
  }

  .sp-about__badge--years{
    width:42%;
    left:0;
    top:5%;
  }

  .sp-about__badge--residents{
    width:38%;
    right:0;
    bottom:0;
  }
}

@media(max-width:620px){

  .sp-about__inner{
    padding-left:20px;
    padding-right:20px;
  }

  .sp-about__content h2{
    font-size:2.65rem;
  }

  .sp-about__content p{
    font-size:.96rem;
    line-height:1.72;
  }

  .sp-about__actions{
    flex-direction:column;
    align-items:stretch;
  }

  .sp-about__btn{
    width:100%;
  }

  .sp-about__visual{
    padding-left:5px;
    padding-right:5px;
    padding-bottom:45px;
  }

  .sp-about__photo-wrap{
    width:92%;
    border-radius:20px;
  }

  .sp-about__photo{
    height:400px;
  }

  .sp-about__badge--years{
    width:47%;
    left:-1%;
  }

  .sp-about__badge--residents{
    width:43%;
    right:-1%;
  }
}

/* Reduced motion */

@media(prefers-reduced-motion:reduce){
  .sp-about__reveal,
  .sp-about__photo,
  .sp-about__badge{
    transition:none !important;
  }

  .sp-about__reveal{
    opacity:1;
    transform:none !important;
  }
}
