/* Brigitte Gabriel custom theme — shared chrome (header, footer, interior pages). */

:root {
  --bg-teal: #7bccca; /* matches live brigittegabriel.com header/footer/buttons */
  --bg-teal-hover: #86d0cf; /* live Squarespace button hover — lighter than the header teal */
  --bg-teal-dark: #5dc0bf; /* was #5ea9a7; live raised-button accent, slightly darker than the header */
  --bg-teal-deep: #44a2a0; /* was #4a9694; live in-body link color */
  --bg-ink: #1c1c1c;
  --bg-ink-soft: #3a3a3a;
  --bg-muted: #6b6b6b;
  --bg-line: #e5e5e5;
  --bg-white: #ffffff;
  --bg-paper: #fafafa;
  --font-display: "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-size-body: 1.25rem; /* 20px, matches ACT about-page body spans */
  --line-height-body: 1.65;
  --font-size-nav: 1rem; /* 16px, above ACT nav 14px */
  --font-size-button: 1rem; /* 16px readable CTAs */
  --font-size-small: 0.875rem; /* 14px floor for labels / meta */
  --font-size-footer: 1rem;
  --header-height: 5.5rem;
  --site-max: 72rem;
  --content-max: 46rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--bg-ink);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

/* Baseline headings so every page is at least as large as ACT (h1 32px, h2 24px). */
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bg-ink);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bg-ink);
}

h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bg-ink);
}

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

a {
  color: var(--bg-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--bg-teal-dark);
}

:focus-visible {
  outline: 2px solid var(--bg-teal-deep);
  outline-offset: 3px;
}

.visually-hidden.focusable:focus,
.visually-hidden.focusable:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  clip: auto;
  overflow: visible;
  background: var(--bg-white);
  color: var(--bg-ink);
  font-weight: 600;
}

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg-teal);
  color: var(--bg-white);
}

body.toolbar-fixed.toolbar-horizontal .site-header,
body.toolbar-horizontal .site-header {
  top: 39px;
}

body.toolbar-tray-open.toolbar-fixed.toolbar-horizontal .site-header {
  top: 79px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-height);
}

.site-logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.site-logo img {
  display: block;
  height: 3.15rem;
  width: auto;
}

@media (min-width: 48rem) {
  .site-logo img {
    height: 3.5rem;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  background: transparent;
  color: var(--bg-white);
  cursor: pointer;
}

.menu-toggle__bars {
  display: block;
  width: 1.15rem;
  height: 0.85rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars {
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
}

@media (min-width: 56rem) {
  .menu-toggle {
    display: none;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 56rem) {
  .site-nav {
    display: block;
  }
}

@media (max-width: 55.99rem) {
  .site-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-teal);
    padding: 0.25rem 1.5rem 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.85rem;
  }
}

.site-nav__link {
  display: block;
  padding: 0.7rem 0;
  color: var(--bg-white);
  font-family: var(--font-display);
  font-size: var(--font-size-nav);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
  color: var(--bg-white);
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

/* ----- Messages & interior ----- */

.site-messages {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
  min-height: 50vh;
}

.page-inner h1,
.page-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--bg-ink);
}

/* ----- Footer ----- */

.site-footer {
  background: var(--bg-teal);
  color: var(--bg-ink);
  padding: 4.5rem 1.5rem 2.5rem;
  text-align: center;
}

.site-footer__title {
  margin: 0 0 2rem;
  color: var(--bg-ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  margin: 0 auto 2.75rem;
  padding: 0;
  list-style: none;
  max-width: 44rem;
}

.social-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 7.25rem;
  padding: 1.05rem 1.1rem 0.9rem;
  border: 1px solid rgba(28, 28, 28, 0.14);
  background: var(--bg-white);
  color: var(--bg-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.social-list a:hover,
.social-list a:focus-visible {
  color: var(--bg-ink);
  border-color: var(--bg-ink);
  background: var(--bg-white);
  box-shadow: 0 6px 16px rgba(28, 28, 28, 0.14);
  transform: translateY(-2px);
}

.social-list svg {
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  fill: currentColor;
}

.social-list span {
  font-family: var(--font-display);
  font-size: var(--font-size-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__legal {
  margin: 0;
  color: var(--bg-ink);
  font-size: var(--font-size-footer);
  line-height: 1.6;
}

.site-footer__legal a {
  color: inherit;
  text-decoration: none;
}

.site-footer__legal a:hover {
  color: var(--bg-ink);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .social-list a,
  .menu-toggle,
  .site-nav__link {
    transition: none;
  }
}

/* ----- Shared button (also used on interior pages) ----- */

.btn {
  display: inline-block;
  padding: 0.95rem 1.85rem;
  border: 0;
  background: var(--bg-teal);
  color: var(--bg-white);
  font-family: var(--font-display);
  font-size: var(--font-size-button);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.btn:hover,
.btn:focus-visible {
  background: var(--bg-teal-hover);
  color: var(--bg-white);
}

.btn--ghost {
  background: transparent;
  color: var(--bg-ink);
  box-shadow: none;
  border: 1px solid var(--bg-ink);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--bg-ink);
  color: var(--bg-white);
  border-color: var(--bg-ink);
}

/* ----- Footer links ----- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin: 0 auto 1.75rem;
  font-family: var(--font-display);
  font-size: var(--font-size-footer);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--bg-ink-soft);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--bg-ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ----- Site-wide form typography ----- */

form label,
.form-item label,
.site-form label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bg-ink);
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="number"],
form input[type="password"],
form input[type="search"],
form input[type="date"],
form textarea,
form select,
.form-text,
.form-email,
.form-tel,
.form-select,
.form-textarea,
.form-date {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.4;
}

input.button,
.button,
.webform-button--submit,
input[type="submit"] {
  font-family: var(--font-display);
  font-size: var(--font-size-button);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

/* ----- Header nav: centered tabs (HOME | MY STORY | SPEAKING | CONTACT) ----- */

@media (min-width: 56rem) {
  .site-nav {
    flex: 1 1 auto;
  }

  .site-nav__list {
    justify-content: center;
    gap: 1.5rem;
  }
}

@media (min-width: 75rem) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav {
    grid-column: 2;
  }

  .site-nav__list {
    gap: 2.25rem;
  }
}

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

.btn--dark:hover,
.btn--dark:focus-visible {
  background: #000;
  color: var(--bg-white);
}
