/* Brand tokens — Green & White. Keep in sync with oorsevai-web/src/app/theme.ts (docs/design.md §8). */
:root {
  --primary: #1b7f3b;
  --primary-dark: #0f5a2a;
  --primary-tint: #e8f5ec;
  --logo: #0e6b35;
  --leaf-light: #7cc242;
  --page: #f7faf8;
  --text: #1a1f1c;
  --text-secondary: #5b6660;
  --border: #dde5e0;
  --footer: #0b3d22;
  --font: "Noto Sans Tamil", "Noto Sans", system-ui, sans-serif;
  --heading: "Poppins", "Noto Sans Tamil", "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.icon { width: 1.4em; height: 1.4em; fill: currentColor; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s;
}
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1.05rem; }
.btn-primary { background: var(--logo); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-tint); }
.btn-white { background: #fff; color: var(--logo); }
.btn-white:hover { background: var(--primary-tint); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--leaf-light); outline-offset: 2px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex-shrink: 0; }
.logo img { width: 156px; }
.nav { display: none; gap: 20px; white-space: nowrap; }
.nav a { text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--logo); }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (min-width: 900px) { .logo img { width: 165px; } }
@media (min-width: 1340px) { .nav { display: flex; } }
@media (min-width: 1340px) and (max-width: 1499px) { .nav { gap: 16px; } }
/* Phones: text-only buttons so labels stay on one line and the header fits narrow screens. */
@media (max-width: 599px) {
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 0 12px; font-size: .9rem; }
  .header-actions .icon, .hero-actions .icon { display: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-lg { min-height: 52px; padding: 8px 16px; font-size: 1rem; line-height: 1.3; }
}
@media (max-width: 400px) { .logo img { width: 138px; } .header-actions .btn-sm { padding: 0 10px; font-size: .85rem; } .hero-actions .btn-lg { min-height: 56px; padding: 6px 10px; font-size: .9rem; } .hero .tagline { font-size: 1.1rem; } }
@media (max-width: 340px) { .logo img { width: 112px; } .header-actions { gap: 4px; } .header-actions .btn-sm { padding: 0 8px; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--page) 0%, #fff 100%); }
.hero-inner { display: grid; gap: 32px; align-items: center; text-align: center; padding-top: 32px; padding-bottom: 40px; }
.hero h1 { margin-top: 16px; font: 700 clamp(1.75rem, 4vw, 2.6rem)/1.15 var(--heading); color: var(--logo); }
/* Tamil letters are taller and the words longer: smaller, with more line spacing. */
html[lang="ta"] .hero h1 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.35; }
.tagline { margin-top: 10px; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--primary); }
.intro { margin: 16px auto 0; max-width: 640px; font-size: clamp(1.05rem, 2vw, 1.15rem); color: var(--text-secondary); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 28px; }
/* Hero: real app screens in two phone frames (customer in front, provider behind) on a soft green glow */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; padding: 12px 0 20px; isolation: isolate; }
.hero-phones::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(92%, 520px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, #d4eedd 0%, var(--primary-tint) 55%, rgba(232,245,236,0) 72%); }
.phone { margin: 0; padding: 7px; border-radius: 30px; background: #141917; box-shadow: 0 22px 44px rgba(11,61,34,.28), inset 0 0 0 2px #2c332f; }
.phone img { width: 100%; border-radius: 23px; }
.phone-front { position: relative; z-index: 2; width: min(48%, 270px); transform: rotate(2.5deg); margin-left: -8%; }
.phone-back { width: min(42%, 236px); transform: rotate(-4deg) translateY(-6%); opacity: .97; }
@media (min-width: 1000px) { .hero-phones { padding: 0; } .phone { padding: 9px; border-radius: 38px; } .phone img { border-radius: 30px; } }
@media (max-width: 999px) { .hero-phones { order: -1; } .hero-inner { padding-top: 20px; } }
@media (min-width: 600px) { .hero-actions { flex-direction: row; } }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr 1.15fr; text-align: left; padding-top: 56px; padding-bottom: 64px; }
  .intro { margin-left: 0; }
  .hero-actions { justify-content: flex-start; flex-wrap: wrap; }
}

/* Opening soon */
.soon-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: #ffd24d; color: #0b3d22; font-weight: 700; border: 2px solid var(--logo); }
.soon-bar { background: var(--logo); color: #fff; }
.soon-bar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; padding-top: 14px; padding-bottom: 14px; text-align: center; }
.soon-bar .icon { color: #ffd24d; }
.soon-bar strong { color: #ffd24d; font-size: 1.1rem; }

/* Labour services: four illustrated cards + a "book a whole team" banner */
.work-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.work-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; border: 1px solid var(--border); transition: transform .15s, box-shadow .15s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14,107,53,.14); }
.work-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 4px solid var(--leaf-light); }
.work-body { padding: 18px 20px 22px; }
.work-card h3 { font: 700 1.2rem/1.3 var(--heading); color: var(--logo); }
.work-card p { margin-top: 6px; color: var(--text-secondary); }
.work-all { display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--primary); background: #fff; color: var(--logo); font-weight: 700; text-decoration: none; text-align: center; transition: background-color .15s; }
.work-all:hover { background: var(--primary-tint); }
.work-all .icon { color: var(--primary); }
.team-banner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: 24px; padding: 28px 24px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--logo) 0%, var(--primary) 100%); box-shadow: 0 14px 32px rgba(14,107,53,.25); }
.team-banner-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #ffd24d; color: #0b3d22; flex-shrink: 0; }
.team-banner-icon .icon { width: 38px; height: 38px; }
.team-banner strong { font: 700 clamp(1.25rem, 3vw, 1.5rem)/1.3 var(--heading); }
.team-banner p { margin-top: 6px; color: rgba(255,255,255,.9); }
.team-banner .btn { flex-shrink: 0; }
@media (min-width: 600px) { .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .work-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .team-banner { flex-direction: row; text-align: left; gap: 24px; padding: 28px 36px; }
  .team-banner-text { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .work-card { transition: none; } .work-card:hover { transform: none; } }

/* Rates */
.rates { display: grid; gap: 28px; grid-template-columns: 1fr; }
.rate { position: relative; padding: 28px 24px; border-radius: 20px; border: 2px solid var(--border); background: #fff; text-align: center; }
.rate-icon { display: inline-flex; padding: 14px; border-radius: 50%; background: var(--primary-tint); color: var(--logo); }
.rate-icon .icon { width: 40px; height: 40px; }
.rate h3 { margin-top: 14px; font: 700 1.35rem/1.25 var(--heading); color: var(--logo); }
.rate p { margin-top: 8px; color: var(--text-secondary); }
.rate.featured { background: var(--logo); border-color: var(--logo); color: #fff; box-shadow: 0 14px 32px rgba(14,107,53,.25); }
.rate.featured h3 { color: #fff; }
.rate.featured p { color: rgba(255,255,255,.88); }
.rate.featured .rate-icon { background: #ffd24d; color: #0b3d22; }
.rate-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: #ffd24d; color: #0b3d22; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.rates-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; text-align: center; font-weight: 600; color: var(--logo); }
@media (min-width: 900px) { .rates { grid-template-columns: repeat(3, 1fr); align-items: stretch; } .rate.featured { transform: translateY(-8px); } }

/* Trust strip */
.trust { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 16px; margin-bottom: 16px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.trust-item .icon { width: 34px; height: 34px; color: var(--primary); }
.trust-item strong { color: var(--logo); }
.trust-item p { font-size: .9rem; color: var(--text-secondary); }
@media (max-width: 480px) { .trust { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Sections */
.section { padding: 48px 0; scroll-margin-top: 72px; }
.section.tint { background: var(--page); }
.section h2 { font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.2 var(--heading); color: var(--logo); text-align: center; }
.subtitle { margin-top: 8px; text-align: center; color: var(--text-secondary); font-size: 1.05rem; }
.section h2 + * { margin-top: 32px; }
.section .subtitle + * { margin-top: 32px; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

.card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(16,40,24,.08), 0 1px 2px rgba(16,40,24,.06); }

/* Services: category chips ("All" first) filter one grid. Phones: the chips scroll sideways in one row. */
.service-filter { position: relative; display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin-left: -16px; margin-right: -16px; scrollbar-width: none; }
.service-filter::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 14px 0 10px;
  border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--text);
  font: 600 .95rem/1.2 var(--font); white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip .icon { width: 22px; height: 22px; color: var(--primary); }
.chip:hover { border-color: var(--leaf-light); background: var(--primary-tint); }
.chip[aria-pressed="true"] { background: var(--logo); border-color: var(--logo); color: #fff; }
.chip[aria-pressed="true"] .icon { color: #ffd24d; }
.chip-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--primary-tint); color: var(--logo); font-size: .8rem; font-weight: 700; }
.chip[aria-pressed="true"] .chip-count { background: #ffd24d; color: #0b3d22; }
.chip:focus-visible { outline: 3px solid var(--leaf-light); outline-offset: 2px; }
.section .service-filter + .services { margin-top: 16px; }
@media (min-width: 900px) { .service-filter { flex-wrap: wrap; justify-content: center; overflow: visible; margin-left: 0; margin-right: 0; padding: 4px 0 10px; } }
.services { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services.changing .service { animation: service-in .25s ease both; }
@keyframes service-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.service { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 12px 8px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: transform .15s, box-shadow .15s; }
.service:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,107,53,.12); }
.service-icon { display: flex; padding: 12px; border-radius: 50%; background: var(--primary-tint); color: var(--logo); }
.service-icon .icon { width: 28px; height: 28px; }
.service span:last-child { font-weight: 600; font-size: .85rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 600px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .services { grid-template-columns: repeat(6, minmax(0, 1fr)); } .service { padding: 16px; } .service-icon .icon { width: 34px; height: 34px; } .service span:last-child { font-size: .95rem; } }

/* How it works */
/* Mobile: vertical timeline (badge left, text right). Desktop: four columns joined by a dashed line. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; }
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 35px; top: 76px; bottom: -20px; border-left: 3px dashed var(--leaf-light);
}
.step-badge {
  position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--logo); border: 3px solid var(--primary-tint); box-shadow: 0 6px 16px rgba(14,107,53,.14); z-index: 1;
}
.step-badge .icon { width: 34px; height: 34px; }
.step:last-child .step-badge { background: var(--logo); color: #fff; border-color: var(--leaf-light); }
.step-no {
  position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #ffd24d; color: #0b3d22; font-weight: 800; font-size: .9rem; border: 3px solid #fff;
}
.step-body { padding: 16px 18px; border-radius: 16px; background: var(--page); border: 1px solid var(--border); }
.step h3 { font: 700 1.1rem/1.3 var(--heading); color: var(--logo); }
.step p { margin-top: 6px; color: var(--text-secondary); font-size: .95rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; text-align: center; gap: 20px; }
  .step:not(:last-child)::before { left: calc(50% + 52px); right: calc(28px - 50%); top: 44px; bottom: auto; border-left: 0; border-top: 3px dashed var(--leaf-light); }
  .step-badge { width: 88px; height: 88px; }
  .step-badge .icon { width: 42px; height: 42px; }
  .step-body { align-self: stretch; justify-self: stretch; padding: 20px; }
}

/* Join */
.join { display: grid; gap: 32px; align-items: center; padding: 24px; border-radius: 24px; background: var(--logo); color: #fff; }
.join-headline { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; }
.join-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.join-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; }
.join-points .icon { color: var(--leaf-light); }
.join-cta { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.join-cta p { opacity: .85; }
.join-mark { display: none; padding: 16px; border-radius: 50%; background: #fff; }
@media (min-width: 900px) {
  .join { grid-template-columns: 1.2fr 1fr; padding: 40px; }
  .join-cta { align-items: center; }
  .join-mark { display: flex; }
}

/* The OorSevai Centre (pictured in the hero): what the branded office offers, and the help card */
.office-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.office-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.office-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--primary-tint); color: var(--logo); flex-shrink: 0; }
.office-icon .icon { width: 28px; height: 28px; }
.office-list strong { font: 700 1.05rem/1.3 var(--heading); color: var(--logo); }
.office-list p { margin-top: 2px; color: var(--text-secondary); font-size: .95rem; }
@media (min-width: 700px) { .office-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.office { display: grid; gap: 28px; align-items: center; }
.office-image { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 32px rgba(14,107,53,.16); border: 4px solid #fff; }
.office-image img { width: 100%; }
@media (min-width: 1000px) { .office { grid-template-columns: 1.1fr 1fr; gap: 40px; } .office-list { grid-template-columns: 1fr; } }
.centre { padding: 20px; border-left: 6px solid var(--primary); }
.centre.help { max-width: 760px; margin: 28px auto 0; }
.centre.help { background: var(--primary-tint); border-left-color: var(--leaf-light); }
.centre.help strong { font-size: 1.1rem; color: var(--logo); }
.centre.help p { margin-top: 4px; color: var(--text-secondary); }

/* Footer */
.footer { background: var(--footer); color: rgba(255,255,255,.85); padding: 40px 0 32px; }
.footer-row { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 700 1.5rem var(--heading); color: #fff; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 32px; font-size: .875rem; opacity: .7; }
@media (min-width: 900px) { .footer-row { flex-direction: row; justify-content: space-between; align-items: center; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .service, .chip { transition: none; } .service:hover { transform: none; } .services.changing .service { animation: none; } }

/* Terms and Privacy pages: easy reading width, clear headings, the short summary first */
.legal { max-width: 820px; padding-top: 32px; padding-bottom: 56px; }
.legal h1 { font: 700 clamp(1.6rem, 4vw, 2.2rem)/1.25 var(--heading); color: var(--logo); }
html[lang="ta"] .legal h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.35; }
.legal-meta { margin-top: 6px; color: var(--text-secondary); font-size: .95rem; }
.legal h2 { margin-top: 32px; font: 700 1.2rem/1.35 var(--heading); color: var(--logo); scroll-margin-top: 80px; }
.legal h3 { margin-top: 18px; font-weight: 700; font-size: 1.02rem; color: var(--text); }
.legal p, .legal li { line-height: 1.7; }
.legal p { margin-top: 10px; }
.legal ul, .legal ol { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--primary); font-weight: 600; overflow-wrap: anywhere; }
.legal-summary { margin-top: 24px; padding: 18px 22px; border-radius: 16px; background: var(--primary-tint); border-left: 6px solid var(--leaf-light); }
.legal-summary h2 { margin-top: 0; }
.footer-brand { text-decoration: none; }
