/* ============================================
   Hanna Dental Implant Center — Landing Page
   Clean rebuild from Unbounce export
   ============================================ */

:root {
  --green: #96E18A;
  --green-soft: rgba(150, 225, 138, 0.19);
  --green-pale: #E5F3E2;
  --text-dark: #4D535A;
  --text-heading: #555A60;
  --text-body: #7A8088;
  --text-light: #9E9E9E;
  --gray-bg: #F4F4F4;
  --border-gray: #CBCBCB;
  --footer-bg: #303030;
  --white: #FFFFFF;
  --max-width: 1280px;
  --section-pad: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ LAYOUT HELPERS ============ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 84px;
}

.container--narrow { max-width: 900px; }

.center { text-align: center; }

.section { padding: var(--section-pad) 0; }
.section--white { background: var(--white); }
.section--gray { background: var(--gray-bg); }

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.eyebrow--white { color: rgba(255, 255, 255, 0.85); }

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-title--lg { font-size: 36px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  background: var(--green);
  padding: 18px 36px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  line-height: 1.2;
}

.btn:hover { background: #7DD06F; }
.btn:active { transform: scale(0.98); }

.btn--cta { min-width: 260px; }

.btn--block {
  display: flex;
  width: 100%;
  padding: 16px 24px;
}

.btn--large { padding: 22px 48px; font-size: 18px; }

.btn--phone {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.btn__small { font-size: 12px; font-weight: 400; }

.btn__phone { font-size: 20px; font-weight: 700; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-inner .logo img { height: 82px; width: auto; }

.header-inner .btn { padding: 18px 36px; font-size: 15px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-bg.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 84px 60px;
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 100px;
  align-items: center;
  min-height: 700px;
}

.hero__copy { max-width: 540px; }

.hero__title {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero__subtext {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 500px;
}

.hero__arrow {
  position: absolute;
  left: 44%;
  bottom: 140px;
  z-index: 3;
  pointer-events: none;
}

.hero__arrow img { width: 120px; opacity: 0.85; }

/* Hero Form Card */
.hero__form-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

.hero__form-label {
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-heading);
  text-align: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gray);
}

.typeform-embed {
  flex: 1;
  min-height: 380px;
}

.typeform-embed--full { min-height: 500px; }

.hero__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
  padding: 0 20px;
}

.hero__lock { width: 14px; height: 14px; flex-shrink: 0; }

/* ============ INTRO ============ */
.intro { padding: 100px 0; }
.intro .eyebrow { color: var(--text-body); }
.intro .section-title { margin-bottom: 0; }

/* ============ PROCEDURE SECTIONS ============ */
.procedure { padding: 60px 0; }

.procedure__grid {
  display: grid;
  grid-template-columns: 1fr 336px;
  gap: 115px;
  align-items: center;
}

.procedure__grid--reverse {
  grid-template-columns: 336px 1fr;
}

.procedure__grid--reverse .procedure__content { order: 2; }
.procedure__grid--reverse .procedure__images { order: 1; }

.procedure__tag { margin-bottom: 16px; }
.procedure__tag img { height: 28px; width: auto; }

.procedure__title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.3;
}

.procedure__body {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.procedure__benefits-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 12px;
}

.benefit-list { list-style: none; margin-bottom: 28px; }

.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-body);
}

.check-icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ============ BEFORE/AFTER STACKED (Procedure sections) ============ */
.ba-stack {
  width: 336px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ba-stack__img {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.ba-stack__img img { width: 100%; display: block; }

.ba-stack__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(84, 84, 84, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-align: center;
  padding: 4px 0;
  z-index: 2;
}

.ba-stack__bar--after { background: rgba(84, 84, 84, 0.9); }

/* ============ BEFORE/AFTER COMPARISON SLIDER (Gallery) ============ */
.procedure__images { display: flex; justify-content: center; }

.ba-pair {
  position: relative;
  width: 100%;
  max-width: 485px;
  aspect-ratio: 336 / 261;
  overflow: hidden;
  border-radius: 0;
  user-select: none;
}

.ba-pair--gallery { width: 100%; }

.ba-pair__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-pair__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-pair__img--after { z-index: 1; }

.ba-pair__img--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.ba-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--green);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.ba-slider__line {
  position: absolute;
  inset: 0;
  background: var(--green);
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 2px solid var(--green);
  border-radius: 3px;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  z-index: 11;
  opacity: 0.9;
}

.ba-slider__handle::before,
.ba-slider__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-style: solid;
  transform: translateY(-50%);
}

.ba-slider__handle::before {
  left: 5px;
  border-width: 3px 0 3px 4px;
  border-color: transparent transparent transparent var(--green);
}

.ba-slider__handle::after {
  right: 5px;
  border-width: 3px 4px 3px 0;
  border-color: transparent var(--green) transparent transparent;
}

.ba-label { display: none; }

/* ============ TRUST STRIP ============ */
.trust-strip { padding: 60px 0; }

.trust-strip__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.trust-badge img { height: 140px; width: auto; }

.trust-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-stat__num {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.trust-stat__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--text-body);
}

.trust-stat--inline .trust-stat__num { font-size: 36px; }
.trust-stat--inline .trust-stat__label { font-size: 12px; }

/* ============ DOCTOR BIO ============ */
.doctor {
  padding: 60px 0;
}

.doctor__inner {
  position: relative;
  width: 100%;
  height: 750px;
  background-image: url('assets/images/dr-hanna-hr.jpg');
  background-size: cover;
  background-position: left center;
  border-radius: 4px;
  overflow: hidden;
}

.doctor__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.8) 55%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.doctor__content {
  position: absolute;
  z-index: 2;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 500px;
  background: var(--white);
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  border-radius: 4px;
}

.doctor__name {
  font-family: "Poppins", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 24px;
}

.doctor__bio p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ============ ACHIEVEMENTS ============ */
.achievements { padding: 50px 0; text-align: center; overflow: hidden; }

.logo-carousel {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.logo-carousel__track {
  display: flex;
  gap: 80px;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
}

.logo-carousel:hover .logo-carousel__track {
  animation-play-state: paused;
}

.logo-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-carousel__item img {
  height: 60px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.logo-carousel__item img:hover {
  opacity: 1;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.achievements__caption {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
}

/* ============ GOOGLE MAP ============ */
.map-section {
  position: relative;
  background: var(--green);
  padding: 0;
}

.map-section__frame {
  width: 100%;
  height: 500px;
  position: relative;
}

.map-section__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-section__card {
  position: absolute;
  top: 20px;
  left: 84px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 16px 20px;
  z-index: 10;
  max-width: 280px;
}

.map-section__name {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.map-section__address {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 4px;
}

.map-section__rating {
  font-size: 14px;
  font-weight: 600;
  color: #d77d25;
}

/* ============ FAQ ============ */
.faq__subheading {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 32px;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #9E9E9E;
  border-radius: 2px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #575757;
  line-height: 1.5;
}

.faq-item__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 2px;
  position: relative;
  margin-left: 12px;
}

.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}

.faq-item__toggle::before { width: 12px; height: 3px; }
.faq-item__toggle::after { width: 3px; height: 12px; }

.faq-item[data-open="true"] .faq-item__toggle::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.faq-item[data-open="true"] .faq-item__answer {
  max-height: 400px;
  padding: 0 20px 20px;
}

.faq-item__answer p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ============ PRICING ============ */
.pricing-intro { padding-bottom: 40px; }

.pricing-intro__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.pricing-intro__body {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
}

.pricing-intro__badge {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  margin-top: 20px;
}

.pricing-cards { padding-top: 40px; }

.pricing-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid #CFCFCF;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.pricing-card__img { width: 100%; height: 200px; object-fit: cover; }

.pricing-card__price {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--text-heading);
  margin: 20px 0 4px;
}

.pricing-card__title {
  font-family: "Poppins", sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 24px;
  line-height: 1.3;
}

.pricing-card .btn { margin: 0 20px 24px; }

/* ============ FINANCING ============ */
.financing__content { max-width: 800px; }

.financing__body {
  font-size: 16px;
  line-height: 1.7;
  margin: 16px 0 28px;
}

.financing__logos {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.financing__logos img { height: 50px; width: auto; }

/* ============ COMPARISON ============ */
.comparison__body {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.comparison__table {
  display: grid;
  border-radius: 8px;
  overflow: hidden;
}

.comparison__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  align-items: stretch;
}

.comparison__row > div {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.comparison__feature {
  text-align: left !important;
  justify-content: flex-start !important;
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 400;
}

.comparison__row--header > div {
  border-bottom: 2px solid var(--text-dark);
  padding: 24px 20px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comparison__hanna {
  background: var(--green-pale);
  border-left: 2px solid #000;
  border-right: 2px solid #000;
}

.comparison__row--header .comparison__hanna {
  border-top: 2px solid #000;
}

.comparison__row--cta > div { border-bottom: 2px solid #000; }

.comparison__logo {
  height: 36px;
  margin: 0 auto 8px;
}

.comparison__icon { width: 28px; height: 28px; }

.comparison__other {
  font-size: 16px;
  color: var(--text-body);
}

/* ============ GALLERY ============ */
.gallery__body {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* ============ FINAL CTA ============ */
.final-cta { padding: 80px 0; }
.final-cta .section-title { margin-bottom: 28px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--footer-bg); padding: 40px 0; }

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--white);
}

.footer-links a { color: var(--white); }
.footer-links a:hover { text-decoration: underline; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .container, .header-inner, .hero__content, .footer-inner { padding-left: 40px; padding-right: 40px; }
  .hero__content { grid-template-columns: 1fr 380px; gap: 40px; }
  .procedure__grid, .procedure__grid--reverse { grid-template-columns: 1fr 300px; gap: 40px; }
  .pricing-intro__badge { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 48px; }

  .container, .header-inner, .hero__content, .footer-inner { padding-left: 20px; padding-right: 20px; }

  .header-inner { padding: 16px 20px; }
  .header-inner .btn { padding: 12px 20px; font-size: 13px; min-width: auto; }
  .header-inner .logo img { height: 32px; }

  .hero { min-height: auto; }
  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 20px;
    min-height: auto;
  }
  .hero__title { font-size: 28px; }
  .hero__subtext { font-size: 16px; }
  .hero__arrow { display: none; }
  .hero__form-card { min-height: 400px; }

  .section-title { font-size: 24px; }
  .section-title--lg { font-size: 28px; }

  .procedure__grid, .procedure__grid--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .procedure__grid--reverse .procedure__content { order: 1; }
  .procedure__grid--reverse .procedure__images { order: 2; }

  .ba-stack { width: 100%; max-width: 336px; margin: 0 auto; }

  .trust-strip__grid { flex-direction: column; gap: 32px; }
  .trust-badge img { height: 100px; }

  .doctor__inner {
    display: flex;
    flex-direction: column;
    height: auto;
    background-position: center top;
  }
  .doctor__inner::before {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
  }
  .doctor__content {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 300px; /* Leave space for doctor portrait on top */
    padding: 32px 24px;
    background: var(--white);
  }

  .pricing-intro__content { flex-direction: column; }
  .pricing-intro__badge { margin: 0 auto; }

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

  .pricing-cards__grid { grid-template-columns: 1fr; }

  .comparison__row { grid-template-columns: 1.5fr 1fr 1fr; }
  .comparison__row > div { padding: 14px 10px; font-size: 14px; }
  .comparison__feature { font-size: 13px; }
  .comparison__logo { height: 28px; }
  .comparison__icon { width: 22px; height: 22px; }

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

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; font-size: 12px; }

  .btn--cta { min-width: 100%; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 24px; }
  .section-title { font-size: 22px; }
  .comparison__row { grid-template-columns: 1.2fr 1fr 1fr; }
  .comparison__feature { font-size: 12px; }
}