/*
Theme Name: Reiki Healing Foundation
Theme URI: https://example.com/reiki-healing-theme
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme designed for wellness, healing, and educational services. Features WooCommerce integration, appointment booking, and service showcases.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rhf-theme
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Tags: wellness, healing, reiki, courses, appointments, woocommerce, responsive
*/

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  color: #6b4ce2;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #5239b8;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

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

/* ========================================
   LAYOUT STRUCTURE
   ======================================== */

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

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: -10px;
}

.col {
  flex: 1;
  min-width: 250px;
  padding: 10px;
}

.col-2 { flex: 0 0 calc(50% - 20px); }
.col-3 { flex: 0 0 calc(33.333% - 20px); }
.col-4 { flex: 0 0 calc(25% - 20px); }

@media (max-width: 768px) {
  .col-2, .col-3, .col-4 {
    flex: 0 0 calc(100% - 20px);
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #6b4ce2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-icons a,
.header-icons button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  transition: color 0.3s;
}

.header-icons a:hover,
.header-icons button:hover {
  color: #6b4ce2;
}

.search-icon {
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Main Navigation */
.main-nav {
  background-color: #fff;
  padding: 0 20px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  color: #333;
  font-weight: 500;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: #6b4ce2;
  border-bottom-color: #6b4ce2;
}

.main-nav > ul > li > a img {
  height: 24px;
  width: auto;
}

/* Dropdown Menus */
.main-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  flex-direction: column;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-top: 3px solid #6b4ce2;
}

.main-nav li:hover > ul {
  display: flex;
}

.main-nav ul ul li a {
  display: block;
  padding: 12px 20px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.main-nav ul ul li a:hover {
  background-color: #f5f0ff;
  color: #6b4ce2;
  padding-left: 30px;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0;
    border-top: 1px solid #e0e0e0;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  
  .main-nav ul ul {
    position: static;
    display: none;
    box-shadow: none;
    border-top: none;
    background: #f9f9f9;
    margin-left: 20px;
  }
  
  .main-nav li:hover > ul {
    display: flex;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, #6b4ce2 0%, #8b6ce2 100%);
  color: #fff;
  padding: 100px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-button {
  display: inline-block;
  padding: 14px 40px;
  background-color: #fff;
  color: #6b4ce2;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: #f5f0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cta-button.secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.cta-button.secondary:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ========================================
   SERVICE CATEGORIES
   ======================================== */

.services-section {
  padding: 80px 20px;
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(107, 76, 226, 0.15);
  transform: translateY(-5px);
  border-color: #6b4ce2;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: #f5f0ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.service-card:hover .service-icon {
  background-color: #6b4ce2;
  color: #fff;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.service-card a {
  color: #6b4ce2;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-card a:hover {
  gap: 12px;
}

/* ========================================
   PRODUCTS/COURSES SECTION
   ======================================== */

.products-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(107, 76, 226, 0.12);
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.product-price {
  font-size: 1.3rem;
  color: #6b4ce2;
  font-weight: 700;
  margin-bottom: 15px;
}

.product-price.sale {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-right: 10px;
}

.product-price.current {
  font-size: 1.3rem;
  color: #e74c3c;
}

.add-to-cart {
  width: 100%;
  padding: 10px;
  background-color: #6b4ce2;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.add-to-cart:hover {
  background-color: #5239b8;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #6b4ce2 0%, #8b6ce2 100%);
  color: #fff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonial-card {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.testimonial-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 5px;
}

.testimonial-location {
  font-size: 0.85rem;
  opacity: 0.8;
}

.stars {
  color: #ffc107;
  margin-bottom: 15px;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
  padding: 80px 20px;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 40px;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-question {
  background-color: #f9f9f9;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  user-select: none;
}

.faq-question:hover {
  background-color: #f5f0ff;
  color: #6b4ce2;
}

.faq-toggle {
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 20px;
  background-color: #fff;
  color: #666;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========================================
   APPOINTMENT BOOKING
   ======================================== */

.appointment-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #f5f0ff 0%, #fff 100%);
}

.appointment-form {
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d0d0d0;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #6b4ce2;
  box-shadow: 0 0 0 3px rgba(107, 76, 226, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background-color: #6b4ce2;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.form-submit:hover {
  background-color: #5239b8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(107, 76, 226, 0.3);
}

/* ========================================
   NEWSLETTER SIGNUP
   ======================================== */

.newsletter-section {
  padding: 60px 20px;
  background: linear-gradient(135deg, #6b4ce2 0%, #8b6ce2 100%);
  color: #fff;
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 250px;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 14px 30px;
  background-color: #fff;
  color: #6b4ce2;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  background-color: #f5f0ff;
  transform: translateY(-2px);
}

/* ========================================
   VIDEO GALLERY
   ======================================== */

.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.video-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.video-item:hover .video-overlay {
  background: rgba(0,0,0,0.5);
}

.play-button {
  width: 60px;
  height: 60px;
  background: #6b4ce2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  transition: all 0.3s;
}

.video-item:hover .play-button {
  background: #fff;
  color: #6b4ce2;
  transform: scale(1.1);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(107, 76, 226, 0.12);
  transform: translateY(-4px);
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.blog-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex: 1;
}

.read-more {
  color: #6b4ce2;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.read-more:hover {
  gap: 10px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 50px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #ecf0f1;
  transition: all 0.3s;
}

.footer-column ul li a:hover {
  color: #6b4ce2;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background-color: rgba(107, 76, 226, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}

.footer-social a:hover {
  background-color: #6b4ce2;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  color: #bdc3c7;
  font-size: 0.9rem;
}

/* ========================================
   SIDEBAR & WIDGETS
   ======================================== */

.sidebar {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.widget {
  margin-bottom: 30px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #6b4ce2;
  padding-bottom: 10px;
}

.widget ul {
  list-style: none;
}

.widget ul li {
  margin-bottom: 10px;
}

.widget ul li a {
  color: #666;
  transition: all 0.3s;
  display: block;
}

.widget ul li a:hover {
  color: #6b4ce2;
  padding-left: 5px;
}

/* ========================================
   SINGLE POST/PAGE
   ======================================== */

.post-header {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.post-title {
  margin-bottom: 15px;
}

.post-meta {
  font-size: 0.9rem;
  color: #999;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-content {
  line-height: 1.8;
  color: #444;
}

.post-content img {
  margin: 20px 0;
  border-radius: 8px;
}

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

.post-content ul,
.post-content ol {
  margin: 20px 0 20px 20px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-content blockquote {
  border-left: 4px solid #6b4ce2;
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: #666;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .services-grid,
  .products-grid,
  .testimonials-grid,
  .blog-grid,
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: 60px 20px;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .appointment-form {
    padding: 25px;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-content {
    gap: 25px;
    margin-bottom: 25px;
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.pt-40 { padding-top: 40px; }
.pb-40 { padding-bottom: 40px; }

.hidden {
  display: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* WooCommerce Compatibility */
.woocommerce-message,
.woocommerce-error {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
}

.woocommerce-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.woocommerce-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.woocommerce ul.products li.product {
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 20px rgba(107, 76, 226, 0.12);
}
