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

:root {
  --burgundy: #7B2D42;
  --burgundy-dark: #5C1F2F;
  --burgundy-light: #A0415A;
  --gold: #C9A84C;
  --gold-light: #E4C97A;
  --ivory: #FAF6EF;
  --cream: #F3ECE0;
  --text-dark: #2C1810;
  --text-mid: #5A3A2A;
  --text-light: #9B7B6A;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(123,45,66,0.12);
  --shadow-lg: 0 8px 40px rgba(123,45,66,0.18);
  --radius: 10px;
  --transition: all 0.35s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--ivory);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }

/* ===== UTILITY ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { background: var(--burgundy-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--burgundy); border: 2px solid var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--white); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--text-dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.section-tag {
  display: inline-block;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid rgba(123,45,66,0.15);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.25;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
}

/* reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,246,239,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123,45,66,0.08);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand i { color: var(--gold); font-size: 1.4rem; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { background: var(--cream); color: var(--burgundy); }
.nav-cta { margin-left: 10px; padding: 9px 22px; font-size: 0.88rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--burgundy-dark) 0%, var(--burgundy) 50%, #A0415A 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('https://picsum.photos/seed/bookstore1/1400/900') center/cover no-repeat;
  opacity: 0.12;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(201,168,76,0.15) 0%, transparent 60%),
                    radial-gradient(circle at 80% 80%, rgba(201,168,76,0.1) 0%, transparent 50%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 22px;
}
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 38px;
  max-width: 520px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.65); letter-spacing: 1px; text-transform: uppercase; }
.hero-image-col {
  position: relative;
  z-index: 2;
  flex: 0 0 420px;
}
.hero-img-wrap {
  width: 380px;
  height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(201,168,76,0.3);
  margin-left: auto;
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-layout {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* ===== ABOUT ===== */
#about { padding: 110px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-imgs {
  position: relative;
  height: 480px;
}
.about-img-main {
  width: 75%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 55%;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}
.about-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.about-award {
  position: absolute;
  top: 24px; right: 0;
  background: var(--gold);
  color: var(--text-dark);
  padding: 14px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 0.82rem;
}
.about-award span { display: block; font-size: 1.5rem; font-weight: 800; }
.about-features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.about-feat {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 12px;
  background: var(--ivory);
  transition: var(--transition);
}
.about-feat:hover { background: var(--cream); box-shadow: var(--shadow); }
.about-feat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--burgundy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.about-feat-text h4 { font-size: 0.96rem; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.about-feat-text p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }

/* ===== SERVICES ===== */
#services { padding: 110px 0; background: var(--ivory); }
.services-head { text-align: center; margin-bottom: 64px; }
.services-head .section-sub { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: 18px;
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(123,45,66,0.06);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.service-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; }

/* ===== PRICING ===== */
#pricing { padding: 110px 0; background: var(--white); }
.pricing-head { text-align: center; margin-bottom: 64px; }
.pricing-head .section-sub { margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.price-card {
  background: var(--ivory);
  border-radius: 20px;
  padding: 40px 34px;
  border: 1px solid rgba(123,45,66,0.1);
  transition: var(--transition);
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-14px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.featured-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 20px;
  border-radius: 50px;
}
.price-plan { font-size: 0.78rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--burgundy); margin-bottom: 8px; }
.price-card.featured .price-plan { color: rgba(255,255,255,0.7); }
.price-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 22px;
}
.price-card.featured .price-name { color: var(--white); }
.price-amount {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(123,45,66,0.12);
}
.price-card.featured .price-amount { border-color: rgba(255,255,255,0.2); }
.price-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--burgundy);
  line-height: 1;
}
.price-card.featured .price-num { color: var(--gold-light); }
.price-num sup { font-size: 1.3rem; vertical-align: super; }
.price-num span { font-size: 1rem; color: var(--text-light); font-family: 'Nunito', sans-serif; font-weight: 400; }
.price-card.featured .price-num span { color: rgba(255,255,255,0.6); }
.price-list { list-style: none; margin-bottom: 32px; }
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  padding: 8px 0;
  color: var(--text-mid);
  border-bottom: 1px solid rgba(123,45,66,0.06);
}
.price-card.featured .price-list li { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.1); }
.price-list li i { color: var(--gold); font-size: 0.85rem; }
.price-card.featured .price-list li i { color: var(--gold-light); }
.price-card .btn { width: 100%; text-align: center; }
.price-card.featured .btn-gold { width: 100%; text-align: center; }

/* ===== TESTIMONIALS ===== */
#testimonials { padding: 110px 0; background: var(--cream); }
.testi-head { text-align: center; margin-bottom: 64px; }
.testi-head .section-sub { margin: 0 auto; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testi-card {
  background: var(--white);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(123,45,66,0.06);
  transition: var(--transition);
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-stars { color: var(--gold); margin-bottom: 16px; font-size: 0.95rem; }
.testi-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: 24px;
}
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--cream);
}
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testi-name { font-weight: 700; font-size: 0.95rem; color: var(--text-dark); }
.testi-role { font-size: 0.82rem; color: var(--text-light); }

/* ===== FAQ ===== */
#faq { padding: 110px 0; background: var(--white); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq-sidebar .section-sub { margin-bottom: 28px; }
.faq-contact-card {
  background: var(--burgundy);
  color: var(--white);
  border-radius: 16px;
  padding: 30px;
  margin-top: 28px;
}
.faq-contact-card h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 10px; }
.faq-contact-card p { font-size: 0.9rem; opacity: 0.82; margin-bottom: 20px; line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(123,45,66,0.1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ivory);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--text-dark);
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  text-align: left;
  gap: 14px;
}
.faq-q .faq-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  transition: var(--transition);
}
.faq-item.open .faq-icon { background: var(--burgundy); color: var(--white); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-a-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 220px; }

/* ===== CONTACT ===== */
#contact { padding: 110px 0; background: var(--ivory); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }
.contact-info { }
.contact-info .section-sub { margin-bottom: 36px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(123,45,66,0.07);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--burgundy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-item-text h4 { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 3px; }
.contact-item-text p { font-size: 0.88rem; color: var(--text-light); line-height: 1.5; }
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 0.88rem; }
.hours-day { color: var(--text-mid); font-weight: 600; }
.hours-time { color: var(--text-light); }
.contact-form {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.contact-form p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-mid); margin-bottom: 7px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(123,45,66,0.15);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--ivory);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--burgundy); background: var(--white); box-shadow: 0 0 0 3px rgba(123,45,66,0.08); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 15px; font-size: 1rem; }

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 22px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--burgundy); color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.25s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--gold-light); }

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 46px; height: 46px;
  background: var(--burgundy);
  color: var(--white);
  border: none; border-radius: 12px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}
#backToTop.visible { opacity: 1; pointer-events: auto; transform: none; }
#backToTop:hover { background: var(--burgundy-dark); transform: translateY(-3px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-layout { flex-direction: column; gap: 40px; }
  .hero-image-col { flex: none; width: 100%; display: flex; justify-content: center; }
  .hero-img-wrap { width: 320px; height: 380px; margin: 0; }
  .hero-stats { gap: 28px; }
  .about-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-imgs { height: 320px; }
  .about-img-main { width: 65%; height: 300px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--ivory);
    padding: 18px 24px 28px;
    flex-direction: column;
    border-bottom: 1px solid rgba(123,45,66,0.1);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-img-wrap { width: 260px; height: 320px; }
}
