/* =============================================
   HR2HR — Main Stylesheet
   ============================================= */

/* --- Variables --- */
:root {
  --navy: #0D1F2D;
  --navy-mid: #1A3444;
  --slate: #2E4A5E;
  --sky: #4A8FA8;
  --sky-light: #EAF4F8;
  --gold: #C9943A;
  --gold-light: #FDF5E6;
  --off-white: #F7F8FA;
  --white: #FFFFFF;
  --text: #1A2E3B;
  --text-mid: #3D5A6B;
  --text-light: #6B8A9A;
  --border: #D9E6EC;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(13,31,45,0.10);
  --shadow-lg: 0 12px 48px rgba(13,31,45,0.16);
  --font-body: 'Sora', system-ui, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
p { max-width: 68ch; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 112px 0; }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { text-decoration: none; }
.logo-text {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.main-nav a:hover, .main-nav a.active { color: var(--navy); background: var(--sky-light); }

.btn-nav {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--slate) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background: #b5822e; border-color: #b5822e; color: var(--white); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* --- Hero --- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,143,168,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(201,148,58,0.18);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(201,148,58,0.3);
}

.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 58ch;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.trust-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
}

.trust-bar-inner {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* --- Section Headers --- */
.section-header { margin-bottom: 52px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-mid); font-size: 1.05rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* --- Problem Section --- */
.section-alt { background: var(--off-white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-gold-light { background: var(--gold-light); }

/* --- Steps (How It Works) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step-number {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.step-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step-card p { font-size: 0.93rem; color: var(--text-mid); max-width: none; }

/* --- What We Handle --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--sky-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.feature-item h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.88rem; color: var(--text-mid); max-width: none; }

/* --- Profit Split --- */
.profit-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 640px;
}

.profit-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--border);
  margin: 20px 0;
  overflow: hidden;
  display: flex;
}

.profit-bar-you { background: var(--navy); border-radius: 6px 0 0 6px; width: 60%; }
.profit-bar-us { background: var(--sky); border-radius: 0 6px 6px 0; width: 40%; }

.profit-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.legend-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.testimonial-card p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  max-width: none;
}

.testimonial-author { color: var(--gold); font-weight: 600; font-size: 0.88rem; }

/* --- Who This Is For --- */
.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--sky-light);
  border-radius: var(--radius);
}

.audience-item-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.audience-item p { font-size: 0.93rem; color: var(--text); max-width: none; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin: 0 auto 32px; text-align: center; }
.cta-banner .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- FAQ --- */
.faq-list { max-width: 760px; }
.faq-group { margin-bottom: 48px; }
.faq-group-title { color: var(--gold); border-bottom: 2px solid var(--gold-light); padding-bottom: 8px; margin-bottom: 24px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question:hover { color: var(--sky); }

.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky);
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 600px; }

/* --- Blog / Resources --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.blog-tag {
  display: inline-block;
  background: var(--sky-light);
  color: var(--sky);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.blog-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.88rem; color: var(--text-mid); max-width: none; margin-bottom: 16px; }
.blog-card .read-more { font-size: 0.85rem; font-weight: 600; color: var(--sky); }

/* --- Contact / Form --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-mid); margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-detail a { color: var(--text); font-weight: 500; }
.contact-detail a:hover { color: var(--sky); }

.form-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--sky); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-success {
  background: #E6F7F0;
  border: 1px solid #34C27A;
  color: #186A42;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 16px;
  display: none;
}

/* --- Calculator --- */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.calc-inputs { padding: 40px; border-right: 1px solid var(--border); }
.calc-results { padding: 40px; background: var(--navy); color: var(--white); }

.calc-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.calc-inputs .calc-col-title { color: var(--text-light); }
.calc-results .calc-col-title { color: rgba(255,255,255,0.5); }

.slider-group { margin-bottom: 24px; }
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.slider-label span:first-child { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.slider-value { font-size: 1rem; font-weight: 700; color: var(--gold); }
.slider-sub { font-size: 0.78rem; color: var(--text-light); margin-bottom: 10px; }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--navy);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--navy);
  cursor: pointer;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.result-row-label { font-size: 0.88rem; color: rgba(255,255,255,0.65); }
.result-row-value { font-size: 1rem; font-weight: 600; color: var(--white); }

.result-highlight {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.result-highlight .label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.result-highlight .big-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
}
.result-annual { margin-top: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.result-annual span { color: rgba(255,255,255,0.85); font-weight: 600; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { font-size: 1.4rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; max-width: 38ch; }
.footer-email { color: var(--gold); font-weight: 500; font-size: 0.9rem; }
.footer-email:hover { color: var(--white); }

.footer-links { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.35); max-width: none; }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--white); }

/* --- Alert Message (contact success) --- */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #E6F7F0; border: 1px solid #34C27A; color: #186A42; }
.alert-error { background: #FEE8E8; border: 1px solid #E74C3C; color: #7B1A1A; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .calc-layout { grid-template-columns: 1fr; }
  .calc-inputs { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { gap: 32px; }
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 4px;
  }

  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; }

  .hero { padding: 64px 0 56px; }
  .hero-ctas { flex-direction: column; }
  .trust-bar-inner { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
}
