/* definitions */
:root { --midnight-blue: #013366;  }

/* Global variables and base typography */
:root {
  --bg-grey: #fafafa;
  --black: black;
  --boston-blue: #3d8db2;
  --cerulean-blue: #06aae1;
  --dark-grey: #b3b3b3;
  --dark-grey-2: #999;
  --medium-sea-green: #5ab963;
  --midnight-blue: #013366;
  --sea-green: #48944f;
  --stack-gray: #7c7c7c;
  --white: white;
}

html,
body { min-height: 100%; }

body {
  background-color: rgb(255, 255, 255);
  box-sizing: border-box;
  color: rgb(51, 51, 51);
  font-family: "Avenirnextltpro demi", Verdana, sans-serif;
  font-feature-settings: "liga";
  font-size: 16px;
  line-height: 20px;
  margin: 0;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero Banner with Background Image */
.hero-banner {
  position: relative;
  width: 100%;
  background-color: #013366; /* Fallback midnight blue */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0; /* Keep banner fully on-screen below nav */
  padding: 140px max(4vmin, 20px) 60px; /* Match general header spacing from .header-inner */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 0; /* Allow it to shrink */
}

.hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 20, 40, 0.6); /* Dark overlay for text readability */
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 2rem;
  margin-top: 5rem; /* Nudge hero content down so it clears the nav */
  width: 100%;
}

.hero-banner-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-banner-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.6;
  margin: 0 0 2rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  background: rgb(61, 141, 178);
  border-color: rgb(61, 141, 178);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: rgb(51, 131, 168);
  border-color: rgb(51, 131, 168);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-banner {
    margin-top: 0;
    padding: 96px max(4vmin, 20px) 40px;
  }
}

/* Layout */
.container{max-width:1100px;margin:0 auto;padding:2rem 1rem}
.grid{display:grid;gap:1rem}
.g-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.g-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.g-3{grid-template-columns:1fr}}

/* Narrow body width for post content sections */
.post-body{max-width:1200px;margin:0 auto}

/* Page two-column layout */
.page-grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem;align-items:start}
@media (max-width:900px){.page-grid{grid-template-columns:1fr}}
.page-main{min-width:0}
.page-sidebar{position:sticky;top:1rem;height:fit-content}
.page-sidebar .card + .card{margin-top:1rem}

/* Sidebar proof cards stack naturally; tighten spacing if needed */
.page-sidebar .proof-card .proof-icon{margin-bottom:.5rem}
.page-sidebar .proof-card .card-title{margin-bottom:.5rem}

/* Reduce vertical padding for all post articles (was max(8vmin,40px)/max(8vmin,64px)) */
.article.post{
  padding: max(4vmin,20px) 0 max(4vmin,32px);
}

/* Cards / Buttons */
.card{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;overflow:hidden}
.card.soft{background:#f7f7f9}
.card.hover:hover{box-shadow:0 6px 22px rgba(0,0,0,.08);transform:translateY(-2px);transition:.2s}
.card-body{padding:1rem;display:flex;flex-direction:column}
.card-media{width:60px;height:60px;object-fit:cover;display:block;border-bottom:1px solid rgba(0,0,0,.06)}
.card-title{
  box-sizing: border-box;
  color: rgb(61, 141, 178);
  display: block;
  font-family: "Avenirnextltpro demi", Verdana, sans-serif;
  font-feature-settings: "liga";
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.card-text{margin:0;color:#555}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.6rem 1rem;border-radius:10px;border:1px solid rgb(6, 170, 225);background:rgb(6, 170, 225);color:#000;text-decoration:none;font-weight:600;transition:background-color 0.2s ease,border-color 0.2s ease,color 0.2s ease}
.btn:hover{background:rgb(0, 162, 86);border-color:rgb(0, 162, 86);color:#fff}
.card-body .btn{align-self:flex-end}
.btn.ghost{background:transparent;color:#111;border-color:#111}
.btn.ghost:hover{background:transparent;color:rgb(0, 162, 86);border-color:rgb(0, 162, 86)}
.btn.sm{padding:.45rem .8rem;font-size:.9rem;margin-left:auto;justify-self:end}
.btn.wide{width:100%}

/* Hero */
.hero{display:grid;grid-template-columns:2fr 1fr;gap:1rem;margin-bottom:1.5rem}
@media (max-width:900px){.hero{grid-template-columns:1fr}}
.h1{font-size:clamp(1.8rem,3vw,2.4rem);margin:.25rem 0 1rem}
.hero-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
@media (max-width:640px){.hero-pills{grid-template-columns:1fr}}
.pill{display:flex;gap:.75rem;align-items:stretch;border:1px solid rgba(0,0,0,.08);border-radius:12px;padding:.8rem;background:#fff}
.pill-icon{width:32px;height:32px;border-radius:8px;object-fit:cover}
.pill-body{display:flex;flex-direction:column;flex:1;text-align:left}
.pill-body .btn{align-self:flex-end;margin-top:auto}
.aside-title{margin:0 0 .75rem}
.subscribe{display:grid;grid-template-columns:1fr auto;gap:.5rem}
.subscribe input{padding:.6rem .8rem;border:1px solid #d0d2d8;border-radius:10px}
.subscribe .msg{display:none;font-size:.9rem;margin-top:.25rem}
.subscribe [data-members-success].success{display:none}
.aside-note{color:#666;font-size:.9rem;margin:.5rem 0 0}

/* Spotlight */
.spotlight-card{padding:0}
.spotlight-row{display:grid;grid-template-columns:1fr 1.2fr;gap:1rem;align-items:stretch}
@media (max-width:900px){.spotlight-row{grid-template-columns:1fr}}
.spotlight-media{margin-top:1rem}
.spotlight-media img{width:100%;height:220px;object-fit:cover}
.media-placeholder{width:100%;height:220px;background:#eceef3}
.spotlight-body{padding:1rem}

/* Carousel with spotlight styling */
.spotlight .image-carousel {
  position: relative;
}
.spotlight .image-carousel .spotlight-card {
  margin: 0;
}

/* Carousel controls - positioned in lower right */
.spotlight .image-carousel .tns-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.spotlight .image-carousel .tns-controls button {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  transition: all 0.2s ease;
}
.spotlight .image-carousel .tns-controls button:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Proof blocks */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

.card.soft {
  background: #f7f7f9;
  border: 1px solid #e6e7ed;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.proof-icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.card-content {
  margin: 0;
  color: #555;
}

/* Services rail: ensure list/body typography matches theme */
.rail .card-body,
.rail .card-content {
  font-family: "Avenirnextltpro", Verdana, sans-serif;
  font-size: 1.4rem; /* 14px */
  line-height: 2.4rem; /* 24px */
  font-weight: 400;
  color: rgb(1, 51, 102); /* midnight blue */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  text-size-adjust: 100%;
  box-sizing: border-box;
}

/* Add spacing between rail and spotlight */
.rail {
  margin-bottom: 1rem;
}

.rail .card-content p,
.rail .card-content li {
  font-family: "Avenirnextltpro", Verdana, sans-serif;
  font-size: 1.4rem; /* 14px */
  line-height: 2.4rem; /* 24px */
  font-weight: 400;
  color: rgb(1, 51, 102);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  text-size-adjust: 100%;
  box-sizing: border-box;
}

/* Normalize headings inside services rail content */
.rail .card-content h1,
.rail .card-content h2,
.rail .card-content h3,
.rail .card-content h4,
.rail .card-content h5,
.rail .card-content h6 {
  font-family: "AvenirNext LT Pro Demi", Verdana, sans-serif;
  font-weight: 400;
  color: var(--boston-blue);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 .5rem;
}

.card-content ul,
.card-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.card-content li {
  margin-top: 5px;
  margin-bottom: 5px;
}

.card-content a {
  color: #0066cc;
  text-decoration: underline;
}

.download-cta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}


/* Shared heading styles (applies to all heading levels) */
h1, h2, h3, h4, h5, h6 {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga" on;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;

  /* Shared color palette (CSS variables) */
  --medium-sea-green: #5ab963;
  --midnight-blue: #013366;
  --white: #ffffff;
  --boston-blue: #3d8db2;
  --stack-gray: #7c7c7c;
  --bg-grey: #fafafa;
  --dark-grey-2: #999999;
  --cerulean-blue: #06aae1;
  --black: #000000;
  --sea-green: #48944f;
  --dark-grey: #b3b3b3;

  color: var(--boston-blue);
  font-family: "AvenirNext LT Pro Demi", Verdana, sans-serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.25em;
}

/* Plans */
.plans{margin:1.5rem 0;padding:1rem}
.plans-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.plan-icons{display:flex;gap:.5rem;margin:.8rem 0}
.badge{width:28px;height:20px;background:#e9eaf0;border-radius:6px;border:1px solid #d9dbe2}
.pill.muted{display:inline-flex;gap:.5rem;align-items:center;background:#f7f7f9;border:1px solid #e6e7ed;border-radius:10px;padding:.5rem .75rem}

/* CTAs and body */
.cta-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin:1rem 0 0}
@media (max-width:640px){.cta-row{grid-template-columns:1fr}}
.page-body{margin:2rem 0}
.section-title{margin:2rem 0 .75rem}
.empty{color:#777}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* Header styling */
.header-inner {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  margin-top: -90px;
  padding: 140px max(4vmin, 20px) 60px;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-align: flex-start;
  -webkit-align-items: flex-start;
  -ms-flex-align: flex-start;
  align-items: flex-start;
  background-color: #013366;
  background-image: url('../images/blue-carbon-fiber-6.webp');
  background-position: 0px 0px;
  background-size: cover;
  background-repeat: repeat;
  background-attachment: scroll;
  -webkit-filter: saturate(65%) contrast(159%);
  filter: saturate(65%) contrast(159%);
  font-family: 'Avenirnextltpro demi', Verdana, sans-serif;
  color: #fff;
}

/* Make site header overlay hero background */
.gh-head {
  background-color: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

/* Override Casper's non-home has-cover header background */
body.has-cover:not(.home-template) .gh-head { background-color: transparent; }

/* Prevent hero content from colliding with absolute nav */
.header-inner { margin-top: 0; }

/* Ensure header content text is left-aligned consistently */
.header-inner-content {
  text-align: left;
}

/* Style excerpt class in page header */
.header-inner-content .excerpt {
  font-family: "Avenirnextltpro demi", Verdana, sans-serif;
  font-feature-settings: "liga";
  font-size: 51.2px;
  font-weight: 400;
  color: #fff;
}

/* Align container-8 to match inner.posts container alignment */
.header-inner .container-8 {
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}



/* Navigation Dropdown */
.gh-head-menu .nav li {
    position: relative;
}

.gh-head-menu .nav li.has-dropdown > a {
    position: relative;
    padding-right: 1rem;
}

.gh-head-menu .nav li.has-dropdown > a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 0.3rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.gh-head-menu .nav li.has-dropdown:hover > a::after,
.gh-head-menu .nav li.has-dropdown.open > a::after {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.gh-head-menu .nav li.has-dropdown:hover .nav-dropdown,
.gh-head-menu .nav li.has-dropdown.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li {
    margin: 0;
    padding: 0;
}

.nav-dropdown a,
.nav-dropdown li a,
.gh-head-menu .nav-dropdown a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #333 !important;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover,
.nav-dropdown li a:hover,
.gh-head-menu .nav-dropdown a:hover {
    background-color: #f5f5f5;
    color: #3d8db2 !important;
}

/* Dropdown separator */
.nav-dropdown-separator {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    padding: 0;
}

/* Mobile dropdown support */
@media (max-width: 900px) {
    .nav-dropdown {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0;
        margin: 0;
    }

    .gh-head-menu .nav li.has-dropdown.open .nav-dropdown {
        display: block;
    }

    .gh-head-menu .nav li.has-dropdown > a::after {
        content: "▶";
    }

    .gh-head-menu .nav li.has-dropdown.open > a::after {
        transform: rotate(90deg);
    }
    
    /* Disable hover on mobile */
    .gh-head-menu .nav li.has-dropdown:hover .nav-dropdown {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

/* Footer - site footer section */
.site-footer {
  background: var(--midnight-blue);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: grid;
  gap: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img { display: block; height: auto; }

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.link-footer { opacity: .9; }
.link-footer:hover { opacity: 1; }

.footer-follow
{
  font-family: "Avenirnextltpro demi", Verdana, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgb(72, 148, 79);
  line-height: 20px;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  text-align: start;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  flex-wrap: wrap;
}
.footer-social-label { opacity: .9; }
.footer-social-icons { display: flex; gap: .5rem; flex-wrap: wrap; }
.link-social {
  border: none;
  box-sizing: border-box;
  color: rgb(0, 0, 238);
  cursor: pointer;
  display: inline-block;
  font-family: "Avenirnextltpro demi", Verdana, sans-serif;
  font-feature-settings: "liga";
  font-size: 16px;
  height: 25px;
  line-height: 20px;
  vertical-align: middle;
  width: 25px;
  -webkit-font-smoothing: antialiased;
}
.link-social img { display: block; width: 24px; height: 24px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: .5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  font-size: .95rem;
  opacity: .85;
}

