@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
  --vh: 100vh;
  --vw: 100vw;

  --color-1: #ffffff;
  --color-2: #333333;
  --color-3: #d26528;
  --color-4: #335467;
  --color-5: #103550;
  --color-6: #dad2cf;
}

html,
body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: scroll; /* forceert altijd verticale scroll, voorkomt layout jump */
  font-family: 'Nunito', Helvetica, Arial, Lucida, sans-serif;
}

#top {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

.section.row,
#top > .row {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin-bottom: unset !important;
}

#testimonialCarousel b {
  color: #333 !important;
}

.section-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100vh;
  padding: 0;
}

#s1 .section-inner {
  position: relative;
  top: -8vh;
}

#s6 .section-inner {
  display: block;
  padding: 0 5vw 20vh 5vw;
  height: 100vh;
}

.homepage-content {
  position: relative;
  top: 0;
  right: 5vw;
  width: 65vw;
  margin-left: auto;
  text-align: right;
}

.homepage-content h1,
.homepage-content p {
  text-align: right;
}

.homepage-title-mobile {
  display: none;
}

.homepage-tagline.homepage-tagline-desktop {
  display: inline-flex;
}

.homepage-tagline.homepage-tagline-mobile {
  display: none;
}

.bg-home-inline {
  display: none;
  width: 100%;
  height: 30vh;
  background-image: url("img/rafa-solo.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.homepage-logo {
  max-width: 50vw;
  max-height: 15vh;
  height: auto;
  width: auto;
  margin-bottom: 5vh;
}

.homepage-content h1 {
  font-family: 'Bebas Neue', display;
  text-transform: uppercase;
  font-size: clamp(24px, 8vh, 64px);
  color: #606160 !important;
  letter-spacing: 2px;
  line-height: 1.1em;
}

.homepage-content p {
  font-size: 33px;
  color: #606160 !important;
  line-height: 1.2em;
  text-align: right;
  position: relative;
  right: 0;
  margin-bottom: 1.8rem;
  max-width: 34ch;
  margin-left: auto;
}

.homepage-tagline {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
}

.homepage-tagline .tagline-line {
  display: block;
  white-space: nowrap;
}

.btn-custom {
  position: relative;
  color: var(--color-1);
  background-color: var(--color-4);
  cursor: pointer;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-custom:hover {
  background-color: var(--color-3);
  color: var(--color-1);
}

.homepage-content .btn-custom {
  z-index: 200;
  background-color: var(--color-3);
}

.intro-content {
  position: relative;
  width: 100%;
  height: 80vh;
  padding: 5% 10%;
}

.intro-lead {
  margin-top: -1vh;
}

.intro-content h2,
.tutor-content h2 {
  color: var(--color-5) !important;
}

.feature-summary {
  margin-top: 4vh;
  font-size: 2.5vh;
  line-height: 3.5vh;
  color: var(--color-5) !important;
}

.feature-summary strong {
  font-weight: 800;
}

.intro-content p,
.tutor-content p {
  font-size: 2.5vh;
  line-height: 3.5vh;
  margin-bottom: 3vh;
  color: var(--color-5) !important;
}

.intro-content .read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tutor-content .read-more-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.intro-content .read-more-content.is-open {
  max-height: 100vh;
}

.tutor-content .read-more-content.is-open {
  max-height: 100vh;
}

.read-more-toggle {
  margin-top: 1vh;
  margin-bottom: 0;
  text-align: center;
  color: var(--color-4);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.tutor-content {
  position: relative;
  width: 100%;
  padding: 5% 10%;
}

.tutor-text-content {
  max-width: 78vw;
}

.tutor-content img {
  float: left;          /* laat de afbeelding links zweven */
  margin: 10px 20px 0 0; /* ruimte rondom de afbeelding */
  width: 405px;          /* optioneel: vaste breedte */
}

.section-content-box {
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  width: 65vw;
  position: relative;
  top: 0;
  height: calc(100vh - 30vh - 60px); /* tussen topbar en contact */
  margin-left: 25vw; /* positie gelijk aan contact-col-right */
  text-align: left;
  border-radius: 0.5rem;
  overflow-y: auto;
}

.section-content-box p {
  font-size: clamp(14px, 0.2vh, 14px);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Background layers */
.bg-layer {
  position: absolute;
  background-position: left top;
  background-repeat: no-repeat;
  z-index: -1;
  transition: opacity 0.6s ease;
}

.bg-home {
  z-index: 99;
  top: -48px;
  left: 5vw;
  right: 0;
  bottom: 0;
  height: 100vh;
  background-size: 65vh;
  background-image: url("img/rafa-solo.png");
  opacity: 1;
}

.bg-tutor {
  z-index: 99;
  top: 0;
  left: 0;
  right: 0;
  bottom: 15vh;
  background-size: 50vh;
  background-image: url("img/rafa-teacher.png");
  opacity: 0;
}

body.home-active .bg-home { opacity: 1; }
body.tutor-active .bg-tutor { opacity: 1; }

#s1 { height: 90vh; }
#s1, #s2, #s3, #s4, #s5, #s6 { background-color: var(--color-6); }
#s7 {
  background-color: var(--color-1);
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

@media (min-width: 769px) {
  .intro-content .read-more-content {
    max-height: none;
    overflow: visible;
  }

  .tutor-content .read-more-content {
    max-height: none;
    overflow: visible;
  }

  .read-more-toggle {
    display: none;
  }
}

.testimonial {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  min-height: 70vh;
  overflow: hidden;
}

.testimonial p {
  height: auto !important;
  margin: 0;
  font-size: clamp(16px, 2.05vh, 20px);
  line-height: 1.5;
  color: #606160 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
}

.testimonial-meta,
.testimonial-quote {
  display: block;
}

.testimonial-meta {
  margin-bottom: 1.5rem;
  color: var(--color-5);
}

.testimonial-quote {
  margin-bottom: 1.5rem;
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-5);
}

.testimonial-paragraph {
  display: block;
}

.testimonial-paragraph-mobile {
  display: none;
}

.testimonial-paragraph + .testimonial-paragraph {
  margin-top: 1rem;
}

.angled-image {
  width: 100vh;
  height: 70vh;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0 100%);
  float: left;
  border-top-left-radius: 1.5rem;
  border-bottom-left-radius: 1.5rem;
  margin-right: 3rem;
}

.angled-image-carly {
  background-position: center 30%;
}

.carousel-inner {
  margin-top: 10vh;
}

/* Ronde buttons */
.carousel-control-prev,
.carousel-control-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-3); /* Kies jouw kleur */
  top: 50%;
  transform: translateY(-50%);
}

/* Pijl-icoon wit maken */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  /* background-color: var(--color-6) !important; */
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.carousel-control-prev { left: -50px; }
.carousel-control-next { right: -50px; }

.carousel-indicators {
  z-index: 9999 !important;
  position: relative !important;
  pointer-events: auto !important;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-indicators [data-bs-target] {
  pointer-events: auto !important;
  background-color: var(--color-3); /* or var(--color-4) for alternative look */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;         /* <-- Belangrijk! */
  display: inline-block;   /* <-- Belangrijk! */
}

.carousel-indicators .active {
  opacity: 1;
  background-color: var(--color-4);
}

.cta-odd,
.cta-even {
  color: var(--color-1);
  width: 100%;
  padding: 0;
  background: var(--color-4);
}

.cta-odd {
  background: var(--color-3);
  height: 10vh;
}

.cta-even {
  height: 10vh;
  z-index: 999;
}

.cta-title {
  line-height: 0.7;
  margin-top: 0.2em;
}

.cta-subtitle {
  font-size: 0.7em;
  font-weight: lighter;
}

#s7 .cta-even {
  height: 7vh;
}

.cta-odd .btn-custom,
.cta-even .btn-custom {
  color: var(--color-1);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-odd .btn-custom {
  background: var(--color-4);
  z-index: 999;
}

.cta-even .btn-custom {
  background: var(--color-3);
}

.cta-odd .btn-custom:hover {
  background: var(--color-1);
  color: var(--color-4);
}

.cta-even .btn-custom:hover {
  background: var(--color-1);
  color: var(--color-3);
}

.cta-last {
  position: relative;
  z-index: 999;
  display: flex;
  opacity: 1;
  margin-bottom: 0;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 85vh;
  height: auto;
  margin-top: 5vh;
  align-items: flex-start;
  padding-bottom: 0;
}

.contact-col-left {
  width: 38vw;
  position: relative;
  margin-left: 10vw;
  top: 0;
  height: auto;
  padding-top: 0;
  padding-bottom: 3vh;
}

.contact-col-right {
  width: 38vw;
  position: relative;
  margin-left: 4vw;
  padding-top: 0;
  padding-bottom: 3vh;
}

.contact-col-left img {
  max-width: 25vw;
  max-height: 10vh;
  margin-bottom: 5vh;
}

.btn-primary {
  width: 100%;
  color: var(--color-1);
  background: var(--color-4);
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  background: var(--color-3);
  color: var(--color-1);
}

.calendly-inline-widget {
  position: relative;
  z-index: 100;
  height: 650px;
  overflow: hidden;
}

.calendly-inline-widget iframe {
  position: relative;
  z-index: 100;
  height: 695px;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 1200;
  min-height: 3.5rem;
  padding: 0 5vw;
  margin-top: 0;
  background: var(--color-6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-5);
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.contact-status-modal .modal-content {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(16, 53, 80, 0.18);
  overflow: hidden;
}

.contact-status-modal .modal-header {
  border-bottom: 0;
  padding: 1.25rem 1.5rem 0.75rem;
}

.contact-status-modal .modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--color-5);
}

.contact-status-modal .modal-body {
  padding: 0 1.5rem 1.5rem;
}

.contact-status-modal .modal-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #4e5d67;
}

.contact-status-modal .btn-close {
  opacity: 1;
}

.contact-status-modal .contact-status-success {
  background: linear-gradient(180deg, #f7fcf9 0%, #ffffff 100%);
  border-top: 6px solid #4f8a63;
}

.contact-status-modal .contact-status-error,
.contact-status-modal .contact-status-invalid {
  background: linear-gradient(180deg, #fff8f6 0%, #ffffff 100%);
  border-top: 6px solid var(--color-3);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .homepage-content {
    width: 80vw;
    right: 0;
  }

  .section-content-box {
    width: 80vw;
    margin-left: 10vw;
  }

  .contact-col-left,
  .contact-col-right {
    width: 44vw;
  }
}

@media (max-width: 768px) {
  :root {
    --m-space-xs: clamp(4px, 1vw, 8px);
    --m-space-sm: clamp(8px, 2vw, 14px);
    --m-space-md: clamp(12px, 3vw, 24px);
    --m-space-lg: clamp(16px, 4vw, 32px);
    --s2-cta-even-h: auto;
    --s7-widget-top: 2vw;
    --s7-last-cta-h: clamp(56px, 10vw, 76px);
    --hero-cta-gap: clamp(18px, 5vw, 24px);
  }

  .section {
    height: auto;
    min-height: 100svh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .section > .cta-even,
  .section > .cta-odd {
    flex: 0 0 auto;
  }

  .section > .col-12 {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
  }

  .section-inner {
    height: auto;
    min-height: 100svh;
    width: 100%;
    padding: var(--m-space-md) 6vw;
  }

  #s1 {
    height: auto;
    min-height: 0;
  }

  #s3 {
    height: auto;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(100svh, auto) auto;
    overflow: visible;
  }

  #s2 {
    height: auto;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  #s3 > .col-12 {
    flex: 1 1 auto;
    min-height: 0;
  }

  #s2 > .col-12 {
    min-height: 0;
    overflow: visible;
  }

  #s3 .intro-content {
    height: auto;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
    padding: var(--m-space-md) 6vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--m-space-xs);
  }

  #s3.is-expanded {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto minmax(100svh, auto) auto;
    overflow: visible;
  }

  #s2.is-expanded {
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto auto;
    overflow: visible;
  }

  #s3.is-expanded > .col-12 {
    overflow: visible;
  }

  #s2.is-expanded > .col-12 {
    overflow: visible;
  }

  #s3.is-expanded .intro-content {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  #s2.is-expanded .tutor-content {
    overflow: visible;
    grid-template-rows: auto;
    height: auto;
  }

  #s2.is-expanded .tutor-text-content {
    height: auto;
    overflow: visible;
  }

  #s2.is-expanded .rafa-teacher {
    height: 50svh;
  }

  #s1 .section-inner {
    place-items: start center;
    min-height: 0;
    padding-top: max(env(safe-area-inset-top), 10px);
    padding-bottom: clamp(14px, 4vw, 22px);
    top: 0;
    position: relative;
    z-index: 1;
  }

  #s1 .homepage-content {
    display: flex;
    flex-direction: column;
    height: auto;
    justify-content: flex-start;
    align-items: center;
  }

  #s1 .homepage-content br {
    display: none;
  }

  #s1 .homepage-content h1:first-of-type {
    margin-top: 0;
  }

  .bg-home-inline {
    display: block;
    margin: 0;
    padding: 0;
    height: clamp(72px, 22vw, 112px);
  }

  #s3 .bg-home-inline {
    flex-shrink: 0;
    position: relative;
    top: 0;
    width: min(100%, 440px);
    margin: -30px auto 0;
    aspect-ratio: 4 / 5;
    height: auto;
    background-size: contain;
    background-position: center top;
  }

  #s6 .section-inner {
    padding: 0;
    height: 100%;
    box-sizing: border-box;
  }

  #s6 > .col-12 {
    overflow: visible;
  }

  #s6 #testimonialCarousel {
    position: relative;
    height: min(88svh, 720px);
    display: flex;
    flex-direction: column;
    padding-bottom: 2.75rem;
    width: calc(100vw - 32px);
    margin: 8px 16px !important;
    border-radius: 10px;
    overflow: hidden;
  }

  #s6 .carousel-inner {
    flex: 1 1 auto;
    height: 100%;
    margin-top: 0;
    overflow: hidden;
    padding-bottom: 0;
  }

  #s6 .carousel-item {
    height: 100%;
    min-height: 100%;
  }

  #s6 .testimonial {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
  }

  #s6 .carousel-indicators {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0.5rem;
    margin: 0 !important;
    z-index: 10000 !important;
  }

  #s2 > .cta-even {
    height: auto;
    min-height: 0;
    max-height: none;
    margin-top: 0;
    padding: clamp(18px, 6vw, 28px) 4vw;

  }

  #s6 {
    height: auto;
    min-height: 92svh;
  }

  .homepage-content {
    width: 100%;
    right: 0;
    text-align: center;
  }

  .homepage-content h1,
  .homepage-content p {
    text-align: center;
  }

  .homepage-title-desktop {
    display: none;
  }

  .homepage-title-mobile {
    display: block;
  }

  .homepage-tagline.homepage-tagline-desktop {
    display: none;
  }

  .homepage-tagline.homepage-tagline-mobile {
    
    display: inline-flex;
    text-transform: uppercase;
  }

  .homepage-content h1 {
    font-size: clamp(22px, 6.6vw, 30px);
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
  }

  .homepage-logo {
    max-width: clamp(180px, 70vw, 320px);
    max-height: clamp(60px, 18vw, 120px);
    margin-top: clamp(16px, 5vw, 32px);
    margin-bottom: clamp(18px, 5.5vw, 34px);
  }

  .homepage-content p {
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.42;
    letter-spacing: 0.04em;
    margin: clamp(16px, 4.2vw, 22px) auto 0;
    tmax-width: none;
    right: 0;
  }

  .homepage-tagline {
    align-items: center;
    gap: 0.1rem;
  }

  .homepage-tagline .tagline-line:first-child {
    font-size: inherit;
    white-space: normal;
  }

  .homepage-tagline .tagline-line:last-child {
    font-size: inherit;
    white-space: normal;
  }

  #s1 .homepage-content .btn-custom {
    display: inline-block;
    margin-top:10px !important;
    margin-bottom: 10px !important;
    padding: 0.7rem 1.35rem !important;
  }

  .intro-content h2 {
    font-size: clamp(18px, 5.4vw, 28px);
    line-height: 1.02;
  }

  .feature-summary {
    font-size: clamp(14px, 4vw, 17px);
    line-height: clamp(20px, 6vw, 26px);
  }

  .intro-content p {
    font-size: clamp(14px, 4vw, 17px);
    line-height: clamp(20px, 6vw, 26px);
  }

  #s2 .tutor-content p {
    font-size: clamp(14px, 4vw, 17px);
    line-height: clamp(22px, 6.8vw, 29px);
  }

  .cta-title {
    line-height: 1.05;
    font-size: clamp(20px, 6vw, 28px);
    margin: 0;
  }

  .cta-subtitle {
    display: block;
    margin-top: 0.1rem;
    font-size: clamp(14px, 4.2vw, 18px);
    line-height: 1.1;
  }

  .read-more-toggle {
    align-self: center;
    padding: 0;
  }

  .intro-content,
  .tutor-content {
    width: 100%;
    height: auto;
    padding: var(--m-space-lg) 6vw;
  }

  #s2 .tutor-content {
    min-height: 0;
    overflow: visible;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  #s2 .tutor-text-content {
    max-width: none;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: var(--m-space-md) 6vw calc(var(--m-space-sm) + 14px) 6vw;
  }

  #s2 .tutor-text-content h2:nth-of-type(2) {
    margin-top: clamp(22px, 5.5vw, 30px) !important;
  }

  #s2 .tutor-text-content h2 {
    margin-bottom: clamp(14px, 4vw, 22px) !important;
  }

  #s3 .intro-content {
    padding: var(--m-space-sm) 6vw clamp(10px, 3.2vw, 18px) 6vw;
    gap: clamp(10px, 3vw, 16px);
  }

  #s3 .intro-content h2 {
    margin-bottom: 0 !important;
    /* font-size: clamp(20px, 6vw, 28px);
    line-height: 1.2; */
  }

  #s3 .intro-content .intro-lead {
    margin-top: 0;
  }

  #s3 .intro-content > p:not(.read-more-toggle) {
    margin-bottom: 0;
  }

  #s3 .intro-content > p:not(.read-more-toggle) {
    font-size: clamp(16px, 4.6vw, 19px);
    line-height: 1.55;
  }

  #s3 .read-more-toggle {
    margin-top: clamp(4px, 1.5vw, 8px);
    margin-bottom: clamp(20px, 6vw, 40px);
  }

  #s2 .read-more-toggle {
    margin-top: auto;
    margin-bottom: var(--m-space-xs);
  }

  #s2 .tutor-text-content > :last-child {
    margin-bottom: 0 !important;
  }

  #s3 .intro-content > :last-child:not(.read-more-toggle) {
    margin-bottom: 0 !important;
  }

  #s2 .tutor-content > :last-child {
    margin-bottom: 0 !important;
  }

  #s3 .read-more-content p {
    font-size: clamp(16px, 4.6vw, 19px);
    line-height: 1.55;
    margin-bottom: clamp(10px, 2.5vw, 16px);
  }

  #s3 .read-more-content p:last-child {
    margin-bottom: 0;
  }

  .feature-title {
    margin-top: var(--m-space-sm);
    font-size: clamp(24px, 7vw, 34px);
  }

  .feature-intro {
    font-size: clamp(15px, 4.4vw, 18px);
    line-height: 1.35;
    text-transform: none;
  }

  .tutor-content img {
    float: none;
    display: block;
    width: 100%;
    max-width: clamp(260px, 80vw, 420px);
    margin: 0 auto var(--m-space-md);
  }

  #s2 .rafa-teacher {
    width: 100%;
    height: 50svh;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center top;
  }

  .section-content-box {
    width: 100%;
    margin-left: 0;
    height: auto;
    max-height: 70vh;
  }

  .bg-home {
    display: none;
  }

  .bg-tutor {
    display: none;
  }

  .testimonial p {
    height: auto !important;
    font-size: clamp(14px, 4vw, 17px);
    line-height: clamp(20px, 5.5vw, 24px);
    display: block;
  }

  .testimonial-paragraph-desktop {
    display: none;
  }

  .testimonial-paragraph-mobile {
    display: block;
  }

  .testimonial-meta {
    margin-bottom: 0.85rem;
    font-size: 0.95em;
    line-height: 1.35;
  }

  .testimonial-quote {
    margin-bottom: 0.85rem;
    font-size: 1.08em;
    line-height: 1.3;
  }

  #s6 .testimonial {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
    min-height: 0;
  }

  #s6 .testimonial p.p-5 {
    flex: 1 1 auto;
    overflow: visible;
    padding: clamp(1rem, 3vw, 1.5rem) 6vw !important;
  }

  .angled-image {
    width: 100%;
    height: clamp(180px, 42vw, 260px);
    float: none;
    margin: 0 0 var(--m-space-md) 0;
    border-bottom-left-radius: 0;
  }

  #s6 .angled-image {
    clip-path: none;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    flex: 0 0 330px;
    height: 330px !important;
    min-height: 330px;
    max-height: 330px;
    width: 100%;
  }

  #keith {background-position: center -35px !important;}
  #gary {background-position: center -50px !important;}

  .carousel-inner {
    margin-top: var(--m-space-xs);
  }

  .carousel-control-prev { left: 0; }
  .carousel-control-next { right: 0; }

  #s6 .carousel-control-prev,
  #s6 .carousel-control-next {
    top: 346px;
    transform: none;
    z-index: 10001;
  }

  #s6 .carousel-indicators [data-bs-target] {
    background-color: var(--color-3);
  }

  #s6 {
    background-color: #ffffff;
  }

  .cta-odd,
  .cta-even {
    height: auto;
    min-height: clamp(68px, 12vw, 76px);
    padding: clamp(18px, 6vw, 28px) 4vw;
    text-align: center;
  }

  .cta-odd {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--m-space-xs);
  }

  .cta-even {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--m-space-xs);
    margin-top: clamp(20px, 6vw, 40px);
  }

  .cta-odd h2 {
    margin: 0 !important;
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1em;
    white-space: normal;
  }

  .cta-even > h2 {
    margin: 0 !important;
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1em;
    white-space: normal;
  }

  #s3 > .cta-even {
    min-height: clamp(68px, 12vw, 76px);
    margin-top: 0;
    padding-top: clamp(8px, 2vw, 12px);
    padding-bottom: clamp(8px, 2vw, 12px);
  }

  #s3 .cta-odd {
     padding: clamp(18px, 6vw, 28px) 4vw;
  }

  .cta-odd .btn-custom {
    flex: 0 0 100%;
    margin: var(--m-space-xs) 0 0 0 !important;
  }

  .cta-even .btn-custom {
    flex: 0 0 100%;
    margin: var(--m-space-xs) 0 0 0 !important;
  }

  #s7 .cta-even {
    height: auto;
  }

  #s7 .cta-last {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: -120px;
    display: flex !important;
    opacity: 1 !important;
    width: 100%;
    height: auto;
    min-height: var(--s7-last-cta-h);
    z-index: 999;
  }

  #s7 .cta-last.is-visible {
    display: flex !important;
    opacity: 1 !important;
  }

  #s7 {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .contact-row {
    height: auto;
    margin-top: var(--m-space-sm);
  }

  .contact-col-left,
  .contact-col-right {
    width: 100%;
    margin-left: 0;
    top: 0;
    height: auto;
  }

  #s7 .contact-col-right {
    padding-top: 0;
    min-height: auto;
    box-sizing: border-box;
  }

  #s7 .contact-col-left > a {
    display: block;
    text-align: center;
  }

  .contact-col-left img {
    max-width: clamp(180px, 70vw, 320px);
    max-height: clamp(60px, 16vw, 120px);
    display: block;
    margin: 0 auto var(--m-space-sm);
  }

  #s7 .contact-col-left form {
    padding: 0 4vw;
  }

  #s7 .contact-col-left > p {
    padding: 0 4vw;
  }

  #s7 .contact-col-left h2 {
    padding: 0 4vw;
    margin-top: clamp(24px, 6vw, 40px) !important;
    margin-bottom: clamp(24px, 6vw, 40px) !important;
    text-align: center;
  }

  .calendly-inline-widget,
  .calendly-inline-widget iframe {
    height: clamp(420px, 70vw, 560px);
  }

  #s7 .calendly-inline-widget,
  #s7 .calendly-inline-widget iframe {
    height: 100svh;
    overflow: hidden !important;
  }

  .site-footer {
    padding-top: clamp(12px, 3.5vw, 22px);
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 2rem;
  }

  .homepage-content h1 {
    font-size: clamp(22px, 6.6vw, 30px);
  }

  .homepage-content p {
    font-size: clamp(14px, 4vw, 16px);
  }

  .homepage-tagline .tagline-line:first-child {
    font-size: clamp(12px, 3.4vw, 14px);
  }

  .homepage-tagline .tagline-line:last-child {
    font-size: clamp(13px, 3vw, 16px);
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 30px;
    height: 30px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 24px;
    height: 24px;
  }
}
