/* CoHost Pro Main Stylesheet */

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

/* Color System */
:root {
  /* Brand colors */
  --color-navy: #2D3748;
  --color-orange: #E8663C;
  --color-orange-hover: #D4582F;
  --color-cream: #F5F0E8;

  /* Light theme (default for all interior pages) */
  --bg-primary: #FAF8F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F5F0E8;
  --text-primary: #1A1A1A;
  --text-body: #2D3748;
  --text-muted: #6B6560;
  --text-accent: #E8663C;
  --border-color: #E8E0D5;

  /* Dark theme (hero section, footer, dark cards) */
  --dark-bg: #2D3748;
  --dark-bg-deep: #1E2633;
  --dark-text-primary: #FFFFFF;
  --dark-text-body: #F5F0E8;
  --dark-text-muted: rgba(245, 240, 232, 0.6);
  --dark-text-accent: #E8663C;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

body {
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 600;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 32px); }

a {
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--text-accent);
}

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


/* ═══════════════════════════════════════════════
   NAVIGATION — COHOST PRO
   ═══════════════════════════════════════════════ */

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E0D5;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
}

/* Logo */
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #2D3748;
  text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-accent {
  color: #E8663C;
}
/* Legacy logo class support */
.logo .logo-pro,
.logo .dot-pro {
  color: var(--color-orange);
}

/* Logo images */
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
}
@media (max-width: 768px) {
  .logo-img { height: 28px; }
  .footer-logo-img { height: 40px; }
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  color: #2D3748;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-link:hover {
  color: #E8663C;
}
.chevron {
  font-size: 11px;
  margin-left: 2px;
}

/* Desktop dropdowns */
.nav-dropdown {
  position: relative;
}
.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: #FFFFFF;
  border: 1px solid #E8E0D5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 12px 0;
  min-width: 220px;
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-panel {
  display: block;
}
.dropdown-link {
  display: block;
  padding: 10px 24px;
  color: #2D3748;
  text-decoration: none;
  font-size: 14px;
}
.dropdown-link:hover {
  background: #FAF8F5;
  color: #E8663C;
}
.dropdown-trigger {
  display: flex;
  align-items: center;
}

/* CTA button in nav */
.nav-cta {
  background: #E8663C;
  color: #FFFFFF !important;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: #D4582F;
  color: #FFFFFF !important;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D3748;
  transition: transform 200ms ease;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #FFFFFF;
  z-index: 2000;
  overflow-y: auto;
  flex-direction: column;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E8E0D5;
}
.mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #2D3748;
  cursor: pointer;
  padding: 8px;
}
.mobile-nav {
  padding: 16px 0;
}
.mobile-link {
  display: block;
  padding: 16px 24px;
  color: #2D3748;
  text-decoration: none;
  font-size: 17px;
  border-bottom: 1px solid #F5F0E8;
}
.mobile-link:hover, .mobile-link:active {
  color: #E8663C;
}
.mobile-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  color: #2D3748;
  font-size: 17px;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 1px solid #F5F0E8;
  cursor: pointer;
  font-family: inherit;
}
.mobile-chevron {
  font-size: 18px;
  color: #6B6560;
  transition: transform 200ms ease;
}
.mobile-section-toggle.active .mobile-chevron {
  transform: rotate(45deg);
}
.mobile-section-items {
  display: none;
  background: #FAF8F5;
}
.mobile-section-items.open {
  display: block;
}
.mobile-sublink {
  display: block;
  padding: 14px 24px 14px 44px;
  color: #6B6560;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #F0EBE4;
}
.mobile-sublink:hover {
  color: #E8663C;
}
.mobile-cta {
  background: #E8663C;
  color: #FFFFFF !important;
  margin: 16px 24px;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
  border-bottom: none;
}
.mobile-cta:hover {
  background: #D4582F;
  color: #FFFFFF !important;
}
.mobile-login {
  text-align: center;
  color: #6B6560;
  font-size: 14px;
  border-bottom: none;
}

/* Homepage: dark nav overlaying hero */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(245, 240, 232, 0.1);
  z-index: 1000;
}
.page-home .site-header .logo {
  color: #FFFFFF;
}
.page-home .site-header .logo-img {
  filter: brightness(0) invert(1);
}
.page-home .site-header .logo-accent {
  color: var(--color-orange);
}
.page-home .site-header .nav-link,
.page-home .site-header .dropdown-trigger {
  color: #F5F0E8;
}
.page-home .site-header .nav-link:hover,
.page-home .site-header .dropdown-trigger:hover {
  color: var(--dark-text-accent);
}
.page-home .site-header .nav-cta {
  background: #E8663C;
  color: #FFFFFF !important;
}
.page-home .site-header .hamburger-line {
  background: #FFFFFF;
}

/* Homepage: scrolled state — fixed + light */
.page-home .site-header.scrolled {
  position: fixed;
  background: #FFFFFF;
  border-bottom: 1px solid #E8E0D5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.page-home .site-header.scrolled .logo {
  color: #2D3748;
}
.page-home .site-header.scrolled .logo-img {
  filter: none;
}
.page-home .site-header.scrolled .nav-link,
.page-home .site-header.scrolled .dropdown-trigger {
  color: #2D3748;
}
.page-home .site-header.scrolled .hamburger-line {
  background: #2D3748;
}


/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary,
.btn-nav {
  background: var(--color-orange);
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-nav:hover {
  background: var(--color-orange-hover);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--text-body);
  color: var(--text-body);
}

.btn-outline:hover {
  background: var(--text-body);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--dark-text-body);
  color: var(--dark-text-body);
}

.btn-ghost:hover {
  background: var(--dark-text-body);
  color: var(--dark-bg);
}


/* ═══════════════════════════════════════════════
   SECTION LABELS & LAYOUT
   ═══════════════════════════════════════════════ */
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-accent);
  margin-bottom: 16px;
  font-weight: 600;
}

/* Section titles and subtitles — breathing room */
.section-title {
  margin-bottom: 20px;
}
.section-subtitle {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Content blocks within sections */
section p {
  margin-bottom: 16px;
  line-height: 1.8;
}
section p:last-child {
  margin-bottom: 0;
}

/* Grid layouts — generous gap */
.pain-grid,
.services-grid,
.how-grid,
.why-grid,
.proof-grid {
  gap: 32px;
  margin-top: 40px;
}

/* Card-like elements */
.pain-card,
.service-card,
.how-card,
.why-card {
  padding: 32px;
  margin-bottom: 8px;
}
.pain-card h3,
.service-card h3,
.how-card h3,
.why-card h3 {
  margin-bottom: 16px;
}
.pain-card p,
.service-card p,
.how-card p,
.why-card p {
  line-height: 1.8;
}

/* Section CTAs */
.pain-cta,
.services-cta {
  margin-top: 40px;
}

/* Hero content spacing */
.hero-headline {
  margin-bottom: 24px;
}
.hero-sub {
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-trust {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
}

/* Page header spacing on interior pages */
.page-header .section-title {
  margin-bottom: 20px;
}
.page-header .section-subtitle {
  max-width: 720px;
  line-height: 1.8;
}

/* Testimonial */
.testimonial {
  max-width: 640px;
  margin: 40px auto 48px;
  text-align: center;
}
.testimonial blockquote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-body);
  position: relative;
  padding: 0 24px;
  margin-bottom: 16px;
}
.testimonial blockquote::before {
  content: '\201C';
  font-size: 64px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--color-orange);
  position: absolute;
  top: -20px;
  left: -8px;
  line-height: 1;
}
.testimonial cite {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .testimonial blockquote {
    font-size: 18px;
  }
  .stat-num {
    font-size: 28px;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


/* ═══════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════ */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #2D3748;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #2D3748;
  background: #FAF8F5;
  border: 1.5px solid #E8E0D5;
  border-radius: 6px;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #E8663C;
  box-shadow: 0 0 0 3px rgba(232, 102, 60, 0.1);
}
.btn-full {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* Legacy form styles */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-primary);
  color: var(--text-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(232, 102, 60, 0.1);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-body);
  font-size: 15px;
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  background: #2D3748;
  color: #F5F0E8;
  padding: 64px 40px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}
.footer-logo .logo-accent {
  color: #E8663C;
}
.footer-tagline {
  color: rgba(245, 240, 232, 0.7);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.footer-motto {
  color: #E8663C;
  font-size: 13px;
  font-style: italic;
}
.footer-heading {
  color: #FFFFFF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-link {
  display: block;
  color: rgba(245, 240, 232, 0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-link:hover {
  color: #E8663C;
}
.footer-partner {
  color: rgba(245, 240, 232, 0.5);
  font-size: 12px;
  margin-top: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.15);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
}

/* Legacy footer col styles */
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: #FFFFFF;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.7);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: #E8663C;
}
.footer-col p {
  color: rgba(245, 240, 232, 0.5);
}


/* ═══════════════════════════════════════════════
   SECTION SPACING & PAGE LAYOUT
   ═══════════════════════════════════════════════ */
section {
  padding: 96px 0;
}

.page-header {
  padding: 96px 0 48px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-card) 100%);
}

/* Dark Sections (Hero, Featured Sections) */
.section-dark,
.hero {
  background: var(--dark-bg);
  color: var(--dark-text-body);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.hero h1,
.hero h2,
.hero h3,
.hero h4 {
  color: var(--dark-text-primary);
}

.section-dark .eyebrow,
.hero .eyebrow {
  color: var(--dark-text-accent);
}

.section-dark p,
.hero p {
  color: var(--dark-text-body);
}

.section-dark .text-muted,
.hero .text-muted {
  color: var(--dark-text-muted);
}

.section-dark a,
.hero a {
  color: var(--dark-text-body);
}

.section-dark a:hover,
.hero a:hover {
  color: var(--dark-text-accent);
}

/* Dark section buttons */
.section-dark .btn-outline,
.hero .btn-outline {
  color: var(--dark-text-body);
  border-color: var(--dark-text-body);
}

.section-dark .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--dark-text-body);
  color: var(--dark-bg);
}

/* Homepage Hero Specific */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

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

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--text-accent);
}
.breadcrumb .sep {
  margin: 0 8px;
  color: var(--border-color);
}

/* Contact page styles */
.contact-form-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.contact-info {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-info a {
  color: var(--text-accent);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .site-header { padding: 0 20px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .site-footer {
    padding: 48px 24px 24px;
  }

  section {
    padding: 64px 0;
  }

  .contact-form-container {
    padding: 24px;
    margin: 0 16px;
  }
}

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

@media (min-width: 769px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}
