/* ============================================================
   GRITAP AI - Main Stylesheet
   Brand: #006755 (main green), #4ed4c6 (medium), #003229 (dark)
   Light theme bg: #baf4ee
   Fonts: Mulish (main), Inter (sub)
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --primary: #006755;
  --primary-light: #4ed4c6;
  --primary-dark: #003229;
  --accent: #4ed4c6;
  --accent-glow: rgba(78, 212, 198, 0.15);

  /* Dark theme (default) */
  --bg: #060c0a;
  --bg-2: #0a1410;
  --bg-3: #0d1a16;
  --bg-card: #0f1e1a;
  --bg-card-hover: #142620;
  --text: #e8f5f2;
  --text-sub: #a0b8b2;
  --text-muted: #5a7870;
  --border: rgba(78, 212, 198, 0.12);
  --border-hover: rgba(78, 212, 198, 0.3);
  --nav-bg: rgba(6, 12, 10, 0.92);
  --input-bg: rgba(255,255,255,0.04);
  --placeholder-bg: #0f1e1a;

  --font-main: 'Mulish', sans-serif;
  --font-sub: 'Inter', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 32px rgba(78, 212, 198, 0.12);
  --section-pad: 100px;
}

/* Light theme */
[data-theme="light"] {
  --bg: #f0faf8;
  --bg-2: #e4f5f1;
  --bg-3: #d4eee9;
  --bg-card: #ffffff;
  --bg-card-hover: #f5faf9;
  --text: #0d2920;
  --text-sub: #2a5a4e;
  --text-muted: #6a9a8e;
  --border: rgba(0, 103, 85, 0.15);
  --border-hover: rgba(0, 103, 85, 0.35);
  --nav-bg: rgba(240, 250, 248, 0.95);
  --input-bg: rgba(0,103,85,0.05);
  --placeholder-bg: #e8f7f4;
  --shadow: 0 8px 32px rgba(0,103,85,0.1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font-main); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-sub); }

/* === THEME TOGGLE === */
.theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.05);
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-placeholder { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 40px; height: 40px; flex-shrink: 0; }
.logo-text-group { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  line-height: 1.1;
}
.logo-tagline {
  font-family: var(--font-sub);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Logo size recommendation note: 180×50px */
/* Replace .logo-placeholder content with: <img src="images/logo.png" alt="Gritap AI" width="180" height="50"> */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.chevron { width: 10px; height: 6px; transition: transform 0.3s; }
.nav-item.has-submenu:hover .chevron { transform: rotate(180deg); }

/* Submenu - CRITICAL: stays visible on hover */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: var(--shadow);
  z-index: 999;
}
/* Keep submenu open on hover - gap bridge */
.nav-item.has-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-submenu:hover .submenu,
.nav-item.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.submenu a {
  display: block;
  padding: 10px 14px;
  color: var(--text-sub);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font-sub);
}
.submenu a:hover {
  color: var(--accent);
  background: var(--accent-glow);
  padding-left: 18px;
}

/* CTA button in nav */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  margin-left: 8px;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(78, 212, 198, 0.3);
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; transition: var(--transition); }




.hero-image {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("https://gritapai.com/medical.png");
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

.hero-text button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 10px 25px;
  color: black;
  background-color: #ddd;
  text-align: center;
  cursor: pointer;
}

.hero-text button:hover {
  background-color: #555;
  color: white;
}


