/* M.Y. Counselling — Responsive Stylesheet 2026
   Clean rebuild: mobile-first, no jQuery, no fixed widths */

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

:root {
  --sage:    #6b8f71;   /* calming sage green  */
  --sage-dk: #4a6651;
  --cream:   #f7f4ef;
  --warm:    #e8e0d4;
  --text:    #2e2e2e;
  --mid:     #5a5a5a;
  --light:   #888;
  --white:   #ffffff;
  --radius:  6px;
  --max:     1020px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-dk); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--sage); }

h1, h2, h3, h4 {
  font-family: Georgia, serif;
  font-weight: normal;
  color: var(--text);
  line-height: 1.3;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--sage-dk); }

p { margin-bottom: 0.9rem; }
ul { list-style: none; }
em { font-style: italic; color: var(--mid); }
strong { font-weight: bold; }

/* ── Layout shell ──────────────────────────────── */
.site-wrapper { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }

/* ── Header & Nav ──────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--sage);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 60px;
}

.site-title {
  font-family: Georgia, serif;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--sage-dk);
  letter-spacing: 0.04em;
  font-style: italic;
  padding: 0.6rem 0;
}

/* hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--sage);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--sage-dk);
  line-height: 1;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: Tahoma, Geneva, sans-serif;
  color: var(--mid);
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.current {
  background: var(--sage);
  color: var(--white);
  text-decoration: none;
}

/* ── Hero (home page) ──────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--sage-dk) 0%, var(--sage) 100%);
  color: var(--white);
  text-align: center;
  padding: 3.5rem 1rem 3rem;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Sub-page header band ──────────────────────── */
.page-hero {
  background: var(--sage);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0; }

/* ── Slideshow (CSS-only auto-rotate) ─────────── */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  aspect-ratio: 16/9;
  background: #000;
}
.slideshow input[type=radio] { display: none; }

.slideshow .slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.8s ease;
}
.slideshow .slide {
  width: 20%;
  height: 100%;
  flex-shrink: 0;
}
.slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CSS-only slide logic — 5 slides */
#s1:checked ~ .slides { transform: translateX(0%); }
#s2:checked ~ .slides { transform: translateX(-20%); }
#s3:checked ~ .slides { transform: translateX(-40%); }
#s4:checked ~ .slides { transform: translateX(-60%); }
#s5:checked ~ .slides { transform: translateX(-80%); }

.slideshow .dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slideshow .dots label {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.2s;
}
#s1:checked ~ .dots label[for=s1],
#s2:checked ~ .dots label[for=s2],
#s3:checked ~ .dots label[for=s3],
#s4:checked ~ .dots label[for=s4],
#s5:checked ~ .dots label[for=s5] {
  background: var(--white);
}

/* ── Main content area ─────────────────────────── */
.main-area {
  max-width: var(--max);
  margin: 2.5rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

/* content left, sidebar right on desktop */
.main-content { order: 1; }
.main-sidebar { order: 2; }

/* ── Sidebar ───────────────────────────────────── */
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--sage);
}
.sidebar-box h4 {
  border-bottom: 1px dotted var(--warm);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.sidebar-box ul {
  list-style: none;
}
.sidebar-box ul li {
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--mid);
}
.sidebar-box ul li::before {
  content: '•';
  color: var(--sage);
  position: absolute;
  left: 0;
}
.contact-detail {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.8;
}
.contact-detail strong { color: var(--text); }
.contact-detail a { color: var(--sage-dk); }

/* ── Services grid ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 3px solid var(--sage);
}
.service-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* ── Welcome section ───────────────────────────── */
.welcome-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dotted var(--warm);
}
.welcome-section img {
  border-radius: var(--radius);
  flex-shrink: 0;
  width: 180px;
}

/* ── BACP logo ─────────────────────────────────── */
.accreditation {
  text-align: center;
  padding: 1.5rem 0;
}
.accreditation img {
  margin: 0 auto;
  max-width: 240px;
}

/* ── About page ────────────────────────────────── */
.about-text { max-width: 700px; }
.about-text p { margin-bottom: 1rem; }
.about-intro {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.about-intro img {
  border-radius: var(--radius);
  flex-shrink: 0;
  width: 160px;
}

/* ── Contact page ──────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.contact-grid img {
  border-radius: var(--radius);
  width: 100%;
}
.contact-info h4 { margin-bottom: 0.4rem; }
.address-block {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--mid);
}
.address-block strong { color: var(--text); }
.address-block a { color: var(--sage-dk); }

/* Map thumbnail */
.map-thumb {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: inline-block;
}
.map-thumb img { width: 200px; }

/* Fees table */
.fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
.fees-table th {
  background: var(--sage);
  color: var(--white);
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: normal;
}
.fees-table td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--warm);
  color: var(--mid);
}
.fees-table tr:last-child td { border-bottom: none; }
.fees-table tr:nth-child(even) td { background: #f0ece6; }

/* ── Gallery page ──────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: opacity 0.2s;
}
.gallery-grid a:hover img { opacity: 0.85; }

/* ── Video page ────────────────────────────────── */
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--sage);
  max-width: 680px;
}

/* ── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: var(--light);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: 3rem;
}
.site-footer a { color: var(--warm); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 700px) {

  /* Show hamburger, hide nav */
  .nav-toggle { display: block; }
  .site-nav {
    width: 100%;
    display: none;
    order: 3;
    padding-bottom: 0.75rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav a { padding: 0.6rem 1rem; }

  /* Stack layout */
  .main-area {
    grid-template-columns: 1fr;
  }
  .main-sidebar { order: 1; }
  .main-content { order: 2; }

  /* Welcome & about */
  .welcome-section,
  .about-intro {
    flex-direction: column;
  }
  .welcome-section img,
  .about-intro img {
    width: 100%;
    max-width: 280px;
  }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 1rem 1.75rem; }
  .slideshow { aspect-ratio: 4/3; }
}

/* ── Print / Reduced motion ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .slideshow .slides { transition: none; }
}
