/* chennaistream.com: one stylesheet for the home page and the privacy policy. No scripts, no outside files. */
:root {
  --ink: #14181d;
  --text: #2a313a;
  --muted: #56606c;
  --line: #dfe4ea;
  --soft: #f4f6f8;
  --paper: #ffffff;
  --blue: #17629f;
  --blue-dark: #0f4a7a;
  --green: #6aa51c;
  --wrap: 1040px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.skip:hover { color: #fff; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.brand { display: block; line-height: 0; }
.brand img { height: 56px; width: auto; display: block; }
.nav { display: flex; gap: 6px 28px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--green); color: var(--ink); }

/* Opening statement */
.lead { padding: 76px 0 68px; border-bottom: 1px solid var(--line); }
h1 { margin: 0; color: var(--ink); font-size: clamp(34px, 6vw, 58px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; max-width: 20ch; text-wrap: balance; }
.nb { white-space: nowrap; }
.lead p.intro { margin: 26px 0 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; max-width: 60ch; color: var(--text); }
.actions { margin-top: 34px; display: flex; gap: 14px 26px; flex-wrap: wrap; align-items: center; }
.button { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 24px; border-radius: 4px; }
.button:hover { background: var(--blue-dark); color: #fff; }
.plain { font-weight: 600; }

/* Sections */
section { padding: 68px 0; border-bottom: 1px solid var(--line); }
section.tint { background: var(--soft); }
h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(26px, 3.6vw, 34px); line-height: 1.2; letter-spacing: -0.01em; }
.sub { margin: 0 0 40px; color: var(--muted); max-width: 62ch; }
h3 { margin: 0 0 8px; color: var(--ink); font-size: 21px; line-height: 1.3; }
p { margin: 0 0 14px; text-wrap: pretty; }

/* Services: numbered rows */
.services { list-style: none; margin: 0; padding: 0; counter-reset: service; }
.services > li { counter-increment: service; display: grid; grid-template-columns: 88px 1fr; gap: 0 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.services > li:last-child { padding-bottom: 0; }
.services > li::before { content: counter(service, decimal-leading-zero); font-size: 34px; font-weight: 700; line-height: 1; color: var(--blue); letter-spacing: -0.02em; padding-top: 2px; }
.services p { max-width: 64ch; }
.services p:last-child { margin-bottom: 0; }

/* Care points */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.points li { padding-left: 20px; border-left: 3px solid var(--green); }
.points h3 { font-size: inherit; line-height: inherit; margin: 0 0 4px; }
.points p { margin: 0; }
.after { margin: 36px 0 0; }

/* About and contact */
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.two p { max-width: 58ch; }
#contact { scroll-margin-top: 24px; }
dl.contact { margin: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px 16px; }
dl.contact dt { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding-top: 4px; }
dl.contact dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
address { font-style: normal; }
.small { margin: 24px 0 0; font-size: 15px; color: var(--muted); }

/* Foot */
.foot { padding: 34px 0 44px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 14px 40px; flex-wrap: wrap; }
.foot p { margin: 0 0 4px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 24px; flex-wrap: wrap; }
.foot a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* Privacy policy page */
.doc { padding: 60px 0 68px; border-bottom: 1px solid var(--line); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); max-width: none; }
.doc .dated { margin: 16px 0 34px; color: var(--muted); }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .note { background: var(--soft); border-left: 3px solid var(--green); padding: 16px 20px; margin: 0 0 14px; }
.doc .note p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .two { grid-template-columns: 1fr; gap: 36px; }
  .points { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand img { height: 46px; }
  .lead { padding: 48px 0 44px; }
  section { padding: 48px 0; }
  .sub { margin-bottom: 28px; }
  .services > li { grid-template-columns: 1fr; padding: 24px 0; }
  .services > li::before { font-size: 26px; margin-bottom: 10px; }
  dl.contact { grid-template-columns: 1fr; gap: 2px; }
  dl.contact dd { margin-bottom: 14px; }
  .doc { padding: 40px 0 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .actions, .skip { display: none; }
  section, .lead, .doc, .top { border: 0; }
  section.tint { background: none; }
}
