/* The Learning Lodge - shared styles
   Palette: warm cream, dark olive ink, sage green, soft brown */

/* Self-hosted fonts (SIL Open Font License) - latin subset, variable weight */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f6f1e4;
  --cream-alt: #efe8d6;
  --ink: #43422e;
  --ink-soft: #5c5b45;
  --green: #7d8c65;
  --green-dark: #5f6b4a;
  --brown: #ab8560;
  --white: #fffdf8;
  --border: #ded4b8;
  --shadow: 0 4px 18px rgba(67, 66, 46, 0.08);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Quicksand", "Nunito", sans-serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--green-dark);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img.logo {
  height: 52px;
  width: auto;
  border-radius: 50%;
}

.brand-text {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
}

.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.main-nav.open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.4rem 5.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 1.15rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
}

@media (max-width: 1059px) {
  .main-nav .nav-cta {
    color: var(--ink-soft);
  }

  .main-nav .nav-cta:hover {
    color: var(--green-dark);
  }
}

@media (min-width: 1060px) {
  .main-nav .nav-cta {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    text-align: center;
  }

  .main-nav .nav-cta:hover {
    background: var(--green-dark);
    color: var(--white);
  }
}

@media (min-width: 1060px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: block;
    position: static;
    background: none;
    border-bottom: none;
    box-shadow: none;
    width: auto;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 1.6rem;
    flex-wrap: nowrap;
  }

  .main-nav a {
    font-size: 1.05rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  padding: 1.5rem 0 0;
  text-align: center;
}

.hero .brand-mark {
  width: 270px;
  height: 270px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero .brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .strapline {
  font-family: "Quicksand", sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.2rem 0;
}


.section-alt {
  background: var(--cream-alt);
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.copy-block {
  max-width: 760px;
  margin: 0 auto;
}

.placeholder-copy {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: var(--white);
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Traits list ---------- */

.traits-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 0.9rem;
}

.traits-list li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trait-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1rem 1.3rem;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.trait-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.trait-toggle-label::before {
  content: "\1F343";
  flex-shrink: 0;
}

.trait-toggle:hover {
  color: var(--green-dark);
}

.trait-toggle:hover .trait-chevron {
  border-color: var(--green-dark);
}

.trait-chevron {
  position: relative;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.trait-chevron::before,
.trait-chevron::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--green-dark);
  border-radius: 2px;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.trait-chevron::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.trait-chevron::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.trait-toggle[aria-expanded="true"] .trait-chevron {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(90deg);
}

.trait-toggle[aria-expanded="true"] .trait-chevron::before,
.trait-toggle[aria-expanded="true"] .trait-chevron::after {
  background: var(--white);
}

.trait-toggle[aria-expanded="true"] .trait-chevron::after {
  opacity: 0;
}

.trait-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.trait-panel.open {
  grid-template-rows: 1fr;
}

.trait-panel-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 1.3rem;
  color: var(--ink-soft);
  font-weight: 400;
  transition: padding-bottom 0.3s ease;
}

.trait-panel.open .trait-panel-inner {
  padding-bottom: 1.3rem;
}

.trait-panel-inner p {
  margin: 0 0 0.9em;
}

.trait-panel-inner p:last-child {
  margin-bottom: 0;
}

.trait-panel-inner .trait-tagline {
  font-family: "Quicksand", sans-serif;
  font-style: italic;
  font-weight: 600;
  color: var(--green-dark);
}

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---------- Location page ---------- */

.location-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.location-details h2 {
  margin-bottom: 0.8rem;
}

.location-address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.location-map {
  border: 0;
  width: 100%;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--cream-alt);
}

@media (min-width: 700px) {
  .location-layout {
    grid-template-columns: 2fr 3fr;
    align-items: stretch;
  }
}

.legal-content h2 {
  margin: 1.8rem 0 0.7rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 1.4rem 0 0.5rem;
}

.legal-content ul {
  margin: 0 0 1.1em;
  padding-left: 1.3rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

.legal-content ul:last-child,
.legal-content ul:last-child li:last-child {
  margin-bottom: 0;
}

.placeholder-value {
  background: var(--cream-alt);
  border-radius: 4px;
  padding: 0.05rem 0.4rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Photo placeholders ---------- */

.photo-placeholder {
  background: var(--cream-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--ink-soft);
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

/* ---------- Photo single ---------- */

.photo-single {
  max-width: 420px;
  margin: 0 auto;
}

.photo-single img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Photo gallery ---------- */

.photo-gallery {
  display: grid;
  gap: 1.25rem;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 700px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-gallery img {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Is it right layout ---------- */

.is-it-right-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.is-it-right-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.is-it-right-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.is-it-right-content .traits-list {
  max-width: none;
  margin: 0;
}

.is-it-right-intro {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
}

.is-it-right-actions {
  justify-content: center;
}

@media (min-width: 700px) {
  .is-it-right-layout {
    grid-template-columns: 62fr 38fr;
    align-items: stretch;
  }

  .is-it-right-intro {
    order: 0;
    grid-column: 1 / -1;
  }

  .is-it-right-photo-wrap {
    order: 2;
    align-self: start;
  }

  .is-it-right-content {
    order: 1;
  }

  .is-it-right-actions {
    order: 3;
    grid-column: 1 / -1;
  }
}

/* ---------- Founders intro ---------- */

.section-header .lede {
  font-family: "Quicksand", sans-serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0;
}

.founders-intro {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.quals-list {
  list-style: none;
  margin: 0 0 1.1em;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.quals-list li {
  background: var(--cream-alt);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  color: var(--ink);
}

.quals-list strong {
  color: var(--green-dark);
}

/* ---------- Team profiles ---------- */

.profile {
  display: grid;
  gap: 1.8rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.profile + .profile {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.profile-photo {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.profile-name {
  margin-bottom: 0.8rem;
}

.profile-copy p {
  margin: 0 0 1rem;
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .profile {
    grid-template-columns: 260px 1fr;
    gap: 2.4rem;
  }

  .profile-reverse {
    grid-template-columns: 1fr 260px;
  }

  .profile-reverse .profile-photo {
    order: 2;
  }

  .profile-reverse .profile-copy {
    order: 1;
  }
}

/* ---------- Pricing table ---------- */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table caption {
  caption-side: top;
  text-align: left;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.8rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th {
  background: var(--green);
  color: var(--white);
  font-family: "Quicksand", sans-serif;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.table-scroll {
  overflow-x: auto;
}

/* ---------- Forms ---------- */

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-family: "Quicksand", sans-serif;
  margin-bottom: 0.4rem;
}

.form-group .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--cream);
  color: var(--ink);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.form-status {
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.success {
  color: var(--green-dark);
}

.form-status.error {
  color: #a94442;
}

.contact-details {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Policies list ---------- */

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band .btn {
  margin: 0.375rem 0.25rem;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--green-dark);
}

.cta-band .btn-primary:hover {
  background: var(--cream);
}

.cta-band .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.cta-band .btn-outline:hover {
  background: var(--white);
  color: var(--green-dark);
}

.cta-band p a {
  color: var(--white);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.6rem 0 1.6rem;
  margin-top: 3.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-inner h4 {
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-address {
  font-style: normal;
  color: var(--cream-alt);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.footer-phone {
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.footer-phone a {
  color: var(--cream-alt);
}

.footer-nav ul,
.footer-policies ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-nav a,
.footer-policies a,
.footer-policies .link-button {
  color: var(--cream-alt);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover,
.footer-policies a:hover,
.footer-policies .link-button:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-nav a.active,
.footer-policies a.active {
  color: var(--white);
  font-weight: 700;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 228, 0.15);
  margin-top: 2rem;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--cream-alt);
  text-align: center;
}

.image-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.5rem;
}

/* ---------- Error pages (404 / 500) ---------- */

.error-page {
  text-align: center;
  max-width: 640px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.error-code {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--green);
}

/* ---------- Booking (Bookwhen embed) ---------- */

.booking-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-embed iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  height: 900px;
  border: 0;
}

.booking-fallback {
  margin-top: 1rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .booking-embed iframe {
    height: 1100px;
  }
}

.booking-launch {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.2rem 1.4rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(67, 66, 46, 0.22);
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: var(--green-dark);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 0.6rem 1.4rem;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
