/* ==========================================================================
   Get Patient Consent — Landing Page Styles
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --gpc-teal: #0D7377;
  --gpc-teal-dark: #095456;
  --gpc-teal-light: #E6F4F4;
  --gpc-navy: #1B2A4A;
  --gpc-amber: #D4943A;
  --gpc-amber-light: #F5E6D0;
  --gpc-text: #2D3748;
  --gpc-text-light: #718096;
  --gpc-white: #FFFFFF;
  --gpc-off-white: #F7FAFC;
  --gpc-border: #E2E8F0;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gpc-text);
  line-height: 1.7;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: url('../img/hero-bg.jpg') center right / cover no-repeat;
  color: var(--gpc-white);
  overflow: hidden;
}

/* Gradient overlay: strong on the left for text readability, fading
   to transparent on the right so the image shows through */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 74, 0.82) 0%,
    rgba(27, 42, 74, 0.70) 30%,
    rgba(13, 115, 119, 0.35) 55%,
    rgba(13, 115, 119, 0.10) 75%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem 1.5rem 2rem 0;
  margin-left: 5vw;
  text-align: left;
}

.hero-quote {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.hero-quote-source {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
  font-style: normal;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero .btn-primary {
  background-color: var(--gpc-amber);
  border-color: var(--gpc-amber);
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.hero .btn-primary:hover {
  background-color: #c0842f;
  border-color: #c0842f;
  transform: translateY(-1px);
}

.hero .btn-outline-light {
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  border-width: 2px;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Navbar --- */
.navbar {
  background: linear-gradient(to bottom, rgba(10, 30, 50, 0.65) 0%, rgba(10, 30, 50, 0.2) 100%);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: var(--gpc-white) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gpc-teal-light) !important;
}

.navbar.scrolled .navbar-brand {
  color: var(--gpc-teal) !important;
}

/* Mobile: give the expanded menu a solid background so it's readable
   over the hero image */
@media (max-width: 991.98px) {
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: rgba(17, 35, 62, 0.97);
    margin: 0.5rem -12px 0;
    padding: 0.5rem 1rem 1rem;
    border-radius: 0 0 8px 8px;
  }
}

.navbar-brand img {
  height: 36px;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--gpc-off-white);
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gpc-navy);
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.15rem;
  color: var(--gpc-text-light);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* --- Problem / Solution --- */
.problem-card {
  background: var(--gpc-white);
  border: 1px solid var(--gpc-border);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: box-shadow 0.2s;
}

.problem-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.problem-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.icon-teal {
  background-color: var(--gpc-teal-light);
  color: var(--gpc-teal);
}

.icon-amber {
  background-color: var(--gpc-amber-light);
  color: var(--gpc-amber);
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gpc-navy);
  margin-bottom: 0.75rem;
}

.problem-card p {
  color: var(--gpc-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- How It Works --- */
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gpc-teal);
  color: var(--gpc-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gpc-navy);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--gpc-text-light);
  margin-bottom: 0;
}

/* --- Differentiator (Q&A) --- */
.diff-section {
  background: linear-gradient(160deg, var(--gpc-teal), var(--gpc-teal-dark));
  color: var(--gpc-white);
  padding: 5rem 0;
}

.diff-section .section-heading {
  color: var(--gpc-white);
}

.diff-section .section-subheading {
  color: rgba(255, 255, 255, 0.8);
}

.diff-quote {
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 300;
  opacity: 0.9;
  border-left: 3px solid var(--gpc-amber);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* --- Trust / Compliance --- */
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--gpc-teal-light);
  color: var(--gpc-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

.trust-item h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gpc-navy);
  margin-bottom: 0.25rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--gpc-text-light);
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--gpc-navy);
  color: var(--gpc-white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  background-color: var(--gpc-amber);
  border-color: var(--gpc-amber);
  font-size: 1.1rem;
  padding: 0.75rem 2.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.cta-section .btn-primary:hover {
  background-color: #c0842f;
  border-color: #c0842f;
}

/* --- Footer --- */
.site-footer {
  background-color: #151E34;
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gpc-white);
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gpc-white);
  margin-bottom: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-content {
    max-width: 520px;
  }

  .hero::before {
    background: linear-gradient(
      to right,
      rgba(27, 42, 74, 0.85) 0%,
      rgba(27, 42, 74, 0.75) 40%,
      rgba(13, 115, 119, 0.45) 65%,
      rgba(13, 115, 119, 0.15) 85%,
      transparent 100%
    );
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-quote {
    font-size: 1.2rem;
  }

  .hero-content {
    margin-left: 1.5rem;
    max-width: 90%;
  }

  /* On tablet/mobile, the text takes more width so the gradient
     needs to cover more of the image */
  .hero::before {
    background: linear-gradient(
      to right,
      rgba(27, 42, 74, 0.88) 0%,
      rgba(27, 42, 74, 0.80) 50%,
      rgba(13, 115, 119, 0.50) 75%,
      rgba(13, 115, 119, 0.30) 100%
    );
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-heading {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-quote {
    font-size: 1.1rem;
  }

  .hero-content {
    margin-left: 1rem;
    padding-right: 1rem;
  }

  /* On phone, gradient covers most of the image for readability */
  .hero::before {
    background: linear-gradient(
      to right,
      rgba(27, 42, 74, 0.90) 0%,
      rgba(27, 42, 74, 0.82) 60%,
      rgba(13, 115, 119, 0.55) 100%
    );
  }

  .hero .btn-primary,
  .hero .btn-outline-light {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
  }
}
