/* ================= SERVICES PAGE ================= */



/* ================= FULLSCREEN LOADER ================= */

#services-loader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 1200ms cubic-bezier(.22,1,.36,1);
}

#services-loader.reveal {
  transform: translateY(-100%);
}

.services-loader__inner {
  text-align: center;
  color: #fff;
  font-family: "Quattrocento", serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}

.services-loader__text {
  margin-bottom: 18px;
}

.services-flip-box {
  width: 20px;
  height: 20px;
  margin: 0 auto;
  background: #fff;
  animation: servicesFlip 900ms ease-in-out infinite;
}

@keyframes servicesFlip {
  0% { transform: rotateY(0deg); background:#fff; }
  50% { transform: rotateY(180deg); background:#000; outline:1px solid rgba(255,255,255,.6); }
  100% { transform: rotateY(360deg); background:#fff; }
}

/* ================= HERO ================= */

.services-hero {
  opacity: 1 !important;
  transform: none !important;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.services-hero .hero__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-hero .hero__title {
  color: #111;
  font-size: clamp(56px, 10vw, 140px);
  text-align: center;
}

.services-hero .hero__top {
  justify-content: flex-start;
}

.services-hero .hero__bottom {
  justify-content: flex-start;
}

/* ================= TITLE UNDERLINE ================= */

.services{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:60px 24px;
  box-sizing:border-box;
}

@media (max-width:900px){

.services-grid{
  width:100%;
  margin:60px auto;
  grid-template-columns:1fr;
  gap:60px;
}

.service-card{
  width:100%;
  max-width:420px;
  margin:0 auto;
}

/* remove stagger margins */
.services-grid .service-card:nth-child(1),
.services-grid .service-card:nth-child(2),
.services-grid .service-card:nth-child(3),
.services-grid .service-card:nth-child(4){
  margin-left:0;
}

}

@media (max-width:900px){

.services-grid{
  grid-template-columns:1fr;
  gap:80px;
}


}

.services-word{
  position: relative;
  display: inline-block;
}

.services-word::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 2px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(.22,1,.36,1) 300ms;
}

body:not(.loading) .services-word::after{
  transform: scaleX(1);
}

/* ================= SECTION SPACING ================= */

.services-section{
  padding-top: 80px;
}

.services-container{
  padding-left: 8vw;
  padding-right: 8vw;
}

/* ================= SECTION TITLES ================= */

.services-kicker{
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 6px;
}

.services-title{
 /*  font-family: Helvetica, Arial, sans-serif; */
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 20px 0 80px 0;
  color: #222;
  text-align: left;
}
.services-grid{
  width:100%;
  max-width:1200px;
  margin:120px auto;

  display:grid;
grid-template-columns:repeat(4,1fr);
  gap:40px;
  justify-items:center;
}

.services-word::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 2px;
  background: #111;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(.22,1,.36,1) 300ms;
}

body:not(.loading) .services-word::after{
  transform: scaleX(1);
}

/* ===== CARD BASE ===== */

.service-card{
position:relative;
  width:100%;
  max-width:420px;
  min-width:0;
}


/* star */

.service-star{
  font-size:28px;
  color:#999;
  margin-bottom:18px;
}


/* title */

.service-card h3{
  font-size:34px;
  margin-bottom:16px;
}


/* text */

.service-card p{
  font-size:15px;
  line-height:1.6;
  color:#555;
  margin-bottom:20px;
  max-width:240px;
}


/* link */

.service-card a{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  text-decoration:none;
  color:#111;
}
/* card pop up addition*/
.service-card{
  opacity: 0;
  transform: translateY(350px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(.16,1,.3,1);
}

body:not(.loading) .service-card{
  opacity: 1;
  transform: translateY(0);
}

/* one after another, moderate pace */
.services-grid .service-card:nth-child(1){ transition-delay: 900ms; }
.services-grid .service-card:nth-child(2){ transition-delay: 1150ms; }
.services-grid .service-card:nth-child(3){ transition-delay: 1300ms; }
.services-grid .service-card:nth-child(4){ transition-delay: 1550ms; }

/* ===== HOVER CARD ===== */

/* hidden card background */

.service-card::before{
  content:"";
  position:absolute;
  inset:-20px;

  background:#f0ecdd;
  border-radius:8px;

  opacity:0;
  transform:scale(0.9);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.04);

  transition:
    opacity .35s ease,
    transform .35s ease;

  z-index:-1;
}


/* hover animation */

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


/* base card */
/* base card */
/* base card */

/* ================= RESPONSIVE ================= */

@media (max-width:900px){

  .timeline-item{
    width:100%;
    left:0 !important;
    text-align:left;
  }

  .timeline-line{
    display:none;
  }

}

@media (max-width:600px){

  .timeline-card h3{
    font-size:24px;
  }

  .timeline-card p{
    font-size:14px;
  }

}

/* flip for title*/
/* title container */
/* title container */

.service-title{
  display:inline-block;
  position:relative;
}

/* mask hides second text */

.title-mask{
  display:block;
  overflow:hidden;
  height:1.2em;
}

/* moving wrapper */

.title-track{
  display:block;
  transition:transform .35s ease;
}

/* stacked titles */

.title-track span{
  display:block;
  line-height:1.2em;
}

/* hover animation */

.service-card:hover .title-track{
  transform:translateY(-1.2em);
}

/* card background layer */


.service-card{
  position:relative;
  width:100%;
  transition: transform .35s ease;
  perspective:600px;
}

.service-card::before{
  content:"";
  position:absolute;
  inset:-18px;

  background:#f0ecdd;
  border-radius:8px;

  opacity:0;
  transform:scale(.92);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.04);

  transition:
    opacity .35s ease .2s,
    transform .35s ease;

  z-index:-1;
}

/* zoom card + text */

.service-card:hover{
  transform:scale(1.05);
}

/* fade only background card */

.service-card:hover::before{
  opacity:.75;
  transform:scale(1);
}


.service-link:hover{
  text-decoration: underline;
}

@media (max-width: 900px){

.services-grid{
  display:flex;
  flex-direction:column;
  gap:60px;
}

.service-item{
  width:100%;
}

}
/* ================= FOOTER ================= */

.site-footer{
  background: #1c1c1c;
  color: #f8f8f0;
  padding: clamp(40px, 5vw, 80px);
  font-family: "Quattrocento", serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Main two-column layout */
.site-footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto 60px auto;
  gap: 60px;
  flex-wrap: wrap;
    padding: 0 40px;
}

/* LEFT COLUMN */
.site-footer__left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 60px;

}

.site-footer__left a {
  text-decoration: none;
  color: rgba(248,248,240,0.8);
  font-size: 14px;
  transition: 0.2s ease;
}

.site-footer__left a:hover {
  color: #fff;
}

/* RIGHT COLUMN */
.site-footer__right {
  max-width: 400px;
}

.site-footer__newsletter-text {
  font-size: 13px;
  margin-bottom: 20px;
  color: rgba(248,248,240,0.7);
  line-height: 1.6;
}

.site-footer__newsletter-form {
  display: flex;
  gap: 10px;
}

.site-footer__newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.site-footer__newsletter-form button {
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #000;
  cursor: pointer;
}

/* BOTTOM COPYRIGHT */
.site-footer__bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer__content {
    flex-direction: column;
    text-align: center;
    align-items: center;

  }

  .site-footer__left {

      align-items: center;     /* THIS centers the vertical list */
    padding-left: 0;   
  }

  .site-footer__newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .site-footer__newsletter-form input,
  .site-footer__newsletter-form button {
    width: 100%;
  }
}


/* footer animation*/
.site-footer {
  background: #1c1c1c;
  color: #f8f8f0;
  padding: clamp(40px, 5vw, 80px);
}

.site-footer__content,
.site-footer__bottom {
  opacity: 0;
  transform: translateY(100px);
  transition:
    transform 1.2s cubic-bezier(.16,1,.3,1),
    opacity 1s ease;
}

.site-footer.footer-visible .site-footer__content,
.site-footer.footer-visible .site-footer__bottom {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 901px){
  .curve-panel__right{
    display: flex !important;
    justify-content: center;
    align-items: flex-start !important;
    align-self: start !important;
    min-height: auto !important;
  }
}


@media (max-width:900px){

.services-grid{
  grid-template-columns:1fr;
  gap:60px;
  width:100%;
}

.service-card{
  width:52%;
  max-width:420px;
  margin:0 auto;
}

.services-grid .service-card:nth-child(1),
.services-grid .service-card:nth-child(2),
.services-grid .service-card:nth-child(3),
.services-grid .service-card:nth-child(4){
  margin-left:20%;
}

}




