/* ==========================================================================
   Global Cure India - Design System & Global Styles
   ========================================================================== */

/* --- CSS Variables (Tokens) --- */
:root {
  /* Colors */
  --color-primary-navy: #0A2342;
  --color-primary-teal: #1B8A6B;
  --color-gold-accent: #C9A84C;
  --color-bg-light: #F4F8FB;
  --color-white: #FFFFFF;
  --color-text-dark: #1A1A2E;
  --color-text-medium: #4A5568;
  --color-border: #E2E8F0;
  --color-alert-red: #E84855;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --card-padding: 24px;

  /* Shadow & Radius */
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* --- Resets & Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary-navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--color-text-medium);
  margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-teal { color: var(--color-primary-teal); }
.text-gold { color: var(--color-gold-accent); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

.section-bg-light {
  background-color: var(--color-bg-light);
}

.section-bg-navy {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}
.section-bg-navy h2, .section-bg-navy h3, .section-bg-navy p {
    color: var(--color-white);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-teal {
  background-color: var(--color-primary-teal);
  color: var(--color-white);
}
.btn-teal:hover {
  background-color: #156d54;
}

.btn-navy {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
}
.btn-navy:hover {
  background-color: #061528;
}

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

.btn-full { width: 100%; }

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  padding: var(--card-padding);
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-accent);
  font-weight: 600;
}
.badge-teal { background: rgba(27, 138, 107, 0.1); color: var(--color-primary-teal); }
.badge-gold { background: rgba(201, 168, 76, 0.1); color: var(--color-gold-accent); }

/* Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-primary-navy);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary-teal);
  box-shadow: 0 0 0 3px rgba(27, 138, 107, 0.1);
}

/* --- Header & Navigation --- */
.top-bar {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  padding: 8px 0;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.top-bar a { color: var(--color-white); }
.top-bar a:hover { color: var(--color-gold-accent); }

.header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 160px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--color-text-dark);
  font-family: var(--font-body);
}

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

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary-navy);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-primary-navy);
  color: var(--color-white);
  padding: 60px 0 20px;
}
.footer p, .footer a {
  color: #A0AEC0;
}
.footer h4 {
  color: var(--color-white);
  margin-bottom: 20px;
  font-family: var(--font-accent);
}
.footer a:hover {
  color: var(--color-primary-teal);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--color-primary-teal);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}

/* --- Globals: Floating Elements --- */
#whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-hover);
  z-index: 1001;
  transition: var(--transition);
}
#whatsapp-btn:hover {
  transform: scale(1.1);
}

#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-primary-navy);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-hover);
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#cookie-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  padding: 15px 20px;
  z-index: 1002;
  transition: bottom 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
#cookie-banner.show {
  bottom: 0;
}
#cookie-banner p { margin: 0; font-size: 0.9rem;}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  
  .nav-menu {
    display: none; /* simple mobile nav approach for now */
  }
  .mobile-menu-btn {
    display: block;
  }
  
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
}
