/*
Theme Name: Philosophy Therapy
Theme URI: https://philosophytherapy.net
Author: Philosophy Therapy
Author URI: https://philosophytherapy.net
Description: A custom WordPress theme for Philosophy Therapy - Online Philosophical Counseling
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: philosophytherapy
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #d69e2e;
  --color-accent-light: #ecc94b;
  --color-bg: #fafafa;
  --color-bg-alt: #f7f7f7;
  --color-text: #2d3748;
  --color-text-light: #4a5568;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header ===== */
header.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

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

/* Navigation */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-weight: 500;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after {
  width: 100%;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
  display: block;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  color: var(--color-white);
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  margin-top: 0;
  animation: fadeInUp 0.8s ease;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s both;
  max-width: 935px;
  margin-left: auto;
  margin-right: auto;
}

.hero .tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.hero-benefits {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-benefits-intro {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-white);
  text-align: center;
}

.hero-questions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-question-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--color-white);
  font-size: 0.95rem;
  transition: var(--transition);
}

.hero-question-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(5px);
}

.hero-question-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.hero-cta-text {
  text-align: center;
  margin: 0;
  padding: 0;
  color: var(--color-white);
  line-height: 1.2;
}

.hero-cta-text strong {
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0;
  color: var(--color-accent-light);
  line-height: 1.3;
}

.hero-online-badge {
  font-size: 1rem;
  opacity: 0.9;
  font-style: italic;
  display: block;
  margin-top: 0.1rem;
  line-height: 1.2;
}

.hero-content > div:last-child {
  margin-top: 1rem;
  margin-bottom: 0;
}

.hero-content .btn {
  margin-top: 0.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== Sections ===== */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

.section-title p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ===== Content Sections ===== */
.content-section {
  background: var(--color-white);
  padding: 5rem 0;
}

.content-section-alt {
  background: var(--color-bg-alt);
}

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-row-reverse {
  direction: rtl;
}

.content-row-reverse > * {
  direction: ltr;
}

.content-row-image-left {
  direction: ltr;
}

.content-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.content-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.content-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.content-text h3 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  font-size: 2rem;
}

.content-text p {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.content-text p strong {
  color: var(--color-text);
  font-weight: 600;
}

.benefits-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.benefits-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 1.05rem;
}

.benefits-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ===== About Section ===== */
.about {
  background: var(--color-white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.about-text h3 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--color-text-light);
}

/* ===== What Is Section ===== */
.what-is {
  background: var(--color-bg-alt);
}

.what-is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.what-is-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.what-is-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.what-is-card h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.what-is-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Services/Pricing Section ===== */
.pricing {
  background: var(--color-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--color-bg);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  border: 2px solid var(--color-border);
  transition: var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-accent);
}

.pricing-card.featured {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.pricing-card.featured h3,
.pricing-card.featured h4 {
  color: var(--color-white);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 1rem 0;
}

.pricing-card.featured .price {
  color: var(--color-accent-light);
}

.pricing-card ul {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
  padding: 0;
}

.pricing-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

/* ===== Endorsements Section ===== */
.endorsements {
  background: var(--color-white);
}

.endorsements .section-title {
  margin-bottom: 3rem;
}

.endorsement-card {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.endorsement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--color-white);
}

.endorsement-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.endorsement-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--color-accent-light);
}

.endorsement-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.endorsement-name {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.endorsement-link {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-decoration: none;
  transition: var(--transition);
}

.endorsement-link:hover {
  color: var(--color-accent);
}

.endorsement-text {
  color: var(--color-text-light);
  font-style: italic;
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
}

.endorsements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* ===== Contact Section ===== */
.contact {
  background: var(--color-bg-alt);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.contact-details {
  margin-top: 2rem;
}

.contact-details div {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-details .icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Contact Form */
.contact-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

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

/* ===== Footer ===== */
footer.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-section h4 img {
  height: 32px;
  width: auto;
  display: block;
}

.footer-section p,
.footer-section a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-accent-light);
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

/* ===== Page Specific Styles ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
}

.page-content {
  padding: 4rem 0;
}

.page-content p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Accordion */
.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Info Box */
.info-box {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  margin: 2rem 0;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 8px;
}

.card h4 {
  margin-bottom: 0.75rem;
}

.card p,
.card .card-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .about-content,
  .contact-content,
  .content-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .content-row-reverse {
    direction: ltr;
  }
  
  .content-section {
    padding: 3rem 0;
  }
  
  .content-image img {
    height: 350px;
  }
  
  .content-text h3 {
    font-size: 1.75rem;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  
  .logo img {
    height: 32px;
  }
  
  .footer-section h4 img {
    height: 24px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  
  .hero-benefits {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }
  
  .hero-benefits-intro {
    font-size: 1rem;
  }
  
  .hero-questions {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .hero-question-item {
    font-size: 0.9rem;
    padding: 0.625rem 0.875rem;
  }
  
  .hero-cta-text strong {
    font-size: 1.1rem;
  }
  
  .main-navigation ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
  }
  
  .main-navigation ul.active {
    display: flex;
  }
  
  .main-navigation li {
    border-bottom: 1px solid var(--color-border);
  }
  
  .main-navigation li:last-child {
    border-bottom: none;
  }
  
  .main-navigation a {
    display: block;
    padding: 1rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .endorsement-card {
    padding: 1.5rem;
  }
  
  .endorsement-avatar {
    width: 50px;
    height: 50px;
  }
  
  .endorsements-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .header-inner {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo img {
    height: 28px;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-section h4 img {
    height: 20px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
  }
}

/* WordPress specific */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
