/* ============================================
   PLA Demo Site — Pacific Lawyers Association
   Mamanu Systems Design
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #6B3A1F;
  --color-bg: #F5F0E8;
  --color-bg-card: #CCC1B7;
  --color-text: #1C0F0A;
  --color-text-muted: #8A7060;
  --color-accent: #8B4513;
  --color-cta: #2C5F7A;
  --color-cta-hover: #1E4560;
  --color-white: #FFFFFF;
  --color-footer: #2C1810;

  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  --max-width: 1100px;
  --nav-height: 70px;
  --radius: 8px;
  --shadow: 0 2px 16px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 32px rgba(44, 24, 16, 0.12);
  --transition: 0.2s ease;
}

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

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 3.25rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
}

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

.section {
  padding: 5rem 0;
}

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

.text-muted {
  color: var(--color-text-muted);
}

/* --- Navigation --- */
.nav {
  background: var(--color-white);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-primary);
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-brand span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav .btn-primary {
  color: var(--color-white);
}

.nav .btn-primary:hover {
  color: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-cta);
  color: var(--color-white);
  border-color: var(--color-cta);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: var(--color-white);
}

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

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

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

.btn-full {
  width: 100%;
}

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

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 380px;
}

.hero-image img {
  width: 380px;
  height: auto;
}

/* --- Value Propositions --- */
.values {
  background-color: var(--color-bg-card);
  padding: 5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

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

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* --- Member Spotlight --- */
.spotlight {
  padding: 5rem 0;
}

.spotlight h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

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

.member-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--color-bg-card);
  box-shadow: var(--shadow);
}

.member-card h4 {
  margin-bottom: 0.25rem;
}

.member-card .member-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.member-card .member-quote {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- CTA Banner --- */
.cta-banner {
  background-color: #63402D;
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

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

/* --- Form Styles (join.html) --- */
.page-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.form-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  max-width: 560px;
  margin: 0 auto 4rem;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--color-bg-card);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 58, 31, 0.1);
}

.form-group input.error {
  border-color: #c0392b;
}

.form-group .error-message {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.25rem;
  display: none;
}

.form-group .error-message.visible {
  display: block;
}

.tier-display {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tier-display h4 {
  margin-bottom: 0.25rem;
}

.tier-display .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.tier-display .price-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.form-summary {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.form-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.form-summary .summary-row:last-child {
  border-top: 1px solid var(--color-bg-card);
  padding-top: 0.75rem;
  margin-top: 0.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.secure-text {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.secure-text svg {
  width: 14px;
  height: 14px;
  fill: var(--color-text-muted);
}

/* --- Stripe Elements Container --- */
#card-element {
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--color-bg-card);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color var(--transition);
}

#card-element.StripeElement--focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(107, 58, 31, 0.1);
}

#card-element.StripeElement--invalid {
  border-color: #c0392b;
}

#card-errors {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

/* --- Confirmation Page --- */
.confirmation {
  text-align: center;
  padding: 5rem 0;
  max-width: 650px;
  margin: 0 auto;
}

.checkmark-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--color-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.checkmark-circle svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.confirmation p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.confirmation .honu-img {
  width: 200px;
  margin: 2rem auto;
  opacity: 0.85;
}

.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.next-step {
  padding: 1.5rem 1rem;
}

.next-step .step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.next-step h4 {
  margin-bottom: 0.4rem;
}

.next-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- Privacy Page --- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

/* --- Animations (index.html only) --- */

/* Hero fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content {
  animation: fadeIn 0.6s ease both;
}

.hero-image {
  animation: fadeIn 0.8s ease 0.15s both;
}

/* Member card fade up (triggered by JS) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.member-card {
  opacity: 0;
}

.member-card.animate-in {
  animation: fadeUp 0.5s ease both;
}

/* Nav Join Now button — single pulse on load */
@keyframes navPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

.nav .btn-primary {
  animation: navPulse 0.4s ease 1s 2;
}
