/*
Theme Name: SubItUp Landing Page
Theme URI: https://subitup.com
Author: SubItUp
Description: A custom WordPress theme for SubItUp landing page
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: subitup
*/

/* ==================== CSS Variables ==================== */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 13%, 18%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 13%, 18%);
  --primary: hsl(32, 95%, 54%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(187, 100%, 34%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(214, 32%, 95%);
  --muted-foreground: hsl(220, 13%, 46%);
  --accent: hsl(270, 45%, 58%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 32%, 91%);
  --radius: 0.75rem;
  --brand-orange: hsl(32, 95%, 54%);
  --brand-teal: hsl(187, 100%, 34%);
  --brand-blue-light: hsl(214, 32%, 95%);
  --brand-purple: hsl(270, 45%, 58%);
  --brand-pink: hsl(336, 84%, 58%);
  --brand-green: hsl(162, 63%, 41%);
  --brand-cyan: hsl(194, 100%, 50%);
}

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* ==================== Container ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: hsl(32, 95%, 45%);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  background-color: hsl(187, 100%, 28%);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ==================== Cards ==================== */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.5rem;
}

.card-header {
  padding: 1.5rem 1.5rem 0;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ==================== Header ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  height: 32px;
}

.main-nav {
  display: none;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/*
  The “Book Demo” link is an <a> styled as a button.
  Keep it visible on mobile so key outbound links aren’t hidden behind the hamburger.
*/
.header-right .desktop-only {
  display: inline-flex;
}

@media (max-width: 480px) {
  .header-right {
    gap: 0.5rem;
  }

  .header-right .desktop-only {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--foreground);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--background);
  z-index: 100;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  gap: 0.5rem;
}

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 0.75rem 0;
  transition: color 0.2s;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--primary);
}

.mobile-nav .mobile-cta {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  border-bottom: none;
}

/* ==================== Hero Section ==================== */
.hero {
  background: linear-gradient(135deg, var(--brand-orange), var(--primary), hsl(32, 95%, 50%));
  padding: 5rem 0 8rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .hero-description {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-visual {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
}

.hero-card-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  transform: rotate(6deg);
}

.hero-card {
  position: relative;
  background-color: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.hero-card-emoji {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.hero-card h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.hero-shift-preview {
  background-color: var(--brand-blue-light);
  border-radius: 0.75rem;
  padding: 1rem;
  text-align: left;
}

.hero-shift-preview .shift-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.hero-shift-preview .shift-header span:first-child {
  font-weight: 600;
  font-size: 0.875rem;
}

.hero-shift-preview .shift-header span:last-child {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.hero-shift-preview .shift-location {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==================== Problem/Solution Section ==================== */
.problem-solution {
  padding: 5rem 0;
  background-color: var(--brand-blue-light);
}

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

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

.ps-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.problems-card {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.problems-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.problems-card .icon {
  color: var(--destructive);
}

.solutions-card {
  background: linear-gradient(135deg, var(--secondary), var(--brand-teal));
  color: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.solutions-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.ps-list {
  list-style: none;
}

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ps-list .bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--destructive);
  margin-top: 8px;
  flex-shrink: 0;
}

.ps-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* ==================== Social Proof Section ==================== */
.social-proof {
  padding: 5rem 0;
  background-color: var(--background);
}

.logo-gallery {
  overflow: hidden;
  margin-bottom: 4rem;
}

.logo-scroll {
  display: flex;
  animation: scroll 30s linear infinite;
}

.logo-scroll:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
  transition: all 0.3s;
}

.logo-item img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 4rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

.testimonials-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.testimonial-card {
  padding: 2rem;
  border-radius: var(--radius);
  color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card.teal {
  background-color: var(--brand-teal);
}

.testimonial-card.purple {
  background-color: var(--brand-purple);
}

.testimonial-quote {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
}

.verticals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 64rem;
  margin: 3rem auto 0;
}

@media (min-width: 768px) {
  .verticals-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.vertical-link {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  transition: transform 0.3s;
}

.vertical-link:hover {
  transform: scale(1.05);
}

.vertical-link img {
  width: 100%;
  height: auto;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ==================== Features Section ==================== */
.features {
  padding: 5rem 0;
  background-color: var(--brand-blue-light);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s;
  height: 100%;
}

.feature-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.feature-icon.primary { color: var(--primary); }
.feature-icon.secondary { color: var(--secondary); }
.feature-icon.pink { color: var(--brand-pink); }
.feature-icon.green { color: var(--brand-green); }
.feature-icon.purple { color: var(--brand-purple); }
.feature-icon.cyan { color: var(--brand-cyan); }

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
}

/* ==================== FAQ Section ==================== */
.faq {
  padding: 5rem 0;
  background-color: var(--background);
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-question svg {
  transition: transform 0.3s;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--muted-foreground);
}

.faq-answer a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
}

.faq-answer a:hover {
  color: hsl(32, 95%, 45%);
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

/* ==================== Lead Form Section ==================== */
.lead-form-section {
  padding: 5rem 0;
  background-color: var(--secondary);
  color: white;
}

.lead-form-section .section-header h2,
.lead-form-section .section-header p {
  color: white;
}

.lead-form-section .section-header p {
  opacity: 0.9;
}

.form-card {
  max-width: 56rem;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.form-card h3 {
  font-size: 1.5rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group input,
.form-group select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(234, 137, 38, 0.2);
}

.form-submit {
  grid-column: 1 / -1;
  margin-top: 1rem;
}

.form-submit .btn {
  width: 100%;
}

/* ==================== Footer ==================== */
.site-footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-brand img {
  height: 32px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.875rem;
  opacity: 0.7;
}

.footer-links h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==================== Teal Button ==================== */
.btn-teal {
  background-color: var(--brand-teal);
  color: white;
}

.btn-teal:hover {
  background-color: hsl(187, 100%, 28%);
}

/* ==================== HubSpot Form Styling ==================== */
#hubspot-form-container {
  min-height: 400px;
}

#hubspot-form-container .hs-form {
  font-family: 'DM Sans', sans-serif;
}

#hubspot-form-container .hs-form-field {
  margin-bottom: 1rem;
}

#hubspot-form-container .hs-form-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: block;
}

#hubspot-form-container .hs-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

#hubspot-form-container .hs-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(234, 137, 38, 0.2);
}

#hubspot-form-container .hs-button {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

#hubspot-form-container .hs-button:hover {
  background-color: hsl(32, 95%, 45%);
}

/* ==================== Animations ==================== */
.animate-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-target.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Utility Classes ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-show { display: block; }
  .md-flex { display: flex; }
}
