/* =========================================================
   Trinetra Clinical Research Services - Global Stylesheet
   ========================================================= */

:root {
  --primary: #e8771f;
  --primary-dark: #b3550f;
  --primary-light: #fdeedd;
  --accent: #16a085;
  --accent-dark: #0f7c66;
  --dark: #2a1a0c;
  --gray-900: #2b211a;
  --gray-700: #5a4a3d;
  --gray-500: #7a6a5c;
  --gray-300: #d8cdc1;
  --gray-100: #f4ede5;
  --white: #ffffff;
  --bg: #fbf7f2;
  --shadow-sm: 0 2px 6px rgba(60, 30, 10, 0.07);
  --shadow-md: 0 8px 24px rgba(60, 30, 10, 0.09);
  --shadow-lg: 0 18px 48px rgba(60, 30, 10, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --font-sans: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top contact bar ---------- */
.topbar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: #fff;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; opacity: 0.95; }
.topbar a:hover { color: #fff; opacity: 1; text-decoration: underline; }
.topbar .tb-left, .topbar .tb-right {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.topbar .tb-right { font-weight: 600; }
@media (max-width: 720px) {
  .topbar { font-size: 0.78rem; }
  .topbar .container { justify-content: center; text-align: center; }
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.05rem;
}
.brand img {
  height: 54px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; color: var(--dark); font-size: 1.1rem; letter-spacing: 0.02em; }
.brand-text small { font-weight: 500; color: var(--gray-500); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-brand span { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.94rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--primary-light); color: var(--primary-dark); }
.nav-links a.active { color: var(--primary-dark); background: var(--primary-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--dark);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(232, 119, 31, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); color: var(--white); box-shadow: 0 14px 28px rgba(232, 119, 31, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-light { background: var(--white); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(122, 56, 8, 0.92) 0%, rgba(232, 119, 31, 0.82) 60%, rgba(22, 160, 133, 0.55) 100%),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 80px 0;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero p { font-size: 1.08rem; max-width: 640px; opacity: 0.92; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  border: 4px solid rgba(255,255,255,0.15);
}
.hero-badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--white);
  color: var(--dark);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-badge .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(22,160,133,0.18);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,160,133,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(22,160,133,0); }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  padding: 110px 0 90px;
  color: var(--white);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(122, 56, 8, 0.92), rgba(232, 119, 31, 0.78)), var(--banner-img, url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1920&q=80")) center/cover no-repeat;
  z-index: -1;
}
.page-banner h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.02em; }
.page-banner p { max-width: 720px; margin: 0 auto; opacity: 0.94; font-size: 1.05rem; }
.breadcrumbs {
  margin-top: 18px;
  font-size: 0.88rem;
  opacity: 0.85;
}
.breadcrumbs a { color: var(--white); text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-head p { color: var(--gray-700); font-size: 1.02rem; }

/* ---------- Highlight grid ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.highlight {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.highlight h4 { font-size: 1rem; margin-bottom: 4px; color: var(--dark); }
.highlight p { font-size: 0.9rem; color: var(--gray-700); }

/* ---------- Two-column generic ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #fde0c2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.95rem; opacity: 0.92; }

/* ---------- Service / feature cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-light), #fcd9b4);
  color: var(--primary-dark);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 10px; }
.card ul { list-style: none; }
.card ul li {
  position: relative;
  padding-left: 22px;
  color: var(--gray-700);
  font-size: 0.94rem;
  margin-bottom: 8px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Therapeutic areas grid ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.area {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.area:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.area-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.area-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(122,56,8,0.05), rgba(122,56,8,0.55));
}
.area-body { padding: 22px; }
.area-body h3 { color: var(--dark); margin-bottom: 8px; font-size: 1.1rem; }
.area-body p { font-size: 0.92rem; color: var(--gray-700); }

/* ---------- Challenges / Solutions ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  border-radius: var(--radius-md);
  padding: 32px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
}
.panel.challenges { border-top: 4px solid #e76f51; }
.panel.solutions { border-top: 4px solid var(--accent); }
.panel h3 { color: var(--dark); margin-bottom: 16px; font-size: 1.2rem; }
.panel ul { list-style: none; }
.panel ul li {
  padding: 10px 0 10px 30px;
  position: relative;
  color: var(--gray-700);
  border-bottom: 1px dashed rgba(15,23,42,0.08);
  font-size: 0.95rem;
}
.panel ul li:last-child { border-bottom: 0; }
.panel.challenges ul li::before {
  content: "!";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fbe5dd; color: #c0392b;
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.8rem;
}
.panel.solutions ul li::before {
  content: "\2713";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #d6f1ea; color: var(--accent-dark);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.78rem;
}

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.value {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
  transition: transform var(--transition);
}
.value:hover { transform: translateY(-4px); }
.value .value-ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
}
.value h4 { color: var(--dark); margin-bottom: 8px; }
.value p { font-size: 0.92rem; color: var(--gray-700); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  color: var(--white);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(122,56,8,0.95), rgba(232,119,31,0.85)),
              url("https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  z-index: -1;
}
.cta-banner h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { max-width: 640px; margin: 0 auto 22px; opacity: 0.95; }

/* ---------- Network map / cities ---------- */
.cities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}
.city {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.city:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.city-img { height: 140px; background-size: cover; background-position: center; }
.city-name { padding: 14px 18px; font-weight: 700; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.city-name::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(22,160,133,0.18);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
.contact-info {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
}
.contact-info h3 { margin-bottom: 12px; font-size: 1.4rem; }
.contact-info p { opacity: 0.92; margin-bottom: 22px; }
.contact-info ul { list-style: none; }
.contact-info ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.contact-info ul li:last-child { border-bottom: 0; }

.contact-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15,23,42,0.05);
}
.contact-form h3 { margin-bottom: 18px; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-700);
  margin-bottom: 6px;
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-300);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,119,31,0.18);
  background: var(--white);
}
.form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; background: #d6f1ea; color: var(--accent-dark); }
.form-status.error { display: block; background: #fbe5dd; color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1c130a;
  color: #e8ddd0;
  padding: 70px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer h5 { color: var(--white); font-size: 1rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.site-footer p { color: #c5b6a4; font-size: 0.92rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: #e8ddd0; font-size: 0.92rem; }
.site-footer ul li a:hover { color: var(--white); }
.tagline { font-style: italic; color: #d6b896; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  font-size: 0.85rem;
  text-align: center;
  color: #c5b6a4;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; width: auto; max-width: 160px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.footer-brand span { color: var(--white); font-weight: 700; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
  border: 0;
  font-size: 1.1rem;
  z-index: 999;
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .two-col, .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; right: 12px; bottom: -28px; }
}
