/* 
===============================
    Main Styles for Apollo Allied Health Centres
    - Core styles shared across all pages
    - Typography, colors, buttons, header navigation, footer
===============================
*/

/* Base Styles & Reset */

:root {
  --primary: #00a0b0;
  --primary-dark: #007a85;
  --primary-light: #b3e0e5;
  --secondary: #f57f17;
  --secondary-dark: #bc5100;
  --secondary-light: #ffad42;
  --accent: #6a1b9a;
  --gray-dark: #333333;
  --gray: #666666;
  --gray-light: #cccccc;
  --gray-lightest: #f5f5f5;
  --white: #ffffff;
  --black: #000000;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --transition: all 0.3s ease;
  --font-heading: "Arial", sans-serif;
  --font-body: "Arial", sans-serif;
}

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

html {
  font-size: 62.5%;
  /* 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gray-dark);
  background-color: var(--white);
}

/* Container */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: var(--gray-dark);
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 2.8rem;
}

h3 {
  font-size: 2.2rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1.6rem;
  line-height: 1;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  position: center;
}

.btn-secondary {
  background-color: var(--secondary);
  position: center;
  z-index: 1;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

.btn-whatsapp {
  background-color: #25d366;
}

.btn-whatsapp:hover {
  background-color: #1c8c12;
}

/* Header - Default */

header {
  position: fixed;
  top: 1rem;
  /* Small margin from top */
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  /* Shrinks width to allow border radius */
  max-width: 1200px;
  /* Optional: prevents it from stretching too wide */
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, border-radius 0.3s ease,
    padding 0.3s ease;
  -webkit-text-fill-color: #ffffff;
  padding: 2rem 2rem;
  height: auto;
  border-radius: 2rem;
  /* Optional: default curve before scroll */
}

/* Header when scrolled */

header.scrolled {
  background-color: var(--white);
  opacity: 0.95;
  -webkit-text-fill-color: #000000;
  color: #000000;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 50rem;
  /* Fully curved oval shape */
  padding: 1rem 2rem;
  /* Reduce padding on scroll for compact look */
}

/* Container inside Header */

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 4rem;
  width: auto;
}

header nav ul {
  display: flex;
  list-style: none;
}

header nav ul li {
  margin-left: 2.4rem;
}

header nav ul li a {
  color: var(--gray-dark);
  font-weight: 500;
  padding: 0.8rem 0;
  position: relative;
}

header nav ul li a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

header nav ul li a:hover:after,
header nav ul li a.active:after {
  width: 100%;
}

header nav ul li a.active {
  color: var(--primary);
}

.cta-button a {
  -webkit-text-fill-color: #fff;
}

@media (max-width: 1024px) {
  header {
    color: var(--black);
    -webkit-text-fill-color: var(--black);
  }
  header.scrolled {
    color: var(--black);
    -webkit-text-fill-color: var(--black);
  }
  header nav ul li a {
    color: var(--black);
  }
  header nav ul li a:hover {
    color: var(--primary-dark);
  }
  header nav ul {
    max-height: 40vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-lightest);
  }
  header nav ul::-webkit-scrollbar {
    width: 8px;
    background: var(--gray-lightest);
  }
  header nav ul::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
  }
}

/* Submenu Styles */

.has-submenu {
  position: relative;
}

.has-submenu > a {
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: #000000;
}

.submenu-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.has-submenu:hover > a .submenu-arrow,
.has-submenu:focus-within > a .submenu-arrow {
  transform: rotate(180deg);
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 28rem;
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 1rem 1rem 1rem 1rem;
  padding: 1.2rem 0;
  z-index: 1002;
  transition: opacity 0.2s;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu {
  display: block;
}

.submenu li {
  margin: 0;
}

.submenu li a {
  display: block;
  padding: 1rem 2.4rem;
  color: var(--gray-dark);
  font-size: 1.5rem;
  font-weight: 400;
  white-space: normal;
  transition: background 0.2s, color 0.2s;
  color: var(--gray-dark);
}

.submenu li a:hover,
.submenu li a:focus {
  background: var(--primary-light);
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .has-submenu {
    width: 100%;
  }
  .submenu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    background: transparent;
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
  }
  .has-submenu.open > .submenu {
    display: block;
    max-height: 500px;
    opacity: 1;
  }
  .submenu li a {
    padding: 1rem 0;
    font-size: 1.5rem;
    background: none;
    color: var(--black);
    pointer-events: revert;
  }
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 2.5rem;
  height: 3px;
  background-color: var(--gray-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Page Hero */

.page-hero {
  color: var(--white);
  padding: 8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.page-hero h1 {
  color: var(--white);
  font-size: 4.8rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 2rem;
  max-width: 70rem;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

/* Enquiry Button */

#enquiry-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 1rem 0 0 1rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  box-shadow: -2px 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color var(--transition), transform var(--transition);
  display: none;
}

#enquiry-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Sliding Panel */

#enquiry-panel {
  position: fixed;
  top: 10%;
  right: -350px;
  /* Hidden by default */
  width: 350px;
  height: 80%;
  background-color: var(--white);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  transition: right var(--transition);
  display: flex;
  flex-direction: column;
  border-radius: 1rem 0 0 1rem;
  overflow: hidden;
}

#enquiry-panel.open {
  right: 0;
  /* Show panel */
}

#panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary);
  color: var(--white);
  padding: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
}

#close-panel {
  background: transparent;
  color: var(--white);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  transition: transform var(--transition);
}

#close-panel:hover {
  transform: scale(1.2);
}

#enquiry-iframe {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border: none;
  background-color: var(--gray-lightest);
}

/* Mobile Optimization */

@media (max-width: 768px) {
  #enquiry-panel {
    width: 90%;
    height: 70%;
    top: 15%;
    right: -90%;
    /* Hidden by default */
  }
  #enquiry-panel.open {
    right: 5%;
    /* Show panel */
  }
  #panel-header {
    font-size: 1.4rem;
    padding: 1rem;
  }
  #close-panel {
    font-size: 1.8rem;
  }
}

/* Footer */

footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding: 6rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 2.4rem;
  width: 26%;
}

.footer-logo img {
  height: 4rem;
  margin-bottom: 1.6rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.6rem;
  font-size: 1.8rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a,
.footer-column ul li {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-column ul li i {
  margin-right: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
  display: flex;
  gap: 1.6rem;
}

.social-icons a {
  color: var(--white);
  font-size: 1.8rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Modal Slide-in */

/* Common Floating Button Styles */

.float-btn {
  position: fixed;
  right: 0;
  background-color: #007bff;
  color: white;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: right center;
  z-index: 1000;
  transition: background 0.3s;
}

.float-btn:hover {
  background-color: #0056b3;
}

.enquiry-btn {
  top: 35%;
}

.whatsapp-btn {
  top: 45%;
  background-color: #25d366;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* Circular WhatsApp Button */

.whatsapp-circle-btn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease;
  /* display: none; */
}

.whatsapp-circle-btn:hover {
  transform: scale(1.1);
}

.whatsapp-circle-btn img {
  width: 28px;
  height: 28px;
}

/* Modal */

.wa-modal {
  position: fixed;
  top: 0;
  right: -350px;
  height: 100%;
  width: 320px;
  background-color: #fff;
  padding: 30px 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1001;
}

.wa-modal.active {
  right: 0;
}

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

.wa-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.wa-modal .close-btn {
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.wa-modal .close-btn:hover {
  color: red;
}

.wa-modal select,
.wa-modal button {
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  font-size: 16px;
}

.wa-modal button {
  background-color: #25d366;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.wa-modal button:hover {
  background-color: #1ebe5d;
}

/* Overlay */

.overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.overlay.active {
  display: block;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  html {
    font-size: 60%;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 1024px) {
  .hamburger-menu {
    display: flex;
  }
  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  header nav.active {
    max-height: 30rem;
  }
  header nav ul {
    flex-direction: column;
    padding: 2rem;
  }
  header nav ul li {
    margin: 0 0 1.6rem 0;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 2.4rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.6rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (max-width: 1024px) {
  html {
    font-size: 55%;
  }
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2.4rem;
  }
  .logo img {
    height: 3.2rem;
  }
  .cta-button {
    display: none;
  }
  .page-hero {
    padding: 4rem 0;
  }
}
/*  written by Kaushal  */

@media (max-width: 576px) {
  .footer-logo {
    width: auto;
  }
  .page-hero .container{
    padding-top: 70%;
  }

  .page-hero h1 {
 
  margin-bottom: 35.0rem;
}


  
}


