:root {
  --black: #000000;
  --white: #ffffff;
  --teal: #00b7c7;
  --gray-bg: #f5f5f5;
  --body-text: #222222;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--body-text);
  background: var(--white);
}

.brand-text,
.brand-heading {
  font-family: 'Playfair Display', serif;
}

.brand-heading {
  font-weight: 600;
}

.top-cta {
  background: #98d7de;
}

.main-nav {
  background: var(--black);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: 1px solid var(--teal);
}

.btn-teal:hover {
  background: #0198a6;
  color: var(--white);
  border-color: #0198a6;
}

.btn-white {
  background: #f5f5f5;
  color: var(--black);
  border: 1px solid #f5f5f5;
  font-weight: 600;
  box-shadow: none;
}

.btn-white:hover {
  background: #e8e8e8;
  color: var(--black);
  border-color: #e8e8e8;
  box-shadow: none;
}

.btn-white:focus {
  box-shadow: none;
}

/* Hero Split Design */
.hero-split {
  position: relative;
  height: 80vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  background: var(--teal);
}

/* Slide-in animation for hero images */
.hero-split-left, .hero-split-right {
  transition: transform 1.2s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}
.hero-split-left.slide-in {
  transform: translateX(0);
}
.hero-split-right.slide-in {
  transform: translateX(0);
}
.hero-split-left {
  transform: translateX(-100vw);
}
.hero-split-right {
  transform: translateX(100vw);
}

.hero-split-left,
.hero-split-right {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
}

.hero-split-left {
  left: 0;
  width: 50%;
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
}

.hero-split-right {
  right: 0;
  width: 60%;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-split-left picture,
.hero-split-right picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-split-left img,
.hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-split-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.hero-split-text {
  text-align: center;
  padding: 2rem;
  max-width: 700px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-split-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-split-text p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 0;
}

/* Responsive adjustments for hero split */
@media (max-width: 768px) {
  .hero-split {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-split-left {
    clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%);
  }
  
  .hero-split-right {
    clip-path: polygon(60% 0, 100% 0, 100% 100%, 20% 100%);
  }
  
  .hero-split-left img,
  .hero-split-right img {
    object-position: 30% center;
  }
  
  .hero-split-text {
    padding: 1.5rem;
  }
}

/* Stacey portrait: slide-in from left while fading and zooming */
.stacey-portrait {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translateX(-160px) scale(0.86);
  will-change: transform, opacity;
}
.stacey-portrait.appear {
  animation: stacey-entrance 900ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
@keyframes stacey-entrance {
  0% {
    opacity: 0;
    transform: translateX(-160px) scale(0.86);
  }
  70% {
    opacity: 1;
    transform: translateX(12px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
}

.wave {
  height: 60px;
  background: radial-gradient(100% 60px at 50% 0, transparent 45%, var(--white) 46%);
}

.section-dark {
  background: var(--black);
  color: #d5d5d5;
}

.text-teal,
.link-teal {
  color: var(--teal);
}

.link-teal {
  text-decoration: none;
}

.link-teal:hover {
  text-decoration: underline;
}

.page-hero {
  background: var(--gray-bg);
  border-bottom: 1px solid #e8e8e8;
}

/* Service cards: rise+fade with staggered sequencing */
.service-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 420ms ease;
  transition-delay: var(--delay, 0ms);
}
.service-card.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.service-card .card-img-top {
  display: block;
  width: 100%;
  transform-origin: center center;
  transition: transform 640ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.service-card.in-view .card-img-top {
  transform: scale(1);
}

/* Mobile: playful stagger with slight rotation that settles */
@media (max-width: 767px) {
  .service-card { transform: translateY(18px) scale(0.98); }
  .service-card.seq-odd .card-img-top { transform: translateY(8px) rotate(-2deg) scale(1.02); }
  .service-card.seq-even .card-img-top { transform: translateY(8px) rotate(2deg) scale(1.02); }
  .service-card.in-view.seq-odd .card-img-top,
  .service-card.in-view.seq-even .card-img-top { transform: none; }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.service-grid article,
.resource-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.gallery-filter.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.site-footer {
  background: var(--black);
  color: #cdcdcd;
}

.site-footer a {
  color: var(--teal);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
