/**
 * HostHorizon Theme - Main Stylesheet
 * All responsive styles for the theme
 */

:root {
  --blue: #1f4f7b;
  --blue-dark: #153a5b;
  --gold: #f0b323;
  --text: #1b2430;
  --muted: #6b7280;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #e5e7eb;
  --success: #0f766e;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 18px;
  --max: 1180px;
}

/* GLOBAL STYLES */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

h3 {
  font-size: 26px;
  margin: 32px 0 10px;
  color: var(--blue);
}

p {
  color: var(--text);
  font-size: 18px;
  margin: 0 0 1em;
}

.muted {
  color: var(--muted);
}

ul {
  padding-left: 22px;
}

/* TOP BAR */
.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* NAVIGATION / NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

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

.logo {
  font-weight: 800;
  font-size: 24px;
  color: var(--blue-dark);
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--blue);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--blue);
}

.btn-gold {
  background: var(--gold);
  color: #1f2937;
}

.btn-gold:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

/* Button with inline gold style */
.btn[style*="background: #f0b323"]:hover {
  filter: brightness(0.90);
  transform: translateY(-1px);
}

/* SECTIONS & CONTAINERS */
.section {
  padding: 88px 20px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero h1 .accent {
  color: var(--blue);
}

.lead {
  font-size: 22px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 30px;
  color: var(--gold);
  letter-spacing: -0.04em;
  margin-bottom: 3px;
}

.stat span {
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 36px;
  padding: 28px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(31, 79, 123, 0.22);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.hero-card-top {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.mini-card {
  flex: 1 1 160px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 18px;
}

.mini-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.mini-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.hero-card-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.hero-card-bottom h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #fff;
}

.hero-card-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* SECTION HEADERS */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}

/* FEATURES SECTION */
.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #eef4fb;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* SPLIT GRID */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.info-copy p {
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 24px;
}

.mini-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mini-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.mini-feature h4 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.mini-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* PRICING SECTION */
.pricing-wrap {
  background: var(--bg);
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  margin-top: -18px;
  margin-bottom: 26px;
  font-size: 16px;
}

.toggle {
  width: fit-content;
  margin: 0 auto 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  justify-content: center;
}

.toggle button {
  border: 0;
  background: transparent;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
}

.toggle button.active {
  background: #f3f6fb;
  color: var(--blue-dark);
}

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

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan.popular {
  background: var(--blue);
  color: #fff;
  border-color: transparent;
  transform: translateY(-6px);
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1f2937;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.plan h4 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.price {
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 4px;
  line-height: 1;
}

.per {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.plan.popular .per,
.plan.popular .feature-list li {
  color: rgba(255, 255, 255, 0.88);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.feature-list li {
  color: var(--text);
  font-size: 17px;
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
  margin-right: 10px;
}

.plan.popular .feature-list li::before {
  color: var(--gold);
}

.plan .btn {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* FAQ SECTION */
.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  background: #fff;
  border: 0;
  text-align: left;
  padding: 22px 24px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
}

.faq-q span:last-child {
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 17px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-q span:last-child {
  transform: rotate(45deg);
}

/* CONTACT SECTION */
.contact {
  background: var(--bg);
}

.contact-card {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.contact-box {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

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

.full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font: inherit;
  outline: none;
  transition: 0.2s ease;
  background: #fff;
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 79, 123, 0.09);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.help {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

/* FOOTER */
footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.92);
  padding: 28px 20px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-links a:hover {
  color: var(--gold);
}

/* MOBILE MENU TOGGLE */
.mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--blue-dark);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

/* BLOG / POST STYLES */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

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

.post-card-content {
  padding: 20px;
}

.post-card-title {
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.post-card-excerpt {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.post-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.post-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.post-content h2,
.post-content h3 {
  margin-top: 30px;
}

.post-content img {
  border-radius: var(--radius);
  margin: 20px 0;
}

/* UTILITY CLASSES */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.wp-block-image img {
  border-radius: var(--radius);
}

.hh-thankyou-box {
    background: #f5f8fb;
    border: 1px solid #dce3ea;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.hh-thankyou-box p {
    margin: 5px 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1080px) {
  .hero-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .plans,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    min-height: unset;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .plans,
  .feature-grid,
  .mini-feature-grid,
  .form-grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 50px 20px;
  }

  .price {
    font-size: 44px;
  }

  .lead,
  .section-head p,
  .info-copy p {
    font-size: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  p {
    font-size: 16px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ACCESSIBILITY */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border-width: 0;
}

/* PRINT STYLES */
@media print {
  .navbar,
  .topbar,
  footer {
    display: none;
  }
}
