:root {
  /* Primary Colors */
  --primary-orange: #F58220;
  --primary-blue: #1F5DAA;

  /* Secondary Colors */
  --secondary-light-blue: #2FA4E7;
  --secondary-deep-blue: #003A8C;

  /* Background & Text */
  --bg-white: #FFFFFF;
  --bg-light-gray: #F5F7FA;
  --text-dark: #1F2937;
  --text-secondary: #6B7280;

  /* Accent Colors */
  --accent-soft-orange: #FFE4CC;
  --accent-soft-blue: #E6F2FF;

  /* Status Colors */
  --status-success: #28A745;
  --status-warning: #FFC107;
  --status-error: #DC3545;

  /* Typography */
  --font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: auto;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 64px;
  
  /* Details */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --shadow-sm: 0 2px 4px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(31, 41, 55, 0.1), 0 2px 4px -1px rgba(31, 41, 55, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(31, 41, 55, 0.1), 0 4px 6px -2px rgba(31, 41, 55, 0.05);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-light-gray);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-blue);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: var(--spacing-md); }
h2 { font-size: 2rem; margin-bottom: var(--spacing-md); }
h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
p { margin-bottom: var(--spacing-md); color: var(--text-secondary); }

/* Layout utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  font-size: 2.5rem;
}

.section-title p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #E67315; /* darker orange */
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--bg-white);
}

.btn-secondary {
  background-color: var(--primary-blue);
  color: var(--bg-white);
}

.btn-secondary:hover {
  background-color: #174C8F;
  transform: translateY(-2px);
  color: var(--bg-white);
}

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

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

/* Header */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 16px 0;
}

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

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

.logo-img {
  height: 150px;
  width: auto;
}

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

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.cta-header {
  margin-left: var(--spacing-xl);
}

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

/* Cards */
.card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--accent-soft-blue);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-blue);
}

.card-list {
  padding-left: var(--spacing-md);
  list-style-type: disc;
  color: var(--text-secondary);
  flex-grow: 1;
}

.card-list li {
  margin-bottom: 8px;
}

/* Mental Health Cards Specific */
.mh-card {
  background-color: var(--accent-soft-blue);
  border: 1px solid rgba(47, 164, 231, 0.2);
}

.mh-card .card-icon {
  background-color: var(--bg-white);
}

/* Trust Elements Banner */
.trust-banner {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  padding: var(--spacing-lg) 0;
}

.trust-flex {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 500;
  font-size: 1.1rem;
}

.trust-item i {
  color: var(--primary-orange);
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-deep-blue);
  color: var(--bg-white);
  padding: var(--spacing-xxl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-orange);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-soft-orange);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  color: var(--primary-orange);
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.3s ease-in-out;
  }
  
  .nav.open {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .nav-link {
    display: block;
    width: 100%;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bg-light-gray);
  }
  
  .cta-header {
    margin: var(--spacing-md) 0 0 0;
    width: 100%;
    text-align: center;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
}

/* Page Specific Styles */

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--accent-soft-blue) 100%);
  padding: calc(var(--spacing-xxl) * 1.5) 0;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.hero-content h1 span {
  color: var(--primary-blue);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-floating-card {
  position: absolute;
  background: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  z-index: 10;
}

.fc-1 { bottom: 20px; left: -30px; }
.fc-2 { top: 40px; right: -20px; }

.hero-floating-card i {
  color: var(--status-success);
  font-size: 1.5rem;
}

.hero-floating-card div {
  font-weight: 600;
  color: var(--primary-blue);
}

@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin: 0 auto var(--spacing-lg);
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-floating-card {
    display: none;
  }
}

/* Doctors Specific */
.doctor-card {
  text-align: center;
}

.doctor-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--spacing-md);
  border: 4px solid var(--accent-soft-blue);
}

.doctor-qual {
  font-size: 0.875rem;
  color: var(--primary-orange);
  font-weight: 600;
  margin-bottom: 4px;
}

.doctor-spec {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.doctor-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background-color: var(--bg-light-gray);
  border-radius: var(--border-radius-sm);
  color: var(--primary-blue);
  font-weight: 600;
}

/* Contact Page */
.contact-wrapper {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.contact-info {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: var(--spacing-xl);
}

.contact-info h3 {
  color: var(--bg-white);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: var(--spacing-lg);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-details h4 {
  color: var(--bg-white);
  font-size: 1.125rem;
  margin: 0 0 4px 0;
}

.contact-item-details p {
  margin: 0;
}

.contact-form {
  padding: var(--spacing-xl);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #D1D5DB;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(31, 93, 170, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-top: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  background-color: #128C7E;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  color: white;
}

.floating-whatsapp i {
  margin-top: 2px; /* Slight visual adjustment for the icon center */
}
