/* ============================================================
   Tozai Coaching and Mentoring – Main Stylesheet
   Fonts: DM Sans (headings), Manrope (body) via Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* === Design Tokens === */
:root {
  --bg:           #ffffff;
  --bg-secondary: #f5f6fa;
  --accent:       #ff4d00;
  --accent-hover: #ff783d;
  --dark:         #000000;
  --text:         #000000;
  --text-muted:   rgba(0, 0, 0, 0.6);
  --text-hero:    rgba(255, 255, 255, 0.8);
  --border:       rgba(0, 0, 0, 0.1);

  --font-head: "DM Sans", sans-serif;
  --font-body: "Manrope", sans-serif;

  --radius-card: 1rem;
  --radius-btn:  0.75rem;

  --section-v: 8rem;
  --container: 1280px;
  --pad-h:     1.5rem;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin-top: 0; margin-bottom: 0.7em; }
p:last-child { margin-bottom: 0; }
blockquote { margin: 0; }
input, select, textarea, button { font-family: inherit; }

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin-top: 0;
}
h1 { font-size: 4.21rem; margin-bottom: 0.3em; }
h2 { font-size: 2.37rem; margin-bottom: 0.35em; }
h3 { font-size: 1.78rem; margin-bottom: 0.7em; }
h4 { font-size: 1.33rem; margin-bottom: 0.5em; line-height: 1.3; }
h5 { font-size: 1rem;    margin-bottom: 0.7em; line-height: 1.3; letter-spacing: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.subheading {
  font-size: 1.13rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 2rem;
}

em { font-style: italic; }

/* === Layout Helpers === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.text-center { text-align: center; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.9em 1.5em;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); }
.btn:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-outline {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.2) inset;
}
.btn-outline:hover { background: var(--accent-hover); color: #fff; box-shadow: none; }

.btn-on-dark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.25) inset;
}
.btn-on-dark:hover { background: var(--accent); box-shadow: none; }

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-group.center { justify-content: center; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-image: linear-gradient(#449ccb, #f2c535);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem var(--pad-h);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo-left { flex: 1; }
.nav-logo-left a { display: inline-flex; }
.nav-logo-left img { height: 40px; width: auto; }

.nav-brand {
  flex: 2;
  text-align: center;
  line-height: 1.3;
}
.nav-brand .brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}
.nav-brand .brand-tagline {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-logo-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.nav-logo-right img { height: 48px; width: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem var(--pad-h);
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 3.6rem;
  line-height: 1.06;
  margin-bottom: 1.25rem;
}

.hero-greeting {
  font-size: 1.13rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  line-height: 1.7;
}

/* ============================================================
   SHARED SECTION SHELL
   ============================================================ */
.section {
  padding: var(--section-v) var(--pad-h);
}

.section.secondary {
  background: var(--bg-secondary);
}

.section-header {
  margin-bottom: 3.5rem;
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team-section {
  padding: var(--section-v) var(--pad-h);
  background: var(--bg-secondary);
}

.team-section > .container > h2 {
  margin-bottom: 3rem;
}

/* Keith Jackson */
.keith-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.keith-photo {
  width: 100%;
  border-radius: var(--radius-card);
}

.keith-name {
  font-size: 1.78rem;
  margin-bottom: 0.2em;
}
.keith-role {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.keith-credentials {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

details.bio-details summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  user-select: none;
  margin-bottom: 0.75rem;
}
details.bio-details summary::before {
  content: "▸";
  font-size: 0.8em;
  transition: transform 0.2s;
}
details.bio-details[open] summary::before {
  transform: rotate(90deg);
}
details.bio-details[open] summary {
  margin-bottom: 1rem;
}
details.bio-details .bio-full {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Associates grid */
.associates-heading {
  font-size: 1.78rem;
  margin-bottom: 2rem;
}

.associates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.member-card {
  background: #fff;
  border-bottom: 0.5px solid #e0e0e0;
  border-radius: 0;
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0.5px 0.5px 16px 2px rgba(0, 0, 0, 0.1);
}

.member-card h4 {
  margin-bottom: 0.15em;
  font-size: 1.1rem;
}
.member-role-line {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.member-creds {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.member-expertise {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.member-flags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.member-flags .flag-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.member-flags img {
  height: 18px;
  width: auto;
  border-radius: 2px;
}

/* ============================================================
   WHAT WE OFFER
   ============================================================ */
.offers-section {
  padding: var(--section-v) var(--pad-h);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2.5rem;
  margin-bottom: 4rem;
}

.offer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.offer-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.offer-icon svg { width: 100%; height: 100%; }

.offer-item h4 { margin-bottom: 0.4rem; }
.offer-item p  { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   HOW WE WORK
   ============================================================ */
.how-section {
  padding: var(--section-v) var(--pad-h);
  background: var(--bg-secondary);
}

.how-intro {
  max-width: 640px;
}

.how-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  overflow: hidden;
}

.card-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card h4 { margin-bottom: 0.75rem; }

/* ============================================================
   HAZEL'S STORY (HOMEPAGE SECTION)
   ============================================================ */
.hazel-section {
  padding: var(--section-v) var(--pad-h);
}

.hazel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.hazel-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  border-left: none;
  padding: 0;
  margin-bottom: 1rem;
}

.attribution {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.hazel-image {
  width: 100%;
  border-radius: var(--radius-card);
  object-fit: cover;
}

/* ============================================================
   FEATURED TESTIMONIAL
   ============================================================ */
.featured-testimonial {
  padding: var(--section-v) var(--pad-h);
}

.featured-testimonial .inner {
  max-width: 820px;
  margin: 0 auto;
}

.featured-testimonial blockquote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ============================================================
   RECENT ACTIVITIES
   ============================================================ */
.activities-section {
  padding: var(--section-v) var(--pad-h);
  background: var(--bg-secondary);
}

.activities-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.activities-header h2 { margin-bottom: 0; }

.tabs { margin-top: 4rem; }

.tab-nav {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8em 1.4em;
  border-radius: var(--radius-btn);
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.tab-btn:hover { background: rgba(0, 0, 0, 0.05); }
.tab-btn.active { background: var(--accent); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.activity-item {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.activity-item:last-child { border-bottom: none; margin-bottom: 0; }
.activity-item a { color: var(--accent); text-decoration: underline; }
.activity-item a:hover { color: var(--accent-hover); }

/* ============================================================
   CONSULTATION FORM
   ============================================================ */
.form-section {
  padding: var(--section-v) var(--pad-h);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.form-header { margin-bottom: 1.5rem; }
.form-header h2 { margin-bottom: 0.5rem; }
.form-header .subheading { font-size: 1rem; }

.form-perks {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}
.perk { display: flex; align-items: center; gap: 0.35rem; }

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, outline 0.2s;
  appearance: auto;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }

.bot-trap { display: none; }

.form-submit-row { margin-top: 1.25rem; }

.form-success {
  display: none;
  background: #f0faf0;
  border: 1px solid #b6e4b6;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.form-success a { color: var(--accent); }

.field input.field-error,
.field select.field-error,
.field textarea.field-error {
  border-color: #e53e3e;
  outline: 2px solid rgba(229, 62, 62, 0.15);
  outline-offset: 0;
}
.field-msg {
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.2rem;
}

/* ============================================================
   CONTACT (visible toggle)
   ============================================================ */
.contact-section {
  padding: var(--section-v) var(--pad-h);
  background: var(--bg-secondary);
  text-align: center;
  display: none; /* hidden on original, enable when ready */
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.contact-item { max-width: 320px; }
.contact-icon {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  margin: 0 auto 1rem;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-link { color: var(--accent); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

/* ============================================================
   TESTIMONIALS (hidden on original)
   ============================================================ */
.testimonials-section { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 4rem var(--pad-h);
  background: var(--bg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}
.footer-logo-link img { height: 32px; width: auto; }
.footer-logo-link span {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 2rem;
  font-weight: 600;
}

/* ============================================================
   HAZEL'S STORY PAGE
   ============================================================ */
.story-page {
  padding: var(--section-v) var(--pad-h);
  padding-top: 4rem;
}

.story-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.story-back:hover { color: var(--accent); }

.story-page h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.story-author {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.story-body {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.85;
}

.story-body p { margin-bottom: 1.4em; }

.story-note {
  max-width: 720px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
}
.story-note a { color: var(--accent); }
.story-note a:hover { color: var(--accent-hover); }

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-page {
  padding: var(--section-v) var(--pad-h);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.thanks-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.thanks-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  margin: 0 auto 2rem;
}
.thanks-icon svg { width: 100%; height: 100%; }

.thanks-page h1 {
  font-size: 2.37rem;
  margin-bottom: 0.75rem;
}

.thanks-lead {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.thanks-survey {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.thanks-survey p { margin-bottom: 1.25rem; }

.thanks-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.thanks-back:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE — TABLET  (≤ 991px)
   ============================================================ */
@media (max-width: 991px) {
  :root { --section-v: 7rem; }

  h1 { font-size: 3.37rem; }
  h2 { font-size: 1.89rem; }
  h3 { font-size: 1.42rem; }

  .nav-brand .brand-tagline { display: none; }

  .keith-grid { grid-template-columns: 1fr; }
  .keith-photo { max-height: 420px; object-fit: cover; object-position: top; }

  .associates-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid     { grid-template-columns: repeat(2, 1fr); }
  .how-cards       { grid-template-columns: 1fr; }
  .hazel-grid      { grid-template-columns: 1fr; }
  .activities-header { grid-template-columns: 1fr; }
  .form-layout     { grid-template-columns: 1fr; }
  .form-image      { display: none; }
  .footer-grid     { grid-template-columns: 1fr; text-align: center; }
  .footer-logo-link { justify-content: center; }
  .footer-nav      { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE LANDSCAPE  (≤ 767px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-v: 6rem; }

  h1 { font-size: 2.69rem; }
  h2 { font-size: 1.52rem; }

  .hero-content h1 { font-size: 2.4rem; }
  .hero { min-height: 80vh; }

  .nav-brand .brand-name { font-size: 0.9rem; }

  .associates-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid     { grid-template-columns: repeat(2, 1fr); }
  .form-row        { flex-direction: column; }
  .form-perks      { flex-direction: column; gap: 0.6rem; }
  .btn-group       { flex-direction: column; }

  .story-page h1 { font-size: 2.2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE PORTRAIT  (≤ 479px)
   ============================================================ */
@media (max-width: 479px) {
  :root { --section-v: 5rem; }

  h1 { font-size: 2.15rem; }
  h2 { font-size: 1.21rem; }

  .hero-content h1 { font-size: 1.9rem; }
  .hero-content    { padding: 3rem 1rem; }

  .nav-brand { display: none; }
  .nav-logo-left img { height: 32px; }
  .nav-logo-right img { height: 36px; }

  .associates-grid { grid-template-columns: 1fr; }
  .offers-grid     { grid-template-columns: 1fr; }
  .footer-nav      { flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

  .story-page h1 { font-size: 1.9rem; }
}
