/* ==========================================================================
   AffirmedRx Reviews — hand-written stylesheet
   Replaces Elementor / HFE / Hello Elementor CSS bundles.
   Design tokens measured from the original rendered pages on 2026-08-04:
     green #4CBB17 (active nav)   navy #113075 (headings, nav links)
     footer navy #253774          button navy #253773
     stars #F0AD4E on #CCD6DF     quote #59595B   name #253774
     LinkedIn #0077B5             card border #eee
   Font: Figtree (Google Fonts, unchanged dependency)
   ========================================================================== */

:root {
  --green: #4cbb17;
  --navy: #113075;
  --footer-navy: #253774;
  --btn-navy: #253773;
  --name-navy: #253774;
  --star: #f0ad4e;
  --star-track: #ccd6df;
  --quote: #59595b;
  --linkedin: #0077b5;
  --border: #eee;
  --container: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #333;
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 12px 24px;
  top: 5px;
  width: auto;
  z-index: 100000;
}

body {
  margin: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 24px;
  color: #000;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Accessible skip link (visually hidden until focused) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
}

.spacer {
  height: 50px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 99;
  background: #fff;
  height: 102px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: 320px;
  height: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.site-nav a {
  display: inline-block;
  padding: 15px;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
  color: var(--navy);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--green);
}

.site-nav a[aria-current="page"] {
  color: var(--green);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle.is-open .icon-bars {
  display: none;
}

.nav-toggle.is-open .icon-close {
  display: block;
}

/* ==========================================================================
   Hero (replaces the Elementor slides widget)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: #1a1a1a;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  animation: kenburns 20s linear infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.hero-heading {
  margin: 0;
  max-width: 1000px;
  font-size: 50px;
  font-weight: 600;
  line-height: 55px;
  color: #fff;
  animation: fadeInUp 1s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Home: reviews
   ========================================================================== */

.home-title {
  margin: 0;
  font-size: 35px;
  font-weight: 700;
  line-height: 35px;
  text-align: center;
  color: var(--navy);
}

.reviews-intro {
  margin-top: 20px;
}

.reviews-intro p {
  margin: 0 0 14.4px;
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  border: 1px solid var(--border);
  padding: 30px 15px;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars .star {
  width: 20px;
  height: 20px;
  fill: var(--star);
}

.review-quote {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  color: var(--quote);
}

.review-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  color: var(--name-navy);
}

/* ==========================================================================
   About
   ========================================================================== */

.page-title {
  margin: 0 0 20px;
  font-size: 40px;
  font-weight: 600;
  line-height: 48px;
  text-align: center;
  color: var(--navy);
}

.about-copy p {
  margin: 0 0 14.4px;
  font-size: 16px;
  line-height: 30px;
}

/* ==========================================================================
   In The News
   ========================================================================== */

.news-card {
  padding: 10px;
  margin-bottom: 20px;
}

.news-card:last-child {
  margin-bottom: 0;
}

.news-card img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

.news-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  color: var(--navy);
}

.news-card h2 a {
  color: inherit;
  text-decoration: none;
}

.news-card h2 a:hover,
.news-card h2 a:focus {
  color: var(--green);
}

.news-card p {
  margin: 0 0 14.4px;
}

.news-card p:last-of-type {
  margin-bottom: 14.4px;
}

.read-more {
  display: inline-block;
  padding: 15px 30px;
  background: var(--btn-navy);
  color: #fff;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.3s;
}

.read-more:hover,
.read-more:focus {
  background: #E86B32;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-navy);
  padding: 0 15px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo img {
  display: block;
  height: 64px;
  width: auto;
}
.copyright {
  margin: 0;
  text-align: center;
  font-family: "Figtree", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 29px;
  color: #fff;
}
.copyright a {
  color: #fff;
  transition: color 0.3s;
}
.copyright a:hover, .copyright a:focus { color: #4CBB17; }

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.84);
  transition: background-color 0.3s;
}
.social-icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: #4CBB17;
}
.social-icon:hover { background: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
  }

  .site-nav a {
    display: block;
    padding: 12px 30px;
  }

  .footer-inner { padding: 45px 0; }
  .read-more { font-size: 15px; }
}

@media (max-width: 767px) {
  .site-header {
    height: auto;
    padding: 12px 0;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand img {
    width: 200px;
  }

  .hero {
    min-height: 300px;
  }

  .hero-heading {
    font-size: 35px;
    line-height: 42px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner { padding: 40px 0; }
  .footer-logo img { width: 240px; height: 45px; }
  .copyright { font-size: 14px; line-height: 24px; }
  .read-more { font-size: 14px; }
}
