/* Sourcewell India — brand styles (blue + cyan, from company deck) */
:root {
  --blue: #0b57c2;          /* primary deep blue */
  --blue-dark: #0842a0;
  --blue-deep: #072f75;     /* darkest navy-blue */
  --cyan: #18a8e8;          /* bright azure accent */
  --cyan-dark: #0f8fce;
  --ink: #17202b;
  --muted: #566677;
  --line: #e3e9f0;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-softer: #e9f2fb;
  --radius: 10px;
  --max: 1160px;
  --shadow: 0 10px 34px rgba(11, 87, 194, 0.10);
  --dot: radial-gradient(currentColor 1.4px, transparent 1.5px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--blue-deep); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.025em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); text-transform: uppercase; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; }
.section-blue h2, .section-blue h3 { color: #fff; }
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .7rem; }
.section-blue .eyebrow { color: #7fd4ff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 660px; }
.section-blue .lead { color: #cfe2f7; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* accent underline under headings */
.rule { width: 64px; height: 4px; background: var(--cyan); border-radius: 3px; margin: 0 0 22px; }
.center .rule { margin-left: auto; margin-right: auto; }

/* dot-grid + wave motifs */
.dots { color: var(--cyan); background-image: var(--dot); background-size: 16px 16px; opacity: .5; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 8px;
  font-weight: 700; font-size: .96rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .06s ease, background .2s ease, box-shadow .2s ease; letter-spacing: .01em;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: var(--cyan-dark); box-shadow: var(--shadow); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; color: var(--blue-deep); font-size: 1.16rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .lockup { display: flex; flex-direction: column; line-height: 1; }
.brand .lockup b { font-size: 1.16rem; letter-spacing: .01em; }
.brand .lockup b span { color: var(--cyan); }
.brand .lockup small { font-size: .62rem; letter-spacing: .42em; color: var(--blue); font-weight: 700; margin-top: 3px; }
/* chevron mark */
.chevron {
  width: 30px; height: 30px; flex: 0 0 auto; display: inline-block;
}
/* company wordmark logo */
.brand-logo { height: 34px; width: auto; display: block; }
.footer-brand .brand-logo { height: 40px; }
@media (max-width: 640px) { .brand-logo { height: 28px; } }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .94rem; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan-dark); text-decoration: none; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--blue-deep); margin: 4px 0; transition: .2s; }

/* Hero */
.hero {
  background: linear-gradient(150deg, var(--blue) 0%, var(--blue-deep) 70%, #05245c 100%);
  color: #fff; padding: 100px 0 92px; position: relative; overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
/* big chevron watermark, echoing the deck cover */
.hero::before {
  content: ""; position: absolute; z-index: 1; right: -60px; top: 50%; transform: translateY(-50%);
  width: 520px; height: 620px;
  background:
    linear-gradient(135deg, rgba(24,168,232,.30), rgba(24,168,232,.05));
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; z-index: 1; left: 62%; top: 18%;
  width: 120px; height: 90px; color: rgba(255,255,255,.18);
  background-image: var(--dot); background-size: 15px 15px;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p { color: #cfe2f7; font-size: 1.18rem; max-width: 640px; }
.hero .btns { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 48px; display: flex; gap: 46px; flex-wrap: wrap; }
.hero-badges .stat b { display: block; color: #fff; font-size: 1.85rem; font-weight: 800; }
.hero-badges .stat span { color: #9dc0ea; font-size: .9rem; }

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cadcf1; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-softer); font-size: 1.55rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card ul { margin: .5rem 0 0; padding-left: 18px; color: var(--muted); font-size: .93rem; }
.card ul li { margin-bottom: 3px; }

/* Service card (numbered, on blue) */
.section-blue .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }
.section-blue .card:hover { background: rgba(255,255,255,.10); }
.section-blue .card h3 { color: #fff; }
.section-blue .card p, .section-blue .card ul { color: #cfe2f7; }
.section-blue .card .ico { background: rgba(255,255,255,.12); }

/* Category card with color band */
.cat { padding: 0; overflow: hidden; }
.cat .band { height: 96px; display: grid; place-items: center; font-size: 2.5rem; }
.cat .body { padding: 22px 24px 26px; }
.cat .body p { margin-bottom: .7rem; }
.cat ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.cat ul li { margin-bottom: 3px; }

/* Category card with hover-reveal image */
.cat.reveal { position: relative; min-height: 360px; display: flex; flex-direction: column; }
.cat.reveal .cat-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.cat.reveal .cat-front {
  position: relative; z-index: 2; flex: 1 1 auto; background: #fff;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.cat.reveal:hover .cat-front { transform: translateX(102%); }
@media (hover: none) {
  .cat.reveal .cat-front { transform: none !important; }
}

/* Steps */
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.step .num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .panel { background: var(--bg-softer); border-radius: var(--radius); padding: 40px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--cyan); font-weight: 900; }
.section-blue .checks li { color: #eaf3fc; }
.section-blue .checks li::before { color: #7fd4ff; }

/* Numbered why-us list */
.why { display: grid; gap: 20px; }
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .n {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-softer); color: var(--blue);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
}
.why-item h3 { margin: 4px 0 .3rem; }
.why-item p { margin: 0; color: var(--muted); }

/* Markets */
.markets { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.market-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 22px; font-weight: 700; color: var(--blue-deep); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 55%, var(--blue-deep) 100%); color: #fff; border-radius: 16px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #eaf3fc; max-width: 580px; margin: 0 auto 26px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: var(--blue-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24,168,232,.14); }
.field textarea { min-height: 130px; resize: vertical; }
.info-block { margin-bottom: 22px; }
.info-block h4 { margin: 0 0 4px; color: var(--blue-deep); }
.info-block p { margin: 0; color: var(--muted); }
.info-block a { color: var(--blue); }

/* Footer */
.site-footer { background: var(--blue-deep); color: #b6c9e2; padding: 58px 0 28px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer a { color: #b6c9e2; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand .lockup b { color: #fff; }
.footer-brand .brand .lockup small { color: #7fd4ff; }
.footer-brand p { color: #8fa6c4; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; font-size: .85rem; color: #7890ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Page header (interior) */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 60px 0; position: relative; overflow: hidden; }
.page-head .rule { margin-top: 4px; }
.page-head p { color: var(--muted); max-width: 660px; margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: flex-start; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); }
  .nav-cta { margin: 10px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding: 76px 0; }
  .hero::before { width: 300px; right: -80px; }
  .hero-badges { gap: 28px; }
  .cta-band { padding: 42px 24px; }
}
