/* =========================================================
   Creative Quality Solutions — Mital Jain
   Clinical Research Quality Audit Consultant
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-700: #13315C;
  --navy-600: #1d3b63;
  --teal: #0E9384;
  --teal-bright: #14B8A6;
  --teal-soft: #e6f5f3;
  --ink: #0F172A;
  --slate: #475569;
  --slate-400: #64748b;
  --mist: #F4F7F9;
  --mist-2: #eef3f7;
  --line: #e2e8f0;
  --white: #ffffff;

  --maxw: 1140px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, .08), 0 1px 2px rgba(11, 37, 69, .04);
  --shadow-md: 0 10px 30px rgba(11, 37, 69, .10);
  --shadow-lg: 0 24px 60px rgba(11, 37, 69, .16);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.18; color: var(--navy); margin: 0 0 .5em; }
h1 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.18rem; }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 147, 132, .28); }
.btn-primary:hover { background: var(--teal-bright); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-block { width: 100%; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 700;
  color: var(--teal); margin: 0 0 .9rem;
}
.eyebrow--light { color: var(--teal-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark svg { border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.12rem; color: var(--navy); }
.brand-sub { font-size: .72rem; color: var(--slate-400); letter-spacing: .02em; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  color: var(--navy); font-weight: 500; font-size: .95rem; padding: 9px 14px; border-radius: 999px;
}
.nav-list a:hover { background: var(--mist); text-decoration: none; color: var(--teal); }
.nav-cta { background: var(--navy); color: #fff !important; }
.nav-cta:hover { background: var(--teal) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(20, 184, 166, .14), transparent 60%),
    linear-gradient(180deg, #fbfdfe 0%, var(--mist) 100%);
  padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.1rem, 1rem + 3.6vw, 3.4rem); margin-bottom: .55em; }
.hero-lead { font-size: 1.12rem; color: var(--slate); max-width: 38ch; }
.hero-lead strong { color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }

.hero-stats { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.hero-stats li {
  flex: 1; min-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.stat-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: .82rem; color: var(--slate-400); margin-top: 4px; }

.hero-visual { position: relative; }
.hero-illustration { filter: drop-shadow(0 30px 50px rgba(11, 37, 69, .18)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--navy); color: #fff; padding: 30px 0; }
.trustbar-label { text-align: center; color: #aebfd4; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; font-weight: 600; }
.trustbar-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 48px;
  list-style: none; margin: 0; padding: 0;
}
.trustbar-logos li {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem; color: #fff; opacity: .9;
  letter-spacing: .01em;
}
.trustbar-logos sup { font-size: .65em; }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-intro { color: var(--slate); font-size: 1.06rem; }
.section-head--light h2, .section-head--light .section-intro { color: #fff; }
.section-intro--light { color: #c9d6e6 !important; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.photo-frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 360px; }
.about-badge {
  position: absolute; right: -8px; bottom: -18px; background: var(--teal); color: #fff;
  border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.about-badge-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.about-badge-text { font-size: .78rem; line-height: 1.25; }
.about-copy p { color: var(--slate); }
.about-copy strong { color: var(--navy); }
.about-points { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; }
.about-points li { position: relative; padding-left: 30px; color: var(--navy); font-weight: 500; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--teal-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='%230E9384' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* ---------- Services ---------- */
.services { background: var(--mist); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #cfe6e2; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background: var(--teal-soft); color: var(--teal); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--slate); font-size: .98rem; margin: 0; }

.standards {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin-top: 44px;
}
.standards-label { font-weight: 600; color: var(--slate-400); font-size: .9rem; margin-right: 4px; }
.chip {
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 500;
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow-sm);
}

/* ---------- Experience ---------- */
.experience { background: var(--navy); color: #fff; }
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 44px;
}
.stat-item {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.stat-big { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 2.4rem; color: var(--teal-bright); line-height: 1; }
.stat-cap { display: block; margin-top: 8px; color: #c9d6e6; font-size: .92rem; }
.exp-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 44px;
  list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px solid rgba(255,255,255,.12);
}
.exp-logos li { font-family: var(--font-serif); font-weight: 600; font-size: 1.4rem; opacity: .92; }
.exp-note { text-align: center; color: #8ea3bd; font-size: .8rem; margin: 18px 0 0; }

/* ---------- Process ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-serif);
  font-weight: 700; font-size: 1.25rem; margin-bottom: 16px;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ---------- Why ---------- */
.why { background: var(--mist); }
.why-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.why-copy p { color: var(--slate); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  color: var(--slate); font-size: .96rem; box-shadow: var(--shadow-sm);
}
.why-list strong { color: var(--navy); display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 820px; margin: 0 auto; }
.accordion { display: grid; gap: 12px; }
.acc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
.acc-item summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 1.04rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--teal); line-height: 1; transition: transform .2s;
}
.acc-item[open] summary::after { content: "\2212"; }
.acc-body { padding: 0 0 18px; color: var(--slate); }
.acc-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy p { color: #c9d6e6; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-ic {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(20,184,166,.16);
  color: var(--teal-bright); display: inline-flex; align-items: center; justify-content: center;
}
.contact-ic svg { width: 22px; height: 22px; }
.contact-k { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #8ea3bd; }
.contact-v { display: block; color: #fff; font-weight: 600; font-size: 1.05rem; }
a.contact-v:hover { color: var(--teal-bright); text-decoration: none; }

.contact-form {
  background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .98rem; color: var(--ink); padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,.16);
}
.field textarea { resize: vertical; }
.contact-form .btn-block { grid-column: 1 / -1; }
.form-fallback { grid-column: 1 / -1; text-align: center; font-size: .88rem; color: var(--slate-400); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #081a31; color: #c9d6e6; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; font-size: 1.2rem; display: block; margin-bottom: 10px; }
.footer-brand p { color: #93a6c0; font-size: .94rem; max-width: 42ch; }
.footer-nav h3, .footer-contact h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-nav ul, .footer-contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: #c9d6e6; font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--teal-bright); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: .85rem; color: #7e93af; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .about-photo { max-width: 360px; margin: 0 auto 18px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .main-nav { position: relative; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 14px); width: min(86vw, 320px);
    flex-direction: column; align-items: stretch; gap: 4px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 12px 14px; border-radius: 10px; }
  .nav-cta { text-align: center; }
  .hero-stats li { min-width: 100%; }
  .card-grid, .stat-band, .steps { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
