/*
Theme Name: HealthyCalcs
Theme URI: https://healthycalcs.com
Author: HealthyCalcs
Description: Modern SaaS-inspired health & wellness theme with micro-animations, hero gallery, and content-first design.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: healthycalcs
*/

/* ================================================================
   DESIGN TOKENS
================================================================ */
:root {
  /* Brand */
  --hc-teal-1:  #e6faf7;
  --hc-teal-2:  #b3f0e7;
  --hc-teal-3:  #4dd9c0;
  --hc-teal-4:  #16b89e;
  --hc-teal-5:  #0d9488;
  --hc-teal-6:  #0a7a71;
  --hc-teal-7:  #07615a;
  --hc-cyan:    #06cef0;
  --hc-cyan-dk: #0891b2;

  /* Neutrals */
  --hc-white:   #ffffff;
  --hc-gray-1:  #f8fafb;
  --hc-gray-2:  #f0f4f5;
  --hc-gray-3:  #e2eaec;
  --hc-gray-4:  #b0bec5;
  --hc-gray-5:  #607d8b;
  --hc-gray-6:  #37474f;
  --hc-gray-7:  #1c2b30;
  --hc-black:   #0d1517;

  /* Semantic */
  --hc-primary:    var(--hc-teal-5);
  --hc-accent:     var(--hc-cyan);
  --hc-text:       var(--hc-gray-7);
  --hc-text-muted: var(--hc-gray-5);
  --hc-bg:         var(--hc-white);
  --hc-surface:    var(--hc-gray-1);
  --hc-border:     var(--hc-gray-3);

  /* Customizer overrideable */
  --hc-color-primary:   #0d9488;
  --hc-color-secondary: #06cef0;
  --hc-hero-bg:         #0a7a71;

  /* Typography */
  --hc-font-display: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  --hc-font-body:    'DM Sans', system-ui, sans-serif;
  --hc-font-mono:    'DM Mono', 'Fira Mono', monospace;

  /* Scale */
  --hc-text-xs:  0.75rem;
  --hc-text-sm:  0.875rem;
  --hc-text-base:1rem;
  --hc-text-lg:  1.125rem;
  --hc-text-xl:  1.25rem;
  --hc-text-2xl: 1.5rem;
  --hc-text-3xl: 1.875rem;
  --hc-text-4xl: 2.25rem;
  --hc-text-5xl: 3rem;
  --hc-text-6xl: 3.75rem;

  /* Spacing */
  --hc-radius-sm: 6px;
  --hc-radius:    12px;
  --hc-radius-lg: 20px;
  --hc-radius-xl: 32px;

  /* Shadows */
  --hc-shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --hc-shadow:    0 4px 16px rgba(13,148,136,.1), 0 1px 4px rgba(0,0,0,.06);
  --hc-shadow-lg: 0 16px 48px rgba(13,148,136,.14), 0 4px 16px rgba(0,0,0,.08);
  --hc-shadow-xl: 0 32px 80px rgba(13,148,136,.18), 0 8px 24px rgba(0,0,0,.1);

  /* Animation */
  --hc-ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --hc-ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --hc-ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --hc-duration:   240ms;
  --hc-duration-lg:480ms;

  /* Layout */
  --hc-max-w:     1200px;
  --hc-max-w-text:720px;
}

/* ================================================================
   BASE RESET
================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--hc-font-body);
  font-size: var(--hc-text-base);
  line-height: 1.7;
  color: var(--hc-text);
  background: var(--hc-bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hc-primary); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--hc-font-display); line-height: 1.2; color: var(--hc-gray-7); font-weight: 700; }
p { color: var(--hc-text-muted); }

/* ================================================================
   GOOGLE FONTS IMPORT (loaded via functions.php enqueue)
================================================================ */

/* ================================================================
   LAYOUT CONTAINERS
================================================================ */
.hc-wrap       { width: 100%; max-width: var(--hc-max-w); margin: 0 auto; padding: 0 2rem; }
.hc-wrap--text { max-width: var(--hc-max-w-text); }
.site-wrapper  { display: flex; flex-direction: column; min-height: 100vh; }
.site-content  { flex: 1; }

/* ================================================================
   HEADER
================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background var(--hc-duration) var(--hc-ease),
              box-shadow var(--hc-duration) var(--hc-ease),
              backdrop-filter var(--hc-duration) var(--hc-ease);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--hc-border), var(--hc-shadow-sm);
}

.site-header.scrolled .header-logo-text .logo-healthy { color: var(--hc-teal-5); }
.site-header.scrolled .header-logo-text .logo-calcs   { color: var(--hc-gray-7); }
.site-header.scrolled .primary-nav a                  { color: var(--hc-gray-6); }
.site-header.scrolled .primary-nav a:hover            { color: var(--hc-primary); }
.site-header.scrolled .menu-toggle                     { color: var(--hc-gray-7); }

.header-inner {
  max-width: var(--hc-max-w);
  margin: 0 auto;
  padding: 1.125rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo-icon { font-size: 1.5rem; }
.header-logo-text { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; font-family: var(--hc-font-display); }
.logo-healthy { color: rgba(255,255,255,.85); }
.logo-calcs   { color: #fff; }
.site-header .custom-logo { max-height: 40px; width: auto; }

/* Nav */
.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { list-style: none; display: flex; gap: 2.25rem; }
.primary-nav a {
  font-size: var(--hc-text-sm);
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color var(--hc-duration) var(--hc-ease);
  letter-spacing: -.01em;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; }

/* Header CTA */
.header-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1.125rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: var(--hc-radius);
  font-size: var(--hc-text-sm);
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background var(--hc-duration) var(--hc-ease), border-color var(--hc-duration) var(--hc-ease);
}
.btn-header:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.4); color: #fff; }
.site-header.scrolled .btn-header {
  background: var(--hc-primary);
  border-color: var(--hc-primary);
  color: #fff;
}
.site-header.scrolled .btn-header:hover { background: var(--hc-teal-6); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  font-size: 1.5rem;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity var(--hc-duration) var(--hc-ease);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav__drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--hc-white);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform var(--hc-duration-lg) var(--hc-ease);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}
.mobile-nav.is-open .mobile-nav__drawer { transform: translateX(0); }
.mobile-nav__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--hc-gray-6);
  line-height: 1;
  padding: .25rem;
}
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block;
  padding: .75rem 1rem;
  color: var(--hc-gray-6);
  font-weight: 500;
  border-radius: var(--hc-radius-sm);
  transition: background var(--hc-duration) var(--hc-ease), color var(--hc-duration) var(--hc-ease);
}
.mobile-nav a:hover { background: var(--hc-teal-1); color: var(--hc-primary); }
.mobile-nav .btn-primary-full {
  display: block;
  text-align: center;
  padding: .875rem;
  background: var(--hc-primary);
  color: #fff;
  border-radius: var(--hc-radius);
  font-weight: 600;
}

@media (max-width: 860px) {
  .primary-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: block; pointer-events: none; }
  .mobile-nav.is-open { pointer-events: auto; }
}

/* ================================================================
   HERO — GALLERY MODE
================================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hc-hero-bg);
}

/* Gallery slides */
.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--hc-ease);
}
.hero-slide.is-active { opacity: 1; }

/* Gradient overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(10,122,113,.88) 0%,
    rgba(13,148,136,.72) 50%,
    rgba(6,180,206,.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--hc-max-w);
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  margin-bottom: 1.75rem;

  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp var(--hc-duration-lg) var(--hc-ease) .1s forwards;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--hc-cyan);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero-h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 1.5rem;

  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--hc-duration-lg) var(--hc-ease) .2s forwards;
}
.hero-h1 .accent { color: var(--hc-cyan); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.8);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 2.5rem;

  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--hc-duration-lg) var(--hc-ease) .32s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;

  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp var(--hc-duration-lg) var(--hc-ease) .44s forwards;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.15);

  opacity: 0;
  animation: fadeUp var(--hc-duration-lg) var(--hc-ease) .56s forwards;
}
.hero-stat-value { font-size: var(--hc-text-2xl); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stat-label { font-size: var(--hc-text-sm); color: rgba(255,255,255,.65); margin-top: .1rem; }

/* Gallery dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  display: flex;
  gap: .5rem;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: background var(--hc-duration) var(--hc-ease), transform var(--hc-duration) var(--hc-ease);
  padding: 0;
}
.hero-dot.is-active { background: #fff; transform: scale(1.3); }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--hc-radius);
  font-size: var(--hc-text-base);
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform var(--hc-duration) var(--hc-ease),
              box-shadow var(--hc-duration) var(--hc-ease),
              background var(--hc-duration) var(--hc-ease);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--hc-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13,148,136,.35);
}
.btn-primary:hover { background: var(--hc-teal-6); box-shadow: 0 8px 24px rgba(13,148,136,.45); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--hc-gray-7);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover { background: var(--hc-gray-1); color: var(--hc-gray-7); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--hc-primary);
  border: 1.5px solid var(--hc-primary);
}
.btn-outline:hover { background: var(--hc-teal-1); }

.btn-sm { padding: .5rem 1.125rem; font-size: var(--hc-text-sm); border-radius: var(--hc-radius-sm); }
.btn-lg { padding: 1rem 2.25rem; font-size: var(--hc-text-lg); }

/* Arrow icon animation */
.btn .arrow { transition: transform var(--hc-duration) var(--hc-ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ================================================================
   SECTION FRAMEWORK
================================================================ */
.section { padding: 6rem 2rem; }
.section--sm { padding: 4rem 2rem; }
.section--lg { padding: 8rem 2rem; }
.section--bg { background: var(--hc-surface); }
.section--dark { background: var(--hc-gray-7); color: #fff; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--hc-text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hc-primary);
  margin-bottom: .875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--hc-primary);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(var(--hc-text-2xl), 4vw, var(--hc-text-4xl));
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--hc-gray-7);
  margin-bottom: 1rem;
}
.section--dark .section-title { color: #fff; }

.section-sub {
  font-size: var(--hc-text-lg);
  color: var(--hc-text-muted);
  max-width: 560px;
  line-height: 1.6;
}
.section--dark .section-sub { color: rgba(255,255,255,.65); }

.section-header {
  margin-bottom: 4rem;
}

/* ================================================================
   FEATURES GRID
================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 2rem;
  transition: box-shadow var(--hc-duration) var(--hc-ease),
              transform var(--hc-duration) var(--hc-ease),
              border-color var(--hc-duration) var(--hc-ease);
  position: relative;
  overflow: hidden;
}
.section--bg .feature-card { background: var(--hc-white); }
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hc-teal-1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--hc-duration) var(--hc-ease);
}
.feature-card:hover { box-shadow: var(--hc-shadow-lg); transform: translateY(-4px); border-color: var(--hc-teal-3); }
.feature-card:hover::before { opacity: 1; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  background: var(--hc-teal-1);
  border-radius: var(--hc-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: background var(--hc-duration) var(--hc-ease), transform var(--hc-duration) var(--hc-ease);
}
.feature-card:hover .feature-icon-wrap { background: var(--hc-teal-2); transform: scale(1.05); }

.feature-card h3 {
  font-size: var(--hc-text-lg);
  font-weight: 700;
  color: var(--hc-gray-7);
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}
.feature-card p {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ================================================================
   CALCULATOR CARDS (list / grid)
================================================================ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.calc-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow var(--hc-duration) var(--hc-ease),
              transform var(--hc-duration) var(--hc-ease),
              border-color var(--hc-duration) var(--hc-ease);
  position: relative;
  overflow: hidden;
}
.calc-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hc-teal-4), var(--hc-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hc-duration-lg) var(--hc-ease);
}
.calc-card:hover { box-shadow: var(--hc-shadow); transform: translateY(-2px); border-color: var(--hc-teal-3); }
.calc-card:hover::after { transform: scaleX(1); }

.calc-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: var(--hc-text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hc-primary);
  margin-bottom: .25rem;
}
.calc-card h3 {
  font-size: var(--hc-text-base);
  font-weight: 700;
  color: var(--hc-gray-7);
  margin: 0;
  letter-spacing: -.01em;
}
.calc-card p {
  font-size: var(--hc-text-sm);
  color: var(--hc-text-muted);
  line-height: 1.55;
  flex: 1;
  margin: 0;
}
.calc-card__footer {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ================================================================
   ARTICLE CARDS
================================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--hc-duration) var(--hc-ease), transform var(--hc-duration) var(--hc-ease);
}
.article-card:hover { box-shadow: var(--hc-shadow-lg); transform: translateY(-3px); }

.article-card__img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--hc-teal-1), var(--hc-teal-2));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.article-card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; gap: .625rem; }
.article-card__cat {
  font-size: var(--hc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--hc-primary);
}
.article-card h3 { font-size: var(--hc-text-lg); font-weight: 700; letter-spacing: -.015em; color: var(--hc-gray-7); line-height: 1.3; }
.article-card p  { font-size: var(--hc-text-sm); color: var(--hc-text-muted); line-height: 1.6; flex: 1; margin: 0; }
.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-primary);
  margin-top: .5rem;
}
.article-card__link .arr { transition: transform var(--hc-duration) var(--hc-ease); }
.article-card:hover .arr { transform: translateX(4px); }

/* ================================================================
   OFFERS / DEAL CARDS
================================================================ */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--hc-duration) var(--hc-ease), transform var(--hc-duration) var(--hc-ease);
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hc-teal-4), var(--hc-cyan));
}
.offer-card:hover { box-shadow: var(--hc-shadow-lg); transform: translateY(-3px); }

.offer-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  background: var(--hc-teal-1);
  color: var(--hc-teal-6);
  border-radius: 999px;
  font-size: var(--hc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  align-self: flex-start;
}
.offer-card h3 { font-size: var(--hc-text-xl); font-weight: 700; color: var(--hc-gray-7); letter-spacing: -.015em; }
.offer-card p  { font-size: var(--hc-text-sm); color: var(--hc-text-muted); line-height: 1.6; flex: 1; margin: 0; }

/* ================================================================
   CTA BANNER
================================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--hc-teal-7) 0%, var(--hc-teal-5) 60%, var(--hc-cyan-dk) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}

.cta-banner .section-title { color: #fff; }
.cta-banner .section-sub   { color: rgba(255,255,255,.75); max-width: none; }

/* ================================================================
   PAGE HERO (inner pages)
================================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--hc-teal-7), var(--hc-teal-5));
  padding: 7rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hc-max-w);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(var(--hc-text-3xl), 5vw, var(--hc-text-5xl));
  font-weight: 800;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: .875rem;
}
.page-hero p.hero-sub {
  font-size: var(--hc-text-xl);
  color: rgba(255,255,255,.78);
  max-width: 680px;
  margin: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--hc-text-sm);
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .4; }

/* ================================================================
   SINGLE CALCULATOR PAGE
================================================================ */
.calculator-page {
  max-width: var(--hc-max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.5rem;
  align-items: start;
}
.calculator-main { min-width: 0; }
.calculator-sidebar {}

/* How to use */
.how-to-use {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}
.how-to-use h2 {
  font-size: var(--hc-text-xl);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--hc-gray-7);
}
.how-to-use ol, .how-to-use ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.how-to-use li { font-size: var(--hc-text-sm); color: var(--hc-text-muted); line-height: 1.6; }
.how-to-use p  { font-size: var(--hc-text-sm); color: var(--hc-text-muted); line-height: 1.6; margin: 0 0 .75rem; }

/* FAQ accordion */
.faq-section { margin-top: 2rem; }
.faq-section h2 { font-size: var(--hc-text-xl); font-weight: 700; margin-bottom: 1.25rem; }
.faq-item {
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: var(--hc-white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--hc-text-sm);
  font-weight: 600;
  color: var(--hc-gray-7);
  text-align: left;
  gap: 1rem;
  transition: background var(--hc-duration) var(--hc-ease);
}
.faq-question:hover { background: var(--hc-teal-1); }
.faq-question .icon { flex-shrink: 0; transition: transform var(--hc-duration) var(--hc-ease); font-size: .875rem; color: var(--hc-primary); }
.faq-item.is-open .icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--hc-duration-lg) var(--hc-ease);
}
.faq-item.is-open .faq-answer { max-height: 500px; }
.faq-answer__inner { padding: 0 1.5rem 1.25rem; }
.faq-answer p { font-size: var(--hc-text-sm); color: var(--hc-text-muted); line-height: 1.7; margin: 0; }

/* Related calculators sidebar */
.sidebar-box {
  background: var(--hc-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-box h3 { font-size: var(--hc-text-base); font-weight: 700; margin-bottom: 1rem; color: var(--hc-gray-7); }

.related-calc-list { display: flex; flex-direction: column; gap: .5rem; }
.related-calc-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--hc-radius-sm);
  border: 1px solid var(--hc-border);
  background: var(--hc-white);
  text-decoration: none;
  transition: border-color var(--hc-duration) var(--hc-ease), box-shadow var(--hc-duration) var(--hc-ease);
}
.related-calc-item:hover { border-color: var(--hc-teal-3); box-shadow: var(--hc-shadow-sm); }
.related-calc-item span { font-size: var(--hc-text-sm); font-weight: 500; color: var(--hc-gray-6); }
.related-calc-item .arr { margin-left: auto; color: var(--hc-primary); font-size: .75rem; transition: transform var(--hc-duration) var(--hc-ease); }
.related-calc-item:hover .arr { transform: translateX(3px); }

/* Offer sidebar box */
.offer-sidebar {
  background: linear-gradient(135deg, var(--hc-teal-7), var(--hc-teal-5));
  border-radius: var(--hc-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.offer-sidebar h3 { color: #fff; font-size: var(--hc-text-base); font-weight: 700; margin-bottom: .5rem; }
.offer-sidebar p  { color: rgba(255,255,255,.75); font-size: var(--hc-text-sm); line-height: 1.55; margin-bottom: 1rem; }

@media (max-width: 960px) {
  .calculator-page {
    grid-template-columns: 1fr;
  }
  .calculator-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
}

/* ================================================================
   ARTICLE SINGLE
================================================================ */
.article-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.article-body { line-height: 1.8; }
.article-body h2 { font-size: var(--hc-text-2xl); font-weight: 700; margin: 2.5rem 0 .875rem; color: var(--hc-gray-7); letter-spacing: -.02em; }
.article-body h3 { font-size: var(--hc-text-xl); font-weight: 700; margin: 2rem 0 .75rem; color: var(--hc-gray-7); }
.article-body p  { color: var(--hc-text-muted); margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { color: var(--hc-text-muted); margin-bottom: .5rem; }
.article-body strong { color: var(--hc-gray-7); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--hc-primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--hc-teal-1);
  border-radius: 0 var(--hc-radius) var(--hc-radius) 0;
}
.article-body blockquote p { color: var(--hc-teal-6); font-style: italic; margin: 0; }

/* ================================================================
   STATIC PAGES (About, Privacy, Terms, Contact)
================================================================ */
.static-page { max-width: 820px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.static-page h2 { font-size: var(--hc-text-2xl); font-weight: 700; color: var(--hc-gray-7); margin: 2.5rem 0 .875rem; letter-spacing: -.02em; }
.static-page h3 { font-size: var(--hc-text-xl); font-weight: 600; color: var(--hc-gray-7); margin: 1.75rem 0 .625rem; }
.static-page p  { color: var(--hc-text-muted); line-height: 1.8; margin-bottom: 1rem; }
.static-page ul { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.static-page li { color: var(--hc-text-muted); margin-bottom: .5rem; line-height: 1.7; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.contact-form__group { display: flex; flex-direction: column; gap: .4rem; }
.contact-form label { font-size: var(--hc-text-sm); font-weight: 600; color: var(--hc-gray-6); }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--hc-border);
  border-radius: var(--hc-radius);
  font-size: var(--hc-text-base);
  font-family: inherit;
  color: var(--hc-gray-7);
  background: var(--hc-white);
  transition: border-color var(--hc-duration) var(--hc-ease), box-shadow var(--hc-duration) var(--hc-ease);
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--hc-primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form__success {
  padding: 1rem 1.5rem;
  background: var(--hc-teal-1);
  border: 1px solid var(--hc-teal-3);
  border-radius: var(--hc-radius);
  color: var(--hc-teal-6);
  font-weight: 600;
  display: none;
}

/* About page cards */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.about-card {
  background: var(--hc-white);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--hc-duration) var(--hc-ease), transform var(--hc-duration) var(--hc-ease);
}
.about-card:hover { box-shadow: var(--hc-shadow); transform: translateY(-2px); }
.about-card .icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.about-card h3 { font-size: var(--hc-text-lg); font-weight: 700; color: var(--hc-gray-7); margin-bottom: .5rem; }
.about-card p  { font-size: var(--hc-text-sm); color: var(--hc-text-muted); margin: 0; line-height: 1.6; }

/* ================================================================
   FOOTER
================================================================ */
.site-footer {
  background: var(--hc-gray-7);
  color: rgba(255,255,255,.65);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--hc-max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; text-decoration: none; }
.footer-brand .logo span { font-size: 1.25rem; font-weight: 800; color: #fff; }
.footer-brand p { font-size: var(--hc-text-sm); line-height: 1.7; max-width: 280px; }
.footer-brand .social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-brand .social a {
  width: 36px; height: 36px;
  border-radius: var(--hc-radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: background var(--hc-duration) var(--hc-ease), color var(--hc-duration) var(--hc-ease);
  font-size: 1rem;
}
.footer-brand .social a:hover { background: var(--hc-primary); color: #fff; }

.footer-col h4 { font-size: var(--hc-text-sm); font-weight: 700; color: #fff; margin-bottom: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .625rem; }
.footer-col a { font-size: var(--hc-text-sm); color: rgba(255,255,255,.55); transition: color var(--hc-duration) var(--hc-ease); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--hc-text-xs);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ================================================================
   COOKIE BANNER
================================================================ */
.hc-cookie {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 480px;
  background: var(--hc-gray-7);
  color: rgba(255,255,255,.8);
  border-radius: var(--hc-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--hc-shadow-xl);
  z-index: 9999;
  display: none;
  animation: slideUp .4s var(--hc-ease) forwards;
}
.hc-cookie p { font-size: var(--hc-text-sm); margin-bottom: 1rem; line-height: 1.6; }
.hc-cookie a { color: var(--hc-teal-3); }
.hc-cookie__btns { display: flex; gap: .75rem; }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

@keyframes shimmer {
  from { background-position: -200% center; }
  to   { background-position: 200% center; }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--hc-ease), transform .6s var(--hc-ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ================================================================
   UTILITIES
================================================================ */
.text-center { text-align: center; }
.text-muted  { color: var(--hc-text-muted); }

/* Number pill */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 .5rem;
  background: var(--hc-teal-1);
  color: var(--hc-teal-6);
  border-radius: 999px;
  font-size: var(--hc-text-xs);
  font-weight: 700;
}

/* Divider */
.divider { border: none; border-top: 1px solid var(--hc-border); margin: 2rem 0; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 640px) {
  .hc-wrap { padding: 0 1rem; }
  .section { padding: 4rem 1rem; }
  .calc-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .offer-grid  { grid-template-columns: 1fr; }
  .hero-stats  { gap: 1.5rem; flex-wrap: wrap; }
  .header-inner { padding: 1rem; }
  .page-hero { padding: 6rem 1rem 3rem; }
  .calculator-page { padding: 2rem 1rem; }
  .article-page, .static-page { padding: 2rem 1rem 4rem; }
}