/*
Theme Name: Real Horizon Services
Theme URI: https://realhorizonservices.com
Author: Real Horizon Services
Description: Custom theme for Real Horizon Services income tax preparation site, with a built-in federal tax calculator and appointment booking system.
Version: 1.3.0
Requires PHP: 7.4
Text Domain: real-horizon
*/

:root {
  --bg-dark-1: #0c1f17;
  --bg-dark-2: #1c3d2e;
  --accent: #8fe3ac;
  --accent-strong: #4caf7d;
  --accent-deep: #2f7a53;
  --text-light: #f5f9f6;
  --text-muted: #cfe3d6;
  --text-dark: #16261e;
  --text-body: #3d4d45;
  --border-light: #e2ece6;
  --bg-section: #f6faf7;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 31, 23, 0.08);
  --shadow-hover: 0 16px 40px rgba(12, 31, 23, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { box-shadow: var(--shadow-hover); }
.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-light);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.14); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.site-header {
  background: var(--bg-dark-1);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-light);
}
.site-branding .logo-badge {
  flex: none;
  width: 68px;
  height: 68px;
  background: var(--white);
  border-radius: 16px;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-branding .logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.site-branding .logo-text { display: flex; flex-direction: column; }
.site-branding .site-title {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  color: var(--text-light);
}
.site-branding .site-tagline {
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  margin-top: 3px;
}
.primary-nav ul { display: flex; align-items: center; gap: 6px; }
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.primary-nav a:hover,
.primary-nav li.current a { background: rgba(255, 255, 255, 0.1); }
.primary-nav li.is-cta a {
  background: var(--accent-strong);
  color: var(--white);
}
.primary-nav li.is-cta a:hover { background: var(--accent-deep); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 18px;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(143, 227, 172, 0.12), transparent 45%),
    linear-gradient(160deg, var(--bg-dark-1), var(--bg-dark-2));
  color: var(--text-light);
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero .tagline {
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 18px;
}
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--text-muted);
  font-size: 17px;
}
.hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  background: var(--bg-dark-1);
  padding: 0 0 64px;
  color: var(--text-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.stat-card .stat-number {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-card .stat-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* Section generic */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--text-dark);
  margin: 0 0 14px;
  font-weight: 800;
}
.section-head p { color: var(--text-body); font-size: 16px; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--text-dark); }
.card p { margin: 0 0 16px; font-size: 14.5px; }
.card .learn-more {
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 14px;
}

/* Why choose */
.why-choose {
  background: var(--bg-dark-1);
  color: var(--text-light);
  padding: 80px 0;
}
.why-choose .section-head h2,
.why-choose .section-head p { color: var(--text-light); }
.why-choose .section-head p { color: var(--text-muted); }
.why-list {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
}
.why-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-strong));
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: 28px; margin: 0 0 12px; }
.cta-band p { margin: 0 0 26px; color: rgba(255, 255, 255, 0.9); }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--accent-deep);
}

/* Contact block */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.contact-grid .card h4 { margin: 10px 0 6px; color: var(--text-dark); }

/* Page header banner */
.page-banner {
  background: linear-gradient(160deg, var(--bg-dark-1), var(--bg-dark-2));
  color: var(--text-light);
  padding: 72px 0 56px;
  text-align: center;
}
.page-banner .tagline { color: var(--accent); font-style: italic; margin-bottom: 12px; }
.page-banner h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.page-banner p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }

/* Services filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.filter-bar button {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-bar button.active,
.filter-bar button:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

.service-detail {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.service-detail h3 { font-size: 22px; color: var(--text-dark); margin: 0 0 10px; }
.service-detail .benefits {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}
.service-detail .benefits li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
}
.service-detail .benefits li::before {
  content: "•";
  color: var(--accent-deep);
  position: absolute;
  left: 0;
  font-weight: 800;
}
.service-detail .meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.service-detail .consult-time { font-size: 13px; color: var(--text-body); }
.service-detail .consult-time strong { display: block; color: var(--text-dark); font-size: 15px; }

/* Forms */
.form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  color: var(--text-dark);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(76, 175, 125, 0.15);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-error { color: #c0392b; font-size: 13px; margin-top: 6px; }
.form-notice {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 600;
}
.form-notice.success { background: #eafaf1; color: var(--accent-deep); border: 1px solid #bfe9cf; }
.form-notice.error { background: #fdecea; color: #c0392b; border: 1px solid #f6c6c1; }

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
.side-card {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
}
.side-card h4 { margin: 0 0 14px; color: var(--text-dark); }
.side-card ul { display: grid; gap: 10px; margin-bottom: 24px; }
.side-card ul li { font-size: 14px; padding-left: 20px; position: relative; }
.side-card ul li::before { content: "✓"; color: var(--accent-deep); position: absolute; left: 0; font-weight: 800; }

/* Calculator results */
.calc-results {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
}
.calc-results h3 { margin: 0 0 18px; color: var(--text-dark); }
.calc-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.calc-result-grid .result-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
}
.result-box .label { font-size: 12.5px; color: var(--text-body); margin-bottom: 6px; }
.result-box .value { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.result-box.accent .value { color: var(--accent-deep); }
.calc-savings {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-strong));
  color: var(--white);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}
.calc-savings .value { font-size: 26px; font-weight: 800; }
.calc-empty { color: var(--text-body); text-align: center; padding: 40px 10px; }

/* Footer */
.site-footer {
  background: var(--bg-dark-1);
  color: var(--text-muted);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h3, .footer-grid h4 { color: var(--text-light); margin: 0 0 14px; }
.footer-about .tagline { color: var(--accent); font-style: italic; font-size: 14px; margin-bottom: 10px; }
.footer-about p { font-size: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { margin-bottom: 14px; font-size: 14px; }
.footer-hours .hours-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1000px) {
  .site-branding .site-tagline { display: none; }
}
@media (max-width: 900px) {
  .cards-grid, .stats-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .calc-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark-1); border-top: 1px solid rgba(255,255,255,0.08); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-branding .logo-badge { width: 54px; height: 54px; border-radius: 13px; padding: 6px; }
  .site-branding .site-title { font-size: 16px; }
}

/* Calculator extras */
.result-box.total { background: var(--bg-section); border-color: var(--accent-strong); }
.result-box.total .value { color: var(--accent-deep); }
.calc-note { font-size: 12.5px; color: var(--text-body); text-align: center; margin: 16px 0 0; opacity: .85; }
