/* ============================================
   Dr. Estelle Jean - Main Stylesheet
   ============================================ */

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

:root {
  --primary: #e91e8c;
  --primary-dark: #c4176f;
  --secondary: #2d2d2d;
  --accent: #f5a623;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --light-bg: #f9f9f9;
  --dark-bg: #1a1a2e;
  --border: #e0e0e0;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Top Bar --- */
.top-bar {
  background: var(--dark-bg);
  padding: 8px 0;
  font-size: 14px;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}
.social-links a {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: color var(--transition);
}
.social-links a:hover { color: var(--primary); }

/* --- Header / Navbar --- */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 55px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-weight: 600;
  font-size: 15px;
  color: var(--secondary);
  padding: 8px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { width: 100%; }
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--primary); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border-radius: 4px;
  overflow: hidden;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.dropdown-menu a:hover { background: var(--light-bg); color: var(--primary); }
.dropdown-menu a:last-child { border-bottom: none; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--secondary);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eef9 100%);
  padding: 60px 0;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1; }
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 5px;
}
.hero-content h1 span { color: var(--primary); display: block; font-size: 42px; }
.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary);
  font-weight: 400;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 25px;
  max-width: 500px;
}
.hero-image { flex: 0 0 400px; }
.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233,30,140,0.3);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Section Styles --- */
.section { padding: 80px 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--dark-bg); color: var(--white); }

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
  color: var(--secondary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 50px;
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }

/* --- Facebook / Follow Section --- */
.follow-section .container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.follow-image { flex: 0 0 350px; }
.follow-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}
.follow-content { flex: 1; }
.follow-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--secondary);
}
.follow-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

/* --- Stats --- */
.stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 50px 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--primary);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 8px;
}

/* --- Career & Story --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.two-col h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 15px;
  color: var(--secondary);
}
.two-col p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}
.two-col a { color: var(--primary); font-weight: 600; }
.two-col a:hover { text-decoration: underline; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
}
.testimonial-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card::before {
  content: '\201C';
  font-size: 60px;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 10px; left: 20px;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card p {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
}
.testimonial-author { font-weight: 700; color: var(--secondary); font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--text-light); }

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.blog-card-image {
  height: 220px;
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-content {
  padding: 25px;
}
.blog-card-category {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}
.blog-card-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--secondary);
}
.blog-card-content h3 a:hover { color: var(--primary); }
.blog-card-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}
.blog-card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blog-card-link:hover { gap: 10px; }

/* --- Features / As Seen On --- */
.features-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.features-logos img {
  height: 50px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
  filter: grayscale(30%);
}
.features-logos img:hover { opacity: 1; filter: grayscale(0%); }

/* --- Footer --- */
.footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 18px;
  margin-bottom: 20px;
}
.footer p { font-size: 14px; line-height: 1.8; margin-bottom: 15px; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { font-size: 14px; transition: color var(--transition); }
.footer ul li a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 15px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* --- Page Banner --- */
.page-banner {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--white);
}
.page-banner h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  margin-bottom: 10px;
}
.breadcrumb {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--primary); }

/* --- About Page --- */
.about-intro .container {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.about-image { flex: 0 0 380px; }
.about-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}
.about-content { flex: 1; }
.about-content h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--secondary);
}
.about-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Timeline */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--border);
  top: 0;
}
.timeline-item {
  display: flex;
  margin-bottom: 50px;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
  text-align: right;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  top: 5px;
  z-index: 1;
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 10px;
}
.timeline-content p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 15px;
}

/* --- Book Page --- */
.book-section .container {
  display: flex;
  gap: 60px;
  align-items: center;
}
.book-image { flex: 0 0 45%; }
.book-image img {
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}
.book-content { flex: 1; }
.book-content h2 {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 10px;
}
.book-content h3 {
  font-family: var(--font-heading);
  font-size: 36px;
  color: var(--secondary);
  margin-bottom: 20px;
}
.book-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 25px;
}

/* --- Contact Form --- */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--secondary);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.captcha-group {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.captcha-group label { margin-bottom: 0; }
.captcha-group input { width: 80px; }

/* --- Blog Post Detail --- */
.post-detail { padding: 60px 0; }
.post-detail .container { max-width: 800px; }
.post-detail img {
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}
.post-detail h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 15px;
  line-height: 1.3;
}
.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--text-light);
}
.post-meta a { color: var(--primary); font-weight: 600; }
.post-detail .post-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
}
.post-detail .post-body p { margin-bottom: 20px; }
.post-detail .post-body a { color: var(--primary); }
.post-detail .post-body a:hover { text-decoration: underline; }

/* Related Posts */
.related-posts { padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.related-posts h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 25px;
  color: var(--secondary);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.related-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.related-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: none;
  margin-bottom: 0;
}
.related-card h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.4;
}
.related-card h4 a:hover { color: var(--primary); }

/* YouTube Embed */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 12px;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 45px; height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(233,30,140,0.3);
}
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }
.scroll-top.visible { display: flex; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero .container { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content p { margin: 0 auto 25px; }
  .hero-image { flex: 0 0 auto; max-width: 350px; }
  .hero-content h1 { font-size: 42px; }
  .hero-content h1 span { font-size: 32px; }
  .follow-section .container { flex-direction: column; }
  .follow-image { flex: 0 0 auto; max-width: 300px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .about-intro .container { flex-direction: column; }
  .about-image { flex: 0 0 auto; max-width: 350px; margin: 0 auto; }
  .book-section .container { flex-direction: column; }
  .book-image { flex: 0 0 auto; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
    flex-direction: row;
  }
  .timeline-item::after { left: 20px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { display: flex; }
  .nav-links > li > a { padding: 12px 0; display: block; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 20px;
  }
  .menu-toggle { display: block; }
  .hero-content h1 { font-size: 34px; }
  .hero-content h1 span { font-size: 26px; }
  .section-title { font-size: 28px; }
  .stats { gap: 25px; }
  .stat-number { font-size: 36px; }
  .blog-grid { grid-template-columns: 1fr; }
  .features-logos { gap: 25px; }
  .features-logos img { height: 35px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 30px; }
}
