/*
  Marketing site redesign (index.html, blog.html, resources.html, contact.html,
  privacy-policy.html, terms-of-service.html, blog-post.html).
  Loaded after styles.css so these rules take precedence on these pages
  without affecting the dashboard/admin/auth pages that share styles.css.
*/

:root {
  --gmp-navy: #011a3d;
  --gmp-navy-light: #0d2c56;
  --gmp-red: #b22234;
  --gmp-red-dark: #8f1b29;
  --gmp-green: #198754;

  --bs-primary: var(--gmp-navy);
  --bs-primary-rgb: 1, 26, 61;
}

body {
  font-family: 'Archivo', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--gmp-navy);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.hero-badge,
.hero-title,
.display-4,
.display-5,
.text-body-emphasis,
.accordion-button {
  font-family: 'Archivo Black', Arial, Helvetica, sans-serif;
}

/* ---------- Scale type/spacing up on large monitors (rem-based, cascades through Bootstrap) ---------- */

@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 2000px) {
  html {
    font-size: 21px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: 12px !important;
  letter-spacing: .02em;
}

.btn-primary {
  background-color: var(--gmp-navy);
  border-color: var(--gmp-navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--gmp-navy-light);
  border-color: var(--gmp-navy-light);
}

.btn-outline-primary {
  color: var(--gmp-navy);
  border-color: var(--gmp-navy);
}

.btn-outline-primary:hover {
  background-color: var(--gmp-navy);
  border-color: var(--gmp-navy);
  color: #fff;
}

.btn-accent {
  background-color: var(--gmp-red);
  border-color: var(--gmp-red);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--gmp-red-dark);
  border-color: var(--gmp-red-dark);
  color: #fff;
}

.btn-outline-light {
  border-radius: 12px !important;
}

/* ---------- Navbar ---------- */

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 12px rgba(1, 26, 61, .08);
}

.navbar .nav-link {
  color: var(--gmp-navy);
  padding: .5rem 1rem;
  font-size: .85rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gmp-red);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-color: var(--gmp-navy);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../Photos/hpbg.png') center center / cover no-repeat;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: hero-bg-zoom 24s ease-in-out infinite alternate;
  }
}

@keyframes hero-bg-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-badge,
.hero-title,
.hero-lead,
.hero-cta {
  opacity: 0;
  animation: hero-fade-up .8s ease forwards;
}

.hero-badge { animation-delay: .1s; }
.hero-title { animation-delay: .25s; }
.hero-lead { animation-delay: .4s; }
.hero-cta { animation-delay: .55s; }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-lead,
  .hero-cta {
    opacity: 1;
    animation: none;
  }
}

.hero-badge {
  display: inline-block;
  background-color: var(--gmp-red);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(1.85rem, 1.4rem + 3vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
}

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

/* ---------- Section headings ---------- */

.section-heading {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: .5rem !important;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--gmp-red);
}

.feature-heading {
  position: relative;
  padding-bottom: .9rem;
  margin-bottom: 1.1rem !important;
}

.feature-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--gmp-red);
}

/* ---------- Video placeholder (About section) ---------- */

.video-placeholder {
  aspect-ratio: 700 / 500;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--gmp-navy), var(--gmp-navy-light));
  color: #fff;
}

.video-placeholder-play {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--gmp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  padding-left: .25rem;
}

.video-placeholder-label {
  font-size: .8rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Feature checkmarks ---------- */

.check-icon {
  color: var(--gmp-green);
  font-weight: bold;
  margin-right: .5rem;
}

/* ---------- How it works (navy band) ---------- */

.how-it-works,
.bg-navy {
  background-color: var(--gmp-navy);
  color: #fff;
}

.how-it-works .text-body-emphasis,
.how-it-works .section-heading,
.bg-navy .text-body-emphasis,
.bg-navy .section-heading,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
  color: #fff !important;
}

.how-it-works .text-body-secondary,
.bg-navy .text-body-secondary {
  color: rgba(255, 255, 255, .75) !important;
}

.bg-navy .card {
  background-color: rgba(255, 255, 255, .06);
}

.bg-navy .card .text-body-secondary {
  color: rgba(255, 255, 255, .7) !important;
}

.bg-navy a:not(.btn) {
  color: #fff;
}

.step-circle {
  background-color: var(--gmp-red) !important;
}

.step-line {
  border-color: rgba(255, 255, 255, .3) !important;
}

/* ---------- Pricing ---------- */

.card {
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(1, 26, 61, .14);
}

.featured-card {
  border: 2px solid var(--gmp-red) !important;
}

.featured-header {
  background-color: var(--gmp-red) !important;
  border-radius: 10px 10px 0 0 !important;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--gmp-navy);
  color: rgba(255, 255, 255, .75);
}

.site-footer h5 {
  color: #fff;
}

.site-footer .text-body-secondary {
  color: rgba(255, 255, 255, .65) !important;
}

.site-footer a.nav-link {
  color: rgba(255, 255, 255, .75);
}

.site-footer a.nav-link:hover {
  color: var(--gmp-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .65);
}

.footer-bottom a:hover {
  color: var(--gmp-red);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  color: rgba(255, 255, 255, .75);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.social-icon:hover {
  color: #fff;
  background-color: var(--gmp-red);
  border-color: var(--gmp-red);
}

/* ---------- Blog cards ---------- */

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(1, 26, 61, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  color: var(--gmp-navy);
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(1, 26, 61, .18);
}

.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.blog-card-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gmp-navy), var(--gmp-navy-light));
  transition: transform .3s ease;
}

.blog-card-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-img-inner svg {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, .45);
}

.blog-card:hover .blog-card-img-inner {
  transform: scale(1.08);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-category {
  color: var(--gmp-red);
  font-family: 'Archivo Black', Arial, Helvetica, sans-serif;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.blog-card-title {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  transition: color .15s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--gmp-red);
}

.blog-card-excerpt {
  color: var(--bs-secondary-color, #667085);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.blog-card-date {
  color: var(--bs-secondary-color, #667085);
  font-size: .75rem;
  letter-spacing: .04em;
}

/* ---------- Blog article page ---------- */

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--gmp-navy);
  font-size: .85rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.article-back-link:hover {
  color: var(--gmp-red);
}

.article-category {
  color: var(--gmp-red);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.article-title {
  font-size: clamp(1.5rem, 1.1rem + 2.5vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--bs-secondary-color, #667085);
  font-size: .85rem;
  margin-bottom: 2.5rem;
}

.article-hero-img {
  aspect-ratio: 21 / 9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.article-hero-img .blog-card-img-inner {
  transform: none !important;
}

.article-hero-img .blog-card-img-inner svg {
  width: 3.5rem;
  height: 3.5rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.85;
  color: var(--gmp-navy);
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-body blockquote {
  border-left: 4px solid var(--gmp-red);
  padding-left: 1.25rem;
  margin: 2rem 0;
  font-size: 1.05rem;
  color: var(--gmp-navy-light);
}

.article-body a {
  color: var(--gmp-red);
  text-decoration: underline;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: .5rem;
}

.article-body pre {
  background: var(--gmp-navy);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: .9rem;
}

.article-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
  border: none;
}

/* ---------- Tie remaining sections to the hero's navy/red palette ---------- */

.bg-body-tertiary {
  background-color: #eef1f7 !important;
}

.img-fluid.shadow {
  box-shadow: 0 10px 30px rgba(1, 26, 61, .18) !important;
  transition: transform .35s ease;
}

.img-fluid.shadow:hover {
  transform: scale(1.015);
}

/* ---------- Scroll-triggered reveal ----------
   Applied by Assets/JS/scroll-reveal.js. Elements only get
   .reveal-hidden right before JS starts observing them, so content
   stays visible by default if JS doesn't run. */

.reveal-hidden {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-hidden {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sequential "pop in" (How It Works steps) ---------- */

.step-pop {
  opacity: 0;
  transform: translateY(24px) scale(.9);
  transition: opacity .5s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}

.step-pop.pop-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .step-pop {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.card-accent-navy {
  border-top: 4px solid var(--gmp-navy) !important;
}

.featured-card {
  border-top: 4px solid var(--gmp-red) !important;
}

.accordion-item {
  border-radius: 12px !important;
  overflow: hidden;
  border-color: rgba(1, 26, 61, .15) !important;
  margin-bottom: 1rem;
}

.accordion-button {
  background-color: #fff;
  color: var(--gmp-navy);
}

.accordion-button:not(.collapsed) {
  background-color: var(--gmp-navy);
  color: #fff;
  box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  filter: invert(1) brightness(2);
}

.accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(1, 26, 61, .2);
}
