/* RESET & BASE STYLES */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #f9f5ee; /* Soft parchment */
  color: #3a3228; /* Rich dark brown */
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 {
  font-family: 'Lora', serif;
  line-height: 1.2;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.back-to-top {
  color: #8B5E3C;
}
.back-to-top:hover {
  text-decoration: underline;
}

/* HERO SECTION */
header.hero {
  position: relative;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f5ee 60%, #e8e0d5 100%);
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('genealogy-research-magnifying-glass-traceatree.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8em;
  padding: 2.5em 1.2em;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 5px solid #8B5E3C;
}
.hero-text {
  max-width: 480px;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-text { text-align: left; }
}
.hero-text h1 {
  font-size: 2.2rem;
  margin: 0 0 0.6em;
  color: #3a3228;
}
@media (min-width: 768px) {
  .hero-text h1 { font-size: 2.6rem; }
}
.hero-sub {
  font-size: 1.05rem;
  color: #5a4f43;
  margin-bottom: 1.1em;
}
.highlight {
  font-weight: 700;
  color: #A67C52; /* Parchment gold */
}

/* BADGES & BUTTONS */
.experience-badge,
.package-badge {
  display: inline-block;
  background: #8B5E3C;
  color: #f9f5ee;
  font-weight: 700;
  padding: 0.4em 1em;
  border-radius: 20px;
  margin-bottom: 0.8em;
  font-size: 0.95rem;
}
.experience-badge i {
  color: #6E4F2E;
  margin-right: 6px;
}
.cta-btn, .order-btn, .secondary-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0.5em auto;
  padding: 0.9em 1.6em;
  border-radius: 32px;
  font-weight: 700;
  font-size: 1.05em;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
@media (min-width: 600px) {
  .cta-btn, .order-btn, .secondary-btn {
    display: inline-block;
    width: auto;
  }
}
.cta-btn, .order-btn {
  background: #8B5E3C;
  color: #f9f5ee;
  box-shadow: 0 3px 8px rgba(139, 94, 60, 0.2);
}
.cta-btn:hover, .order-btn:hover {
  background: #7A5230;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(139, 94, 60, 0.3);
}
.secondary-btn {
  background: #3a3228;
  color: #f9f5ee;
}
.secondary-btn:hover {
  background: #2c261e;
  transform: translateY(-2px);
}

/* MAIN CONTENT */
main {
  scroll-behavior: smooth;
}
section {
  max-width: 640px;
  margin: 2.2em auto;
  padding: 1.6em 1.8em;
  background: #fffef8;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5em;
  color: #3a3228;
}
@media (min-width: 768px) {
  h2 { font-size: 1.7rem; }
}

/* PACKAGES */
.package {
  border: 1.6px solid #8B5E3C;
  background: #fdfbf6;
  padding: 1.2em;
  margin-bottom: 1.2em;
  position: relative;
}
.package-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  font-size: 0.8rem;
}

/* STEPS – FIXED TO REMOVE REPEATING NUMBERS */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin: 1.2em 0;
  list-style: none; /* 👈 This stops browser-generated numbering */
  padding: 0;
}
.step {
  flex: 1 1 140px;
  background: #f8f4ed;
  padding: 1em;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  color: #3a3228;
  list-style: none; /* 👈 Extra safety */
}
.step-num {
  display: block;
  font-size: 1.3em;
  font-weight: 700;
  color: #8B5E3C;
  margin-bottom: 0.4em;
}

/* TESTIMONIAL */
.testimonial-card {
  background: #f5f1e9;
  padding: 1.2em;
  border-radius: 14px;
  margin: 1em 0;
}
.stars {
  color: #C1A27A; /* Antique gold */
  margin-bottom: 8px;
}
blockquote p {
  font-style: italic;
  margin: 0;
  color: #4a4236;
}
cite {
  display: block;
  margin-top: 0.4em;
  font-style: normal;
  font-weight: 600;
  color: #3a3228;
}
blockquote:before {
  content: '\201C';
  color: #C1A27A;
  font-size: 2em;
  display: inline-block;
  vertical-align: top;
  margin-right: 8px;
  line-height: 1;
}

/* FORM */
form {
  margin-top: 1em;
}
label {
  display: block;
  margin: 1em 0 0.4em;
  font-weight: 700;
  color: #3a3228;
}
input, textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #c9bfae;
  border-radius: 8px;
  background: #fdfbf6;
  font-family: inherit;
  font-size: 1rem;
}
input:focus, textarea:focus {
  outline: 2px solid #8B5E3C;
}
input[type="submit"] {
  width: 100%;
}

/* FOOTER */
footer {
  background: #f0ece2;
  text-align: center;
  padding: 1.5em 1em 2em;
  margin-top: 2em;
  font-size: 0.95rem;
  color: #3a3228;
  border-top: 2px solid #e2ded3;
}
footer a {
  color: #8B5E3C;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}

/* MOBILE ANCHOR FIX */
@media (max-width: 767px) {
  section, header {
    scroll-margin-top: 60px;
  }
}