/* WRKTOP Technologies Pvt Ltd — corporate site
   Plain CSS, no build step. Same idiom as portal/css/marketing.css. */

:root {
  /* Brand blues sampled straight from the logo mark's gradient */
  --grad-a: #0153e9;
  --grad-b: #22a6f3;
  --brand: #0d6ae8;
  --brand-dark: #0a4fb4;
  --brand-light: #dbeafe;
  --wordmark: #2d2d2d;   /* the WRKTOP wordmark grey */

  --ink: #111827;
  --ink-soft: #475569;
  --ink-faint: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --night: #0b1020;
  --radius: 12px;

  /* per-platform accents — sampled from each platform's own live site */
  --pharma: #0c9f6b;   /* pharmawrk.com  */
  --service: #7b046c;  /* servicewrk.com */
  --hello: #f47f40;    /* hellowrk.in    */
  --sales: #0f766e;    /* saleswrk.com   */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }

/* ---- placeholder marker: everything still awaiting your input ---- */
.ph {
  background: #fef08a;
  color: #713f12;
  padding: 0 .3em;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92em;
  /* must wrap — some placeholders are a full sentence long */
  overflow-wrap: anywhere;
}

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 34px; } }
.foot-logo { height: 46px; width: auto; display: block; margin-bottom: 1rem; }
.about-logo { height: 190px; width: auto; display: block; margin: 0 auto 1.75rem; }
@media (max-width: 600px) { .about-logo { height: 150px; } }
.nav-links { display: flex; gap: 1.6rem; align-items: center; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 1rem; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .72rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease; font-family: inherit; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.onnight { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); }
.btn.onnight:hover { background: rgba(255,255,255,.16); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---- hero (dark: parent brand reads differently from the products) ---- */
.hero {
  background:
    radial-gradient(900px 480px at 78% -15%, rgba(34,166,243,.34), transparent 62%),
    radial-gradient(700px 420px at -8% 108%, rgba(1,83,233,.32), transparent 60%),
    var(--night);
  color: #fff;
  padding: 6rem 0 5.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero .eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #c7d2fe; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: .32rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1.1rem; font-weight: 800; max-width: 20ch; }
.hero h1 em { font-style: normal; background: linear-gradient(110deg, #60a5fa, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.18rem; color: rgba(255,255,255,.76); max-width: 42rem; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-logo { display: block; height: 72px; width: auto; margin-bottom: 1.75rem; }

.tagline { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.7rem; font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(110deg, #60a5fa, #7dd3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); flex: none; }

.statline { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.1); }
.statline div b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.statline div span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---- page header (inner pages) ---- */
.page-head { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), #fff); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 .5rem; font-weight: 800; }
.page-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; max-width: 46rem; }
.page-head .updated { font-size: .85rem; color: var(--ink-faint); margin-top: .9rem; }

/* ---- sections ---- */
section { padding: 5rem 0; }
.section-head { max-width: 42rem; margin-bottom: 3rem; }
h2.title { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.025em; margin: 0 0 .6rem; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }
.tint { background: var(--bg); }

/* ---- platform cards ---- */
/* 400px min => a balanced 2x2 for the four platforms, rather than 3 + 1 */
.platforms { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; } }
.platform {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.6rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.platform::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--brand)); }
.platform:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(15,23,42,.1); border-color: transparent; }
/* the platform's own logo stands in for the heading; alt text carries the name */
.platform h3 { margin: 0 0 .7rem; line-height: 0; }
.platform-logo { height: 40px; width: auto; display: block; }
@media (max-width: 420px) { .platform-logo { height: 34px; } }
.platform .sector { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent, var(--brand)); margin-bottom: .85rem; }
.platform p { margin: 0 0 1.25rem; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.platform .visit { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--accent, var(--brand)); align-self: flex-start; }
.platform .visit::after { content: "→"; transition: transform .15s ease; }
.platform:hover .visit::after { transform: translateX(3px); }

/* ---- value / approach ---- */
.values { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.value { padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; }
.value h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---- contact ---- */
.contact-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr 1fr; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.85rem; box-shadow: 0 10px 40px rgba(15,23,42,.07); }
.card h2 { margin: 0 0 .25rem; font-size: 1.3rem; letter-spacing: -.02em; }
.card .sub { color: var(--ink-soft); font-size: .9rem; margin: 0 0 1.35rem; }
.field { margin-bottom: .95rem; }
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .32rem; }
input, select, textarea { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.row { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.error { color: #dc2626; font-size: .85rem; min-height: 1.2em; margin-bottom: .4rem; }
.ok { color: #15803d; font-size: .9rem; margin-top: .8rem; }
.fine { font-size: .78rem; color: var(--ink-soft); margin-top: .85rem; }
.hp { position: absolute; left: -9999px; }

/* ---- map ---- */
.map-section { padding-top: 0; }
.map-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 40px rgba(15,23,42,.07); }
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 620px) { .map-card iframe { height: 320px; } }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); background: var(--bg); }
.map-bar .addr { font-size: .92rem; color: var(--ink-soft); }
.map-bar .addr b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .15rem; }
.map-bar .acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.map-bar .btn { padding: .55rem 1rem; font-size: .88rem; }

.contact-block { margin-bottom: 2rem; }
.contact-block h3 { margin: 0 0 .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
/* a brand glyph standing in for the label — sized to the cap height of the text headings */
.contact-block h3.mark-head { margin-bottom: .35rem; line-height: 0; }
/* WhatsApp green badge — brand green disc, white glyph */
.wa-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #25d366; }
.wa-mark { display: block; color: #fff; }
.contact-block p { margin: 0; color: var(--ink-soft); }
.contact-block a { color: var(--brand); font-weight: 600; }
.contact-block a:hover { color: var(--brand-dark); }

/* ---- legal pages ---- */
.legal { padding: 3rem 0 5rem; }
.legal h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 2.75rem 0 .75rem; scroll-margin-top: 90px; }
.legal h2:first-of-type { margin-top: 1rem; }
.legal h3 { font-size: 1.02rem; margin: 1.75rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 1rem; }
.legal ul, .legal ol { margin: 0 0 1.15rem; padding-left: 1.35rem; }
.legal li { margin-bottom: .45rem; }
.legal strong { color: var(--ink); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: .65rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.legal .note { background: var(--bg); border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 0 0 1.5rem; font-size: .93rem; }
.legal .note p:last-child { margin-bottom: 0; }

.toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 2.5rem; }
.toc b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: .92rem; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--brand); text-decoration: underline; }

/* ---- cta band ---- */
.cta { background: linear-gradient(120deg, var(--grad-a), var(--grad-b)); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 40rem; margin-inline: auto; font-size: 1.05rem; }
.cta .btn.primary { background: #fff; color: var(--brand-dark); }
.cta .btn.primary:hover { background: var(--brand-light); }

/* ---- footer ---- */
footer { background: var(--night); color: rgba(255,255,255,.62); padding: 3.5rem 0 2rem; font-size: .9rem; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
.foot-grid h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .9rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .5rem; }
.foot-grid a:hover { color: #fff; }
.foot-about { max-width: 30rem; }
.foot-about .brand { color: #fff; margin-bottom: .8rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; }
.foot-bottom a:hover { color: #fff; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
