@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #0B1F3A;
  /* Navy Blue */
  --accent-color: #F5B400;
  /* Golden Yellow */
  --accent-hover: #e0a300;
  --bg-color: #ffffff;
  --text-dark: #333333;
  --text-light: #f4f4f4;
  --gray-light: #f9f9f9;
  --gray-border: #e2e8f0;
  --success-color: #25D366;
  /* WhatsApp Green */
  --success-hover: #20bd5a;

  --font-main: 'Poppins', sans-serif;

  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(245, 180, 0, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 180, 0, 0.6);
}

.btn-whatsapp {
  background-color: var(--success-color);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  background-color: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

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

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

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
  background-color: white;
}

.form-message {
  min-height: 1.25rem;
  margin: -0.5rem 0 0.75rem;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-message.success {
  color: #15803d;
}

.lead-form .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  bottom: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.float-whatsapp {
  left: 20px;
  background-color: var(--success-color);
}

.float-call {
  right: 20px;
  background-color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.9) 0%, rgba(11, 31, 58, 0.8) 100%), url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?auto=format&fit=crop&q=80&w=1200') no-repeat center center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  /* padding: 100px 0 50px; */
}

.hero .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 !important;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: var(--accent-color);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.urgency-badge {
  display: inline-block;
  background-color: rgba(245, 180, 0, 0.1);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.hero-form-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

.hero-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-form-card .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Trust Bar */
.trust-bar {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
}

.trust-bar .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem 0 !important;
}

.trust-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.trust-icon {
  font-size: 2rem;
  color: var(--accent-color);
}

/* Hair Problems Section */
.problems {
  background-color: var(--gray-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.problem-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.problem-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(11, 31, 58, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.problem-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.problems .text-center {
  text-align: center;
}

/* Treatments Section */
.treatments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.treatment-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-border);
}

.treatment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.treatment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.treatment-card:hover::before {
  transform: scaleX(1);
}

.treatment-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.treatment-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.treatments .text-center {
  text-align: center;
}

/* Doctor Profile */
.doctor-profile {
  background-color: var(--primary-color);
  color: white;
}

.doctor-profile .section-title {
  color: white;
}

.doctor-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.doctor-text h3 {
  color: var(--accent-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.doctor-text .degree {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.doctor-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.doctor-highlights {
  margin-bottom: 2rem;
}

.doctor-highlights li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.doctor-highlights i {
  color: var(--accent-color);
}

.doctor-image {
  position: relative;
}

.doctor-img-wrap {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 5px solid rgba(255, 255, 255, 0.1);
}

.doctor-img-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Sliders (Results & Reviews) */
.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  padding: 0 10px;
}

@media (min-width: 768px) {
  .slide {
    min-width: 50%;
  }
}

@media (min-width: 1024px) {
  .slide {
    min-width: 33.333%;
  }
}

/* Results Slider Specifics */
.result-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-border);
}

.result-images {
  display: flex;
  /* height: 250px; */
}

.result-img-container {
  flex: 1;
  position: relative;
}

.result-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-button {
  text-align: center
}

.result-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Reviews Section */
.reviews {
  background-color: var(--gray-light);
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 1rem 0;
  border: 1px solid var(--gray-border);
}

.review-stars {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: #555;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.review-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author h4 {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Contact & Map */
.contact-section {
  background-color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-card {
  background-color: var(--gray-light);
  padding: 3rem;
  border-radius: var(--border-radius);
}

.contact-info-card h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.info-text h4 {
  margin-bottom: 0.5rem;
}

.info-text p {
  color: #666;
}

.contact-btns {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}

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

/* FAQ Section */
.faq-section {
  background-color: var(--gray-light);
}

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

.accordion-item {
  background-color: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: #f8faff;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: white;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Final CTA */
.final-cta {
  background: linear-gradient(to right, var(--primary-color), #1a3a6b);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.final-cta h2 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background-color: #051020;
  color: white;
  text-align: center;
  padding: 3rem 0 5rem;
  /* extra bottom padding for mobile sticky buttons */
}

footer h3 {
  color: white;
  margin-bottom: 1rem;
}

footer p {
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-contact {
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

/* Popup Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  padding: 3rem;
  position: relative;
  transform: translateY(-50px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.modal-content p {
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
}

.modal-content .btn {
  width: 100%;
  margin-top: 1rem;
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 180, 0, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 180, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 180, 0, 0);
  }
}

/* Mobile Responsiveness (CRITICAL) */
@media (max-width: 992px) {

  .hero-content,
  .doctor-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .doctor-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
  }

  .trust-item {
    width: calc(50% - 1rem);
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }

  .floating-btn {
    bottom: 10px;
    width: 55px;
    height: 55px;
  }

  .float-whatsapp {
    left: 10px;
  }

  .float-call {
    right: 10px;
  }

  .contact-btns {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    padding: 0 1rem;
  }

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

  .container {
    padding: 2rem 0;
    /* Short sections on mobile */
  }

  .btn {
    padding: 1rem 1.5rem;
    /* Big tap buttons */
  }
}

@media (max-width: 480px) {
  .trust-item {
    width: 100%;
  }

  .hero-form-card {
    padding: 1.5rem;
  }
}

.fa-phone-alt:before {
  display: inline-block;
  transform: scaleX(-1);
}

@media only screen and (max-width: 768px) {
  .btn {
    padding: 1rem 0.9rem;
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--gray-border);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author i {
  width: 40px;
  height: 40px;
  background-color: #eee;
  color: #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}