:root {
  color-scheme: light;
  --ivory: #fff7e8;
  --paper: #fffdf7;
  --maroon: #7a1518;
  --maroon-deep: #561012;
  --gold: #c4861c;
  --gold-light: #f6dc9a;
  --ink: #2a1a12;
  --muted: #6a5444;
  --line: #ead6b0;
  --error: #a61b1b;
  --radius: 14px;
  --shadow: 0 22px 50px -24px rgba(90, 40, 10, 0.45);
  --font-body: "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Noto Serif Tamil", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.75 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 247, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon); }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.brand-sub {
  display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.lang-toggle {
  min-height: 40px; padding: 6px 16px; cursor: pointer;
  border: 1.5px solid var(--maroon); border-radius: 999px;
  background: transparent; color: var(--maroon);
  font: 600 0.9rem var(--font-body);
}
.lang-toggle:hover, .lang-toggle:focus-visible { background: var(--maroon); color: #fff; }

/* Hero: the banner is 3:1; on phones crop the sides and keep the logo */
.hero img {
  width: 100%;
  height: clamp(220px, 33.35vw, 640px);
  object-fit: cover;
  object-position: 50% 40%;
}

/* Intro + form */
.intro {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start;
  padding: 56px 0 72px;
}
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 2px 14px; border-radius: 999px;
  background: var(--gold-light); color: var(--maroon-deep);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.03em;
}
h1 {
  margin: 0 0 18px;
  font-family: var(--font-display); color: var(--maroon);
  font-size: clamp(1.8rem, 3.4vw, 2.75rem); line-height: 1.35;
}
.lead { margin: 0 0 14px; font-size: 1.18rem; font-weight: 600; }
.intro-text p { max-width: 58ch; }
.tagline {
  margin-top: 28px; padding-left: 16px; border-left: 4px solid var(--gold);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--maroon-deep);
}

.card {
  position: relative; margin-top: -32px; /* just overlaps the banner's lower edge, below its tagline */
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-head { padding: 22px 26px; background: linear-gradient(135deg, var(--maroon), var(--maroon-deep)); color: #fff; }
.card-head h2 { margin: 0; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.45; }
.card-head p { margin: 6px 0 0; color: #f8e6c4; font-size: 0.94rem; line-height: 1.6; }

form { display: grid; gap: 16px; padding: 24px 26px 26px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: 1rem var(--font-body); color: var(--ink);
}
.field input::placeholder { color: #b39f8c; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 134, 28, 0.22); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { display: block; margin-top: 4px; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }
.error { display: block; margin-top: 4px; font-size: 0.88rem; font-weight: 600; line-height: 1.5; color: var(--error); }
.error:empty { display: none; }

.consent {
  display: grid !important; grid-template-columns: 22px 1fr; gap: 10px; align-items: start;
  font-weight: 400 !important; font-size: 0.92rem; line-height: 1.6; cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--maroon); }

.form-status {
  display: none; margin: 0; padding: 10px 14px; border-radius: 10px;
  background: #fbe9e7; color: var(--error); font-weight: 600; font-size: 0.92rem;
}
.form-status.is-visible { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 22px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(180deg, #dda12a, #b8761a); color: #2a1300;
  font: 700 1.05rem var(--font-body); text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(184, 118, 26, 0.8);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.privacy { margin: 0; text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--muted); }

.success { padding: 40px 26px 44px; text-align: center; }
.success img { width: 88px; height: 88px; margin: 0 auto 14px; }
.success h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.6rem; color: var(--maroon); }
.success h3:focus { outline: none; }
.success p { margin: 0; }

/* Honeypot, kept off screen */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Services */
.services { padding: 72px 0; background: var(--paper); border-block: 1px solid var(--line); }
.section-title {
  margin: 0; text-align: center;
  font-family: var(--font-display); color: var(--maroon);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.4;
}
.section-title::after {
  content: ""; display: block; width: 80px; height: 3px; margin: 14px auto 0;
  border-radius: 2px; background: var(--gold);
}
.service-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.service {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
}
.service-num {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-light); color: var(--maroon); font-weight: 700;
}
.service h3 { margin: 6px 0 0; font-size: 1.02rem; font-weight: 600; line-height: 1.55; }

/* Together */
.together { padding: 72px 0 80px; }
.together .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.together figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.callout {
  margin: 0 0 16px;
  font-family: var(--font-display); color: var(--maroon);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.55;
}
.together .btn { margin-top: 10px; }

/* Footer */
.footer { padding: 28px 0; background: var(--maroon-deep); color: #f3dfbd; text-align: center; font-size: 0.9rem; }
.footer p { margin: 0; }
.footer-small { margin-top: 4px !important; opacity: 0.75; font-size: 0.8rem; }

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; gap: 32px; padding: 36px 0 52px; }
  .card { margin-top: 0; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .together .wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  form { padding: 20px; }
  .card-head { padding: 18px 20px; }
  .services, .together { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
