/* ═══════════════════════════════════════════════════
   JCM Consulting — styles.css
   Warm, sophisticated design for nonprofit consulting
   ═══════════════════════════════════════════════════ */

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

:root {
  --navy:      #1a2744;
  --navy-deep: #0f1a2e;
  --navy-light:#2a3d5c;
  --gold:      #c9a84c;
  --gold-light:#e4cc7a;
  --gold-soft: #f5ecd4;
  --cream:     #faf8f4;
  --cream-dark:#f0ece4;
  --warm-gray: #6b6560;
  --text:      #2c2826;
  --text-light:#5a5550;
  --white:     #ffffff;
  --shadow-sm: 0 1px 3px rgba(26,39,68,0.06);
  --shadow-md: 0 4px 20px rgba(26,39,68,0.08);
  --shadow-lg: 0 12px 40px rgba(26,39,68,0.12);
  --radius:    12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── TYPOGRAPHY ── */

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); }

h1 em, h2 em {
  font-style: italic;
  color: var(--gold);
}

/* ── BUTTONS ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition);
}

nav.scrolled {
  background: rgba(250, 248, 244, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 80px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: var(--navy-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── HERO ── */

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 148px 2rem 80px;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(26,39,68,0.05) 0%, transparent 50%),
    var(--cream);
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50px;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-top: 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--warm-gray);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  animation: gentle-bounce 2.5s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── SECTIONS ── */

section {
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-header h2 {
  margin-top: 0.25rem;
}

/* ── SERVICES ── */

#services {
  background: var(--white);
}

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

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold-light);
}

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

.service-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.75;
}

.service-detail {
  margin-top: 0.75rem;
}

/* ── APPROACH ── */

#approach {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

#approach::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

#approach .section-tag { color: var(--gold-light); }
#approach .section-header h2 { color: var(--cream); }

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.approach-step {
  text-align: center;
  padding: 1.5rem;
}

.approach-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.approach-step h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.approach-step p {
  color: rgba(250, 248, 244, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── PULL QUOTE ── */

#quote {
  padding: 5rem 0;
  background: var(--cream);
}

.pull-quote {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.pull-quote::before {
  content: '\201C';
  font-family: 'DM Serif Display', serif;
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.pull-quote p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  line-height: 1.5;
  font-style: italic;
}

/* ── ABOUT ── */

#about {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  object-position: center 20%;
}

.about-text .section-tag { margin-bottom: 0.75rem; }

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

.about-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-personal {
  font-style: italic;
  color: var(--warm-gray) !important;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.value {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--cream);
  border-left: 3px solid var(--gold);
  transition: all var(--transition);
}

.value:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.value h4 {
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
}

.value p {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── CONTACT ── */

#contact {
  background: var(--cream);
  padding-bottom: 5rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-tag { margin-bottom: 0.5rem; }

.contact-info h2 {
  margin-bottom: 1.25rem;
}

.contact-info > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--gold); }
.contact-link svg { color: var(--gold); flex-shrink: 0; }

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

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

.contact-form .btn {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  padding: 1rem 2rem;
}

/* ── FOOTER ── */

footer {
  background: var(--navy-deep);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 72px;
  width: auto;
  filter: brightness(0) invert(0.95);
}

.footer-copy {
  color: rgba(250, 248, 244, 0.4);
  font-size: 0.8rem;
}

/* ── SCROLL REVEAL ANIMATIONS ── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.services-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.services-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

.approach-grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.approach-grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.approach-grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo img {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: block;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  section { padding: 4.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .approach-step { text-align: left; }
  .approach-num { font-size: 1.8rem; margin-bottom: 0.5rem; }

  .service-card { padding: 2rem; }

  .contact-form { padding: 1.5rem; }

  .hero-tag { font-size: 0.65rem; padding: 0.35rem 0.8rem; }

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

  .about-photo img { width: 250px; height: 250px; }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* ── SELECTION ── */
::selection {
  background: rgba(201,168,76,0.2);
  color: var(--navy);
}
