/* 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; } }
/* 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(2rem, 5vw, 3rem)/1.12 var(--heading); color: var(--logo); }
.tagline { margin-top: 12px; font-weight: 700; font-size: clamp(1.25rem, 3vw, 1.5rem); 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-image { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(14,107,53,.18); border: 4px solid #fff; }
.hero-image img { width: 100%; }
@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; }

/* Shop model: four "in the shop" tiles + the core idea (local service booking) as a wide banner */
.shop-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.shop-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--leaf-light); transition: transform .15s, box-shadow .15s; }
.shop-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14,107,53,.14); }
.shop-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--primary-tint); color: var(--logo); }
.shop-icon .icon { width: 36px; height: 36px; }
.shop-tile strong { margin-top: 16px; font: 700 1.1rem/1.3 var(--heading); color: var(--logo); }
.shop-tile p { margin-top: 8px; color: var(--text-secondary); font-size: .95rem; }
.shop-local { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-top: 20px; 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); }
.shop-local-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #ffd24d; color: #0b3d22; flex-shrink: 0; }
.shop-local-icon .icon { width: 38px; height: 38px; }
.shop-local strong { font: 700 clamp(1.25rem, 3vw, 1.5rem)/1.3 var(--heading); }
.shop-local p { margin-top: 6px; color: rgba(255,255,255,.9); }
.shop-local .btn { flex-shrink: 0; }
@media (max-width: 599px) {
  .shop-tile { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 16px; border-top-width: 1px; border-left: 5px solid var(--leaf-light); }
  .shop-icon { width: 56px; height: 56px; grid-row: span 2; }
  .shop-icon .icon { width: 28px; height: 28px; }
  .shop-tile strong { margin-top: 0; }
  .shop-tile p { margin-top: 2px; }
}
@media (min-width: 600px) { .shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .shop-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .shop-local { flex-direction: row; text-align: left; gap: 24px; padding: 28px 36px; }
  .shop-local-text { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .shop-tile { transition: none; } .shop-tile: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 */
.services { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.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; 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; }
}

/* Centres */
.centres { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 640px; margin-left: auto; margin-right: auto; }
.centre { padding: 20px; border-left: 6px solid var(--primary); }
.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 { transition: none; } .service:hover { transform: none; } }
