/* ====== Google Fonts ====== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ====== CSS Variables ====== */
:root {
  --primary-bg: #1a1a1a;
  --secondary-bg: #2d2d2d;
  --tertiary-bg: #333;
  --light-bg: #f5f0e8;
  --accent: #e8762b;
  --text-light: #d4d4d4;
  --text-dark: #fff;
  --text-body: #333;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

/* ====== Global Styles ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-bg);
  color: var(--text-light);
  line-height: 1.6;
}

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

a:hover {
  color: #f09344;
}

/* ====== Navigation ====== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary-bg);
  border-bottom: 1px solid var(--tertiary-bg);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ====== Hero Section ====== */
.hero {
  background-color: var(--secondary-bg);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 500px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  background-color: var(--tertiary-bg);
  padding: 0.75rem 1.5rem;
  border-left: 4px solid var(--accent);
  width: fit-content;
  font-weight: 500;
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.badge:hover {
  background-color: var(--accent);
  color: white;
}

.badge i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.badge:hover i {
  color: white;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* ====== Sections ====== */
section {
  padding: 4rem 2rem;
}

section.light-bg {
  background-color: var(--light-bg);
  color: var(--text-body);
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

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

/* ====== What is Tarot Section ====== */
.what-is-tarot {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.what-is-tarot p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-body);
}

.tarot-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

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

.card-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.card-item p {
  font-weight: 500;
  color: var(--text-body);
}

.view-more-btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 1rem 2.5rem;
  margin-top: 2rem;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-align: center;
  margin-left: 50%;
  transform: translateX(-50%);
}

.view-more-btn:hover {
  background-color: #f09344;
  color: white;
}

/* ====== Testimonials Section ====== */
.testimonials-section {
  background-color: var(--secondary-bg);
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-track {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.testimonial {
  background-color: var(--tertiary-bg);
  padding: 2rem;
  border-left: 4px solid var(--accent);
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--accent);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--tertiary-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent);
}

/* ====== About Page ====== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-body);
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  bottom: -15px;
  left: 0;
}

.about-content p {
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.read-more-btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #f09344;
  color: white;
}

/* ====== Services ====== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.service-card {
  background-color: white;
  color: var(--text-body);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-card a {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--accent);
}

.service-card a:hover {
  color: #f09344;
  border-bottom-color: #f09344;
}

/* ====== Reading Details Pages ====== */
.reading-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.what-to-expect {
  margin-bottom: 2rem;
}

.what-to-expect h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.expectation-list {
  list-style: none;
  counter-reset: item;
}

.expectation-list li {
  counter-increment: item;
  padding-left: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.expectation-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--accent);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.reading-photo {
  margin-bottom: 2rem;
}

.reading-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ====== Ethics Page ====== */
.ethics-content {
  max-width: 900px;
  margin: 0 auto;
}

.ethics-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.ethics-item {
  margin-bottom: 1.5rem;
}

.ethics-item strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* ====== FAQs Page ====== */
.faqs-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #f9f6f0;
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  background-color: white;
  color: var(--text-body);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #e0e0e0;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question .faq-toggle {
  color: var(--accent);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-answer.open {
  max-height: 500px;
  padding: 1.5rem;
}

.faq-answer p {
  line-height: 1.8;
  color: #666;
}

/* ====== What is Tarot Page ====== */
.tarot-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.tarot-section {
  margin-bottom: 3rem;
}

.tarot-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tarot-divider {
  width: 100px;
  height: 3px;
  background-color: var(--accent);
  margin: 2rem auto;
}

.tarot-image {
  margin-top: 3rem;
}

.tarot-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ====== Contact Page ====== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-body);
}

.contact-info p {
  margin-bottom: 1.5rem;
  color: var(--text-body);
  font-size: 1.05rem;
}

.contact-info a {
  color: var(--accent);
}

.contact-form {
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-body);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
}

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

.submit-btn {
  width: 100%;
  background-color: var(--accent);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #f09344;
}

.map-container {
  margin-top: 3rem;
  border-radius: 8px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ====== Footer ====== */
footer {
  background-color: var(--primary-bg);
  border-top: 1px solid var(--tertiary-bg);
  padding: 3rem 2rem 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-column p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-column a {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--tertiary-bg);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--tertiary-bg);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    flex-direction: column;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }

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

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

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

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

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

  section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .service-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .tarot-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

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


/* ====== Accessibility ====== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Ensure sufficient color contrast for interactive elements */
.faq-question:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  cursor: pointer;
}

.hamburger:focus-visible {
  outline: 3px solid var(--accent);
}