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

/* Reset & Variables */
:root {
  --primary: #2A7F7F;      /* Teal */
  --secondary: #EAF6F6;    /* Light background */
  --accent: #F4A261;       /* Soft orange */
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

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

/* Global */
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Header & Navbar */
.site-header {
  background: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.btn {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.btn:hover {
  background: #1e5e5e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 127, 127, 0.3);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: #e78e45;
  box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('../assets/images/mcover.jpg') no-repeat center center;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-color: var(--primary); /* Fallback color */
  color: var(--white);
  padding: 100px 0;
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu button */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none;
  }

  .main-nav.show {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero h2 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
    padding: 0 20px;
  }
}
/* Shared Section Styles */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* Services Section */
.services {
  background: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.subtitle {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.about-content h2 {
  color: var(--primary);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-list {
  list-style: none;
  margin-bottom: 30px;
}

.about-list li {
  margin-bottom: 10px;
  color: var(--primary);
  font-weight: 600;
}

/* Testimonials */
.testimonials {
  background: var(--secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.testimonial-user {
  display: flex;
  flex-direction: column;
}

.testimonial-user strong {
  color: var(--primary);
}

.testimonial-user span {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* CTA Section */
.cta {
  background: var(--primary);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

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

/* Mobile responsive for new sections */
@media (max-width: 768px) {
  .about-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

  /* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.toast {
  background: var(--white);
  color: var(--text-dark);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 5px solid var(--primary);
  animation: slideInRight 0.3s ease-out;
  transition: var(--transition);
}

.toast.success { border-left-color: #48bb78; }
.toast.error { border-left-color: #f56565; }
.toast.info { border-left-color: #4299e1; }

.toast i {
  font-size: 1.2rem;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
  transform: translateX(100%);
  opacity: 0;
}

.btn-delete {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete:hover {
  background: #dc2626;
  transform: scale(1.1);
}

  /* Appointment form */
.booking-page {
  background: var(--secondary);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.booking-card {
  background: var(--white);
  max-width: 600px;
  margin: 0 auto;
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.booking-header {
  text-align: center;
  margin-bottom: 40px;
}

.booking-header h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.booking-header p {
  color: var(--text-light);
}

.appointment-form {
  width: 100%;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: var(--primary);
  font-size: 1.1rem;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(42, 127, 127, 0.1);
}

.input-wrapper.error input,
.input-wrapper.error select {
  border-color: #e53e3e;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.1);
}

.btn-full {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  margin-top: 10px;
}

.required {
  color: #e53e3e;
}

.hint {
  display: block;
  margin-top: 5px;
  color: var(--text-light);
  font-size: 0.8rem;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-message.success {
  display: block;
  background: #c6f6d5;
  color: #22543d;
}

.form-message.error {
  display: block;
  background: #fed7d7;
  color: #822727;
}

.form-message.info {
  display: block;
  background: #bee3f8;
  color: #2a4365;
}
/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: fadeIn 0.3s ease;
}
.modal h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.modal p {
  color: var(--text-light);
  margin-bottom: 20px;
}
.modal .btn {
  width: 100%;
}
.modal-overlay.show {
  display: flex;
}
/* Admin small polish */
.filter-input {
  width: 100%;
  max-width: 320px;
  padding: 10px 12px;
  border: 2px solid #edf2f7;
  border-radius: 10px;
  background: #f8fafc;
}
/* Admin page polish */
.admin-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #374151;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
}

/* Status Badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-completed { background: #e0f2fe; color: #075985; }

/* Status Action Buttons */
.status-actions {
  display: flex;
  gap: 5px;
}
.btn-status {
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: var(--transition);
  color: white;
}
.btn-confirm { background: #10b981; }
.btn-complete { background: #3b82f6; }
.btn-cancel { background: #ef4444; }
.btn-status:hover { opacity: 0.8; transform: scale(1.05); }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #e5e7eb;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 50px 0;
}
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-size: 1.1rem;
}
.footer-col p {
  color: #cbd5e1;
}
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li + li {
  margin-top: 8px;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-contact li {
  color: #cbd5e1;
  margin-bottom: 12px;
  list-style: none;
}

.footer-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.social-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  transition: var(--transition);
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 14px;
}

/* Better section readability */
.page-section p {
  margin-bottom: 10px;
}

.page-section h2 {
  margin-bottom: 14px;
}

/* Improve form/table spacing on small screens */
@media (max-width: 768px) {
  .page-section {
    padding: 32px 0;
  }

  .appointment-form {
    padding: 16px;
  }

  .btn,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .admin-actions {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}
