/* Dan McGann Therapy — single-page site stylesheet
   Deep green / warm gold palette, system fonts only, no external assets. */

:root {
  --green-900: #0c2e24;
  --green-800: #123f31;
  --green-700: #1a5543;
  --gold: #b98a2f;
  --gold-light: #d9b45c;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #243028;
  --ink-soft: #46544b;
  --line: #ddd5c3;
  --max-width: 880px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}

h1, h2 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.25;
}

h1 { font-size: 2.1rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 0.75rem; }

p { margin: 0 0 1rem; }
a { color: var(--green-700); }
a:hover, a:focus { color: var(--gold); }

ul { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

/* Accessibility helpers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 2px;
}

/* Layout */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
main .wrap { padding-top: 2.5rem; padding-bottom: 3rem; }

/* Header */
.site-header {
  background: var(--green-900);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #fff;
}
.brand:hover, .brand:focus { color: #fff; }
.brand img {
  width: 84px;
  height: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
.brand-name {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.65rem;
  line-height: 1.15;
  display: block;
}
.brand-sub {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 0.25rem;
}

/* Intro block with headshot */
.intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.intro-photo { flex: 0 0 250px; }
.intro-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.intro-text { flex: 1 1 auto; }
.credentials {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Contact details */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.contact-list li { margin-bottom: 0.6rem; }
.contact-list .label {
  font-weight: 600;
  color: var(--green-900);
}

/* Crisis note */
.crisis {
  background: #fdf3f0;
  border: 1px solid #e3c4b8;
  border-left: 5px solid #a33f21;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 2.2rem 0 0;
}
.crisis h2 { margin-top: 0; }
.crisis p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--green-900);
  color: #dfe8df;
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 1.6rem; padding-bottom: 1.6rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--gold-light); }

/* Site navigation */
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: var(--gold-light); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }

/* "More about Dan" callout on the home page */
.callout {
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  padding: 0.9rem 1.15rem;
}
.callout a { font-weight: 600; }

/* Handout download links */
.handout-link { font-weight: 600; }

/* Section sub-headings (resources page) */
h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-800);
  margin: 1.6rem 0 0.5rem;
}

/* Tabs (about page) */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border-bottom: 2px solid var(--line);
  margin: 1.8rem 0 0;
}
.tab {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-800);
  background: var(--cream);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
}
.tab:hover, .tab:focus-visible { color: var(--gold); }
.tab[aria-selected="true"] {
  background: var(--green-900);
  color: #fff;
  border-color: var(--green-900);
}
.js .tabpanel[hidden] { display: none; }
.tabpanel { padding-top: 0.4rem; }
.tabpanel h2:first-child { margin-top: 1.4rem; }

/* Motto quote (philosophy tab) */
.motto {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--green-900);
  border-left: 5px solid var(--gold);
  margin: 1.8rem 0 0.5rem;
  padding: 0.4rem 0 0.4rem 1.1rem;
}

/* Triangle diagram */
.triangle-wrap {
  max-width: 540px;
  margin: 1.5rem auto 0.5rem;
}
.triangle-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(12, 46, 36, 0.18);
}
.triangle-motto {
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.12rem;
  color: var(--green-900);
  margin-top: 1.4rem;
}
.corner-lists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.corner h3 { margin-top: 0.6rem; }

/* Hero (home page) */
.hero {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.hero-inner {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.6rem;
  padding-bottom: 2.6rem;
}
.hero-text { flex: 1 1 auto; }
.hero-logo {
  width: 92px;
  height: auto;
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; font-size: 2.5rem; margin: 0 0 0.35rem; }
.hero-cred {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin: 0 0 1rem;
}
.hero-line { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1.5rem; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: 6px;
  border: 2px solid var(--gold-light);
}
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-light); color: var(--green-900); }
.btn-outline { color: #fff; background: transparent; }
.btn-outline:hover, .btn-outline:focus { color: var(--gold-light); }
.hero-photo { flex: 0 0 270px; }
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 3px solid var(--gold-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Lead paragraph */
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--ink); }

/* Section headings with sub-line */
.section-title { margin-bottom: 0.3rem; }
.section-sub { color: var(--ink-soft); margin: 0 0 1.2rem; }

/* Three-corner cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 0 2.4rem;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 0.6rem;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--gold-light);
  margin-bottom: 0.7rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0 0 0.5rem; }

/* Featured triangle poster */
.feature {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: var(--green-900);
  border-radius: 10px;
  padding: 1.8rem;
  margin: 0 0 2.4rem;
}
.feature-img { flex: 0 0 240px; }
.feature-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  border: 2px solid var(--gold-light);
}
.feature-text h2 { color: #fff; margin-top: 0; }
.feature-text p { color: #dfe8df; }
.feature-text a { color: var(--gold-light); font-weight: 600; }

/* Contact info panel */
.info-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.6rem 0.8rem;
  margin-top: 2.4rem;
}
.info-panel h2 { margin-top: 0; }

/* Responsive */
@media (max-width: 720px) {
  .intro { flex-direction: column; }
  .intro-photo { flex: none; max-width: 230px; }
  .brand-name { font-size: 1.4rem; }
  .brand img { width: 64px; }
  h1 { font-size: 1.75rem; }
  .site-nav { margin-left: 0; gap: 1.1rem; }
  .corner-lists { grid-template-columns: 1fr; gap: 0.5rem; }
  .tab { font-size: 0.98rem; padding: 0.55rem 0.8rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  .hero-photo { flex: none; max-width: 230px; }
  .cards { grid-template-columns: 1fr; }
  .feature { flex-direction: column; align-items: flex-start; }
  .feature-img { flex: none; max-width: 220px; }
}
