/* Root variables for consistent colors */
:root {
  --primary: #153E75;
  --primary-dark: #061424;
  --secondary: #00B4A0;
  --secondary-dark: #009688;
  --accent: #FFB000;
  --accent-dark: #F29D00;
  --bg-light: #F9FAFB;
  --text: #374151;
}

/* Update these specific rules only */
h1, h2 {
  color: var(--primary);
}

/* Change CTA buttons to teal */
a[href^="mailto:"], a[href^="#apply"] {
  background: var(--secondary);
}

a[href^="mailto:"]:hover, a[href^="#apply"]:hover {
  background: var(--secondary-dark);
}

/* Use teal for list arrows */
.section-content ul li:before {
  color: var(--secondary);
}

/* Add accent color for specific highlights */
.section-content img:hover {
  box-shadow: 0 4px 20px rgba(0, 180, 160, 0.2);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  background: var(--bg-light);
  color: var(--text);  /* Use text color instead of primary */
  line-height: 1.6;
}

/* Navigation */
.nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

main.single-page-content {
  max-width: 1000px;
  margin: 3em auto 0 auto;
  padding: 2.5em 2em 2em 2em;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8em;
  margin-bottom: 3em;
  padding-bottom: 1.5em;
  border-bottom: 2px solid var(--primary);
}

.header h1 {
  margin: 0;
  text-align: center;
}

.header img {
  height: auto;
  width: 300px;
  transition: transform 0.3s ease;
}

h1 {
  font-size: 2.75em;
  margin-bottom: 0.5em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

h2 {
  margin-top: 2em;
  clear: both;
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.section-content h3 {
  margin: 0.25em 0 0.5em;
  font-size: 1.35em;
  font-weight: 800;
  color: var(--primary);
}

.section-content {
  font-size: 1.2em;
  line-height: 1.7;
  color: var(--text);  /* Use text color instead of primary */
  opacity: 1;
}

/* Two-column content rows */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
  margin: 1.25rem 0 2rem;
}

/* Per-section column ratios */
.two-col-70-30 { grid-template-columns: 0.7fr 0.3fr; }
.two-col-40-60 { grid-template-columns: 0.4fr 0.6fr; }
.two-col-60-40 { grid-template-columns: 0.6fr 0.4fr; }

/* Swap sides on desktop while keeping mobile DOM order */
@media (min-width: 769px) {
  .two-col.swap {
    grid-template-columns: 0.6fr 0.4fr; /* image wider */
    grid-template-areas: 'media text';
  }
  .two-col.swap .media { grid-area: media; }
  .two-col.swap .col:not(.media) { grid-area: text; }
}

.two-col .col {
  min-width: 0;
}

.two-col .media {
  display: flex;
  justify-content: center;
}

/* Tighter copy rhythm inside two-col */
.two-col .col p { margin: 0.25em 0 0.75em; }
.two-col .col ul { margin: 0.25em 0 0.75em; }
.two-col .col ul li { margin-bottom: 0.75em; }

.two-col .col ul {
  margin-top: 0;
}

.two-col .col ul li {
  margin-bottom: 1.2em;
}

.section-content h3 {
  margin: 0.25em 0 0.75em;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary);
}

/* Inset image styling for feature shots */
/* Intentionally no extra framing on images inside two-col; page-level image styles apply */

/* Basic image styling */
.section-content img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(10, 26, 47, 0.15);
}

/* Float images alternating sides */
.section-content h2:nth-of-type(odd):not(:last-of-type) + p img {
  float: right;
  margin: 0 0 1em 2em;
}

.section-content h2:nth-of-type(even):not(:last-of-type) + p img {
  float: left;
  margin: 0 2em 1em 0;
}

/* Basic content styles */
.section-content p {
  margin: 1em 0;
}

/* List styling */
.section-content ul {
  margin: 1.5em 0;
  padding-left: 1.2em;
  list-style: none;
}

.section-content ul li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 1em;
}

.section-content ul li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

/* Section separators */
.section-content hr {
  clear: both;
  border: none;
  border-top: 2px solid var(--primary);  /* Was 1px */
  opacity: 0.15;  /* Was 0.2 */
  margin: 2em 0;
}

/* Ensure headings clear floats */
.section-content h2 {
  clear: both;
}

/* Style the CTA section differently */
.section-content h2:last-of-type {
  text-align: center;
  font-size: 2em;
  margin-top: 3em;
  clear: both;
}

.section-content h2:last-of-type + p {
  text-align: center;
  font-size: 1.2em;
}

/* Center the final CTA button */
.section-content h2:last-of-type ~ p a {
  display: block;
  width: fit-content;
  margin: 2em auto;
}

/* CTA button styling */
a[href^="mailto:"], a[href^="#apply"] {
  display: inline-block;
  margin: 1.5em 0;
  padding: 1em 2.5em;
  background: var(--secondary);
  color: #fff !important;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.15);
  transition: all 0.3s ease;
}

a[href^="mailto:"]:hover, a[href^="#apply"]:hover {
  background: var(--secondary-dark);
  box-shadow: 0 4px 20px rgba(10, 26, 47, 0.25);
  transform: translateY(-1px);
}

/* Modern footer */
footer {
  text-align: center;
  padding: 3em 0 2em;
  font-size: 0.95em;
  color: var(--primary);
  opacity: 0.85;
  margin-top: 4em;
  background: #fff;
  border-top: 1px solid rgba(21, 62, 117, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content p {
  margin: 0.5em 0;
}

.footer-links {
  margin-top: 0.5em;
}

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-separator {
  margin: 0 0.75em;
  opacity: 0.5;
}

/* Platform Zero logo text styling */
.platformzero-logo-text {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--primary);
  margin: 0;
  letter-spacing: -0.03em;
}

/* Responsive improvements */
@media (max-width: 768px) {
  main.single-page-content {
    margin: 1em;
    padding: 1.5em;
  }
  
  .two-col {
    display: block;
  }
  .two-col .media {
    justify-content: flex-start;
  }

  .section-content img {
    width: 100%;
    height: 240px;
    float: none !important;
    margin: 1em 0 !important;
  }
}

/* Only these two images render with no extra theme frame */
img.pz-no-frame,
figure.pz-no-frame img {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}

/* removed mac-shadow: baked-in shadow now in image asset */

/* Inline offset image (floats right on wide screens) */
.inline-photo {
  float: right;
  width: clamp(220px, 38%, 420px);
  height: auto;
  margin: 0 0 1rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(10, 26, 47, 0.12);
}

/* Feature blocks: unified pattern for text + media */
.feature {
  display: grid;
  gap: 1.5rem 2rem;
  align-items: start;
  margin: 1rem 0 2.5rem;
}

/* Ratios */
.feature--equal { grid-template-columns: 1fr 1fr; }
.feature--textwide { grid-template-columns: 1.4fr 0.6fr; }
.feature--imagewide { grid-template-columns: 0.4fr 0.6fr; }

/* Swap columns on desktop only; keeps source order for mobile */
@media (min-width: 769px) {
  .feature--swap { grid-auto-flow: dense; }
  .feature--swap .feature__media { order: -1; }
}

/* Stack on mobile */
@media (max-width: 768px) {
  .feature { display: block; }
  .media--narrow img { max-height: none; width: 100%; }
}

.feature__body > .lead {
  margin: 0.15em 0 0.6em;
  font-size: 1.05em;
  color: var(--text);
}

.feature__media {
  display: flex;
  justify-content: center;
}

/* Default: gently scale feature images down */
.feature__media img {
  width: 90%;
  height: auto;
}

/* Constrain tall images within their half-width column */
.media--narrow img {
  max-height: 360px; /* 10% smaller */
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Removed clipped viewport */

/* Unified points list */
.points {
  margin: 0.25em 0 0.75em;
  padding-left: 1.2em;
}

.points li {
  margin-bottom: 0.5em;
}

.points--compact li {
  margin-bottom: 0.4em;
}

/* Two-column checklist layout */
.points--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35em 1.5em;
  padding-left: 0; /* bullets already have left pad in li */
}

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

/* Team section styling */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.team-member {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(10, 26, 47, 0.08);
}

.team-member:hover {
  box-shadow: 0 6px 20px rgba(10, 26, 47, 0.15);
  transform: translateY(-4px);
}

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 4px 16px rgba(10, 26, 47, 0.15) !important;
}

.team-member h3 {
  margin: 0 0 0.25rem;
  font-size: 1.4em;
  color: var(--primary);
}

.team-title {
  font-size: 1em;
  color: var(--secondary);
  font-weight: 600;
  margin: 0 0 1rem;
}

.team-bio {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1.5rem;
  opacity: 0.85;
}

.team-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--secondary);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.team-link:hover {
  background: var(--secondary-dark);
  transform: translateY(-1px);
}

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

  .team-member {
    padding: 1.5rem;
  }

  .team-photo {
    width: 150px;
    height: 150px;
  }
}
