/* Custom Styles for HousePhysio Website */

/* General Styles */
html {
    scroll-behavior: smooth;
}

:root {
      --first-color: #B7D5EA;
      --icy-acqua: #B1F8F2;
      --acquamarine: #6feeb7
      --pale-sky: #BBD5ED;
      --frozen-lake: #97DFFC;
      --pearl-acqua: #98D9C2;
      --lavender-vapor: #AABDFF;
      --green-vintage: #68B55E;
      --teal: #0a9396;
      --teal-dark: #006d77;
      --teal-light: #e0f5f5;
      --text: #1a1a2e;
      --text-muted: #6b7280;
      --text-muted-dark: #000000;
      --border: #e5e7eb;
      --white: #fff;
      --bg: #f9fafb;
      --radius: 12px;
    }
    
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Animation styles */
.transition {
    transition: all 0.3s ease;
}

/* Form focus styles */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Button hover effect */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Card hover effect */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #97DFFC;
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Hover and focus states for better accessibility */
.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-3px);
  background-color: #76cbe3; /* Slightly darker shade for feedback */
}

/************  Navigation   *********/

.nav-link {
  color: #006d77; /*  #1f2937; Default text color (e.g., dark gray) */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease-in-out;
  display: inline-block;
}

.nav-link:hover {
  color: #0a9396;  
  transform: translateY(-1px);
}

.custom-navbar {
  background-color: #AABDFF; 
}

.nav-head {
  font-size: 1.25rem; 
  line-height: 1.75rem;
  font-weight: 700; 
  color: #1f2937;
  text-decoration: none; 
}

@media (min-width: 768px) {
  .nav-head {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}


/************  services section   *********/

.services-img {
  width: 80px;               /* w-20 */
  height: 72px;              /* h-18 */
  background-color: #dbeaff; /* bg-blue-100 */
  border-radius: 9999px;     /* rounded-full */
  display: flex;             /* flex */
  align-items: center;       /* items-center */
  justify-content: center;   /* justify-center */
  margin-bottom: 24px;       /* mb-6 */
}

.services-card {
  background-color: #ffffff; /* bg-white */
  border-radius: 8px;        /* rounded-lg */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
              0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
  transition: box-shadow 0.3s ease; /* transition duration-300 */
  overflow: hidden;          /* overflow-hidden */
}

/* Hover effect */
.services-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04); /* hover:shadow-xl */
}

/* Title (<h3 class="text-xl font-bold mb-3">) */
.section-subtitle {
  color: #006d77;             /* style="color: #006d77;" */
  font-size: 1.25rem;         /* text-xl (20px) */
  line-height: 1.75rem;       /* text-xl default line-height */
  font-weight: 700;           /* font-bold */
  margin-top: 0;
  margin-bottom: 0.75rem;     /* mb-3 (12px) */
}

/* Description Paragraph (<p class="text-gray-600">) */
.section-descn {
  color: #4b5563;             /* text-gray-600 */
  margin: 0;
}


.appt-label {
  display: block;             /* block */
  color: #374151;             /* text-gray-700 */
  font-weight: 500;           /* font-medium */
  margin-bottom: 0.5rem;      /* mb-2 (8px) */
}

.appt-input {
  width: 100%;                /* w-full */
  padding-left: 1rem;         /* px-4 (16px) */
  padding-right: 1rem;        /* px-4 (16px) */
  padding-top: 0.75rem;       /* py-3 (12px) */
  padding-bottom: 0.75rem;    /* py-3 (12px) */
  border: 1px solid #d1d5db;  /* border border-gray-300 */
  border-radius: 8px;         /* rounded-lg */
  box-sizing: border-box;     /* ensures padding doesn't break full width */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Focus States (focus:outline-none focus:ring-2 focus:ring-blue-500) */
.appt-input:focus {
  outline: none;                            /* focus:outline-none */
  border-color: #3b82f6;                   /* shifts border to blue */
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5); /* focus:ring-2 focus:ring-blue-500 */
}


/************  why choose section   *********/

.why-choose-icon-bkg {
  width: 48px;               /* w-12 */
  height: 48px;              /* h-12 */
  background-color: #ccfbf1; /* bg-teal-100 */
  border-radius: 9999px;     /* rounded-full */
  display: flex;             /* flex */
  align-items: center;       /* items-center */
  justify-content: center;   /* justify-center */
  margin-right: 16px;        /* mr-4 */
  flex-shrink: 0;            /* flex-shrink-0 */
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--frozen-lake);
  color: #353935;
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 109, 119, .35);
}

.btn-submit {
  width: 100%;                /* w-full */
  background-color: #2563eb;  /* bg-blue-600 #2563eb */
  color: #ffffff;             /* text-white #ffffff*/
  font-weight: 700;           /* font-bold */
  padding-top: 0.75rem;       /* py-3 (12px) */
  padding-bottom: 0.75rem;    /* py-3 (12px) */
  padding-left: 2rem;         /* px-8 (32px) */
  padding-right: 2rem;        /* px-8 (32px) */
  border-radius: 8px;         /* rounded-lg */
  border: none;
  cursor: pointer;
  
  /* shadow-lg */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
              0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* transition duration-300 ease-in-out transform */
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  box-sizing: border-box;
}

/* Hover State (hover:bg-blue-700 hover:scale-105) */
.btn-submit:hover {
  background-color: #1d4ed8;  /* hover:bg-blue-700 */
  transform: scale(1.05);     /* hover:scale-105 */
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Optional Active State (for tactile click feel) */
.btn-submit:active {
  transform: scale(0.98);
}


/* FAQ accordion styles */
.faq-toggle .fa-plus.active {
    transform: rotate(45deg);
}

/* Remove default styling for date and time inputs on some browsers */
input[type="date"],
input[type="time"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* TEAM */
    .team-sec {
      width: 100%;
      overflow-x: hidden;
      background: #fff
    }

    .team-inner {
      display: flex;
      flex-direction: column;
      gap: 2rem;
    }

.section-heading {
  font-size: 1.875rem;     /* text-3xl (30px) */
  line-height: 2.25rem;    /* text-3xl line height */
  font-weight: 700;        /* font-bold */
  text-align: center;      /* text-center */
  margin-bottom: 1.2rem;   /* mb-2 (8px) */
  color: #006d77;          /* text-gray-800 */
}


 /* Tablet & Laptop breakpoint (1024px+) */
 @media (min-width: 1024px) {
     .team-inner {
         flex-direction: row;
         align-items: flex-start;
     }
 
     .team-left {
         width: 25%;
         flex-shrink: 0;
     }
 
     /* Force all 4 cards into 1 single row */
     .team-grid {
         width: 75%;
         grid-template-columns: repeat(4, 1fr); 
     }
}
  }
  
    .team-h2 {
      font-family: 'DM Serif Display', serif;
      font-size: 36px;
      font-weight: 400;
      color: #006d77;
      margin-bottom: 24px;
      line-height: 1.2
    }  

    .team-h2 span {
      color: var(--teal)
    }

    .team-grid {
      display: grid;
          grid-template-columns: 1fr; /* 1 column on mobile */
          gap: 1rem;
    width: 100%;
    }


  /*   New one  *  /  /* Grid Container */
.team-grid {
  flex: 3 1 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  width: 100%;
}

/* Card Wrapper */
/* Update base classes for smooth transitions */
.doctor-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05); /* Soft border */
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.35s ease;
}

.doctor-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease; /* Smooth image zoom transition */
}

/* Hover State */
.doctor-card:hover {
  transform: translateY(-8px);
  /* Uses your teal brand color in the shadow for a premium feel */
  box-shadow: 0 16px 32px rgba(0, 109, 119, 0.15); 
  border-color: rgba(0, 109, 119, 0.3);
}

/* Subtle image zoom on card hover */
.doctor-card:hover .doctor-img {
  transform: scale(1.04);
}

/* Content Area */
.doctor-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.doctor-info h4 {
  font-size: 0.95rem;
  font-weight: bold;
  margin: 0 0 5px 0;
  color: #006d77;
}

.doctor-info span {
  font-size: 0.8rem;
  color: #6b7280;
}

    .social-btn {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f3f4f6;
      transition: background .2s
    }

    .social-btn:hover {
      background: var(--teal)
    }

    .social-btn:hover svg {
      color: #fff
    }

    .social-btn svg {
      width: 14px;
      height: 14px;
      color: var(--text-muted)
    }


.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Creates 3 equal-width columns */
  gap: 10px;                             /* Adds spacing between items */
}

.grid-item {
  background-color: #f0f0f0;
  padding: 20px;
  text-align: center;
}

/* Honeypot field for spam protection */
.honeypot {
    display: none;
}

/* Placeholder styling */
::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5d1eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9fb4e3;
}

/* Responsive image sizing */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* Mobile responsiveness tweaks */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    .py-16 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-20 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    
    /* Restrict mobile dropdown to content size only */
    #mobile-menu {
      height: auto !important;
      min-height: unset !important;
      max-height: 80vh !important;
      position: relative !important;
    }
    
    #mobile-menu .flex {
      height: auto !important;
    }

} 

/* swipe */

/* social media color & link styles */
.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.social-icon.instagram:hover { background-color: #e1306c; }
.social-icon.facebook:hover  { background-color: #1877f2; }
.social-icon.linkedin:hover  { background-color: #0a66c2; }
.social-icon.x-twitter:hover { background-color: #000000; }


/******** New additions  ************ /
/* Hero Section Container */
.hero-section {
  position: relative;
  padding: 3rem 1rem;
  background: linear-gradient(to right, #eff6ff, #e0e7ff);
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center; /* Mobile default */
}

/* Desktop / Laptop Layout (768px and up) */
@media (min-width: 768px) {
  .hero-section {
    padding: 5rem 2rem;
  }

  .hero-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;      /* Vertically aligns image and text directly in middle */
    justify-content: space-between;
  }

  .hero-col {
    flex: 1 1 50%;           /* Ensures exact 50-50 width split on laptops */
    max-width: 50%;
    width: 50%;
    box-sizing: border-box;
  }

  .hero-content {
    padding-right: 2.5rem;   /* Spacing between text and image */
  }
}

/* Slider Overrides to prevent layout breaking */
.swipe-container-lightblue {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  position: relative;
}

.swipe-wrapper {
  display: flex;
  width: 100%;
}

.swipe-slide {
  width: 100%;
  flex-shrink: 0;
}

/* Action Box Styling */
.hero-action-box {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-description {
  color: #374151; /* #4b5563; */
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Image Styling */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  max-height: 420px;          /* Prevents image from growing taller than content */
  object-fit: cover;
  border-radius: 12px;
    margin-top: 0;
  padding-top: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}