/* =====================================================================

1. GLOBAL FONTS, VARIABLES AND SYSTEM BASE SETTINGS LISTED

========================================================================*/
@font-face {
    font-family : 'Mallory';
    src: url('../fonts/Mallory-Light.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family : 'Mallory';
    src: url('../fonts/Mallory-Book.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family : 'Mallory';
    src: url('../fonts/Mallory-Medium.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family : 'Mallory';
    src: url('../fonts/Mallory-Bold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
  --font-primary: 'Mallory',  'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-size-h1: clamp(2.5rem, 5vw, 4rem);
  --font-size-h2: clamp(1.75rem, 4vw, 2.5rem);
  --font-size-h3: clamp(1.25rem, 3vw, 1.5rem);
  --font-size-h4: clamp(1.12rem, 2vw,1.1rem);
  --font-size-h5: clamp(1.0rem, 1.5vw,1.0rem);
  --font-size-h6: clamp(0.8rem, 1.0vw,0.8rem);

}

html {
  font-family: var(--font-primary);
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 150px; /* Forces browser view to stop 150px early on anchors */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: #2c3e50;
  background-color: #ffffff;
}

h1, h2, h3, .site-title {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: #1a2a3a;
  margin: 0 0 1.5rem 0;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); text-transform: capitalize; }
h3 { font-size: var(--font-size-h3); text-transform: capitalize; }

/* EYEBROW HEADLINE */
.eyebrow {
  font-size: clamp(0.8rem, 1.5vw, 0.99rem);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: #e67e22;
  margin-bottom: 0.5rem;
}

/* =====================================================================

2. STICKY HEADER (DESKTOP STATE)  LAYOUT, LOGO AND NAVIGATION

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

.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  text-align: center;
}


.site-title {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: #1a2a3a;
  letter-spacing: -0.5px;
  margin: 0;
}

.site-tagline {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: #666666;
  font-style: italic;
  font-weight: 400;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%; /* FIX: Locks the horizontal boundaries firmly across viewports */
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-bar {
  background-color: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid #eaeaea;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-placeholder {
  width: 150px;
  height: 150px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.branding {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.menu-icon {
  font-size: 30px;
  color: white;
  cursor: pointer;
  display: block;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.nav-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.navbar {
  background-color: #1a2a3a;
  padding: 0.75rem 0;
  width: 100%;
}


.nav-links {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
}



.navbar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  transition: opacity 0.2s ease;
}

.navbar a:hover { opacity: 0.8; }




/* =====================================================================

3. MEDIA QUERIES TO SET UP RESIZING DISPLAY

======================================================================= */
@media (max-width: 768px) {
  
  .nav-container {
    display: flex !important; 
    justify-content: flex-end !important; 
    position: relative !important;
    width: 100% !important;
  }

  /* Force the hidden toggle trigger button box to display visually */
  .menu-toggle {
    display: block !important;
    background: #ff0000 !important;
    color:white;
    border: none !important;
    cursor: pointer !important;
    padding: 10px !important;
    z-index: 1001 !important;
    position: absolute;
  }

 

  

  /* Format the horizontal links into a neat, compact dropdown container */
  .nav-links {
    display: none !important; /* Kept hidden away until active class is applied */
    flex-direction: column !important;
    position: absolute !important;
    top: calc(100% + 0.5rem) !important; 
    right: 0 !important;
    width: 220px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    background-color: #1a2a3a !important;
    padding: 0.5rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1000 !important;
  }

  /* When JS applies the state class, force display the dropdown block */
  .nav-links.active {
    display: flex !important;
  }

  .navbar a {
    display: block !important;
    padding: 0.85rem 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    color: #ffffff !important;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .navbar a:last-child {
    border-bottom: none !important;
  }

  .grid-4-col, .grid-3-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 1rem;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 1rem;
}
}



/* RESPONSIVE BREAKDOWN FOR MOBILE */
@media screen and (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  .site-footer {
    padding: 2rem 0;
    min-height: auto;
  }
  .footer-heading {
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: 0.75rem;
  }
  .footer-menu {
    gap: 0.5rem;
  }
  .footer-menu li {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    line-height: 1.4;
  }
  .footer-col {
    min-width: 0;
  }
}

/* ====================================================================

4. HERO,REUSABLE CONTAINERS, GRID AND  CARD ENTITIES

======================================================================= */
.hero {
  background-color: #1a2a3a;
  color: #ffffff;
  padding: clamp(4rem, 10vw, 8rem) 0;
  text-align: center;
}

.hero h2 { color: #ffffff; max-width: 800px; margin-inline: auto; }
.hero p { font-size: clamp(0.95rem, 2vw, 1.25rem); max-width: 600px; margin: 0 auto 2.5rem auto; opacity: 0.9; }

.director {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem auto;
  border-radius: 8px; 
}

.btn-primary {
  display: inline-block;
  background-color: #e67e22;
  color: #ffffff;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover { background-color: #d35400; transform: translateY(-2px); }



/* ====================================================================

5. CUSTOM SECTION STYLES AND CARDS

======================================================================= */
.services-section { background-color: #f9f9f9; }
.expertise-section { background-color: #ffffff; }

.grid-4-col, .grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 25px 25px;
  overflow: hidden;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 25px 25px;
  overflow: hidden;
}

.avatar{

  width:60px;
  height:60px;
}

.card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 500;
  border: 1px solid #eaeaea;
}

/* Custom Green Tick Bullets System */
.card ul {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

.card li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; 
  height: 18px;   
  background-image: url('../images/GreenTick1010.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.services-section .card 
{ 
  text-transform: capitalize;
  padding: auto;

}

.service-card .card-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: #1a2a3a;
  text-transform: capitalize;
  margin-bottom: 1rem;
}

.service-card .card-text {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  color: #555555;
  text-transform: none; 
  text-align: left;
  margin: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  max-width: min(315px, 100%);
}

/* Base Testimonial Card Layout from Snippets*/
.snip1390 {
  font-family: 'Roboto', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  color: #ffffff;
  text-align: center;
  line-height: 1.4em;
  background-color: #b3c8f3;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.snip1390 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Card Body Content Padding */
.snip1390 figcaption {
  padding: 40px;
}

/* Avatar Image Placement */
.snip1390 .profile {
  border-radius: 50%;
  max-width: 80px;
  height: 80px;
  vertical-align: top;
  margin-top: 40px;
  border: 3px solid #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: inline-block;
}

/* Header Text (Name) */
.snip1390 h2 {
  margin: 0 0 5px;
  font-weight: 300;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  letter-spacing: -1px;
}

/* Sub-header Text (Role/Title) */
.snip1390 h4 {
  margin: 0 0 15px;
  opacity: 0.5;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a2a3a;
}

/* Main Blockquote (The Quote Text) */
.snip1390 blockquote {
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  font-style: italic;
  color:black;
  opacity: 0.75;
  margin: 0;
  padding: 0;
}

/* ====================================================================

6. HEALTH PROVIDER SECTIONS AND GRIDS

=========================================================================*/

.rebates-section {
  background-color: #f9f9f9;
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.rebates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.provider-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.provider-logo-container {
  flex: 0 0 140px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.provider-logo-placeholder img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.provider-name-container {
  flex: 1;
  text-align: left;
  padding-left: 0.5rem;
}

.provider-name {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  font-weight: 500;
  color: #1a2a3a;
  text-transform: none;
}

.provider-name .sub-label {
  display: block;
  font-size: clamp(0.7rem, 1.1vw, 0.8rem);
  color: #777777;
  font-weight: 400;
  margin-top: 0.15rem;
}

/* ==================================================================

7.  BOOKING FORM STYLING FOR APPOINTMENTS

   ====================================================================*/

.booking-section { background-color: #ffffff; }
.section-lead { font-size: clamp(0.95rem, 1.5vw, 1.1rem); max-width: 650px; margin: 0 auto 3rem auto; color: #555555; }

.booking-form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background: #f9f9f9;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.form-grid-2-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full-width { margin-bottom: 2rem; }
.form-group label { font-size: clamp(0.8rem, 1.2vw, 0.9rem); font-weight: 600; color: #1a2a3a; }
.booking-form input, .booking-form select, .booking-form textarea 
{
  font-family: var(--font-primary);font-size: 1rem;padding: 0.75rem 1rem;border: 1px solid #d1d5db;border-radius: 6px;width: 100%;box-sizing: border-box;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {outline: none; border-color: #e67e22; box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);}
.booking-form textarea { resize: vertical; min-height: 100px; }
.form-actions { display: flex; justify-content: flex-end; }
.btn-submit {font-family: var(--font-primary); font-size: 1.05rem; font-weight: 600; color: #ffffff;background-color: #e67e22; border: none; padding: 0.9rem 2.5rem; border-radius: 6px; cursor: pointer; width: 100%;transition: background-color 0.2s ease;}
.btn-submit:hover { background-color: #d35400; }

/*8.  FOOTERS AND FOOTER MENU

======================================================================== */
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 0;
  text-align: center;
}

.site-footer {
  background-color: #1a2a3a; /* Slate grey background */
  color: #ffffff;
  padding: 2rem 0;
  border-top: 4px solid #e67e22; /* Brand orange accent divider */
  text-align: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  display: flow-root;
}

/* Forces the layout container to arrange columns horizontally on desktop */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-content: center;
  padding: 0 1rem;
  max-width: 100%;
  box-sizing: border-box;
}
.footer-col{

  align-items: start;
  text-align: left;
}
.footer-heading {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #e67e22; /* Brand orange heading */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-menu {
  list-style: none; /* Removes any bullet points or custom green ticks */
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-menu li {
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.5;
  color: #e0e0e0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-menu a:hover {
  color: #e67e22;
  text-decoration: underline;
}

.contact-details .label {
  font-weight: bold;
  color: #e67e22;
  margin-right: 0.25rem;
}

/* ====================================================================

9. TIMESLOT GRID (BOOKING FORM)

======================================================================= */

.timeslot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.timeslot-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 70px;
  border: 2px solid transparent;
}

.timeslot-cell.available {
  background-color: #27ae60;
  color: #ffffff;
}

.timeslot-cell.available:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35);
}

.timeslot-cell.unavailable {
  background-color: #e74c3c;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.7;
}

.timeslot-cell.selected {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.4);
  transform: scale(1.04);
}

.timeslot-cell .slot-time {
  font-size: 0.9rem;
  font-weight: 700;
}

.timeslot-cell .slot-status {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

@media (max-width: 600px) {
  .timeslot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeslot-cell:last-child {
    grid-column: span 2;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* ====================================================================

10. BOOKING FORM MESSAGES

======================================================================= */

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.form-message.visible {
  display: block;
}

/* ====================================================================

11. ADMIN PANEL STYLES

======================================================================= */

.admin-header {
  background-color: #1a2a3a;
  color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
}

.admin-header h1 {
  color: #ffffff;
  margin: 0;
  font-size: 1.4rem;
}

.admin-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 1rem;
  background: #f9f9f9;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-date-bar label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a2a3a;
}

.admin-date-bar input[type="date"] {
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

.admin-appointments {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem;
}

.admin-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
  font-size: 1.1rem;
}

.admin-slot-group {
  margin-bottom: 1.5rem;
}

.admin-slot-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  padding: 0.5rem 0;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 0.75rem;
}

.admin-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.admin-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a2a3a;
}

.admin-card-service {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.35rem;
}

.admin-card-contact {
  font-size: 0.85rem;
  color: #555;
}

.admin-card-contact a {
  color: #e67e22;
  text-decoration: none;
}

.admin-card-symptoms {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid #f0f0f0;
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.admin-btn {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  flex: 1;
  min-width: 90px;
  text-align: center;
  transition: opacity 0.2s ease;
}

.admin-btn:hover { opacity: 0.85; }

.admin-btn-confirm {
  background-color: #27ae60;
  color: #ffffff;
}

.admin-btn-cancel {
  background-color: #e67e22;
  color: #ffffff;
}

.admin-btn-delete {
  background-color: #e74c3c;
  color: #ffffff;
}

/* Status Badges */

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.confirmed {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.deleted {
  background-color: #e2e3e5;
  color: #383d41;
}

@media (max-width: 480px) {
  .admin-card-actions {
    flex-direction: column;
  }
  .admin-btn {
    min-width: 100%;
  }
}

