/* =============================================
   Bonta Advisory — Styles
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

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

ul, ol {
  list-style: none;
}

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

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

/* --- Custom Properties --- */
:root {
  --color-navy: #1B2A4A;
  --color-coral: #E8636E;
  --color-coral-dark: #D45560;
  --color-white: #FFFFFF;
  --color-gray-900: #2D2D2D;
  --color-gray-600: #6B7280;
  --color-gray-300: #D1D5DB;
  --color-gray-50: #F9FAFB;

  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;

  --nav-height: 72px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-gray-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-navy);
  line-height: 1.2;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  scroll-margin-top: 80px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =============================================
   NAV
   ============================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  transition: border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  border-bottom-color: var(--color-gray-300);
}

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

.nav-brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-600);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-coral);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-navy);
}

.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

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

.nav-overlay a {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-navy);
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- Hero Treatment: Oversized Quote Marks --- */
.hero--quotes::before,
.hero--quotes::after {
  position: absolute;
  font-family: var(--font-heading);
  font-size: clamp(12rem, 30vw, 28rem);
  color: var(--color-coral);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.hero--quotes::before {
  content: '\201C';
  top: 8%;
  left: 5%;
}

.hero--quotes::after {
  content: '\201D';
  bottom: 2%;
  right: 5%;
}

/* --- Hero Treatment: Soft Gradient Wash --- */
.hero--gradient {
  background: radial-gradient(ellipse at 60% 40%, rgba(232, 99, 110, 0.11) 0%, transparent 70%),
              radial-gradient(ellipse at 30% 70%, rgba(27, 42, 74, 0.05) 0%, transparent 60%);
}

/* --- Hero Treatment: Navy Block --- */
.hero--navy {
  background: var(--color-navy);
}

.hero--navy h1 {
  color: var(--color-white);
}

.hero--navy .hero-supporting p {
  color: rgba(255, 255, 255, 0.6);
}

.hero--navy .scroll-indicator {
  background: var(--color-coral);
}

.hero--navy ~ .site-nav:not(.scrolled) {
  background: rgba(27, 42, 74, 0.85);
}

/* Override nav colors when hero is navy and not scrolled past */
body.hero-is-navy .site-nav:not(.scrolled) {
  background: rgba(27, 42, 74, 0.85);
}

body.hero-is-navy .site-nav:not(.scrolled) .nav-brand,
body.hero-is-navy .site-nav:not(.scrolled) .nav-toggle span {
  color: var(--color-white);
}

body.hero-is-navy .site-nav:not(.scrolled) .nav-toggle span {
  background: var(--color-white);
}

body.hero-is-navy .site-nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.7);
}

body.hero-is-navy .site-nav:not(.scrolled) .nav-links a:hover,
body.hero-is-navy .site-nav:not(.scrolled) .nav-links a.active {
  color: var(--color-white);
}

/* Ensure hero content stays above pseudo-elements */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 720px;
  padding: 48px 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 32px;
}

@media (min-width: 450px) {
  .hero-content {
    padding: 48px 16px;
    max-width: 880px;
  }
}

.hero-supporting p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-gray-600);
  line-height: 1.8;
}

.scroll-indicator {
  display: inline-block;
  margin-top: 48px;
  width: 2px;
  height: 40px;
  background: var(--color-coral);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
    opacity: 0.5;
  }
}

/* =============================================
   ABOUT / PHILOSOPHY
   ============================================= */
.about {
  background: var(--color-gray-50);
  padding: 96px 0;
}

.about-mission {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--color-navy);
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.4;
}

.about-divider {
  width: 48px;
  height: 3px;
  background: var(--color-coral);
  margin: 0 auto 40px;
}

.about-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-900);
}

/* =============================================
   FOUNDER
   ============================================= */
.founder {
  padding: 96px 0;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.founder-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 16px;
}

.founder-bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-900);
}

.founder-headshot {
  max-width: 400px;
  border-radius: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--color-gray-50);
  padding: 96px 0;
}

.services-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 56px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  border-top: 3px solid var(--color-coral);
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

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

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 96px 0;
}

.contact-heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 48px;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--color-white);
  color: var(--color-gray-900);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray-600);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.1);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background: var(--color-coral-dark);
}

@media (max-width: 767px) {
  .btn-submit {
    width: 100%;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: center;
  padding: 32px 24px;
}

.site-footer p {
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* =============================================
   THANK-YOU PAGE
   ============================================= */
.thanks-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thanks-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 24px;
}

.thanks-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.thanks-content p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  margin-bottom: 32px;
}

.thanks-content a {
  font-weight: 500;
  color: var(--color-coral);
  transition: color 0.2s ease;
}

.thanks-content a:hover {
  color: var(--color-coral-dark);
}
