/* =============================================
   BEHIND THE FACE AI — Main Stylesheet
   Colors: Royal Purple #443685 | Gold #DCAA32
           Warm Ivory #F5F1E8 | Soft Beige #E8DED1
   Fonts:  Headlines: Playfair Display
           Body: Lato
           UI/Nav/Buttons: Space Grotesk
============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --purple: #443685;
  --gold: #DCAA32;
  --ivory: #F5F1E8;
  --beige: #E8DED1;
  --black: #1A1A1A;
  --white: #FFFFFF;
  --text-muted: #6B6B6B;
  --border: #D4C9B8;
  --purple-dark: #332870;
  --gold-dark: #C49A28;
  --shadow: 0 4px 24px rgba(68, 54, 133, 0.10);
  --shadow-sm: 0 2px 8px rgba(68, 54, 133, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--black);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1.1rem; color: var(--black); }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--ivory { background-color: var(--ivory); }
.section--beige { background-color: var(--beige); }
.section--purple { background-color: var(--purple); color: var(--white); }
.section--purple h1,
.section--purple h2,
.section--purple h3,
.section--purple p { color: var(--white); }

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 1.25rem 0 2rem;
}

.section-divider--center {
  margin: 1.25rem auto 2rem;
}

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

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  line-height: 1.2;
}

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

.btn--primary {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.btn--primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 170, 50, 0.35);
}

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

.btn--outline:hover {
  background-color: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--purple);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
}

.nav__brand-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--purple);
  background: rgba(68, 54, 133, 0.06);
}

.nav__cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  background: var(--gold);
  color: var(--black);
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.nav__cta:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0.25rem;
  }
  .nav__links.open { display: flex; }
  .nav__link { width: 100%; padding: 0.75rem 0.5rem; font-size: 0.95rem; }
  .nav__cta { margin-top: 0.5rem; width: 100%; text-align: center; padding: 0.75rem 1rem; }
}

/* --- Hero Section --- */
.hero {
  background-color: var(--ivory);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero__content { max-width: 560px; }

.hero__h1 {
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.hero__subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__image {
    order: -1;
  }
  .hero__image img {
    height: 280px;
  }
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(68, 54, 133, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--purple);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.card__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- TAM Method Steps --- */
.tam-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.tam-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.tam-step__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.tam-step__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.tam-step__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 780px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.4rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--purple); }

.faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(68, 54, 133, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--purple);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { background: var(--purple); }
.faq-item.open .faq-icon svg { stroke: var(--white); transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 1.4rem;
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.open .faq-answer { display: block; }

/* --- About / Meet Tamisha --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 6rem;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(68, 54, 133, 0.07);
  border: 1px solid rgba(68, 54, 133, 0.15);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.75rem;
}

.credential-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image {
    position: static;
  }
  .about-image img {
    height: 340px;
  }
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

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

.contact-info__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.contact-info__text {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-info__email {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.contact-info__email:hover { color: var(--gold-dark); }

.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--black);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-link:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: rgba(68, 54, 133, 0.04);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* --- Contact Form --- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

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

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 0.97rem;
  color: var(--black);
  background: var(--ivory);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(68, 54, 133, 0.12);
  background: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--gold);
  color: var(--black);
  border: none;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.form-submit:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
}

.form-submit:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--purple);
  padding: 5rem 0;
  text-align: center;
}

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

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Belief Section --- */
.belief-section {
  background: var(--ivory);
  padding: 5rem 0;
}

.belief-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.belief-content h2 {
  color: var(--purple);
  margin-bottom: 0.5rem;
}

.belief-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 1.5rem;
}

.belief-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* --- Mission Section --- */
.mission-section {
  background: var(--purple);
  padding: 5rem 0;
  text-align: center;
}

.mission-section h2 {
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.mission-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--ivory);
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--purple);
  max-width: 700px;
  margin: 0 auto 1rem;
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.65);
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer__social-link:hover { background: var(--gold); }

.footer__social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.footer__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--white); }

.footer__contact-item {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer__contact-item a:hover { color: var(--white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

.footer__legal {
  display: flex;
  gap: 1.25rem;
}

.footer__legal a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer__legal a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Utility --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

/* --- Responsive helpers --- */
@media (max-width: 480px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0; }
  .btn--lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }
  .contact-form { padding: 1.75rem 1.25rem; }
}
