/*!
 * Red Hen OS - Custom Styles
 * Version: 1.0.0
 * Author: Ramon Madden / Wavyverse Studio
 * Description: Custom styling for Red Hen OS branding and visual identity
 */

:root {
  /* Dynamic header offset computed in footer.js snippet; fallback to 220px */
  --redhen-header-offset: 220px;
}

/* Ensure in-page anchor jumps account for sticky header */
html { scroll-behavior: smooth; }
body { 
  scroll-padding-top: var(--redhen-header-offset, 120px);
}
#contact-form { scroll-margin-top: var(--redhen-header-offset, 120px); }

/* ========================================
   Typography
   ======================================== */

body {
  font-family: var(--redhen-font-body);
  color: var(--redhen-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--redhen-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--redhen-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ========================================
   Links
   ======================================== */

a {
  color: var(--redhen-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--redhen-primary);
  text-decoration: underline;
}

/* ========================================
   Buttons
   ======================================== */

.wp-block-button__link,
.button,
.ast-button,
.btn,
button[type="submit"],
input[type="submit"],
.redhenos-btn {
  background: var(--redhen-primary);
  color: var(--redhen-white) !important;
  border: none;
  border-radius: 5px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.wp-block-button__link:hover,
.button:hover,
.ast-button:hover,
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.redhenos-btn:hover {
  background: var(--redhen-secondary);
  color: var(--redhen-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* Secondary Button Style */
.button-secondary,
.btn-secondary,
.redhenos-btn-secondary {
  background: transparent;
  color: var(--redhen-primary) !important;
  border: 2px solid var(--redhen-primary);
}

.button-secondary:hover,
.btn-secondary:hover,
.redhenos-btn-secondary:hover {
  background: var(--redhen-primary);
  color: var(--redhen-white) !important;
  border-color: var(--redhen-primary);
}

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  background: var(--redhen-white);
  border-bottom: 1px solid var(--redhen-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* Stronger shadow when page is scrolled */
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.main-header-bar {
  padding: 15px 0;
}

.site-title a,
.site-logo-img {
  transition: opacity 0.3s ease;
}

.site-title a:hover,
.site-logo-img:hover {
  opacity: 0.8;
}

/* ========================================
   Primary Navigation Menu
   ======================================== */

.main-navigation {
  font-family: var(--redhen-font-heading);
}

.main-navigation a {
  color: var(--redhen-dark);
  font-weight: 500;
  font-size: 16px;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
  position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  color: var(--redhen-primary);
  text-decoration: none;
}

/* Underline effect on hover */
.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--redhen-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  transform: scaleX(1);
}

/* Desktop Menu Horizontal Layout */
@media (min-width: 922px) {
  .main-header-menu {
    display: flex;
    align-items: center;
  }
  
  .main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .main-navigation li {
    position: relative;
    margin: 0;
  }
}

/* ========================================
   Dropdown / Submenu Styles
   ======================================== */

.main-navigation ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--redhen-white);
  min-width: 220px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--redhen-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-radius: 0 0 5px 5px;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-navigation ul ul a {
  padding: 12px 20px;
  border-bottom: 1px solid var(--redhen-light);
}

.main-navigation ul ul a:hover {
  background: var(--redhen-light);
  padding-left: 25px;
}

.main-navigation ul ul li:last-child a {
  border-bottom: none;
}

/* Third Level Dropdown */
.main-navigation ul ul ul {
  left: 100%;
  top: 0;
  margin-left: 1px;
}

/* Dropdown Indicator */
.main-navigation li.menu-item-has-children > a::before {
  content: '▾';
  margin-left: 5px;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.main-navigation ul ul li.menu-item-has-children > a::before {
  content: '▸';
  float: right;
}

/* ========================================
   Mobile Navigation - Use Astra Defaults
   ======================================== */

/* Let Astra handle all mobile menu functionality with its defaults */
/* Only hide the download button on mobile if needed */
@media (max-width: 921px) {
  .ast-header-button-1 {
    display: none;
  }
  
  /* Remove desktop underline effect on mobile */
  .ast-header-break-point .main-navigation a::after {
    display: none;
  }
}

/* ========================================
   Footer Navigation Menu
   ======================================== */

.footer-navigation {
  margin-top: 20px;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-navigation a {
  color: var(--redhen-light);
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-navigation a:hover {
  color: var(--redhen-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 2px;
}

/* In the main footer grid, Quick Links should stack vertically */
.footer-main .footer-navigation ul {
  display: block !important;
  gap: 0 !important;
  justify-content: flex-start !important;
}

/* ========================================
   Social Menu
   ======================================== */

.social-navigation ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-navigation a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--redhen-primary);
  color: var(--redhen-white);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.social-navigation a:hover {
  background: var(--redhen-secondary);
  transform: translateY(-3px);
  text-decoration: none;
}

/* ========================================
   Hero Section
   ======================================== */

.redhenos-hero {
  background: linear-gradient(135deg, var(--redhen-dark) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.redhenos-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.redhenos-hero > * {
  position: relative;
  z-index: 2;
}

.redhenos-hero h1 {
  color: var(--redhen-white);
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  margin-bottom: 20px;
  font-weight: 800;
}

.redhenos-hero p {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.redhenos-hero-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .redhenos-hero {
    padding: 60px 20px;
  }
  
  .redhenos-hero h1 {
    font-size: 2rem;
  }
  
  .redhenos-hero p {
    font-size: 1.1rem;
  }
}

/* ========================================
   Features Section
   ======================================== */

.redhenos-features {
  padding: 80px 20px;
  background: var(--redhen-light);
}

.redhenos-features-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--redhen-dark);
}

.redhenos-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.redhenos-feature-card {
  background: var(--redhen-white);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.redhenos-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.redhenos-feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--redhen-primary);
}

.redhenos-feature-card h3 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.redhenos-feature-card p {
  color: var(--redhen-gray-dark);
  line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */

.redhenos-how-it-works {
  padding: 80px 20px;
  background: var(--redhen-white);
}

.redhenos-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 50px auto 0;
}

.redhenos-step {
  text-align: center;
  position: relative;
}

.redhenos-step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--redhen-primary);
  color: var(--redhen-white);
  border-radius: 50%;
  line-height: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.redhenos-step h3 {
  margin-bottom: 15px;
  color: var(--redhen-dark);
}

.redhenos-step p {
  color: var(--redhen-gray-dark);
}

/* ========================================
   Mission Section
   ======================================== */

.redhenos-mission {
  padding: 80px 20px;
  background: var(--redhen-dark);
  color: var(--redhen-white);
  text-align: center;
}

.redhenos-mission h2 {
  color: var(--redhen-white);
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.redhenos-mission p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

/* ========================================
   Footer
   ======================================== */

.site-footer,
.redhenos-footer {
  background: var(--redhen-dark);
  color: var(--redhen-light);
}

/* Main Footer Area */
.footer-main {
  padding: 48px 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer Grid Layout */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
}

/* Balance rows on mid-width screens to avoid a lone column on the second row */
@media (max-width: 1099px) and (min-width: 769px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 32px;
    align-items: start;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Footer Columns */
.footer-column {
  margin-bottom: 20px;
}

.footer-heading {
  color: var(--redhen-white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--redhen-primary);
}

.footer-description {
  color: var(--redhen-light);
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.9;
  max-width: 520px;
  font-size: 0.98rem;
}

/* Footer Menu Styles */
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--redhen-light);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 12px;
}

.footer-menu a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--redhen-primary);
  font-weight: bold;
  font-size: 0.95em;
  transition: left 0.3s ease;
}

.footer-menu a:hover {
  color: var(--redhen-primary);
  padding-left: 20px;
  text-decoration: none;
}

.footer-menu a:hover::before {
  left: 3px;
}

/* Footer Social Icons */
.footer-social {
  margin-top: 20px;
}

.footer-social .social-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--redhen-white);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--redhen-primary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 20px 40px 20px !important;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright,
.footer-credits {
  margin: 0;
}

.footer-copyright p,
.footer-credits p {
  margin: 0;
  color: var(--redhen-light);
  font-size: 14px;
  opacity: 0.8;
}

.footer-bottom a {
  color: var(--redhen-light);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.footer-bottom a:hover {
  color: var(--redhen-primary);
  border-bottom-color: var(--redhen-primary);
  text-decoration: none;
}

/* Mobile Footer Bottom */
@media (max-width: 600px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Footer Links Accessibility */
.site-footer a:focus {
  outline: 2px solid var(--redhen-primary);
  outline-offset: 2px;
}

/* ========================================
   About Page Styles
   ======================================== */

/* About Hero */
.redhenos-about-hero {
  background: linear-gradient(135deg, var(--redhen-dark) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  padding: 100px 20px 80px;
  text-align: center;
}

.about-hero-title {
  color: var(--redhen-white);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin-bottom: 15px;
  font-weight: 800;
}

.about-hero-subtitle {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.5rem);
  margin-bottom: 25px;
  opacity: 0.95;
  font-weight: 600;
}

.about-hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* Section Styling */
.redhenos-section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--redhen-dark);
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--redhen-primary);
}

/* Our Story Section */
.redhenos-story {
  background: var(--redhen-white);
}

.story-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.story-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--redhen-gray-dark);
}

.story-text strong {
  color: var(--redhen-primary);
}

.story-placeholder {
  background: var(--redhen-light);
  border-radius: 10px;
  padding: 50px 30px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.story-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
}

.story-placeholder p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--redhen-dark);
}

@media (max-width: 768px) {
  .story-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-hero-title {
    font-size: 2.5rem;
  }
}

/* Mission & Vision Section */
.redhenos-mission-vision {
  background: var(--redhen-light);
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.mv-card {
  background: var(--redhen-white);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mv-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.mv-card h3 {
  color: var(--redhen-dark);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.mv-card p {
  color: var(--redhen-gray-dark);
  line-height: 1.8;
}

/* What Makes Us Different */
.redhenos-different {
  background: var(--redhen-white);
}

.different-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.different-item {
  padding: 30px;
  background: var(--redhen-light);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.different-item:hover {
  background: var(--redhen-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.different-item h4 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.different-item p {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
}

/* Wavyverse About Section */
.redhenos-wavyverse-about {
  background: var(--redhen-dark);
  color: var(--redhen-white);
  text-align: center;
}

.redhenos-wavyverse-about .section-title {
  color: var(--redhen-white);
}

.redhenos-wavyverse-about .section-title::after {
  background: var(--redhen-primary);
}

.wavyverse-about-content {
  max-width: 800px;
  margin: 0 auto;
}

.wavyverse-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.wavyverse-about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 20px;
}

.wavyverse-about-content a {
  color: var(--redhen-primary);
  text-decoration: underline;
}

.wavyverse-about-content a:hover {
  color: var(--redhen-secondary);
}

.wavyverse-about-cta {
  margin-top: 40px;
}

/* Team Section */
.redhenos-team {
  background: var(--redhen-white);
}

.team-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--redhen-gray-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.team-member {
  text-align: center;
  padding: 30px;
  background: var(--redhen-light);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-avatar {
  font-size: 4rem;
  margin-bottom: 20px;
}

.team-member h4 {
  color: var(--redhen-dark);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.team-role {
  color: var(--redhen-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.team-member p:last-child {
  color: var(--redhen-gray-dark);
  line-height: 1.6;
}

/* About CTA Section */
.redhenos-about-cta {
  background: linear-gradient(135deg, var(--redhen-secondary) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  text-align: center;
}

.redhenos-about-cta h2 {
  color: var(--redhen-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.redhenos-about-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.8;
}

.about-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Features Page Styles
   ======================================== */

/* Features Hero */
.redhenos-features-hero {
  background: linear-gradient(135deg, var(--redhen-secondary) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  padding: 100px 20px 80px;
  text-align: center;
}

.features-hero-title {
  color: var(--redhen-white);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin-bottom: 15px;
  font-weight: 800;
}

.features-hero-subtitle {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.5rem);
  margin-bottom: 25px;
  opacity: 0.95;
  font-weight: 600;
}

.features-hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* Core Features Grid */
.features-main-grid {
  background: var(--redhen-light);
}

.feature-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-detailed-card {
  background: var(--redhen-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-detailed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-detailed-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.feature-detailed-card h3 {
  color: var(--redhen-dark);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.feature-tagline {
  color: var(--redhen-primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.feature-description {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 8px 0;
  color: var(--redhen-gray-dark);
  font-size: 15px;
  line-height: 1.6;
}

/* Additional Features */
.features-additional {
  background: var(--redhen-white);
}

.additional-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.additional-feature {
  text-align: center;
  padding: 30px 20px;
  background: var(--redhen-light);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.additional-feature:hover {
  background: var(--redhen-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.additional-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
}

.additional-feature h4 {
  color: var(--redhen-dark);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.additional-feature p {
  color: var(--redhen-gray-dark);
  font-size: 14px;
  line-height: 1.6;
}

/* Use Cases */
.features-use-cases {
  background: var(--redhen-light);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.use-case-card {
  background: var(--redhen-white);
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.use-case-card h3 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.use-case-card p {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
}

/* Pricing Teaser */
.features-pricing-teaser {
  background: var(--redhen-white);
}

.pricing-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--redhen-gray-dark);
}

.pricing-cards-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.pricing-card-simple {
  background: var(--redhen-light);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card-simple:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card-simple.featured {
  background: var(--redhen-primary);
  color: var(--redhen-white);
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.pricing-card-simple.featured:hover {
  transform: scale(1.08) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--redhen-secondary);
  color: var(--redhen-white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.pricing-card-simple h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.pricing-card-simple.featured h3 {
  color: var(--redhen-white);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--redhen-primary);
  margin-bottom: 15px;
}

.pricing-card-simple.featured .price {
  color: var(--redhen-white);
}

.pricing-card-simple p:last-child {
  color: var(--redhen-gray-dark);
  font-size: 14px;
}

.pricing-card-simple.featured p:last-child {
  color: var(--redhen-white);
  opacity: 0.9;
}

.pricing-cta {
  text-align: center;
}

.pricing-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--redhen-gray-dark);
}

/* Features Final CTA */
.features-final-cta {
  background: linear-gradient(135deg, var(--redhen-dark) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  text-align: center;
}

.features-final-cta h2 {
  color: var(--redhen-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.features-final-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.8;
}

.features-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .features-hero-title {
    font-size: 2.5rem;
  }
  
  .feature-detailed-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card-simple.featured {
    transform: scale(1);
  }
}

/* ========================================
   Contact Page Styles
   ======================================== */

/* Contact Hero */
.redhenos-contact-hero {
  background: linear-gradient(135deg, var(--redhen-primary) 0%, var(--redhen-secondary) 100%);
  color: var(--redhen-white);
  padding: 100px 20px 80px;
  text-align: center;
}

.contact-hero-title {
  color: var(--redhen-white);
  font-size: 3.5rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.contact-hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 25px;
  opacity: 0.95;
  font-weight: 600;
}

.contact-hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

/* Contact Main Grid */
.contact-main {
  background: var(--redhen-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Contact Form */
.contact-form-container {
  background: var(--redhen-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.contact-form-container h2 {
  color: var(--redhen-dark);
  margin-bottom: 30px;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--redhen-dark);
  font-weight: 600;
  font-size: 14px;
}

.required {
  color: var(--redhen-primary);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  margin-top: 10px;
}

.form-note {
  text-align: center;
  margin-top: 15px;
  color: var(--redhen-gray-dark);
}

/* Contact Info */
.contact-info-container h2 {
  color: var(--redhen-dark);
  margin-bottom: 30px;
  font-size: 2rem;
}

.contact-info-block {
  background: var(--redhen-white);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-info-block:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contact-info-block.highlight {
  background: linear-gradient(135deg, var(--redhen-light) 0%, var(--redhen-white) 100%);
  border: 2px solid var(--redhen-primary);
}

.contact-info-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-info-block h3 {
  color: var(--redhen-dark);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.contact-info-block p {
  color: var(--redhen-gray-dark);
  margin-bottom: 8px;
}

.contact-info-detail {
  font-size: 14px;
  opacity: 0.8;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-social-links a {
  color: var(--redhen-secondary);
  font-weight: 500;
}

/* FAQ Section */
.contact-faq {
  background: var(--redhen-white);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.faq-item {
  background: var(--redhen-light);
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: var(--redhen-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.faq-item h3 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.faq-item p {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
}

.faq-cta p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--redhen-gray-dark);
}

/* Contact Wavyverse */
.contact-wavyverse {
  background: var(--redhen-light);
}

.wavyverse-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--redhen-white);
  padding: 50px 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.wavyverse-box h2 {
  color: var(--redhen-dark);
  margin-bottom: 20px;
  font-size: 2rem;
}

.wavyverse-box p {
  color: var(--redhen-gray-dark);
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Contact Final CTA */
.contact-final-cta {
  background: linear-gradient(135deg, var(--redhen-dark) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  text-align: center;
}

.contact-final-cta h2 {
  color: var(--redhen-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact-final-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-hero-title {
    font-size: 2.5rem;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Forms
   ======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
textarea,
select {
  border: 2px solid var(--redhen-gray-light);
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  width: 100%;
  max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--redhen-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Contact form UX polish */
.contact-form-container .form-group { margin-bottom: 22px; }
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="url"],
.contact-form-container input[type="password"],
.contact-form-container input[type="search"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
  padding: 14px 16px;
  min-height: 44px;
  line-height: 1.4;
}
.contact-form-container textarea { min-height: 120px; resize: vertical; }
.contact-form-container .btn-submit { padding: 14px 18px; min-height: 48px; }
.form-group .help-text { color: var(--redhen-gray-dark); font-size: 0.92rem; margin-top: 6px; opacity: 0.9; }
.is-error input,
.is-error textarea,
.is-error select { border-color: #e74c3c; box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15); }
.is-success input,
.is-success textarea,
.is-success select { border-color: #27ae60; box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15); }
.form-message { padding: 12px 14px; border-radius: 6px; margin: 10px 0 0; font-size: 0.95rem; }
.form-message.error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }
.form-message.success { background: #e7f6ed; color: #1e8449; border: 1px solid #c3e6cb; }
@media (max-width: 768px) {
  .contact-form-container input[type="text"],
  .contact-form-container input[type="email"],
  .contact-form-container input[type="url"],
  .contact-form-container input[type="password"],
  .contact-form-container input[type="search"],
  .contact-form-container input[type="tel"],
  .contact-form-container textarea,
  .contact-form-container select { min-height: 48px; }
  .contact-form-container .btn-submit { font-size: 1rem; padding: 16px; }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 20px;
}

/* ========================================
   Accessibility
   ======================================== */

/* Visible focus styles for keyboard users */
:where(a, button, .btn, .redhenos-btn, [role="button"])::before { /* keep selectors stable */ }
:where(a, button, .btn, .redhenos-btn, [role="button"]):focus-visible {
  outline: 2px solid var(--redhen-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.footer-menu a:focus-visible,
.footer-navigation a:focus-visible {
  outline: 2px solid var(--redhen-primary);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Skip to content link */
.skip-link {
  background: var(--redhen-primary);
  color: var(--redhen-white);
  padding: 10px 15px;
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 100000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Plan/Pricing Page Styles
   ======================================== */

/* Plan Hero - Enhanced with stronger selectors */
section.redhenos-plan-hero {
  background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%) !important;
  color: #ffffff !important;
  padding: 100px 20px 80px !important;
  text-align: center !important;
  margin: 0 !important;
  width: 100% !important;
}

.redhenos-plan-hero .plan-hero-title {
  color: #ffffff !important;
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem) !important;
  margin-bottom: 15px !important;
  font-weight: 800 !important;
}

.redhenos-plan-hero .plan-hero-subtitle {
  font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.5rem) !important;
  margin-bottom: 25px !important;
  opacity: 0.95;
  font-weight: 600 !important;
  color: #ffffff !important;
}

.redhenos-plan-hero .plan-hero-description {
  font-size: 1.2rem !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  line-height: 1.8 !important;
  opacity: 0.9;
  color: #ffffff !important;
}

/* Pricing Cards Section - Enhanced */
section.redhenos-pricing-cards {
  background: #ecf0f1 !important;
  padding: 28px 20px 80px !important; /* further reduced gap under hero */
  margin-top: 0 !important;
  scroll-margin-top: calc(var(--redhen-header-offset, 160px) + 20px);
}

.redhenos-pricing-cards .container,
.redhenos-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.redhenos-pricing-cards .pricing-grid {
  display: grid !important;
  grid-auto-flow: row !important; /* preserve DOM order */
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  align-items: stretch !important;
}
@media (max-width: 1100px) {
  .redhenos-pricing-cards .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.pricing-grid .pricing-card {
  background: #ffffff !important;
  border-radius: 10px !important;
  padding: 66px 30px !important; /* extra top space for badge */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: auto !important;
}

.pricing-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

.pricing-card.featured {
  background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%) !important;
  color: #ffffff !important;
  /* Avoid layout/look "folding" by not scaling the card */
  transform: none !important;
  border: 3px solid #3498db !important;
  z-index: 1;
  /* Display featured inline with other cards on desktop */
  grid-column: auto !important;
}



.pricing-card.featured:hover {
  /* Elevate without changing width to prevent visual folding */
  transform: translateY(-10px) !important;
}

.pricing-card.featured .plan-name,
.pricing-card.featured .plan-tagline,
.pricing-card.featured .plan-description {
  color: #ffffff !important;
}

.pricing-card .popular-badge {
  position: absolute !important;
  top: 14px !important; /* slightly reduced to tighten vertical spacing */
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #2c3e50 !important;
  color: #ffffff !important;
  padding: 6px 20px !important;
  border-radius: 20px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  z-index: 2;
}

.pricing-card .plan-header {
  text-align: center !important;
  margin-bottom: 25px !important;
}

.pricing-card .plan-name {
  font-size: 2rem !important;
  color: #2c3e50 !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
}

.pricing-card.featured .plan-name {
  color: #ffffff !important;
}

.pricing-card .plan-tagline {
  color: #555 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.pricing-card.featured .plan-tagline {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

.pricing-card .plan-price {
  text-align: center !important;
  margin-bottom: 25px !important;
  padding-bottom: 25px !important;
  border-bottom: 2px solid #ecf0f1 !important;
}

.pricing-card.featured .plan-price {
  border-bottom-color: rgba(255, 255, 255, 0.3) !important;
}

.plan-price .price-amount {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #e74c3c !important;
  line-height: 1 !important;
  display: inline-block !important;
}
@media (max-width: 1100px) {
  .plan-price .price-amount { font-size: 3rem !important; }
}
@media (max-width: 768px) {
  .plan-price .price-amount { font-size: 2.5rem !important; }
}

.pricing-card.featured .price-amount {
  color: #ffffff !important;
}

.plan-price .price-period {
  font-size: 1.1rem !important;
  color: #555 !important;
  margin-left: 5px !important;
}

.pricing-card.featured .price-period {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

.pricing-card .plan-description {
  text-align: center !important;
  color: #555 !important;
  line-height: 1.7 !important;
  margin-bottom: 30px !important;
  font-size: 15px !important;
}

.pricing-card.featured .plan-description {
  color: #ffffff !important;
}

.pricing-card .plan-features {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
  flex-grow: 1 !important;
}

.plan-features li {
  padding: 12px 0 !important;
  color: #555 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  border-bottom: 1px solid #ecf0f1 !important;
}

.pricing-card.featured .plan-features li {
  color: #ffffff !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

.plan-features li:last-child {
  border-bottom: none !important;
}

.pricing-card .plan-cta {
  text-align: center !important;
  margin-top: auto !important;
}

.plan-cta .redhenos-btn,
.plan-cta .redhenos-btn-secondary {
  width: 100% !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  display: block !important;
}

/* Plan Comparison Section */
.redhenos-plan-comparison {
  background: var(--redhen-white);
}

.comparison-note {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--redhen-gray-dark);
  font-size: 1.1rem;
  line-height: 1.8;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-feature {
  background: var(--redhen-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.comparison-feature:hover {
  background: var(--redhen-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.comparison-feature h4 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.comparison-feature p {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
  font-size: 15px;
}

/* Plan Stats Section */
.redhenos-plan-stats {
  background: var(--redhen-dark);
  color: var(--redhen-white);
  text-align: center;
}

.redhenos-plan-stats .section-title {
  color: var(--redhen-white);
}

.redhenos-plan-stats .section-title::after {
  background: var(--redhen-primary);
}

.stats-intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 50px;
  opacity: 0.95;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--redhen-primary);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--redhen-light);
  font-weight: 500;
}

/* Plan FAQ Section */
.redhenos-plan-faq {
  background: var(--redhen-light);
}

.redhenos-plan-faq .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.redhenos-plan-faq .faq-item {
  background: var(--redhen-white);
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.redhenos-plan-faq .faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.redhenos-plan-faq .faq-item h3 {
  color: var(--redhen-dark);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.redhenos-plan-faq .faq-item p {
  color: var(--redhen-gray-dark);
  line-height: 1.7;
}

/* Plan Wavyverse Section */
.redhenos-plan-wavyverse {
  background: var(--redhen-white);
}

.redhenos-plan-wavyverse .wavyverse-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--redhen-light) 0%, var(--redhen-white) 100%);
  padding: 50px 40px;
  border-radius: 10px;
  border: 2px solid var(--redhen-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.redhenos-plan-wavyverse .wavyverse-box h2 {
  color: var(--redhen-dark);
  margin-bottom: 20px;
  font-size: 2rem;
}

.redhenos-plan-wavyverse .wavyverse-box p {
  color: var(--redhen-gray-dark);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

/* Plan Final CTA */
.redhenos-plan-final-cta {
  background: linear-gradient(135deg, var(--redhen-secondary) 0%, var(--redhen-primary) 100%);
  color: var(--redhen-white);
  text-align: center;
}

.redhenos-plan-final-cta h2 {
  color: var(--redhen-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.redhenos-plan-final-cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.95;
  line-height: 1.8;
}

.plan-final-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Mobile Responsive for Plan Page */
@media (max-width: 768px) {
  .plan-hero-title {
    font-size: 2.5rem;
  }
  
  .redhenos-pricing-cards .pricing-grid {
    grid-template-columns: 1fr !important;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1) translateY(-5px);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .comparison-grid,
  .redhenos-plan-faq .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Global sticky-header clearance for hero sections
   ======================================== */
section.redhenos-hero,
section.redhenos-about-hero,
section.redhenos-features-hero,
section.redhenos-contact-hero,
section.redhenos-plan-hero {
  /* Guarantee hero content clears the sticky header across pages */
  padding-top: max(var(--redhen-header-offset, 220px), 100px) !important;
}

@media (max-width: 768px) {
  section.redhenos-hero,
  section.redhenos-about-hero,
  section.redhenos-features-hero,
  section.redhenos-contact-hero,
  section.redhenos-plan-hero {
    padding-top: max(var(--redhen-header-offset, 140px), 80px) !important;
  }
}

/* Global section rhythm */
.redhenos-section {
  padding: clamp(60px, 8vw, 90px) 20px;
}
.section-title {
  margin-bottom: clamp(40px, 6vw, 60px);
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .site-header,
  .site-footer,
  .redhenos-hero-buttons {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* ========================================
   Readability Polish (About, Features, Footer) + Mobile Adjustments
   ======================================== */

.redhenos-section p,
.redhenos-section li {
  line-height: 1.75;
}

.redhenos-section p + p {
  margin-top: 0.7em;
}

.redhenos-section ul,
.redhenos-section ol {
  margin: 0.8em 0 1.2em 1.2em;
}

.redhenos-section li {
  margin: 0.4em 0;
}

/* About page tweaks */
.story-text p { margin-bottom: 22px; }
.different-item p { margin-bottom: 0; }

/* Features page tweaks */
.feature-description { margin-bottom: 18px; }
.feature-list { margin-top: 6px; }
.feature-list li { margin: 0.45em 0; }

/* Footer micro-polish */
.footer-bottom-content {
  row-gap: 8px;
}
.footer-bottom p,
.footer-bottom a {
  line-height: 1.5;
}

@media (max-width: 768px) {
  .redhenos-section p,
  .redhenos-section li {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  .section-title {
    margin-bottom: clamp(32px, 7vw, 48px);
  }
}

/* Extra-small mobile refinements */
@media (max-width: 480px) {
  .redhenos-section { padding: 48px 16px; }
  .section-title { font-size: 2rem; }
  .redhenos-hero h1,
  .about-hero-title,
  .features-hero-title,
  .contact-hero-title { font-size: 2rem; }
  .redhenos-hero p,
  .about-hero-subtitle,
  .features-hero-subtitle,
  .contact-hero-subtitle { font-size: 1rem; }
  .wp-block-button__link,
  .button,
  .ast-button,
  .btn,
  .redhenos-btn,
  .redhenos-btn-secondary { width: 100%; }
  .footer-menu a { padding: 8px 0 8px 15px; }
}

/* Responsive media */
img, video { max-width: 100%; height: auto; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  /* Ensure the mobile drawer doesn't animate when users prefer reduced motion */
  .main-navigation { transition: none !important; }
  .main-navigation.toggled { transition: none !important; }
}
