/* ============================================
   Dr. Tom Rigg Therapy — Style Sheet
   ============================================ */

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

:root {
  --color-bg: #2f2e2b;
  --color-bg-alt: #3a3836;
  --color-text: #ece8e1;
  --color-text-secondary: #a8a196;
  --color-accent: #96ad8a;
  --color-accent-hover: #a8bc9b;
  --color-border: #4a4744;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1080px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Subtle Background Texture --- */
.section--alt,
.section--dark,
.cta-banner,
.nav,
.page-header {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* --- Focus indicators --- */
a:focus-visible,
.btn:focus-visible,
.faq-question:focus-visible,
.nav__toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #242321;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #242321;
}

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

.section {
  padding: 5rem 0;
}

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

.section--dark {
  background-color: #242321;
  color: var(--color-text);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text);
}

.section--dark p {
  color: var(--color-text-secondary);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.nav__logo:hover {
  color: var(--color-text);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }
}

/* Spacer for fixed nav */
.nav-spacer {
  height: var(--nav-height);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #242321;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #242321;
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #242321;
}

.btn--white {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.btn--white:hover {
  background-color: var(--color-white);
  color: #242321;
}

/* --- Hero --- */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.25rem;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero__trust {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

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

/* --- Two-Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .two-col--reverse {
    direction: ltr;
  }
}

/* --- Image treatments --- */
.portrait {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  object-fit: cover;
}

.portrait--placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* --- Cards / Features --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg-alt);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

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

.card p {
  font-size: 0.95rem;
}

/* --- Lists --- */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  color: var(--color-text-secondary);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 3rem 0;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-text);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 0;
  line-height: 1.4;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-body);
}

.faq-item.open .faq-question::after {
  content: '\2212';
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.faq-answer > * {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  padding-top: 1rem;
}

.faq-answer p {
  font-size: 0.95rem;
}

/* --- Contact Info --- */
.contact-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.contact-detail__item {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.contact-detail__item h4 {
  margin-bottom: 0.25rem;
}

.contact-detail__item a {
  font-size: 1.15rem;
  font-weight: 600;
}

.contact-detail__item p {
  font-size: 0.85rem;
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.footer a {
  color: var(--color-text-secondary);
}

.footer a:hover {
  color: var(--color-text);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Card Hover Effects --- */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: var(--color-accent);
}

/* --- Image Treatment --- */
.portrait {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.img-accent .portrait {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 3px solid var(--color-accent);
}

/* --- Section Transitions --- */
.section,
.section--alt,
.section--dark,
.cta-banner {
  position: relative;
}

/* --- Hero Enhancement --- */
.hero {
  background: linear-gradient(180deg, rgba(150, 173, 138, 0.06) 0%, transparent 60%);
}

/* --- Typography Refinement --- */
h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.01em;
}

/* --- Green Accent Elements --- */
.accent-line {
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.accent-line--center {
  margin-left: auto;
  margin-right: auto;
}

.page-header h1 {
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* --- Credential Accent --- */
.credential-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(150, 173, 138, 0.1);
  border: 1px solid rgba(150, 173, 138, 0.25);
  border-radius: 4px;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* --- Green dot separator --- */
.green-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 0.5rem;
}

/* --- Fee row hover --- */
.fee-row {
  transition: background 0.2s ease;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 4px;
}

.fee-row:hover {
  background: rgba(150, 173, 138, 0.06);
}

/* --- FAQ hover accent --- */
.faq-item:hover .faq-question {
  color: var(--color-accent);
}

.faq-question {
  transition: color 0.2s ease;
}

/* --- Contact card hover --- */
.contact-detail__item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-detail__item:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* --- CTA Banner Enhancement --- */
.cta-banner {
  background: linear-gradient(135deg, #242321 0%, #2a2926 50%, rgba(150, 173, 138, 0.08) 100%);
}

/* --- Stats Strip --- */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 3.5rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .stats-strip {
    gap: 1.5rem;
    padding: 2.5rem 1.25rem;
  }

  .stat__number {
    font-size: 1.75rem;
  }

  .stat__label {
    font-size: 0.7rem;
  }
}

/* --- Card Icons --- */
.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--color-text-secondary); }
.small { font-size: 0.85rem; }
.text-lg { font-size: 1.1rem; }
.container--narrow { max-width: 760px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 5rem 0 4rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero__subtitle { font-size: 1.05rem; }

  .section { padding: 3.5rem 0; }

  .container { padding: 0 1.25rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }

}

/* --- Page header --- */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header p {
  max-width: 620px;
  margin: 0.5rem auto 0;
  font-size: 1.1rem;
}

/* --- Approach list --- */
.approach-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.approach-list li {
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-secondary);
}

.approach-list li strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 0.15rem;
}

/* --- Fees table --- */
.fee-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.fee-row:first-child {
  border-top: 1px solid var(--color-border);
}

.fee-label {
  font-weight: 600;
  color: var(--color-text);
}

.fee-price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-text);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: #242321;
}

.cta-banner h2 {
  color: var(--color-text);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
}
