/* ========== 1) Base reset + sensible defaults ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-y: scroll; 
}

:root {
  --space-1: 0.5rem;  /* 8px */
  --space-2: 1rem;    /* 16px */
  --space-3: 1.5rem;  /* 24px */
  --space-4: 2rem;    /* 32px */
  --space-5: 3rem;    /* 48px */
  --space-6: 4rem;    /* 64px */

  --radius: 12px;
  --max-width: 1100px;
  --text-width: 70ch;

    /* Accent (muted blue) */
  --accent: #2F5D8A;
  --accent-weak: rgba(47, 93, 138, 0.12);
}


/* ========== Site-wide visual defaults ========== */
body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* Make pages WITHOUT .container on header/main/footer still align */
header,
main{
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-2);
}

header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.page-head {
  padding-top: var(--space-4);
}

main {
  padding-top: var(--space-3);
  padding-bottom: var(--space-6);
  flex: 1;
}

.site-footer{
  max-width: var(--max-width);
  margin-top: var(--space-6);   /* remove auto centering */
  margin-left: 0;              /* force left */
  padding: 18px var(--space-2) var(--space-4);
  border-top: 1px solid rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.7);
  font-size: 0.9rem;
  opacity: 0.85;
}


/* Text measure */
main p,
main li {
  max-width: var(--text-width);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ========== Typography ========== */
h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }

/* Give headings breathing room (global) */
h1, h2, h3 { margin-bottom: var(--space-2); }

/* paragraphs */
p { margin: 0; }
p + p { margin-top: var(--space-2); }

.pull {
  margin-top: var(--space-2);
  font-weight: 600;
  color: rgba(0,0,0,0.8);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.lead {
  font-size: 1.05rem;
}

/* ========== Navigation ========== */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-bottom: 6px;
}

nav a {
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.95rem;
}

nav a[aria-current="page"] {
  background: var(--accent-weak);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: none;
  background: var(--accent-weak);
}

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  text-decoration: none;
  background: var(--accent-weak);
}

/* ========== Sections (card feel) ========== */
section {
  margin-block: var(--space-4);
  padding: var(--space-3);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: #fff;
}

section:first-of-type { margin-top: 0; }

.thanks-page .page-head {
  text-align: center;
}

.thanks {
  max-width: 720px;
  margin-inline: auto;
}

.thanks ul {
  margin-top: var(--space-2);
}

.thanks p,
.thanks li {
  max-width: none;
}

/* Hero is special (no card) */
.hero {
  margin-block: 0;              /* prevents section spacing stacking */
  padding: 0;                   /* reset section padding */
  display: grid;
  align-items: start;
  gap: var(--space-4);
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "copy image";

  border: none;
  background: transparent;

  max-width: var(--max-width);
  margin-inline: auto;
  padding-block: var(--space-4);
  padding-inline: var(--space-2);
}

.hero-copy { grid-area: copy; }
.hero img   { grid-area: image; }

.hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--radius);
}

.hero-kicker {
  font-weight: 600;
  opacity: 0.75;
  margin: 0 0 var(--space-1);
}

.hero-headline {
  font-weight: 750;
  margin: 0 0 var(--space-2);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;              /* controls spacing between items */
}

.hero-text > * + * { margin-top: 0; }

/* Prevent double bottom-margin inside hero */
.hero-text h2,
.hero-text p { margin-bottom: 0; }

.hero-text .cta {
  margin-top: 0.25rem;
}

.hero-links{
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.75);
}

.hero-links a{
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap; /* stops "View" / "prices" splitting */
}

.hero-links a:hover,
.hero-links a:focus-visible{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-links .sep{
  opacity: 0.5;
}


.hero-trust{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.85rem 0 0.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: rgba(0,0,0,0.75);
}

.hero-trust span{
  display: flex;               /* better than grid here */
  align-items: center;         /* vertical centering */
  justify-content: center;     /* horizontal centering */
  height: 100%;                /* fill the grid cell height */
  text-align: center;

  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 93, 138, 0.10);
  line-height: 1.15;
}

.hero-text .cta {
  margin-top: 0.6rem;
  align-self: flex-start;
}

.hero-links {
  margin-top: 0.15rem;
  line-height: 1.35;
}




/* Testimonials: keep figures as cards, not the whole section */
.testimonials {
  border: none;
  padding: 0;
  background: transparent;
}

.testimonials figure {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 12px;
}

.testimonials blockquote { margin: 0; }
.testimonials figcaption {
  margin-top: 10px;
  font-weight: 600;
}

/* ========== CTA button ========== */
.cta {
  display: inline-block;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-weak);
  text-decoration: none; /* stops underline making it look “linky” */
}

/* ======== Booking Page ======*/

.book-intro {
  margin-bottom: 0;
  margin-top: var(--space-5)
}

/* ========== Forms ========== */
form {
  margin-top: var(--space-2);
  max-width: 900px;
}

label {
  display: block;
  font-weight: 600;
  margin-top: var(--space-2);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.25);
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  margin-top: var(--space-3);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease;
}

button:hover,
button:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-weak);
}

/* ========== Booking form layout (enhancement layer) ========== */

.form-grid {
  display: grid;
  gap: var(--space-3);
}

.field label {
  margin-top: 0; /* override generic label spacing */
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.btn {
  margin-top: 0; /* avoid double spacing */
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.btn:hover,
button.btn:focus-visible {
  background: #244a6d;
}

.form-hint {
  margin-top: 10px;
  color: rgba(0,0,0,0.7);
}

/* Checkbox line: stop it looking weird with the global input styles */
input[type="checkbox"] {
  width: auto;
  padding: 0;
  border-radius: 0;
  border: none;
}

/* ========== Lists ========== */
ul { padding-left: 18px; }
li { margin: 6px 0; }

/* Prices page: make the list look like rows */
.featured {
  border-color: var(--accent);
  background: rgba(47, 93, 138, 0.07); /* softer than 0.12 */
}

.prices ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prices li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);

  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  margin: 10px 0;
  background: #fff;
}

.prices .price {
  font-weight: 700;
  color: var(--accent);
}


/* ========== Contact page (HTML-improved) ========== */

.contact-intro {
    margin-bottom: var(--space-4);
}

.contact-card {
  margin-top: 0;
  padding: var(--space-3);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: #fff;
}

.contact-list {
  margin: 0 0 var(--space-3);
}

.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-2);
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  margin: 10px 0;
}

.contact-row dt {
  font-weight: 600;
}

.contact-row dd {
  margin: 0;
}

.contact-row a {
  font-weight: 600;
  text-decoration: none;
}

.contact-row a:hover,
.contact-row a:focus-visible {
  text-decoration: underline;
}

.note {
  margin-top: var(--space-3);
  color: rgba(0,0,0,0.7);
}

@media (max-width: 520px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}


/* ================================
   Sale landing page overrides
   ================================ */


/* If your header/nav isn't inside a container yet, do this in HTML (recommended):
   <header><div class="container">...nav...</div></header>
*/

.page-sale .hero {
  align-items: center; /* balances hero when left side has less text */
}

.page-sale .hero-copy {
  max-width: 55ch;
}

/* Make the hero image sit nicely */
.page-sale .hero img {
  width: 100%;
  max-width: 520px;     /* tweak */
  justify-self: end;    /* if hero is a grid */
}

/* Tighten spacing after hero a touch */
.page-sale .hero + section {
  margin-top: var(--space-4);
}



/* =========== Desktop only =========== */
@media (min-width: 801px) {
  .hero {
    align-items: center;
    /* DO NOT set max-width here */
  }

  /* Limit the left column, not the whole hero */
  .hero-copy {
    max-width: 52ch;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 2.4vw, 2.25rem);
    line-height: 1.12;
    max-width: 20ch;
  }

  .hero-text p {
    max-width: 52ch;
  }

  .hero img {
    aspect-ratio: 3 / 2;
  }

  .contact-card {
    max-width: 720px;
    margin-inline: auto;
  }

  .page-head--center {
    text-align: center;
  }
}

/* Booking form: responsive grid */
@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ========== Small screens ========== */
  @media (max-width: 800px) {
  header { padding-bottom: var(--space-2); }
  main { padding-top: var(--space-2); }


  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "copy";
  }

  .hero img {
    aspect-ratio: 16 / 9;
    object-position: center 20%;
  }

    .hero-headline {
    font-size: 1.25rem;   /* reduces “shoutiness” */
    line-height: 1.25;
  }

  .hero-kicker {
    font-size: 0.95rem;
  }

  section {
    padding: var(--space-2);
  }

  .book-intro {
  margin-bottom: 0;
  margin-top: var(--space-5)
}
  }

/* Nav wrap adjustment */
@media (max-width: 420px) {
  nav ul {
    display: flex;
    justify-content: center;
    gap: 10px 12px;
  }
}

@media (max-width: 360px) {
  nav a {
    font-size: 0.9rem;
  }

  nav ul {
    gap: 6px 10px;
  }
}

@media (max-width: 520px) {
  /* Reduce card spacing a bit (less scrolling) */
  section {
    margin-block: var(--space-4);
  }

  /* Inputs should feel roomy and avoid iOS zoom quirks */
  input,
  select,
  textarea {
    font-size: 16px;           /* important on iPhone */
    padding: 12px 14px;
  }

  /* Make textarea usable without immediately resizing */
  textarea {
    min-height: 140px;
  }

  /* Full-width submit feels more “mobile-native” */
  button {
    width: 100%;
    padding: 12px 14px;
  }

  /* Checkbox line: better spacing and alignment */
  .check {
    align-items: center;
    gap: 12px;
    margin-top: var(--space-2);
  }

  input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .cta {
    display: block;
    width: 100%;
    text-align: center;
  }

    /* Make trust line stack cleanly on mobile (no weird bullets) */
  .hero-trust{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0.75rem 0 0.9rem;
  }

  .hero-trust span::after{
    content: "";
    margin: 0;
  }

  /* Stack the two secondary links and hide the separator dot */
  .hero-links{
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: 0.85rem;
  }

  .hero-links .sep{
    display: none;
  }

    .hero-text .cta{
    margin-top: 0.85rem;
  }
}