/* Services single-column container helpers */
#services section { padding: 2rem 0; }
#services h2 { margin-bottom: 1rem; }
.left, .right { width: 100%; float: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Neutralize any lingering two-column behavior on services */
#services .solutions-grid { grid-template-columns: 420px 1fr; gap: 2rem; }
/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@400;500;600;700&display=swap');

:root {
  --primary: #2d5f8a; /* A slightly softer blue */
  --secondary: #0077b6;
  --text: #333;
  --light-text: #555;
  --bg: #f8f9fa; /* Light gray background */
  --white: #fff;
  --border-color: #dee2e6;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

body { 
  font-family: 'Lora', serif; 
  color: var(--text); 
  background: var(--bg); 
  line-height: 1.6;
  padding-bottom: 60px; /* Space for sticky footer */
}

.site-header { 
  background: var(--white); 
  padding: 1.5rem 2rem; 
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav .logo {
  display: block;
  height: 100px;
}

.nav .logo img {
  height: 100%;
  width: auto;
}

.nav-list { 
  list-style: none; 
  display: flex; 
  gap: 1.5rem; 
}

.nav-list a { 
  font-family: 'Inter', sans-serif;
  color: var(--text); 
  text-decoration: none; 
  font-weight: 600;
  transition: color 0.3s;
}

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

.nav-toggle {
    display: none; /* Will be handled by media query */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: var(--primary);
  color: var(--white);
}

/* Ensure hero links are white and underlined for better contrast */
.hero a {
  color: var(--white);
  text-decoration: underline;
}

.hero a:visited {
  color: var(--white);
}

.hero a:hover,
.hero a:focus {
  color: var(--white);
  text-decoration: underline;
  opacity: 0.9;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: center;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-align: left;
}

.hero-intro {
  font-size: 1.1rem !important;
  line-height: 1.6;
  margin-bottom: 1rem !important;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  text-align: left;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 80ch;
  text-align: left;
}

.hero-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.hero-list li::before {
  content: '✓';
  color: #3D8CC1;
  position: absolute;
  left: 0;
  font-weight: 600;
}

.hero-outro {
  max-width: 60ch;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-align: left;
}

/* Centered call-to-action text inside hero */
.hero .cta-text {
  display: block;
  text-align: center !important;
}

.hero .button-primary {
  padding: 0.75rem 1.5rem;
  background-color: #3D8CC1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-weight: 600;
}

.hero .secondary-link {
    display: block;
    margin-top: 1rem;
    color: var(--white);
    text-decoration: underline;
    opacity: 0.9;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.button-primary {
    background-color: var(--secondary);
    color: var(--white);
}

.button-secondary {
    background-color: #e9ecef;
    color: #1f2d3d;
}

/* Contact page CTA buttons: underline text and use theme blue */
.contact-page .cta-buttons .button,
.contact-page .cta-buttons .button:visited {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  text-decoration: underline !important;
}

.contact-page .cta-buttons .button:hover,
.contact-page .cta-buttons .button:focus {
  background-color: #006aa3 !important; /* slightly darker than --secondary for hover */
  color: var(--white) !important;
  text-decoration: underline !important;
}

.button:hover {
    transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
}

.content { 
  padding: 3rem 1rem; 
  max-width: 1200px; 
  margin: auto; 
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.intro-section {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 2rem auto;
}

.intro-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
  margin: 0;
}

.contact-page .content p:not(.center) {
  text-align: left !important;
}

.content .center {
  text-align: center !important;
}

.content .disclaimer {
  font-size: 0.9rem;
  color: var(--light-text);
  text-align: center;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Contact page links styled consistently */
.contact-page .content a:not(.button) {
  color: var(--secondary);
  text-decoration: underline;
}

.contact-page .content a:not(.button):hover,
.contact-page .content a:not(.button):focus {
  color: var(--secondary);
  text-decoration: underline;
}

/* New Section Styles */
.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.endorsements-grid, .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.case-study-card, .endorsement-card, .blog-post-card, #downloadable-asset {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.case-study-card h3, .endorsement-card .author, .blog-post-card h3 {
    margin-bottom: 1rem;
}

.case-study-card ul {
    margin-bottom: 1rem;
}

.case-study-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.endorsement-card .author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.endorsement-card .author .fa-linkedin {
    font-size: 1.5rem;
    color: var(--secondary);
}

.blog-post-card .blog-date {
    display: block;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.blog-post-card .read-more {
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
}

/* About Michael Barry Page */
.about-page .about-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-page .profile-section {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.about-page .profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

.linkedin-link {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.linkedin-link:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.linkedin-link i {
  font-size: 1.5rem;
}

.about-page .about-title h1 {
  font-size: 2.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-page .subtitle {
  font-size: 1.1rem;
  color: var(--light-text);
  font-weight: 600;
}

/* Ensure links in the Our Story header/subtitle match text color and are underlined */
.about-page .about-title a,
.about-page .about-title a:visited {
  color: inherit;
  text-decoration: underline;
}

.about-page .about-title a:hover,
.about-page .about-title a:focus {
  color: inherit;
  text-decoration: underline;
}

.story-content {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: none;
  border-bottom: 1px solid var(--border-color);
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: left;
}

.story-content .story-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-content .story-figure {
  margin: 1rem auto 2rem;
  max-width: 960px;
}

.story-content .story-caption {
  font-size: 0.95rem;
  color: var(--light-text);
  text-align: left;
  margin-top: -1rem;
}

.story-content .story-cta {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  margin: 2rem 0;
}

.story-content .story-cta p {
  color: var(--white);
}

.story-content .story-cta a {
  color: var(--white);
  text-decoration: underline;
}

.story-content .story-cta a:hover,
.story-content .story-cta a:focus {
  color: var(--white);
  text-decoration: underline;
  opacity: 0.9;
}

.story-content p:last-child {
  margin-bottom: 0;
}

.story-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem 0;
}

.story-content ul {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.story-content ul ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.story-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.story-content li strong {
  color: var(--primary);
  font-weight: 600;
}

.expertise-section {
  margin: 3rem 0 2rem 0;
  text-align: center;
}

.expertise-section h2 {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.expertise-grid {
  display: grid;
  gap: 2rem;
}

.expertise-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  align-items: center;
}

.expertise-category {
  background-color: #e9ecef;
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.expertise-category h2 {
  font-size: 1.25rem;
  color: var(--primary);
}

.expertise-points {
  padding: 1.5rem;
}

.expertise-points ul {
  list-style-position: inside;
  padding-left: 0;
}

.expertise-points li {
  margin-bottom: 0.75rem;
}

.site-footer { 
  text-align: center; 
  padding: 2rem 1rem; 
  font-size: 0.9rem; 
  background: var(--white);
  margin-top: 3rem;
}

.footer-content {
    max-width: 960px;
    margin: 0 auto;
}



.sticky-cta-bar {
    position: fixed;
    bottom: -100px; /* Initially hidden */
    left: 0;
    width: 100%;
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: bottom 0.5s;
}

.sticky-cta-bar.visible {
    bottom: 0;
}

.sticky-cta-bar a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

/* Blog Styles */
.page-header {
    text-align: center;
    margin: 3rem auto 2rem;
    padding-top: 1rem;
}

.blog-post .post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-post .post-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-post .post-date {
    font-size: 1rem;
    color: var(--light-text);
}

.blog-post .post-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-post .back-to-blog {
    display: inline-block;
    margin-top: 3rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
}


/* Capabilities Framework */
.capabilities-section {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.page-header h1, .page-header h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.capabilities-section h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.capabilities-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.capabilities-section h1 {
    color: #00A3E0;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.capabilities-section h2 {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 4rem auto;
    max-width: 1000px;
}

/* New two-column layout: left = capabilities, right = supporting implementation */
.solutions-grid {
  display: grid;
  grid-template-columns: 480px 1fr; /* fixed left column, flexible right */
  gap: 2rem;
  margin: 3rem auto;
  max-width: 1200px;
}

.solutions-grid .right-column .supporting-section {
  margin: 0 0 1rem 0;
}

.solutions-grid .right-impl {
  margin: 0;
}

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

.capability-box {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.capability-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.capability-header {
    background: #2d5f8a;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

.capability-note {
  margin: 0.75rem 0 0.5rem;
  color: var(--light-text);
  text-align: left;
}

/* Layout for heading with right-aligned note */
.heading-with-note {
  display: grid;
  grid-template-columns: 420px 1fr; /* narrower left column to give right text more room */
  align-items: start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.heading-with-note > :first-child { width: 100%; }
.supporting-inline { display: block; width: 100%; }

.capability-note-right {
  color: var(--light-text);
  font-size: 0.95rem;
  overflow: visible;
  white-space: normal;
  max-width: 100%;
}

.note-list { margin: 0; padding-left: 1.1rem; }
.note-list li { margin-bottom: 0.5rem; }

@media (max-width: 900px) {
  .heading-with-note { grid-template-columns: 1fr; }
  .capability-note-right { margin-top: -0.5rem; }
}

.capability-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f0f8ff;
    align-items: stretch; /* ensure columns match height */
}

.capability-item {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.capability-item:hover {
    background: #f8f9fa;
}

.supporting-section {
    background: #2d5f8a;
    color: white;
    padding: 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 4rem 0;
    border-radius: 12px;
}

.supporting-inline {
  margin: 2rem 0 0; /* tighter spacing when used inline below external box */
}

.implementation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 2rem auto;
    max-width: 1000px;
}

.impl-group {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
  padding: 1rem 1rem 0.5rem;
}

.impl-group .impl-header {
  text-align: left;
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem 0.5rem;
}

.impl-group.internal {
  border-left: 6px solid #2d5f8a; /* tie to internal header color */
}

.impl-group.external {
  border-left: 6px solid #00A3E0; /* slightly brighter cue for external */
}

/* Simpler two-column grouping with subheaders and badges */
.impl-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.impl-subheader {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0.25rem;
  text-align: left;
}

.impl-col .implementation-item {
  margin: 0 0 0.75rem 0;
  text-align: left;
}

.badge {}
.badge-internal {}
.badge-external {}

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

.implementation-box {
    display: grid;
    gap: 1rem;
}

.implementation-item {
    background: #f8fbff; /* slightly lighter */
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color); /* light border */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px; /* match box sizes */
}

.implementation-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .capabilities-grid,
    .capability-items,
    .implementation-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    text-align: left;
    padding: 4rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p,
  .hero-intro {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
  }
  .nav-list.nav-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .about-page .about-header {
    flex-direction: column;
    text-align: center;
  }
  .expertise-item {
    grid-template-columns: 1fr;
  }
  .expertise-.category {
    border-bottom: 1px solid var(--border-color);
  }
}

#capability-list { margin-top: 1.5rem; padding-top: 0; border-top: none; }
#capability-list h3 { margin-top: 0.5rem; }
#capability-list .implementation-item { margin-bottom: 0.5rem; }

/* New two-column layout for Internal ESG Strategy */
.esg-strategy-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.esg-strategy-left {
    flex: 1;
    min-width: 300px;
}

.esg-strategy-right {
    flex: 2;
}

@media (max-width: 768px) {
    .esg-strategy-left,
    .esg-strategy-right {
        flex: 1 1 100%;
    }
}

.supporting-card {
  margin-top: 1rem;
}

@media (min-width: 769px) {
  .solutions-grid .right-column .supporting-card {
    margin-left: 0;
    margin-right: 0;
  }
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0; 
}

/* Bullet alignment for blog posts: bullets in the margin, text aligned with body copy */
.blog-post .post-content ul {
  list-style: disc inside !important;
  margin: 0 0 1rem 0 !important;
  padding-left: 0 !important;
}

.blog-post .post-content li {
  margin: 0.35rem 0;
  padding-left: 0 !important;
  text-indent: 0 !important;
}
