@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600&family=Lora:ital,wght@0,400;0,500;1,400&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #4A5A7A;
  --navy-dark: #3a4860;
  --powder: #C5D5E4;
  --powder-light: #dce8f0;
  --slate: #4A5E7A;
  --white: #ffffff;
  --off-white: #fafaf8;
  --charcoal: #2c2c2c;
  --mid-gray: #888;
  --light-gray: #e0ddd8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

/* NAV */
nav {
  background: var(--white);
  border-bottom: 2px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
nav a {
  display: block;
  padding: 14px 22px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
nav a:hover { background: var(--powder-light); }
nav a.active { background: var(--navy); color: var(--white); }

/* DIVIDERS */
.divider-double {
  border: none;
  border-top: 1px solid var(--navy);
  box-shadow: 0 3px 0 0 var(--navy);
  height: 4px;
  background: transparent;
  margin: 0;
}
.divider-single-full {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 0;
}
.divider-inner {
  border: none;
  border-top: 1px solid var(--light-gray);
  max-width: 1000px;
  margin: 0 auto;
}

/* SCROLL FADE */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* SLIDE FROM RIGHT */
.slide-right {
  opacity: 0;
  transform: translateX(55px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--powder-light); }

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 48px;
}

/* PAGE HERO - static cursive */
.page-hero { padding: 36px 40px 28px; }
.page-hero-inner { max-width: 1000px; margin: 0 auto; }
.page-hero h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 56px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.2;
}

/* TESTIMONIALS */
.testimonials { background: var(--powder); padding: 70px 40px; text-align: center; }
.testimonial-inner { max-width: 700px; margin: 0 auto; }
.testimonial-slide { display: none; opacity: 0; transition: opacity 1s ease; }
.testimonial-slide.active { display: block; }
.testimonial-slide.visible { opacity: 1; }
.testimonial-name { font-family: 'Lora', serif; font-size: 15px; font-weight: 500; color: var(--navy); letter-spacing: 0.03em; margin-bottom: 18px; }
.testimonial-rule { width: 40px; border: none; border-top: 1.5px solid var(--navy); margin: 0 auto 24px; }
.testimonial-quote { font-family: 'Lora', serif; font-size: 19px; font-style: italic; color: #3a4860; line-height: 1.8; margin-bottom: 36px; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1.5px solid var(--navy); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--navy); }
.testimonial-link { display: inline-block; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: 2px; transition: opacity 0.2s; }
.testimonial-link:hover { opacity: 0.7; }

/* CLIENT LOGOS */
.clients { background: var(--white); padding: 44px 40px 48px; }
.clients-label {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 32px;
  font-weight: 700;
}
.clients-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 44px;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.25s, filter 0.25s;
  filter: grayscale(80%);
  height: 40px;
}
.client-logo:hover { opacity: 1; filter: grayscale(0%); }
.client-logo img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* FLOATING BACK TO TOP */
.back-top-float {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, bottom 0.15s ease;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(74,90,122,0.35);
}
.back-top-float.visible { opacity: 1; visibility: visible; }
.back-top-float:hover { background: var(--navy-dark); }

/* FOOTER */
footer { background: var(--slate); color: rgba(255,255,255,0.85); padding: 44px 40px; width: 100%; box-sizing: border-box; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); text-align: center; gap: 20px; }
.footer-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.footer-value { font-size: 15px; color: var(--white); }
.footer-value a { color: var(--white); text-decoration: none; }
.footer-value a:hover { text-decoration: underline; }
.social-icons { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--white); font-size: 13px; font-weight: 700; transition: background 0.2s; }
.social-icon:hover { background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  nav a { padding: 12px 12px; font-size: 12px; }
  .page-hero { padding: 40px 24px 28px; }
  .page-hero h1 { font-size: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .testimonials { padding: 50px 24px; }
  .testimonial-quote { font-size: 16px; }
  .clients { padding: 36px 24px; }
  .clients-inner { gap: 24px 32px; }
}
