/* ===== CoverageConnection.org Global Styles ===== */
/* Warm, approachable palette: deep greens, terracotta, warm neutrals */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #3a342e;
  background: #faf7f2;
  line-height: 1.7;
}

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

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

/* --- Utility --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER & NAV ===== */
.site-header {
  background: linear-gradient(135deg, #2d4a3e 0%, #4a6e5c 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1140px;
  margin: 0 auto;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo span {
  color: #f0c89c;
}

/* Desktop nav */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: .88rem;
  font-weight: 500;
  color: #d6e4dc;
  transition: background .2s, color .2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO (Homepage) ===== */
.hero {
  background: linear-gradient(135deg, #3a5a4a 0%, #6a8a78 100%);
  color: #fff;
  text-align: center;
  padding: 72px 20px 64px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.25;
}

.hero p {
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 28px;
  opacity: .92;
}

/* Hero CTA inherits the unified orange treatment from .btn */
.hero .btn-primary {
  font-weight: 700;
}

/* ===== BUTTONS =====
   Unified high-conversion CTA color based on Amazon's "Buy Now" orange.
   Why it works: warm orange-yellow has no visual competition with the
   site's green/terracotta palette, the near-black text gives WCAG AA
   contrast, and the subtle bottom-border + drop shadow add tactile depth. */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
  text-align: center;
  /* Amazon-style "Buy Now" gradient: pops against any background */
  background: linear-gradient(180deg, #FFB829 0%, #FF9A1A 100%) !important;
  color: #0F1111 !important;
  border: 1px solid #E8890B !important;
  box-shadow:
    0 2px 0 #C76A05,
    0 4px 14px rgba(255,154,26,.35),
    inset 0 1px 0 rgba(255,255,255,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 2px 0 #C76A05,
    0 8px 22px rgba(255,154,26,.5),
    inset 0 1px 0 rgba(255,255,255,.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 #C76A05,
    0 2px 6px rgba(255,154,26,.3),
    inset 0 1px 2px rgba(0,0,0,.1);
}

/* ===== ARTICLE CARDS GRID (Homepage) ===== */
.section-heading {
  text-align: center;
  padding: 52px 20px 12px;
}

.section-heading h2 {
  font-size: 1.85rem;
  color: #2d4a3e;
  margin-bottom: 8px;
}

.section-heading p {
  color: #6b6157;
  max-width: 560px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 32px 20px 60px;
  max-width: 1140px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 22px 24px 26px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #2a241e;
}

.card-body p {
  font-size: .9rem;
  color: #6b6157;
  margin-bottom: 16px;
}

.card-link {
  font-size: .88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap .2s;
}

.card-link:hover {
  gap: 9px;
}

/* Card color themes - warm palette */
.theme-forest    .card-tag { background: #dfeae2; color: #2d4a3e; }
.theme-forest    .card-link { color: #2d4a3e; }
.theme-terracotta .card-tag { background: #faddd0; color: #a04924; }
.theme-terracotta .card-link { color: #a04924; }
.theme-sand      .card-tag { background: #f5e8d2; color: #8a6a2a; }
.theme-sand      .card-link { color: #8a6a2a; }
.theme-sage      .card-tag { background: #e4ecdb; color: #5a7a3a; }
.theme-sage      .card-link { color: #5a7a3a; }
.theme-clay      .card-tag { background: #f0d8c8; color: #8a4a2a; }
.theme-clay      .card-link { color: #8a4a2a; }
.theme-mustard   .card-tag { background: #f7e8c0; color: #7a5a14; }
.theme-mustard   .card-link { color: #7a5a14; }
.theme-mocha     .card-tag { background: #e8dcd0; color: #5a4434; }
.theme-mocha     .card-link { color: #5a4434; }
.theme-rust      .card-tag { background: #f4ddd2; color: #9a4524; }
.theme-rust      .card-link { color: #9a4524; }
.theme-olive     .card-tag { background: #ebeed8; color: #6a722a; }
.theme-olive     .card-link { color: #6a722a; }
.theme-cinnamon  .card-tag { background: #f2d8c6; color: #934d28; }
.theme-cinnamon  .card-link { color: #934d28; }

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 56px 20px 48px;
  text-align: center;
  color: #fff;
}

.article-hero .breadcrumb {
  font-size: .82rem;
  margin-bottom: 14px;
  opacity: .85;
}

.article-hero .breadcrumb a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.4);
}

.article-hero h1 {
  font-size: 2.15rem;
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 12px;
  line-height: 1.3;
}

.article-hero .subtitle {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  opacity: .9;
}

/* Hero color variants - warm palette */
.hero-forest    { background: linear-gradient(135deg, #2d4a3e 0%, #5a8a72 100%); }
.hero-terracotta { background: linear-gradient(135deg, #a04924 0%, #d47a52 100%); }
.hero-sand      { background: linear-gradient(135deg, #8a6a2a 0%, #c4a55a 100%); }
.hero-sage      { background: linear-gradient(135deg, #5a7a3a 0%, #8aaa6a 100%); }
.hero-clay      { background: linear-gradient(135deg, #8a4a2a 0%, #ba7a5a 100%); }
.hero-mustard   { background: linear-gradient(135deg, #7a5a14 0%, #b08a3e 100%); }
.hero-mocha     { background: linear-gradient(135deg, #5a4434 0%, #8a7060 100%); }
.hero-rust      { background: linear-gradient(135deg, #9a4524 0%, #c4724a 100%); }
.hero-olive     { background: linear-gradient(135deg, #6a722a 0%, #9aa252 100%); }
.hero-cinnamon  { background: linear-gradient(135deg, #934d28 0%, #c4805a 100%); }

/* Article content */
.article-content {
  max-width: 780px;
  margin: -24px auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 44px 48px 52px;
  box-shadow: 0 2px 24px rgba(0,0,0,.06);
  position: relative;
  z-index: 1;
}

.article-content .featured-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 28px;
}

.article-content h2 {
  font-size: 1.45rem;
  margin: 32px 0 12px;
  color: #2d4a3e;
  padding-bottom: 6px;
  border-bottom: 2px solid #f0e8da;
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: #4a3e30;
}

.article-content p {
  margin-bottom: 16px;
  color: #4a4036;
  font-size: .96rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px 24px;
  color: #4a4036;
}

.article-content li {
  margin-bottom: 7px;
  font-size: .95rem;
}

.article-content blockquote {
  border-left: 4px solid #d4a574;
  padding: 14px 20px;
  margin: 20px 0;
  background: #fcf6ec;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #5a4434;
}

/* CTA box inside article */
.cta-box {
  text-align: center;
  padding: 36px 28px;
  border-radius: 14px;
  margin: 36px 0;
}

.cta-box h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.cta-box p {
  color: rgba(255,255,255,.92);
  margin-bottom: 18px;
  font-size: .95rem;
}

/* CTA box buttons share the unified orange treatment from .btn */
.cta-box .btn {
  font-weight: 700;
}

/* CTA box background color variants (button color stays unified orange) */
.cta-forest    { background: linear-gradient(135deg, #2d4a3e, #5a8a72); }
.cta-terracotta { background: linear-gradient(135deg, #a04924, #d47a52); }
.cta-sand      { background: linear-gradient(135deg, #8a6a2a, #c4a55a); }
.cta-sage      { background: linear-gradient(135deg, #5a7a3a, #8aaa6a); }
.cta-clay      { background: linear-gradient(135deg, #8a4a2a, #ba7a5a); }
.cta-mustard   { background: linear-gradient(135deg, #7a5a14, #b08a3e); }
.cta-mocha     { background: linear-gradient(135deg, #5a4434, #8a7060); }
.cta-rust      { background: linear-gradient(135deg, #9a4524, #c4724a); }
.cta-olive     { background: linear-gradient(135deg, #6a722a, #9aa252); }
.cta-cinnamon  { background: linear-gradient(135deg, #934d28, #c4805a); }

/* CTA boxes hidden by default; shown only when s1 parameter is present */
.cta-box {
  display: none;
}
body.has-s1 .cta-box {
  display: block;
}

/* Landing pages: CTAs always visible regardless of s1 */
body.landing-page .cta-box {
  display: block;
}

/* Special offer banner at top of article hero */
.offer-ribbon {
  display: inline-block;
  background: #fff;
  color: #a04924;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

/* Offer highlight box inside article content */
.offer-highlight {
  background: linear-gradient(135deg, #fcf2e2 0%, #f7e8c8 100%);
  border: 2px solid #d4a574;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
  text-align: center;
}

.offer-highlight h3 {
  color: #7a5a14;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.offer-highlight p {
  color: #5a4434;
  font-size: .95rem;
  margin-bottom: 0;
}

/* Related articles bar at bottom of landing pages */
.related-articles {
  max-width: 780px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.related-articles h3 {
  font-size: 1.1rem;
  color: #2d4a3e;
  margin-bottom: 14px;
}

.related-articles ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-articles a {
  display: inline-block;
  padding: 8px 18px;
  background: #f0e8da;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  color: #2d4a3e;
  transition: background .2s;
}

.related-articles a:hover {
  background: #e0d4c0;
}

/* ===== PORTAL PAGE ===== */
.portal-welcome {
  background: linear-gradient(135deg, #f4eee0 0%, #ebe2cc 100%);
  border: 2px solid #d4a574;
  border-radius: 16px;
  padding: 32px 36px;
  margin: 0 auto 36px;
  max-width: 780px;
  text-align: center;
}

.portal-welcome h2 {
  font-size: 1.5rem;
  color: #2d4a3e;
  margin-bottom: 8px;
  line-height: 1.35;
}

.portal-welcome h2 span {
  color: #a04924;
}

.portal-welcome p {
  color: #5a4434;
  font-size: 1rem;
  margin: 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 0 20px 48px;
  max-width: 1140px;
  margin: 0 auto;
}

.portal-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

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

.portal-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portal-card .card-body {
  padding: 22px 24px 26px;
}

.portal-card .card-body h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: #2a241e;
}

.portal-card .card-body p {
  font-size: .9rem;
  color: #6b6157;
  margin-bottom: 16px;
}

.portal-card .offer-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #a04924;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* Portal CTAs use the same unified Amazon-style orange as .btn */
.portal-card .portal-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(180deg, #FFB829 0%, #FF9A1A 100%);
  color: #0F1111;
  border: 1px solid #E8890B;
  box-shadow:
    0 2px 0 #C76A05,
    0 4px 14px rgba(255,154,26,.35),
    inset 0 1px 0 rgba(255,255,255,.55);
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.portal-card .portal-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 2px 0 #C76A05,
    0 8px 22px rgba(255,154,26,.5),
    inset 0 1px 0 rgba(255,255,255,.6);
}

.portal-card .portal-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 #C76A05,
    0 2px 6px rgba(255,154,26,.3),
    inset 0 1px 2px rgba(0,0,0,.1);
}

/* Legacy theme classes left as no-ops so existing markup stays valid */
.portal-btn-forest,
.portal-btn-terracotta,
.portal-btn-sand { /* unified orange applied above */ }

/* Info boxes */
.info-box {
  background: #f4eee0;
  border: 1px solid #d4a574;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 22px 0;
}

.info-box h4 {
  color: #7a5a14;
  margin-bottom: 8px;
  font-size: 1rem;
}

.info-box ul {
  margin-left: 18px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #2a2620;
  color: #c0b8aa;
  padding: 52px 20px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .logo img {
  height: 50px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.65;
  margin-top: 10px;
  color: #948776;
}

.footer-col h4 {
  color: #fff;
  font-size: .92rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  font-size: .86rem;
  color: #948776;
  transition: color .2s;
}

.footer-col a:hover {
  color: #f0c89c;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 0;
  font-size: .8rem;
  color: #6a604f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #2d4a3e;
    padding: 10px 20px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }

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

  .main-nav ul {
    flex-direction: column;
    gap: 2px;
  }

  .main-nav a {
    padding: 10px 14px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .article-content {
    padding: 28px 20px 36px;
    margin: -16px 10px 0;
  }

  .article-hero h1 {
    font-size: 1.55rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
