/* --- Global Settings --- */
:root {
  --primary-color: #1a3a5c;
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-light: #333333;
  --font-serif: Cambria, Georgia, serif;
  --font-sans: Cambria, 'Inter', -apple-system, sans-serif;
}

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

html {
  font-size: 12px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* --- Page Container --- */
.page-container {
  max-width: 1040px;
  margin: 40px auto;
  padding: 60px 80px;
  background-color: #f5f2ed;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* --- Header --- */
.header {
  text-align: center;
  margin-bottom: 40px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-icon {
  width: auto;
  height: 120px;
}

.logo-text {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary-color);
}

/* --- Title Section --- */
.title-section {
  text-align: center;
  margin-bottom: 30px;
}

.title-section h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
}

/* --- Hero Image --- */
.hero-image {
  margin-bottom: 30px;
  /* Pull image to edges of the container (80px padding) */
  margin-left: -80px;
  margin-right: -80px;
}

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

/* --- Intro Section --- */
.intro-section {
  text-align: center;
  margin-bottom: 40px;
}

.intro-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.intro-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 12px;
}

.intro-section .highlight-text {
  margin-top: 20px;
  font-style: italic;
  color: #333333;
}

/* --- Pillars Section --- */
.pillars-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 30px 0;
}

.pillar {
  flex: 1;
  text-align: center;
  padding: 0 15px;
}

.pillar-divider {
  width: 1px;
  background-color: #e0ddd8;
  align-self: stretch;
  min-height: 150px;
}

.pillar-icon {
  margin-bottom: 15px;
}

.pillar-icon svg {
  width: 36px;
  height: 36px;
}

.pillar-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pillar h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* --- Boundaries Section --- */
.boundaries-section {
  text-align: center;
  margin-bottom: 0;
  padding: 30px 0;
  border-top: 1px solid #e0ddd8;
}

.boundaries-section h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.boundaries-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Quote Section --- */
.quote-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
  border-top: 1px solid #e0ddd8;
}

.quote-section p {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-color);
  line-height: 1.3;
}

.quote-section .italic {
  font-style: italic;
}

.quote-section strong {
  font-weight: 400;
}

/* --- Next Navigation --- */
.next-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
}

.nav-line {
  flex: 1;
  height: 2px;
  background-color: #dbe0e8;
}

.next-link {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #8fa0b5;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
  margin-right: 15px;
}

.next-link:hover {
  color: var(--primary-color);
}

.next-link::before {
  content: "→";
  font-family: system-ui, sans-serif;
  font-weight: 300;
  margin-right: 10px;
  margin-left: -5px;
}

/* --- Subtitle Large --- */
.subtitle-large {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-color);
  line-height: 1.6;
}

/* --- Statement Section --- */
.statement-section {
  text-align: center;
  margin-bottom: 30px;
}

.statement-section p {
  font-size: 1rem;
  color: var(--text-color);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #264a6e;
  transform: translateY(-1px);
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-color);
}

.intro-text .text-muted {
  color: #333333;
}

/* --- Quadrants Section --- */
.quadrants-section {
  margin-bottom: 30px;
  padding: 20px 0;
}

.quadrant-row {
  display: flex;
}

.quadrant {
  flex: 1;
  padding: 30px;
}

.quadrant-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}

.quadrant-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

.quadrant p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-left: 47px;
}

.quadrant-divider-v {
  width: 1px;
  background-color: #e0ddd8;
}

.quadrant-divider-h {
  height: 1px;
  background-color: #e0ddd8;
}

.check-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border: 2px solid #e6e1d6;
  border-radius: 50%;
  color: #c9a25d;
  margin-top: -2px;
}

.check-icon-wrapper svg {
  width: 14px;
  height: 14px;
}

/* --- Warning Section --- */
.warning-section {
  margin-bottom: 30px;
  border-top: 1px solid #e0ddd8;
  border-bottom: 1px solid #e0ddd8;
  padding: 30px 80px;
}

.warning-box {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 0;
  background-color: transparent;
  border-left: none;
}

.warning-icon-wrapper {
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -5px;
}

.warning-icon-wrapper svg {
  width: 100%;
  height: 100%;
  color: #c9a25d;
  stroke-width: 1.2;
}

.warning-content {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.warning-content strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-right: 15px;
}

.warning-content span {
  color: var(--text-color);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Responsibility Section --- */
.responsibility-section {
  text-align: center;
  margin-bottom: 30px;
}

.responsibility-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  display: inline-block;
  text-align: left;
}

.check-list li {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check-list li .check-icon {
  width: 16px;
  height: 16px;
  color: #94785A;
  flex-shrink: 0;
}

.check-green {
  color: #5a8a6a;
}

/* --- Growth Section --- */
.growth-section {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 30px;
}

.growth-section h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.growth-section h3::before,
.growth-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e0ddd8;
  max-width: 150px;
}

.growth-section p {
  font-size: 1rem;
  color: var(--text-color);
}

/* --- Four Columns Section --- */
.four-columns-section {
  display: flex;
  margin-bottom: 40px;
  padding: 25px 0;
  border-top: 1px solid #e0ddd8;
  border-bottom: 1px solid #e0ddd8;
}

.four-columns-section.shaded {
  background-color: #f0ede8;
  padding: 25px 15px;
  border: none;
}

.four-columns-section .column {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.four-columns-section .column h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.four-columns-section .column p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-color);
}

.column-divider {
  width: 1px;
  background-color: #e0ddd8;
  align-self: stretch;
}

/* --- Service Cards Grid --- */
.service-cards-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 40px;
}

.service-card {
  flex: 1;
  background-color: transparent;
  border: 1px solid #dcd8d0;
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 25px;
  line-height: 1.2;
}

.service-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* --- Team Section --- */
.team-section {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.team-member {
  flex: 1;
}

.team-member-img {
  margin-bottom: 20px;
  cursor: pointer;
  /* Signal clickable */
  transition: opacity 0.3s ease;
}

.team-member-img:hover {
  opacity: 0.8;
}

.team-member-img img {
  width: 100%;
  height: 400px;
  /* Fixed height for consistency */
  object-fit: contain;
  display: block;
}

.team-member h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.team-member .role {
  font-size: 0.9rem;
  color: #333333;
  margin-bottom: 15px;
}

.team-member p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 10px;
}

/* --- Network Section --- */
.network-section {
  text-align: center;
  margin-bottom: 30px;
}

.network-section h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.network-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* --- Contact Page --- */
.contact-page {
  background-color: #faf9f7;
}

.logo-tagline {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: #333333;
  margin-top: -8px;
}

.page-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
  border-top: 1px solid #e0ddd8;
  border-bottom: 1px solid #e0ddd8;
  margin-bottom: 40px;
}

.page-nav a {
  font-size: 0.9rem;
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-nav a:hover,
.page-nav a.active {
  color: var(--primary-color);
}

.contact-section {
  margin-bottom: 40px;
}

.contact-section h2,
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-section p,
.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 8px;
}

.email-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.legal-section {
  margin-bottom: 40px;
  padding-top: 30px;
  border-top: 1px solid #e0ddd8;
}

/* --- Footer --- */
.site-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e0ddd8;
  text-align: center;
}

.footer-copyright {
  margin-bottom: 20px;
}

.footer-copyright p {
  font-size: 0.9rem;
  color: #333333;
  margin-bottom: 4px;
}

.footer-links {
  font-size: 0.85rem;
  color: #333333;
  padding: 15px 0;
  background-color: #f0ede8;
  margin: 0 -80px -60px;
}

.footer-links a {
  color: #333333;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  margin: 0 5px;
}

/* --- Placeholder Image --- */
.placeholder-image {
  background-color: #e8e5e0;
}

/* --- Modal Styles --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(26, 58, 92, 0.15);
  /* Darker, blueish overlay for contrast */
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.modal.hidden {
  display: none !important;
}

.modal-content {
  background: #f5f2ed;
  /* Match .page-container background */
  padding: 60px 80px;
  max-width: 900px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0ddd8;
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  font-weight: 300;
  color: #1a3a5c;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  z-index: 1001;
}

.close-btn:hover {
  color: #c9a25d;
}

/* Modal Typography */
#modal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 400;
}

#modal-body .modal-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  display: block;
}

#modal-body h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#modal-body p,
#modal-body li {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 10px;
  white-space: normal;
  /* Force wrapping */
}

#modal-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

#modal-body ul li {
  padding-left: 20px;
  position: relative;
}

#modal-body ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #c9a25d;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .page-container {
    padding: 30px 20px 50px;
  }

  .hero-image {
    margin-left: -20px;
    margin-right: -20px;
  }

  .title-section h1 {
    font-size: 1.8rem;
  }

  .pillars-section {
    flex-direction: column;
    gap: 30px;
  }

  .pillar-divider {
    width: 80%;
    height: 1px;
    min-height: auto;
    margin: 0 auto;
  }

  .pillar {
    padding: 0;
  }

  .quadrant-row {
    flex-direction: column;
  }

  .quadrant-divider-v {
    height: 1px;
    width: 100%;
  }

  .four-columns-section {
    flex-wrap: wrap;
  }

  .four-columns-section .column {
    flex: 1 1 45%;
    margin-bottom: 20px;
  }

  .column-divider {
    display: none;
  }

  .service-cards-grid {
    flex-direction: column;
  }

  .team-member {
    margin-bottom: 30px;
  }

  .team-section {
    flex-direction: column;
    gap: 0;
  }

  .page-nav {
    flex-wrap: wrap;
    gap: 15px;
  }


  .footer-links {
    margin: 0 -20px -50px;
    padding: 10px;
  }

  .modal-content {
    padding: 40px 20px;
    margin: 20px auto;
  }
}

/* --- Mobile Optimization (max-width: 768px) --- */
@media (max-width: 768px) {
  .logo-icon {
    height: 60px;
  }

  .page-container {
    padding: 30px 20px;
    margin: 20px auto;
  }

  .hero-image {
    margin-left: -20px;
    margin-right: -20px;
  }

  .footer-links {
    margin: 0 -20px -30px;
  }

  .pillars-section {
    flex-direction: column;
    align-items: center;
  }

  .pillar {
    margin-bottom: 30px;
    padding: 0;
  }

  .pillar-divider {
    width: 60%;
    height: 1px;
    min-height: 1px;
    margin: 10px auto 30px;
  }

  .quadrant-row {
    flex-direction: column;
  }

  .quadrant-divider-v {
    width: 100%;
    height: 1px;
  }

  .four-columns-section {
    flex-wrap: wrap;
  }

  .four-columns-section .column {
    flex: 1 1 45%;
    /* 2 columns on mobile */
    margin-bottom: 20px;
  }

  .service-cards-grid {
    flex-direction: column;
  }

  .team-section {
    flex-direction: column;
  }

  /* Warning Section Mobile */
  .warning-section {
    padding: 30px 20px;
  }

  .warning-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .warning-icon-wrapper {
    margin: 0 auto;
    /* Force centering */
    width: 65px;
    /* Ensure width is fixed for margin auto to work if block */
  }

  .warning-content strong {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
}