/* ========================================
   Akili Advisory Group — Stylesheet
   ======================================== */

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

:root {
  --teal: #0A2E28;
  --teal-light: #0F3F37;
  --gold: #D4870F;
  --gold-light: #E5A842;
  --white: #FFFFFF;
  --off-white: #F7F7F5;
  --gray: #6B7280;
  --gray-light: #E5E7EB;
  --text: #1A1A1A;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Utility --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

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

.section-heading {
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 20px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: 0.08em;
}

.nav-logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

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

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  max-height: 75vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--teal);
  color: var(--white);
  padding: 64px 0 56px;
  margin-top: 64px;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.btn-solid {
  background: var(--gold);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.about-text p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 20px 18px;
  border-left: 3px solid var(--gold);
  background: var(--off-white);
}

.about-card h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 2px;
}

.about-card p {
  font-size: 0.8125rem;
  color: var(--gray);
  line-height: 1.5;
}

/* --- Services --- */
.services {
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  padding: 24px 20px;
  border-top: 3px solid var(--gold);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--teal);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
}

.why-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}

.why-card h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* --- Partners --- */
.partners {
  background: var(--off-white);
}

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

.partner-card {
  background: var(--white);
  padding: 28px 24px;
  border-left: 3px solid var(--gold);
}

.partner-card h3 {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 8px;
}

.partner-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.65;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-text p {
  font-size: 0.9375rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-email {
  font-size: 0.9375rem;
  color: var(--teal);
  font-weight: 600;
}

.contact-email a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  transition: opacity 0.2s;
}

.contact-email a:hover {
  opacity: 0.7;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

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

.form-message {
  padding: 14px;
  margin-top: 12px;
  font-size: 0.875rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #EBF5EB;
  color: #1A5E1A;
  border: 1px solid #A3D9A3;
}

.form-message.error {
  display: block;
  background: #FDECEC;
  color: #8B1A1A;
  border: 1px solid #F5A3A3;
}

.form-message a {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
  text-align: center;
}

.footer-logo {
  margin-bottom: 12px;
}

.footer-logo .nav-logo-name {
  color: var(--white);
  font-size: 1.125rem;
}

.footer-logo .nav-logo-sub {
  color: var(--gold);
}

.footer-values {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copy {
  font-size: 0.75rem;
}

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

  .about-grid,
  .contact-grid,
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--gray-light);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-top: 1px solid var(--gray-light);
  }

  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .nav-hamburger {
    display: block;
  }

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

  .about-grid,
  .contact-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

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