/* ==========================================================================
   AgentRoster.ai v2.0: Shared Stylesheet — Brand Book v1.0
   Color Palette: First-Day Terracotta / Steady Teal / Name-Tag Gold
   Typography: Fraunces SemiBold 600 (headlines) + Inter (body)
   ========================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────────────────── */
:root {
  /* Palette — Brand Book v1.0 */
  --color-primary:       #C75B39;    /* "First-Day Terracotta" — badges, accents, CTAs */
  --color-primary-hover: #A84A2F;    /* terra/600 — buttons, text accents */
  --color-secondary:     #1E5F5B;    /* "Steady Teal" — chrome, data, trust, Real Estate pack */
  --color-accent:        #E3A458;    /* "Name-Tag Gold" — celebration, highlights, The Reporter */
  --color-bg:            #FAF5EC;    /* "Résumé Paper" — default page background */
  --color-text:          #221C15;    /* "Signing Ink" — body text, dark surfaces, footers */

  /* Derived tokens (needed by page-specific styles) */
  --color-primary-light:  #E8A590;    /* lighter terra for mockup fills */
  --color-primary-mid:    rgba(200,91,57,0.25);  /* transparent terra border */
  --color-text-secondary: #5A5147;   /* secondary body text */
  --color-text-inverse:   #FAF5EC;    /* light-on-dark text */
  --color-success:        #2E7D5B;    /* positive green */
  --color-accent-light:   #FDF5E6;    /* light gold tint */
  --color-accent-hover:   #C8862F;    /* darker gold for hover states */

  /* Tints */
  --color-terra-700:     #8F3E28;    /* links, small text */
  --color-terra-600:     #A84A2F;    /* buttons, text accents */
  --color-terra-100:     #F4DDD4;    /* tinted fills */
  --color-terra-50:      #FAEEE8;    /* section tints */
  --color-teal-700:      #14433F;    /* dark teal surfaces */
  --color-teal-100:      #D9E8E6;    /* info fills */
  --color-gold-100:      #F7E6CE;    /* highlight fills */
  --color-ink-60:        #5A5147;    /* secondary text */

  /* Status Colors */
  --color-approved:      #2E7D5B;
  --color-waiting:       #8A5A10;
  --color-needs-you:     #B3362B;
  --color-fyi-blue:      #2F6DAE;

  /* Surfaces */
  --color-surface:       #FFFFFF;
  --color-bg-alt:        #F3F0EA;
  --color-border:        #E0DBD2;

  /* Typography */
  --font-heading: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Sizing & Spacing */
  --max-width:     1200px;
  --max-width-sm:   900px;
  --radius-sm:       6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-full:  9999px;
  --shadow-sm:     0 1px 3px rgba(34,28,21,0.06);
  --shadow-md:     0 4px 12px rgba(34,28,21,0.08);
  --shadow-lg:     0 8px 30px rgba(34,28,21,0.10);
  --shadow-xl:     0 16px 48px rgba(34,28,21,0.12);
  --transition:    0.2s ease;

  /* Layout */
  --header-height: 72px;
  --annbar-height: 40px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ───────────────────────────────────────────────────────── */
/* RULE: Fraunces never below 20px, never in all caps.
   RULE: Inter for everything below headlines.
   RULE: Never letter-space Fraunces.
   RULE: Always letter-space uppercase Inter labels (+0.14em to +0.18em).
   RULE: One display headline per screen. */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0;           /* Never letter-space Fraunces */
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

/* Enforce: Fraunces never below 20px — clamp headers at 20px minimum */
@media (max-width: 360px) {
  h1, h2, h3, h4 { font-size: max(1.25rem, var(--clamp)); }
}

p + p { margin-top: 1em; }

/* ── Utility Classes ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-sm {
  max-width: var(--max-width-sm);
}

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

.section-padding {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Uppercase Inter labels — always letter-spaced */
.uppercase-label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-terra-600);
  box-shadow: 0 4px 16px rgba(199,91,57,0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.btn-outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: #FFFFFF;
  background-color: rgba(255,255,255,0.1);
}

.btn-small {
  font-size: 0.8125rem;
  padding: 0.625rem 1.25rem;
}

/* ── Focus Styles ─────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   1. ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  position: relative;
  z-index: 1001;
  background-color: var(--color-text);
  color: var(--color-bg);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  min-height: var(--annbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-bar a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announcement-bar a:hover {
  color: #F7E6CE;
}

.annbar-dismiss {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(250,245,236,0.6);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.annbar-dismiss:hover {
  color: var(--color-bg);
}

/* ==========================================================================
   2. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Logo: Image ─────────────────────────────────────────────── */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-logo-img {
  height: 32px;
  width: auto;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.header-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-ink-60);
  transition: color var(--transition);
  position: relative;
}
.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a.active {
  color: var(--color-text);
}
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 1px;
}

.header-cta {
  flex-shrink: 0;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition);
}
.hamburger:hover {
  background-color: var(--color-bg-alt);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: all 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: calc(var(--header-height) + var(--annbar-height, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FFFFFF;
  z-index: 999;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:last-of-type {
  border-bottom: none;
}
.mobile-nav .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* Body lock when mobile nav open */
body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   3. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-text);
  color: rgba(250,245,236,0.7);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-col h4 {
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Column 1: Brand */
.footer-brand .footer-logo {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-bg);
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(250,245,236,0.55);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-email {
  font-size: 0.9375rem;
  color: rgba(250,245,236,0.7);
  transition: color var(--transition);
}
.footer-email:hover {
  color: var(--color-bg);
}

/* Column 2 & 3: Link lists */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(250,245,236,0.6);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-bg);
}

/* Bottom bar */
.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(250,245,236,0.1);
  font-size: 0.8125rem;
  color: rgba(250,245,236,0.35);
  text-align: center;
}

/* ==========================================================================
   4. AGENT CARD COMPONENT — with Pack Band Badge System
   ========================================================================== */
.agent-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 1.75rem 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

/* Pack Band Badge at top of each card */
.agent-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background-color: var(--color-primary); /* default: Business Essentials = terracotta */
}

/* Real Estate pack = teal band */
.agent-card.pack-realestate::before {
  background-color: var(--color-secondary);
}

/* The Reporter = gold band */
.agent-card.pack-reporter::before {
  background-color: var(--color-accent);
}

/* Agent card badge image */
.agent-badge-img {
  width: 80px;
  height: auto;
  display: block;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
}

.reporter-badge-img {
  width: 72px;
  height: auto;
  display: block;
}

/* Agent card text */
.agent-card .agent-role {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 1.375rem);
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.agent-card .agent-summary {
  font-size: 0.9375rem;
  color: var(--color-ink-60);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.agent-card .agent-duties {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.agent-card .agent-duties li {
  font-size: 0.875rem;
  color: var(--color-ink-60);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.45;
}

.agent-card .agent-duties li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* Agent card grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ==========================================================================
   5. CLOSING CTA BAND
   ========================================================================== */
.cta-band {
  background-color: var(--color-text);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-band-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-band h2 {
  color: var(--color-bg);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-band .cta-subline {
  color: rgba(250,245,236,0.75);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   6. FAQ ACCORDION
   ========================================================================== */
.faq-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0;
}

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

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

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

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

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-ink-60);
  transition: all var(--transition);
  border-radius: 1px;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon {
  border-color: var(--color-primary);
}
.faq-item.active .faq-icon::before {
  background-color: var(--color-primary);
}
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  background-color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-ink-60);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ==========================================================================
   7. TESTIMONIAL CAROUSEL
   ========================================================================== */
.testimonial-section {
  text-align: center;
  padding: 5rem 0;
}

.testimonial-section .section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.testimonial-section h2 {
  margin-bottom: 0.5rem;
}

.testimonial-section .section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-ink-60);
  margin-bottom: 3rem;
}

.testimonial-carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.4s ease;
  gap: 0;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial-card .testimonial-stars {
  color: var(--color-accent);
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 1.0625rem;
  color: var(--color-ink-60);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card .testimonial-placeholder-block {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.testimonial-card .placeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.4;
}

.testimonial-card .placeholder-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-ink-60);
  margin-bottom: 0.25rem;
}

.testimonial-card .placeholder-sub {
  font-size: 0.8125rem;
  color: var(--color-ink-60);
  opacity: 0.6;
}

/* Carousel dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  padding: 0;
}

.carousel-dot:hover {
  transform: scale(1.2);
}

.carousel-dot.active {
  background-color: var(--color-primary);
}

/* Carousel arrows */
.carousel-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}
.carousel-arrow:hover {
  background-color: var(--color-bg-alt);
  box-shadow: var(--shadow-md);
}
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }

/* ==========================================================================
   8. SECTION LABELS (reusable)
   ========================================================================== */
.section-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-label-light {
  color: rgba(250,245,236,0.65);
}

.section-headline {
  margin-bottom: 0.75rem;
}

.section-subheadline {
  font-size: 1.125rem;
  color: var(--color-ink-60);
  max-width: 650px;
  line-height: 1.65;
}

.section-subheadline-center {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-nav,
  .header-cta {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col h4 {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 480px) {
  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .cta-band {
    padding: 3rem 1.25rem;
  }

  .cta-band h2 {
    font-size: 1.5rem;
  }

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

  .agent-card {
    padding: 0 1.25rem 1.5rem;
  }

  .agent-badge-img {
    width: 64px;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ==========================================================================
   10. IMAGERY DIRECTION (CSS comments only)
   ========================================================================== */
/*
   PHOTOGRAPHY: Real business texture, warm natural light, owners mid-work.
   ILLUSTRATION: Flat warm shapes, napkin-sketch diagrams.
   NEVER: Glowing brains, humanoid robots, server rooms, isometric tech cities.
   NEVER: Robot, chip, brain, or sparkle-AI clichés in iconography.
*/
