/*
Theme Name: Föda utan rädsla
Theme URI: https://fodautanradsla.se
Description: Modern WordPress tema för förlossningsförberedande kurser
Version: 1.0
Author: Design
Author URI: https://example.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foda-utan-radsla
*/

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

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2c2c2c;
  line-height: 1.6;
  background: #fafaf8;
}

body {
  font-size: 16px;
}

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

a:hover {
  color: #d86f1f;
}

button,
input[type="button"],
input[type="submit"] {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  opacity: 0.9;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h1 {
  font-size: 56px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 28px;
}

p {
  margin-bottom: 16px;
}

/* Header */
.site-header {
  background: white;
  padding: 16px 0;
  border-bottom: 1px solid #f0ede8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.site-branding {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
}

.main-navigation {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-navigation a {
  font-size: 14px;
  color: #2c2c2c;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.3s ease;
  display: block;
}

.main-navigation a:hover {
  border-bottom-color: #E67E22;
  color: #2c2c2c;
}

.cta-button {
  background: #E67E22;
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.15);
}

.cta-button:hover {
  background: #d86f1f;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.25);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(232, 221, 208, 0.3) 100%);
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
}

.hero-accent {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 221, 208, 0.4), transparent);
  border-radius: 50%;
  top: -100px;
  right: -100px;
  z-index: 1;
}

/* Sections */
section {
  padding: 80px 24px;
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: #E67E22;
  margin: 0 auto;
}

/* Featured Course */
.featured-course {
  background: white;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.course-image {
  background: #f5f3f0;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.course-details h3 {
  margin-bottom: 20px;
}

.course-meta {
  background: #E8DDD0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.course-meta p:first-child {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.course-meta p:last-child {
  font-size: 20px;
  font-weight: 700;
  color: #E67E22;
  margin-bottom: 0;
}

.course-checklist {
  list-style: none;
  margin-bottom: 32px;
}

.course-checklist li {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  font-size: 16px;
}

.course-checklist span:first-child {
  color: #E67E22;
  font-weight: 700;
  flex-shrink: 0;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #E8DDD0 0%, rgba(232, 221, 208, 0.5) 100%);
}

.about-box {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
}

.about-box p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.about-box a {
  display: inline-block;
  margin-top: 20px;
  color: #E67E22;
  font-weight: 600;
  border-bottom: 2px solid #E67E22;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.about-box a:hover {
  padding-bottom: 8px;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.course-card {
  background: #fafaf8;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f0ede8;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.course-card-image {
  aspect-ratio: 16/9;
  background: #e8ddd0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.course-card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.course-card-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c2c2c;
}

.course-card-date {
  font-size: 13px;
  color: #999;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-card-button {
  width: 100%;
}

/* Testimonial Section */
.testimonial-section {
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.08) 0%, rgba(232, 221, 208, 0.2) 100%);
}

.testimonial-box {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-box h2 {
  margin-bottom: 40px;
}

.testimonial-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  border-left: 4px solid #E67E22;
  text-align: left;
}

.testimonial-content p:first-child {
  font-size: 16px;
  color: #555;
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-content p:last-child {
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-item p {
  font-size: 14px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}

.contact-item a {
  font-size: 18px;
  font-weight: 600;
}

.newsletter-box {
  background: #E8DDD0;
  padding: 40px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

.newsletter-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #2c2c2c;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #E67E22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.newsletter-form button {
  background: #E67E22;
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: #2c2c2c;
  color: white;
  padding: 40px 24px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  font-size: 14px;
  margin-bottom: 16px;
  color: #ccc;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #E67E22;
  border-bottom-color: #E67E22;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 16px;
  }

  .main-navigation {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .main-navigation a {
    font-size: 13px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  .featured-course {
    grid-template-columns: 1fr;
  }

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

  .newsletter-form {
    flex-direction: column;
  }

  section {
    padding: 60px 16px;
  }

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

/* WordPress Default Classes */
.wp-caption {
  background: #f1f1f1;
  border: 1px solid #ddd;
  text-align: center;
  padding: 4px;
  margin: 10px 0;
}

.wp-caption img {
  margin: 5px;
  max-width: 100%;
  height: auto;
}

.gallery {
  margin: 0 -8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 16px);
  min-width: 150px;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

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

.alignleft {
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

.alignright {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}

.aligncenter {
  text-align: center;
  margin: 20px 0;
}

/* Content */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.entry-content a {
  border-bottom: 1px solid #E67E22;
  padding-bottom: 2px;
}

.entry-content a:hover {
  background: rgba(230, 126, 34, 0.1);
}
