/*
Theme Name: Curious Soul Philosophy
Theme URI: https://www.curioussoulphilosophy.com/
Author: Your Name
Author URI: https://yoursite.com/
Description: An elegant, minimalist theme for philosophical counseling and personal development
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curious-soul-philosophy
Domain Path: /languages
Requires at least: 5.8
Requires PHP: 7.4
*/

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e8d5c4;
  --accent-color: #8b6f47;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-light: #f9f7f4;
  --white: #ffffff;
  --border-color: #e0d5cc;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 2rem 0 1.5rem;
}

h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
}

h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 1.25rem 0 0.75rem;
}

h5 {
  font-size: 1.2rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Header & Navigation */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.site-logo {
  display: flex;
  align-items: center;
}

.site-logo a {
  color: var(--primary-color);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
}

.site-logo img {
  max-width: 150px;
  height: auto;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f9f7f4 0%, #e8d5c4 100%);
  padding: 8rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

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

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

.btn-secondary:hover {
  color: var(--accent-color);
}

/* Content Sections */
.content-section {
  padding: 4rem 0;
}

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

.text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.text-image.reverse {
  direction: rtl;
}

.text-image.reverse > * {
  direction: ltr;
}

.text-image img {
  width: 100%;
  height: auto;
  border-radius: 0;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 2rem;
  text-align: center;
}

.card h3 {
  margin: 0 0 1rem 0;
}

.card p {
  margin: 0;
  font-size: 1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

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

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease;
}

.service-item:hover img {
  opacity: 0.8;
}

.service-item h3 {
  margin-bottom: 1rem;
}

.service-item a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
  margin: 3rem 0;
}

.about-image {
  border-radius: 0;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specialties Section */
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.specialty-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.specialty-item:hover {
  border-color: var(--accent-color);
  background: var(--bg-light);
}

.specialty-item a {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
}

/* Communities Section */
.communities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.community-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  height: 300px;
}

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

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

.community-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  padding: 2rem;
  color: white;
  text-align: center;
}

.community-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 0;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  background: var(--white);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
}

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

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

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

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.footer-section a {
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Single Page/Post */
.page-header {
  background: linear-gradient(135deg, #f9f7f4 0%, #e8d5c4 100%);
  padding: 4rem 0 3rem;
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.post-content,
.page-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 20px;
}

.post-content h2,
.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h3,
.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .text-image,
  .text-image.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .communities-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}
