/* ===== CSS VARIABLES - LOGO COLOR SCHEME ===== */
:root {
  --primary-red: #C40000;
  --black: #1a1a1a;
  --black-dark: #000000;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-medium: #E0E0E0;
  --gray-text: #555555;
  --gray-text-dark: #333333;
  --whatsapp-green: #25d366;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--gray-text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  color: var(--black);
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  box-shadow: none;
  z-index: 1000;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.navbar.scrolled .nav-logo-img {
  filter: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-link {
  color: var(--black);
  text-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-red);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .bar {
  background: var(--black);
  box-shadow: none;
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url("images/clinic-bg.jpeg") center / cover no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(196, 0, 0, 0.1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
  border-radius: 50%;
  object-fit: cover;
  background: var(--white);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-wrapper {
  margin-top: 2rem;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  display: inline-block;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: #a30000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

.whatsapp-icon-btn {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 80px 20px;
  background: var(--gray-light);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-text h3 {
  color: var(--primary-red);
  margin: 2rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-features {
  list-style: none;
  margin: 1.5rem 0;
  padding-left: 0;
}

.about-features li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--gray-text-dark);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ===== GALLERY SECTION ===== */
.gallery {
  padding: 80px 20px;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  aspect-ratio: 4/3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== TREATMENTS SECTION ===== */
.treatments {
  padding: 80px 20px;
  background: var(--gray-light);
}

.treatments .container {
  max-width: 1200px;
}

.category {
  margin: 60px 0 30px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-red);
  border-left: 5px solid var(--primary-red);
  padding-left: 20px;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 2rem;
}

.card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-red);
}

.card.active {
  border-color: var(--primary-red);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.card:hover img {
  transform: scale(1.05);
}

.card h4 {
  color: var(--black);
  margin: 1rem 0 0.5rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.summary {
  color: var(--gray-text);
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
  margin-bottom: 1rem;
}

.details {
  display: none;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.card.active .details {
  display: block;
}

.details p {
  color: var(--gray-text-dark);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.whatsapp-btn {
  display: inline-block;
  margin-top: 10px;
  background: var(--whatsapp-green);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  font-size: clamp(0.95rem, 1.2vw, 1rem);
}

.whatsapp-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-section {
  /* display: flex; */
  flex-direction: column;
  height: 100%;
}

.footer-section h3 {
  color: var(--white);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 20px;
  text-align: center;
}

.footer a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-red);
}

/* Map Section */
.map-section {
  min-height: 350px;
}

.map-footer {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Timings Section */
.timings-section {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.timings {
  background: var(--white);
  color: var(--black);
  padding: 25px;
  border-radius: 12px;
  font-weight: 500;
  width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.timings strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--black);
  text-align: center;
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-medium);
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
}

.time-row span {
  margin: 0 10px;
}

.time-row span.spacer {
  flex: 1;
}


.time-row:last-child {
  border-bottom: none;
}

.time-row span:first-child {
  font-weight: 600;
  color: var(--black);
}

.time-row span:last-child {
  color: var(--gray-text-dark);
}

.closed span:last-child {
  color: var(--primary-red);
  font-weight: 600;
}

/* Contact Full Width Below Map and Timetable */
.contact-full-width {
  grid-column: 1 / -1;
  background: transparent;
  color: var(--white);
  padding: 30px 20px 10px;
  text-align: center;
}

.contact-full-width h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.contact-full-width p {
  margin: 0px 0;
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.9);
}

.contact-full-width a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-full-width a:hover {
  color: var(--primary-red);
}

/* Contact Section (Legacy - keeping for compatibility) */
.contact-section {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.contact-card {
  background: var(--white);
  color: var(--black);
  padding: 25px;
  border-radius: 12px;
  font-weight: 500;
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contact-card strong {
  display: block;
  margin-bottom: 20px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--black);
  text-align: center;
}

.contact-details {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details p {
  color: var(--black);
  margin: 15px 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.contact-details a {
  color: var(--primary-red);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--black);
  text-decoration: underline;
}

.footer p {
  color: var(--white);
  margin: 15px 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.social {
  margin-top: 30px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.social span {
  margin-right: 10px;
  color: var(--black);
}

.contact-card .social span {
  color: var(--black);
}

.social a {
  margin: 0 10px;
  font-weight: 500;
}

.contact-card .social a {
  color: var(--primary-red);
}

.contact-card .social a:hover {
  color: var(--black);
}

/* ===== FLOATING WHATSAPP ===== */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--whatsapp-green);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
  padding: 8px;
}

.whatsapp-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.floating-whatsapp:hover {
  background: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 120px;
  }

  .nav-menu {
    gap: 2.5rem;
  }

  /* Footer - 2 columns on tablet: map and timetable side by side */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-section {
    grid-column: auto;
  }

  .contact-full-width {
    grid-column: 1 / -1;
  }

  /* Timetable - stack weekday and time on separate lines in tablet */
  .time-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .time-row span:first-child {
    margin-bottom: 2px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-content {
    padding: 0 40px;
  }

  .hero-content {
    padding: 0 40px;
  }

  .nav-menu {
    gap: 3rem;
  }

  /* Footer - 2 columns side by side on desktop: map and timings with contact below */
  .footer-content {
    grid-template-columns: 1fr 1.5fr;
  }

  .map-section {
    grid-column: auto;
  }

  .contact-full-width {
    grid-column: 1 / -1;
  }

  /* Timetable - weekday and time side by side on desktop */
  .time-row {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .time-row span:first-child {
    margin-bottom: 0;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
  }

  .nav-link {
    font-size: 1.125rem;
    color: var(--black);
    text-shadow: none;
  }

  .logo {
    width: 200px;
    height: 200px;
  }

  .hero {
    min-height: 500px;
    padding-top: 100px;
    /* Disable fixed background on mobile for better performance */
    background-attachment: scroll;
  }

  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    padding: 10px;
  }

  /* Footer responsive - stack sections vertically on mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-section {
    min-height: 300px;
  }

  .map-footer {
    min-height: 300px;
  }

  .contact-full-width {
    grid-column: 1;
  }

  /* Timetable - stack weekday and time on separate lines in mobile */
  .time-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .time-row span:first-child {
    margin-bottom: 2px;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .floating-whatsapp,
  .btn-primary,
  .whatsapp-btn {
    display: none;
  }

  .hero {
    height: auto;
    min-height: auto;
    page-break-after: always;
  }
/* ===== DARK CONTACT SECTION (Footer) ===== */
.dark-contact {
  background: transparent;
  color: var(--white);
  padding: 10px 0;
  text-align: left;
}

.dark-contact h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  position: relative;
}

.dark-contact h3::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-red);
  margin-top: 8px;
}

.dark-contact p {
  margin: 12px 0;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.85);
}

.dark-contact a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.dark-contact a:hover {
  color: var(--primary-red);
}

/* Social links */
.dark-social {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.dark-social a {
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.dark-social a:hover {
  color: var(--primary-red);
}

}
