/* ===== Fonts ===== */
@font-face {
  font-family: 'Tiempos Headline';
  src: url('fonts/test-tiempos-headline-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Epicene Display';
  src: url('fonts/TestEpiceneDisplay-Medium-BF66175341117d8.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5e0d3;
  --bg-light: #f9ede5;
  --text-dark: #3a2e2a;
  --text-body: #5a4a44;
  --heading-blue: #2c3e6b;
  --accent-pink: #e8c4b8;
  --accent-gold: #c9a87c;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.05;
  background-repeat: repeat;
  /* Set by JS canvas grain generator */
}

/* ===== Floating Nav ===== */
.floating-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 2rem;
  background: rgba(245, 224, 211, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 168, 140, 0.2);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.floating-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-logo {
  position: absolute;
  left: 2rem;
  font-family: 'Epicene Display', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--heading-blue);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.nav-btns {
  display: flex;
  gap: 1rem;
}

.nav-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-btn--primary {
  background: var(--accent-pink);
  color: var(--text-dark);
}

.nav-btn--primary:hover {
  background: #d4a090;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(232, 196, 184, 0.5);
}

.nav-btn--secondary {
  background: transparent;
  color: var(--heading-blue);
  border: 1.5px solid var(--heading-blue);
}

.nav-btn--secondary:hover {
  background: var(--heading-blue);
  color: var(--white);
}

.nav-btn--back {
  background: transparent;
  color: var(--text-body);
  border: 1.5px solid rgba(90, 74, 68, 0.3);
}

.nav-btn--back:hover {
  background: rgba(90, 74, 68, 0.08);
  color: var(--text-dark);
  border-color: var(--text-dark);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 6rem 2rem 2rem;
}

.hero__title {
  font-family: 'Epicene Display', 'Playfair Display', serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--heading-blue);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent-gold);
  margin-top: 0.25rem;
}

/* ===== Icon Morph ===== */
.icon-morph {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.icon-morph__video {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== Van Hero ===== */
.van-hero {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 2rem 4rem;
  overflow-x: clip;
  overflow-y: visible;
}

.landmarks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -250px;
  overflow-x: hidden;
  overflow-y: visible;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.landmarks__track {
  display: flex;
  align-items: flex-end;
  gap: 6rem;
  height: 100%;
  padding-bottom: 100px;
  animation: scroll-landmarks 40s linear infinite;
  width: max-content;
}

.landmarks__track img[alt="Big Ben"] {
  margin-bottom: 40px;
}

.landmarks__track img {
  height: 500px;
  width: auto;
  opacity: 0.9;
  flex-shrink: 0;
}

@keyframes scroll-landmarks {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.van-hero__video {
  position: relative;
  z-index: 2;
  width: min(600px, 80vw);
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 72%);
}

/* ===== Value Proposition ===== */
.value-prop {
  text-align: center;
  padding: 4rem 2rem 5rem;
  max-width: 700px;
  margin: 0 auto;
}

.value-prop__heading {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.value-prop__sub {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  text-wrap: balance;
}

/* ===== Services ===== */
.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.service {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.service--right {
  flex-direction: row;
}

.service--left {
  flex-direction: row;
}

.service__media {
  flex: 0 0 400px;
}

.service__video {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, black 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 75% at center, black 45%, transparent 75%);
}

.service__content {
  flex: 1;
}

.service__title {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service__text {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-body);
}

.service__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px dotted var(--text-dark);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.service__link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
}

.service__link:hover {
  color: var(--heading-blue);
  border-color: var(--heading-blue);
}

.service__link:hover::after {
  transform: translateX(5px);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 5rem 2rem 5rem;
}

.cta__heading {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.cta__btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border-radius: 50px;
  background: var(--accent-pink);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta__btn:hover {
  background: #d4a090;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(232, 196, 184, 0.5);
}

/* ===== About Megan ===== */
.about {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.about__headline {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 3rem;
}

.about__layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about__image-wrap {
  flex: 0 0 340px;
}

.about__image {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 72%);
}

.about__lead {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: var(--heading-blue);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.about__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-body);
}

@media (max-width: 768px) {
  .about__layout {
    flex-direction: column;
    text-align: center;
  }
  .about__image-wrap {
    flex: none;
    width: 260px;
  }
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.8rem;
  color: rgba(90, 74, 68, 0.6);
  border-top: 1px solid rgba(200, 168, 140, 0.2);
}

.footer__icon-morph {
  margin-bottom: 1.5rem;
}

.footer__icon-morph .icon-morph__video {
  width: 84px;
  height: 84px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer__links a {
  color: rgba(90, 74, 68, 0.6);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text-body);
}

/* ===== Subpage Hero ===== */
.subpage-hero {
  text-align: center;
  padding: 5rem 2rem 0;
}

.subpage-hero__title {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.subpage-hero__media {
  max-width: 900px;
  margin: 0 auto;
}

.subpage-hero__video {
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at center, black 40%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 80% at center, black 40%, transparent 72%);
}

/* ===== Subpage Content ===== */
.subpage-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.content-block__title {
  font-family: 'Tiempos Headline', 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.content-block__text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .service {
    flex-direction: column !important;
    text-align: center;
    gap: 1.5rem;
  }

  .service--right .service__media {
    order: -1;
  }

  .service__media {
    flex: none;
    width: 280px;
  }

  .floating-nav {
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .nav-btn {
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
  }

  .landmarks__track img {
    height: 280px;
  }

  .landmarks__track img[alt="Big Ben"] {
    margin-bottom: 20px;
  }

  .landmarks {
    top: -150px;
  }

  .landmarks__track {
    padding-bottom: 40px;
  }

  .van-hero__video {
    width: 65vw;
  }

  .van-hero {
    padding-top: 3rem;
    padding-bottom: 1rem;
  }

  .value-prop {
    padding-top: 1rem;
  }
}
