/* 
===============================
    Main Styles for Apollo Allied Health Centres
    - Core styles shared across all pages
    - Typography, colors, buttons, 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);
}

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

.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: #128C7E;
}

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

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

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

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

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

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

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

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


.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);
}

#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: 1024px) {
  #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;
}

.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);
}

/* 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;
  }
  
  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);
  }
  
  nav.active {
      max-height: 30rem;
  }
  
  nav ul {
      flex-direction: column;
      padding: 2rem;
  }
  
  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;
  }
}

/* Program Hero Section */
.page-hero {
  position: relative;
  height: 60vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1504813184591-01572f98c85f?fm=jpg&q=60&w=3000&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8OHx8bWVkaWNhbCUyMHdhbGxwYXBlcnxlbnwwfHwwfHx8MA%3D%3D') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 0 2rem;
}

.page-hero h1 {
  font-size: 4rem;
  margin-bottom: 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.page-hero p {
  font-size: 1.8rem;
  max-width: 60rem;
  margin: 0 auto;
  line-height: 1.6;
}
/* Circular WhatsApp Button */
.whatsapp-circle-btn {
  position: fixed;
  bottom: 20px;
  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;
}

.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;
}
