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

:root {
  --color-cream: #f4eee9;
  --color-cream-dark: #ead8b9;
  --color-purple: #3b3160;
  --color-purple-hero: #3e3462;
  --color-purple-dark: #2f2750;
  --color-gold: #dcc7a6;
  --color-gold-title: #e8d2ac;
  --color-divider: #ead8b9;
  --color-icon: #aaa2b2;
  --color-text: #3b3160;
  --color-text-about: #efe9e5;
  --color-text-light: #ffffff;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Helvetica Neue", "Arial", sans-serif;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

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

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

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

/* ===== Navbar ===== */
.navbar {
  background: var(--color-cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-links a {
  color: var(--color-purple);
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-purple);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-purple);
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-height: 100vh;
  overflow: hidden;
}

.hero-image img,
.hero-image picture {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8% 2rem 2rem;
}

.hero-overlay h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-purple-hero);
  text-align: center;
  max-width: 700px;
  font-weight: 400;
}

/* ===== Solutions Section ===== */
.solutions {
  background: var(--color-cream);
  padding: 5rem 2rem;
}

.solutions-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "intro accordion"
    "cta   accordion";
  column-gap: 4rem;
  row-gap: 2rem;
  align-items: start;
}

.solutions-intro { grid-area: intro; }
.solutions-cta { grid-area: cta; align-self: start; }
.solutions-right { grid-area: accordion; }

.solutions-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-purple);
  margin-bottom: 1.5rem;
}

.solutions-intro p {
  color: var(--color-purple);
  margin-bottom: 0;
  max-width: 450px;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--color-divider);
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-purple);
  text-align: left;
  transition: color 0.2s;
}

.accordion-header:hover {
  color: var(--color-gold);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-icon);
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding: 0 0 1.25rem;
  color: var(--color-purple);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-sans);
  min-width: 240px;
}

.btn-primary {
  background: var(--color-purple);
  color: var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-purple-dark);
}

.btn-secondary {
  background: var(--color-gold-title);
  color: var(--color-purple);
}

.btn-secondary:hover {
  background: #dcc28f;
}

/* ===== About Section ===== */
.about {
  background: var(--color-purple);
  color: #fff;
  padding: 5rem 2rem;
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "title image"
    "content image";
  column-gap: 4rem;
  row-gap: 1.5rem;
  align-items: center;
}

.about-title { grid-area: title; align-self: end; }
.about-content { grid-area: content; align-self: start; }
.about-image { grid-area: image; }

.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-gold-title);
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--color-text-about);
}

.about-content strong {
  font-weight: 700;
}

.about-content .btn {
  margin-top: 1.5rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 100% center;
  border-radius: 50%;
}

/* ===== Contact Page ===== */
.contact-page {
  background: var(--color-purple);
  padding: 6rem 2rem;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-gold-title);
  margin-bottom: 1.5rem;
}

.contact-lead {
  color: var(--color-text-about);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0;
  color: var(--color-text-about);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(232, 210, 172, 0.15);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-list a {
  color: var(--color-text-about);
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--color-gold-title);
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-gold-title);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contact Form */
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 210, 172, 0.25);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-field label {
  display: block;
  color: var(--color-gold-title);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-field label span {
  color: var(--color-gold-title);
  opacity: 0.7;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-purple);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-gold-title);
  box-shadow: 0 0 0 3px rgba(232, 210, 172, 0.25);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #e08a8a;
  box-shadow: 0 0 0 3px rgba(224, 138, 138, 0.2);
}

.contact-submit {
  margin-top: 0.5rem;
  min-width: 180px;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-gold-title);
  min-height: 1.25em;
}

/* ===== About Page ===== */
.purpose-hero {
  background: var(--color-purple);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 60vh;
}

.purpose-hero-content {
  padding: 5rem 3rem 5rem 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
}

.purpose-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-gold-title);
  margin-bottom: 1.5rem;
}

.purpose-hero-content p {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.purpose-hero-image {
  width: 100%;
  height: 100%;
}

.purpose-hero-image img {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  object-fit: cover;
  object-position: 70% center;
}

.home-hero .purpose-hero-image img {
  object-position: center top;
}

.our-people {
  background: var(--color-cream);
  padding: 5rem 2rem;
}

.our-people-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.our-people-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-purple);
  margin-bottom: 3rem;
}

.person {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.person-text h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.person-creds {
  font-size: 0.85rem;
  color: var(--color-purple);
  margin-bottom: 1.5rem;
}

.person-text p {
  color: var(--color-purple);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.person-image img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
}

/* Our values */
.our-values {
  background: var(--color-purple);
  padding: 6rem 2rem;
}

.our-values-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.our-values-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-gold-title);
  text-align: center;
  margin-bottom: 4rem;
}

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

.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 210, 172, 0.25);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.value-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-gold-title);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold-title);
  margin-bottom: 1rem;
}

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

/* ===== Solutions Page ===== */
.solutions-page {
  position: relative;
  background: var(--color-purple);
  padding: 5rem 2rem 8rem;
  color: var(--color-text-about);
  overflow: hidden;
}

.solutions-page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.solutions-page-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-gold-title);
  margin-bottom: 4rem;
  text-align: center;
}

.solutions-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: stretch;
}

.sol-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(232, 210, 172, 0.25);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.sol-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.sol-card-image {
  margin-bottom: 1.5rem;
}

.sol-card-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.sol-card-title {
  font-size: 1.5rem;
  color: var(--color-gold-title);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: 1.5rem;
}

.sol-card-body {
  text-align: center;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.sol-card-body p {
  color: var(--color-text-about);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.sol-card-body strong {
  font-weight: 700;
}

.sol-card-btn {
  margin-top: auto;
  width: 100%;
}

.solutions-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: block;
}

/* ===== Accreditations ===== */
.accreditations {
  background: #fff;
  padding: 4rem 2rem;
}

.accreditations-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: center;
}

.accreditations-grid img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  justify-self: start;
}

.accreditations-grid img:nth-child(2) {
  justify-self: center;
}

.accreditations-grid img:nth-child(3) {
  justify-self: end;
}

/* ===== Footer ===== */
.footer {
  background: #ffffff;
  padding: 2rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-email {
  color: var(--color-purple);
  font-size: 0.95rem;
}

.footer-email:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-purple);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .solutions-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "accordion"
      "cta";
    gap: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "image"
      "content";
    gap: 2rem;
  }

  .solutions-cards {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .purpose-hero {
    grid-template-columns: 1fr;
  }

  .purpose-hero-content {
    padding: 3rem 1.5rem;
    max-width: 100%;
  }

  .purpose-hero-image img {
    min-height: 320px;
    max-height: 400px;
  }

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

  .person-image {
    order: -1;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-submit {
    width: 100%;
  }

  .accreditations-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .accreditations-grid img,
  .accreditations-grid img:nth-child(2),
  .accreditations-grid img:nth-child(3) {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-logo img {
    height: 36px;
  }

  .nav-container {
    padding: 0.75rem 1.25rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-cream);
    flex-direction: column;
    gap: 0;
    padding: 1rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: -1;
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    width: 100%;
  }

  .hero-image {
    max-height: none;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

  .hero-overlay {
    align-items: center;
    padding: 2rem 2rem;
  }

  .hero-overlay h1 {
    font-size: 1rem;
    line-height: 1.4;
    max-width: 80%;
  }

  .solutions,
  .about {
    padding: 3rem 1.5rem;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}
