:root {
  --blue: #003380;
  --red: #aa0000;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.no-smooth-scroll {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Roboto";
  color: var(--blue);
  background: var(--white);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f7f7f7;
  border-bottom: 0;
  background-image: linear-gradient(
    to bottom,
    var(--blue) 0 70%,
    var(--red) 70% 100%
  );
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 28px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}

.brand {
  font-size: 1.6rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(170, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-close {
  display: none;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  border-radius: 0;
  width: 56px;
  height: 52px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
  filter: drop-shadow(1px 1px 0 rgba(170, 0, 0, 0.6));
}

.nav-toggle svg path {
  stroke-width: 3;
}

.nav-links a {
  text-decoration: none;
  color: var(--blue);
  font-weight: 500;
  border-bottom: 2px solid var(--white);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px 80px;
  text-align: center;
  min-height: calc(100vh - 90px);
  background: #f7f7f7;
}

.hero,
.about,
.testimonials,
.pricing,
.booking,
.faq {
  background-image: linear-gradient(
    to bottom,
    var(--blue) 0 70%,
    var(--red) 70% 100%
  );
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: rise 0.6s ease both;
}

.stripe-climate-badge {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  margin: 24px auto 0;
}

.stripe-climate-badge a {
  display: inline-flex;
  width: 100%;
}

.stripe-climate-badge iframe {
  width: 100%;
  height: 38px;
}

@media (max-width: 600px) {
  .stripe-climate-badge {
    padding: 0 12px;
    box-sizing: border-box;
  }
}

.hero-logo {
  width: min(220px, 60vw);
  height: auto;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(170, 0, 0, 0.35);
}

.lead {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.hero .lead {
  margin-bottom: 24px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--blue);
  text-decoration: none;
  font-weight: 700;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn.info {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn.wiggle {
  animation: wiggle 3.2s ease-in-out infinite;
  transform-origin: center;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 51, 128, 0.2);
  border-color: var(--red);
}

@keyframes wiggle {
  0%,
  82%,
  100% {
    transform: rotate(0deg);
  }
  86% {
    transform: rotate(-2deg);
  }
  90% {
    transform: rotate(2deg);
  }
  94% {
    transform: rotate(-1deg);
  }
  98% {
    transform: rotate(1deg);
  }
}

.about {
  background: var(--blue);
  color: var(--white);
  padding: 80px 28px;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.about h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.about p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.about p:last-of-type {
  margin-bottom: 0;
}

.about-photos {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.about-photos img {
  width: 240px;
  height: 300px;
  object-fit: cover;
  border: 4px solid var(--white);
  border-radius: 12px;
  background: var(--white);
}


.testimonials {
  padding: 80px 28px;
  background: #f7f7f7;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials h2 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.pricing {
  padding: 80px 28px;
  background: var(--blue);
  color: var(--white);
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.pricing h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.pricing-lead {
  margin: 0 0 16px;
  font-weight: 700;
}

.pricing p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.pricing p:last-of-type {
  margin-bottom: 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testimonial-card p {
  margin: 0;
  line-height: 1.6;
}

.rating {
  font-weight: 700;
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 2px;
}

.author {
  font-weight: 700;
  color: var(--blue);
}

.booking {
  padding: 80px 28px;
  background: #f7f7f7;
}

.faq {
  padding: 80px 28px;
  background: var(--blue);
  color: var(--white);
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
}

.faq h2 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  line-height: 1.6;
}

.booking-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.booking h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  text-align: center;
}

.booking-intro {
  margin: 0 auto 24px;
  max-width: 720px;
  text-align: center;
  line-height: 1.6;
}

.booking-message,
.booking-error {
  text-align: center;
  font-weight: 700;
  margin: 0 0 20px;
}

.booking-actions {
  display: flex;
  justify-content: center;
}

.booking-message {
  color: var(--blue);
}

.booking-error {
  color: var(--red);
}

.booking-key {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.key-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--blue);
}

.slot-btn.slot-key {
  min-width: 62px;
  text-align: center;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: start;
}

.calendar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.calendar-day {
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 12px 12px 8px;
}

.day-label {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--red);
}

.day-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-btn {
  text-decoration: none;
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.slot-btn.selected {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.slot-btn.is-disabled {
  background: #e6e6e6;
  border-color: #bdbdbd;
  color: #6b6b6b;
  pointer-events: none;
}

.slot-btn.is-disabled.slot-detail {
  pointer-events: auto;
  cursor: pointer;
}

.slot-btn.is-pending {
  border-color: var(--red);
  color: var(--red);
}

.slot-btn.is-confirmed {
  border-color: var(--blue);
  color: var(--blue);
}

.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.booking-modal.open {
  display: flex;
}

.booking-modal-content {
  background: var(--white);
  border: 3px solid var(--blue);
  border-radius: 16px;
  padding: 24px;
  width: min(520px, 100%);
}

.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.booking-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.modal-close {
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}

.booking-modal-grid {
  display: grid;
  gap: 10px;
}

.booking-modal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-label {
  font-weight: 700;
  color: var(--red);
}

.modal-value {
  text-align: right;
}

.booking-modal-notes {
  margin-top: 16px;
  border-top: 2px solid var(--blue);
  padding-top: 12px;
}

.booking-modal-notes p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.booking-modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  padding: 96px 28px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f7f7;
  color: var(--blue);
  font-weight: 700;
  background-image: linear-gradient(
    to bottom,
    var(--blue) 0 70%,
    var(--red) 70% 100%
  );
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: left bottom;
}

.site-footer p {
  margin: 0;
  width: 100%;
  text-align: center;
}

.slot-empty {
  font-size: 0.85rem;
}

.booking-empty {
  text-align: center;
  font-weight: 700;
  color: var(--red);
}

.booking-form {
  border: 3px solid var(--red);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 12px;
  scroll-margin-top: 100px;
}

.booking-form label {
  font-weight: 700;
}

.exam-board-field {
  display: none;
  gap: 8px;
}

.exam-board-field.active {
  display: grid;
}

.booking-form input,
.booking-form select {
  width: 100%;
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Roboto";
  font-size: 1rem;
  color: var(--blue);
  background: var(--white);
}


.booking-form textarea {
  width: 100%;
  border: 2px solid var(--blue);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: "Roboto";
  font-size: 1rem;
  color: var(--blue);
  background: var(--white);
  resize: vertical;
}

.selected-slot {
  font-weight: 700;
}

.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
}

.status-card {
  border: 3px solid var(--blue);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 520px;
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.status-card p {
  margin: 0 0 20px;
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--red);
  color: var(--red);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    font-size: 1.8rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--blue);
    color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 28px 40px;
    justify-content: space-evenly;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    text-align: center;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    color: var(--white);
    font-size: 1.6rem;
    border-bottom: none;
    padding-bottom: 0;
  }

  .nav-links a:hover {
    color: var(--red);
    border-color: var(--red);
  }

  .nav-close {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    color: var(--white);
    border-radius: 8px;
    padding: 6px;
    width: 40px;
    height: 36px;
    font-weight: 700;
    cursor: pointer;
  }

  .nav-close svg {
    width: 18px;
    height: 18px;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .back-to-top {
    opacity: 0;
    pointer-events: none;
  }
}
