/* ================= NEW THEME VARIABLES ================= */
:root {
  --primary: #0f4c5c;
  --primary-light: #166b82;
  --secondary: #e36414;
  --bg-main: #f4f1de;
  --bg-card: #ffffff;
  --text-dark: #1b263b;
  --text-light: #5c6c84;
  --font-heading: "Georgia", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius-lg: 24px;
  --radius-md: 12px;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

/* ================= TYPOGRAPHY & UTILITIES ================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: normal;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 20px;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 15px;
}
h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 10px;
}
p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--text-light);
  margin-bottom: 15px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-pad {
  padding: 100px 0;
}
.text-center {
  text-align: center;
}

.tagline {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  width: auto;
}
.btn:hover {
  background-color: #c0520c;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(227, 100, 20, 0.2);
  color: #fff;
}
.btn-dark {
  background-color: var(--primary);
}
.btn-dark:hover {
  background-color: #0a333e;
  box-shadow: 0 10px 20px rgba(15, 76, 92, 0.2);
}
.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}
.btn-outline:hover {
  background-color: var(--secondary);
  color: #fff;
}

/* ================= ANIMATIONS ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}

/* ================= PROFESSIONAL HEADER (SMART SCROLL) ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 70px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    transform 0.4s ease,
    background 0.3s ease;
  border-bottom: 1px solid #eaeaea;
}

.header-hidden {
  transform: translateY(-100%);
}

header .logo {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
}

header .logo img {
  width: 200px;
}

nav > ul {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s;
}
nav a:hover {
  color: var(--secondary);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #eaeaea;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  z-index: 1001;
  list-style: none;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px); /* Creates a slight gap between nav and menu */
}

.dropdown-menu li {
  width: 100%;
}
.dropdown-menu a {
  padding: 5px;
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s;
}
.dropdown-menu a:hover {
  background: var(--bg-main);
  color: var(--primary);
  padding-left: 25px; /* Slight indent effect on hover */
}

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.menu-btn div {
  width: 25px;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://images.unsplash.com/photo-1516549655169-df83a0774514?auto=format&fit=crop&w=1920&q=80")
    center/cover no-repeat;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 76, 92, 0.95) 0%,
    rgba(15, 76, 92, 0.6) 100%
  );
  z-index: -1;
}
.hero-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: var(--radius-lg);
  max-width: 700px;
  color: #fff;
}
.hero-content h1 {
  color: #fff;
  font-size: 45px;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin-bottom: 0;
}

.hero .hero-content .hero-features {
  margin-bottom: 10px;
}

.hero-btns {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ================= STATS ================= */
.stats-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  margin-top: -60px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
}
.stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eaeaea;
}
.stat-item:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: bold;
  line-height: 1;
}
.stat-item p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ================= ABOUT ================= */
.about-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.about-visual {
  flex: 1;
  position: relative;
}
.about-visual img {
  width: 100%;
  border-radius: 200px 200px 12px 12px;
  object-fit: cover;
  height: 550px;
  box-shadow: 0 20px 40px rgba(15, 76, 92, 0.15);
}
.about-visual::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--secondary);
  z-index: -1;
}
.about-text {
  flex: 1;
}
.about-list {
  list-style: none;
  margin-bottom: 30px;
}
.about-list li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  color: var(--text-dark);
  font-weight: 500;
}
.about-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ================= EXPERTISE (EDITORIAL) ================= */
.services-bg {
  background-color: var(--primary);
  border-radius: 40px;
  padding: 100px 0;
  margin: 0 15px;
  color: #fff;
}
.services-bg h2,
.services-bg h3 {
  color: #fff;
}
.services-bg p {
  color: rgba(255, 255, 255, 0.75);
}

.service-editorial {
  display: flex;
  align-items: center;
  margin-top: 80px;
}
.service-editorial:nth-child(even) {
  flex-direction: row-reverse;
}

.service-img {
  width: 50%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-editorial:hover .service-img img {
  transform: scale(1.08);
}

.service-info {
  width: 55%;
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--radius-md);
  margin-left: -5%;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.service-editorial:nth-child(even) .service-info {
  margin-left: 0;
  margin-right: -5%;
}
.service-info h3 {
  color: var(--primary);
  margin-bottom: 15px;
}
.service-info p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* ================= CAROUSEL TESTIMONIALS ================= */
.testimonials {
  background: #fff;
  padding: 100px 0;
  overflow: hidden;
}
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 50px auto 0;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.test-card {
  background: var(--bg-main);
  padding: 40px 30px;
  border-radius: var(--radius-md);
  position: relative;
  flex: 0 0 auto;
  width: 350px;
  scroll-snap-align: start;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  white-space: normal;
}
.test-card::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: rgba(227, 100, 20, 0.2);
  font-family: var(--font-heading);
}
.test-card p {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  font-size: 0.95rem;
}
.test-author {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}
.test-treatment {
  font-size: 0.8rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 5px;
}

.carousel-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
.carousel-btn:hover {
  background: var(--secondary);
  transform: scale(1.1);
}
.prev-btn {
  left: -20px;
}
.next-btn {
  right: -20px;
}

/* ================= FAQ SECTION ================= */
.faq-grid {
  max-width: 900px;
  margin: 40px auto 0;
}
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}
.faq-question {
  padding: 20px 25px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question span {
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 0.3s;
}
.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  color: var(--text-light);
}
.faq-item.active .faq-answer {
  padding: 0 25px 25px 25px;
  max-height: 500px;
}
.faq-item.active .faq-question span {
  transform: rotate(45deg);
}

/* ================= BOOKING FORM ================= */
.booking-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: 0 30px 60px rgba(15, 76, 92, 0.08);
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.input-box {
  width: 100%;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: 0.3s;
}
.input-box:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.full-width {
  grid-column: span 2;
}

/* ================= FOOTER ================= */
footer {
  background: #061c23;
  color: #fff;
  padding: 80px 0 20px;
  margin-top: 80px;
}
.footer-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-wrap .social-links {
  display: flex;
  gap: 10px;
}

.footer-wrap .social-links .media {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.footer-wrap .media:hover {
  background-color: var(--secondary);
  border: 1px solid var(--bg-card);
  color: #fff;
}
.footer-wrap h3 {
  color: #fff;
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 1.2rem;
}

.footer-wrap .treatment-footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.footer-wrap ul {
  list-style: none;
}
.footer-wrap li {
  margin-bottom: 12px;
  color: #94a3b8;
}
.footer-wrap a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}
.footer-wrap a:hover {
  color: var(--secondary);
}
.bottom-bar {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
  font-size: 0.9rem;
}

.bottom-bar a {
  color: var(--secondary);
  text-decoration: none;
  transition: 0.3s;
}
.bottom-bar a:hover {
  color: var(--text-light);
}

.footer-info p {
  max-width: 320px;
}

.footer-wrap li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-wrap li i {
  color: var(--secondary);
  margin-top: 4px;
  min-width: 18px;
}

.footer-wrap li span {
  display: block;
  line-height: 1.7;
}

.footer-wrap .social-links {
  flex-wrap: wrap;
  margin-top: 20px;
}

footer .responsive-768 {
  display: block;
}

footer .footer-wrap-2 {
  display: none;
}

/* ================= EXTREME RESPONSIVE MASTER RULES ================= */
@media (max-width: 1100px) {
  nav > ul {
    gap: 16px;
  }
}

@media (max-width: 992px) {
  header {
    padding: 15px 20px;
  }
  .menu-btn {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  nav > ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }
  nav > ul.active {
    max-height: 600px;
    border-top: 1px solid #eee;
  }
  nav > ul > li {
    width: 100%;
  }
  nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #f4f4f4;
    width: 100%;
    text-align: center;
  }
  nav a.btn {
    margin: 10px auto;
    width: 80%;
    border-radius: 5px;
  }

  /* Mobile Dropdown Fix */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #f9f9f9;
    border: none;
    border-radius: 0;
    padding: 0;
  }
  /* Show dropdown on hover/tap in mobile */
  .dropdown:hover .dropdown-menu {
    display: flex;
    transform: none;
  }
  .dropdown-menu a {
    padding: 12px 20px;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.9rem;
  }

  .about-layout {
    flex-direction: column;
    text-align: center;
  }
  .about-visual {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .about-visual img {
    height: 450px;
    border-radius: var(--radius-lg);
  }
  .about-visual::after {
    display: none;
  }
  .about-list li {
    text-align: left;
  }

  .service-editorial,
  .service-editorial:nth-child(even) {
    flex-direction: column;
    margin-top: 40px;
  }
  .service-img {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }
  .service-info {
    width: 100%;
    margin: 0 !important;
    padding: 40px 30px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  footer {
    padding: 60px 0 20px;
  }

  .footer-wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-wrap .treatment-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .footer-info p {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 60px 0;
  }

  .hero-content {
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
  }
  .hero-btns {
    justify-content: center;
  }

  .stats-wrap {
    flex-direction: column;
    gap: 0;
    padding: 20px;
    margin-top: -30px;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding: 20px 0;
    width: 100%;
  }
  .stat-item:last-child {
    border-bottom: none;
  }

  .services-bg {
    padding: 60px 20px;
    margin: 0;
    border-radius: 20px;
  }

  .carousel-btn {
    display: none;
  }
  .test-card {
    width: 300px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .full-width {
    grid-column: span 1;
  }
  .booking-container {
    padding: 40px 20px;
  }

  footer {
    padding: 50px 0 20px;
    margin-top: 60px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: start;
  }

  .footer-wrap .social-links {
    justify-content: center;
  }

  .footer-wrap .treatment-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .footer-wrap ul {
    padding: 0;
  }

  .footer-wrap li {
    justify-content: start;
    text-align: start;
  }

  .footer-wrap li i {
    margin-top: 3px;
  }

  .footer-info img {
    width: 170px;
  }

  .bottom-bar {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  footer .responsive-768 {
    display: none;
  }

  footer .footer-wrap-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 480px) {
  header .logo img {
    width: 140px;
  }

  .hero-content h1 {
    font-size: 31px;
  }

  .hero-content p {
    font-size: 14px;
  }

  footer {
    padding: 40px 0 20px;
  }

  .footer-wrap {
    gap: 30px;
  }

  .footer-wrap h3 {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  .footer-wrap li,
  .footer-wrap a,
  .footer-info p {
    font-size: 0.9rem !important;
  }

  .footer-info img {
    width: 150px;
  }

  .footer-wrap .social-links .media {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 430px) {
  footer .footer-wrap-2 {
    grid-template-columns: 1fr;
  }

  footer .footer-wrap-2 .quick-footer-430 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 380px) {
  body {
    font-size: 14px;
  }
  .container {
    padding: 0 15px;
  }

  .hero {
    padding-top: 100px;
  }
  .hero-content {
    padding: 30px 15px;
  }
  .btn {
    width: 100%;
    padding: 12px;
  }

  .services-bg {
    padding: 50px 15px;
  }
  .service-img {
    height: 250px;
  }
  .service-info {
    padding: 25px 15px;
  }

  .stats-wrap {
    margin-top: 10px;
  }
  .test-card {
    width: 260px;
    padding: 30px 20px;
  }

  .booking-container {
    padding: 30px 15px;
  }
  .faq-question {
    padding: 15px;
    font-size: 0.95rem;
  }
  .faq-answer {
    padding: 0 15px;
  }
  .faq-item.active .faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 360px) {
  .service-info h3 {
    font-size: 16px;
  }

  .service-info p {
    font-size: 15px;
  }

  .service-img {
    height: 277px;
  }
}

@media (max-width: 319px) {
  .hero-content h1 {
    font-size: 25px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .service-info p {
    font-size: 11px;
  }
}

@media (max-width: 280px) {
  .about-visual img {
    height: 200px;
    border-radius: var(--radius-lg);
  }

  .about-text p {
    font-size: 11px;
  }

  .about-list li {
    font-size: 11px;
  }

  .service-img {
    height: 212px;
  }

  .services-bg h2,
  .services-bg h3 {
    font-size: 20px;
  }
}

@media (max-width: 240px) {
  header .logo img {
    width: 105px;
  }

  .hero-content h1 {
    font-size: 20px;
  }

  .hero-content p {
    font-size: 9px;
  }

  .hero .hero-content .hero-features {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero-btns {
    font-size: 12px;
  }

  .services-bg h2,
  .services-bg h3 {
    font-size: 14px;
  }
}
