/* ============================================================
   STYLES.CSS — The Leader's Practice
   To rebrand: edit the color values inside :root below.
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES — edit colors here
   ============================================================ */
:root {
  --color-bg:             #FBF8F2;   /* page background cream */
  --color-bg-accent:      #F4EFE5;   /* alternate section cream */
  --color-teal:           #0F6E56;   /* primary: buttons, eyebrows */
  --color-teal-dark:      #0F4F40;   /* headings, wordmark, testimonial bg */
  --color-teal-tint:      #E1F0EA;   /* icon badge backgrounds */
  --color-text:           #2a2a2a;   /* body text */
  --color-text-secondary: #5a5a5a;   /* secondary paragraphs */
  --color-text-muted:     #8a7e5e;   /* credentials, labels, footer copy */
  --color-border:         #e8e3d8;   /* card borders, warm gray */
  --color-btn-text:       #fff;      /* button text */

  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --space: 1.5rem;   /* base spacing unit; multiply for section padding */
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.67;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-teal-dark);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }

h2 { font-size: 1.375rem; }

h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  background-color: var(--color-teal);
  color: var(--color-btn-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.6875rem 1.375rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 200ms ease;
}

.btn:hover         { background-color: var(--color-teal-dark); }
.btn:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }

/* ============================================================
   5. SECTION SHELL
   ============================================================ */
section {
  padding: calc(var(--space) * 4) var(--space);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.site-header.scrolled {
  background-color: var(--color-bg);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.125rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: color 200ms ease;
}

.nav-menu a:hover          { color: var(--color-teal); }
.nav-menu a:focus-visible  { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 2px; }

/* Hamburger button — hidden on desktop, shown in Task 12 (responsive) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-teal-dark);
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger { position: relative; }

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after  { top:  6px; }

.nav-open .hamburger          { background-color: transparent; }
.nav-open .hamburger::before  { transform: translateY(6px) rotate(45deg); }
.nav-open .hamburger::after   { transform: translateY(-6px) rotate(-45deg); }

.nav-toggle:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 2px; }
.wordmark:focus-visible    { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--space) * 5);
  padding-bottom: calc(var(--space) * 5);
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 { margin-bottom: var(--space); }

.hero-subhead {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin-bottom: calc(var(--space) * 1.5);
  line-height: 1.65;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach-section {
  background-color: var(--color-bg-accent);
  text-align: center;
}

.approach-section h2  { margin-bottom: var(--space); }

.approach-body {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-text-secondary);
}

/* ============================================================
   WHO I WORK WITH
   ============================================================ */
.who-section {
  background-color: #fff;
  text-align: center;
}

.who-section h2 { margin-bottom: calc(var(--space) * 2); }

/* ============================================================
   CARD GRID (shared by "Who" and "Ways" sections)
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;   /* stacks on mobile; 3-col at 768px+ in Task 12 */
  gap: 1.25rem;
  text-align: left;
}

.card {
  background-color: #fff;
  border: 0.5px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 200ms ease;
}

.card:hover { border-color: var(--color-teal); }

.card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Circular serif-initial badge */
.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  margin-bottom: 1rem;
}

/* ============================================================
   WAYS TO WORK TOGETHER
   ============================================================ */
.ways-section {
  background-color: var(--color-bg-accent);
  text-align: center;
}

.ways-section h2 { margin-bottom: calc(var(--space) * 2); }

/* Serif card title (used in Ways cards only) */
.card-title-serif {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-teal-dark);
  margin-bottom: 0.25rem;
}

/* Small uppercase label below card title */
.card-label-muted {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

/* ============================================================
   ABOUT ANNE
   ============================================================ */
.about-section { background-color: var(--color-bg); }

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;   /* stacks on mobile; row at 768px+ in Task 12 */
  align-items: center;
  gap: calc(var(--space) * 2);
}

.about-photo { flex-shrink: 0; }

.avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

/* Shown automatically via onerror when anne-photo.jpg doesn't exist yet */
.avatar-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: var(--color-teal-tint);
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-teal-dark);
}

.about-text h2    { margin-bottom: 0.5rem; }

.credentials {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space);
}

.about-text > p:not(.eyebrow):not(.credentials) {
  color: var(--color-text-secondary);
  margin-bottom: var(--space);
}

.text-link {
  font-size: 0.9375rem;
  color: var(--color-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 200ms ease;
}

.text-link:hover { color: var(--color-teal-dark); }

/* ============================================================
   TESTIMONIAL
   ============================================================ */
.testimonial-section {
  background-color: var(--color-teal-dark);
  text-align: center;
}

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

.testimonial-inner blockquote p {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-bg);
  line-height: 1.6;
  margin-bottom: var(--space);
}

.testimonial-inner figcaption {
  font-size: 0.875rem;
  color: var(--color-bg-accent);
  opacity: 0.8;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  text-align: center;
  background-color: var(--color-bg);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.cta-subhead {
  color: var(--color-text-secondary);
  max-width: 400px;
  margin: 0 auto calc(var(--space) * 1.5);
}

.cta-email {
  margin-top: calc(var(--space) * 0.75);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.cta-email a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-email a:hover { color: var(--color-teal); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg-accent);
  border-top: 1px solid var(--color-border);
  padding: calc(var(--space) * 1.5) var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.footer-linkedin {
  color: var(--color-text-muted);
  transition: color 200ms ease;
}

.footer-linkedin:hover         { color: var(--color-teal); }
.footer-linkedin:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; border-radius: 2px; }

/* ============================================================
   RESPONSIVE — mobile only (max 767px)
   ============================================================ */
@media (max-width: 767px) {

  /* Show hamburger */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Allow the nav to wrap so the menu appears on a second row */
  .nav { flex-wrap: wrap; }

  /* Nav menu: hidden by default, flows below the wordmark+hamburger row */
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  .nav-menu li { width: 100%; }

  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }

  .nav-menu li:last-child a { border-bottom: none; }

  /* Show the menu when nav-open class is present on the header */
  .nav-open .nav-menu { display: flex; }

  section { padding: calc(var(--space) * 3) var(--space); }
}

/* ============================================================
   RESPONSIVE — tablet and up (768px+)
   ============================================================ */
@media (min-width: 768px) {

  /* Three-column card grids */
  .card-grid { grid-template-columns: repeat(3, 1fr); }

  /* About Anne: photo left, text right */
  .about-inner {
    flex-direction: row;
    align-items: flex-start;
  }

  .avatar,
  .avatar-placeholder {
    width: 240px;
    height: 240px;
  }
}

/* ============================================================
   RESPONSIVE — desktop (1440px+)
   ============================================================ */
@media (min-width: 1440px) {

  .nav {
    padding-left: calc(var(--space) * 2);
    padding-right: calc(var(--space) * 2);
  }

  section {
    padding-top: calc(var(--space) * 5);
    padding-bottom: calc(var(--space) * 5);
    padding-left: calc(var(--space) * 2);
    padding-right: calc(var(--space) * 2);
  }
}

/* ============================================================
   ACCESSIBILITY — prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
