/* Thirthahalli insurance office website: one small stylesheet, no framework */
:root {
  --navy: #12355b; --navy-2: #0d2742; --teal: #167c80; --teal-2: #0f5f63; --sand: #f6f1e8; --ink: #1c2733; --mut: #5a6776;
  --line: #e1dccf; --white: #fff; --amber: #e8a33d; --amber-2: #c98516; --ok: #1d7a46;
  --radius: 12px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Kannada", Arial, sans-serif; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-2); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); } h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px 12px; z-index: 99; }

/* top bar + header */
.topbar { background: var(--navy-2); color: #e8eef5; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; } .topbar a:hover { text-decoration: underline; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; color: var(--navy); line-height: 1.15; }
.brand b { display: block; font-size: 1.3rem; letter-spacing: .01em; } .brand span { font-size: .8rem; color: var(--mut); letter-spacing: .08em; text-transform: uppercase; }
nav.main ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
nav.main a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--sand); color: var(--navy); }
nav.main a.cta { background: var(--teal); color: #fff; } nav.main a.cta:hover { background: var(--teal-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--navy); }

/* hero */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy) 0%, #1a4d7a 55%, var(--teal) 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(232,163,61,.25), transparent 45%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 56px; }
.hero h1 { color: #fff; max-width: 18ch; } .hero p.lead { font-size: 1.2rem; max-width: 52ch; color: #e6eef6; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; background: var(--amber); color: #2a1d00; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.btn:hover { background: var(--amber-2); color: #fff; } .btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); } .btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.teal { background: var(--teal); color: #fff; } .btn.teal:hover { background: var(--teal-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); overflow: hidden; }
.quick a { display: block; padding: 22px 16px; text-align: center; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; background: rgba(13,39,66,.55); border-right: 1px solid rgba(255,255,255,.25); }
.quick a:last-child { border-right: 0; } .quick a:hover { background: rgba(232,163,61,.9); color: #2a1d00; }
.quick svg { width: 34px; height: 34px; margin: 0 auto 8px; display: block; fill: currentColor; }

/* sections */
section.block { padding: 64px 0; } section.block.alt { background: var(--sand); }
.lead-in { max-width: 62ch; color: var(--mut); }
.grid { display: grid; gap: 22px; } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .35em; } .card p { color: var(--mut); margin-bottom: .6em; } .card a.more { font-weight: 700; text-decoration: none; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; margin-bottom: 14px; } .icon svg { width: 26px; height: 26px; fill: var(--teal); }
.steps { counter-reset: s; } .steps .card { position: relative; padding-top: 44px; } .steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; }
.note { background: #fff8e8; border: 1px solid #f0d9a4; border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; color: #5c4710; }
.pagehead { background: var(--sand); padding: 44px 0 30px; border-bottom: 1px solid var(--line); } .pagehead h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 0 0 .3em; } .pagehead p { color: var(--mut); max-width: 62ch; margin: 0; }
.crumbs { font-size: .88rem; color: var(--mut); margin-bottom: 8px; } .crumbs a { color: var(--mut); }
ul.tick { list-style: none; padding: 0; margin: 0 0 1em; } ul.tick li { padding-left: 28px; position: relative; margin-bottom: .45em; } ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
dl.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; margin: 0; } dl.facts dt { font-weight: 700; color: var(--navy); } dl.facts dd { margin: 0; }

/* forms */
form.quote { display: grid; gap: 16px; } label { font-weight: 700; display: grid; gap: 6px; color: var(--navy); font-size: .95rem; }
input, select, textarea { font: inherit; padding: 12px 14px; border: 1px solid #b9c2cc; border-radius: 10px; background: #fff; color: var(--ink); } input:focus, select:focus, textarea:focus { outline: 3px solid rgba(22,124,128,.3); border-color: var(--teal); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); } label.check input { margin-top: 5px; }
.formnote { font-size: .9rem; color: var(--mut); } .status { font-weight: 700; } .status.err { color: #b3261e; }

/* footer */
footer.site { background: var(--navy-2); color: #cdd8e4; padding: 48px 0 22px; font-size: .95rem; }
footer.site h3 { color: #fff; font-size: 1.05rem; } footer.site a { color: #e8eef5; } footer.site ul { list-style: none; padding: 0; margin: 0; } footer.site li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 18px; font-size: .86rem; color: #aebccb; } .legal p { margin-bottom: .6em; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 30; background: #1fa855; color: #fff; text-decoration: none; font-weight: 800; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); } .wa-float:hover { background: #178443; color: #fff; }

@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: 1fr 1fr; } .quick { grid-template-columns: 1fr 1fr; } .quick a:nth-child(2) { border-right: 0; } .quick a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .menu-btn { display: block; } nav.main { display: none; width: 100%; } nav.main.open { display: block; } header.site .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; } nav.main ul { flex-direction: column; align-items: stretch; padding-bottom: 8px; }
}
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } dl.facts { grid-template-columns: 1fr; } section.block { padding: 44px 0; } .hero .wrap { padding-top: 44px; } }
/* buttons that sit in a paragraph: keep a gap when they wrap on a phone; keep the footer clear of the floating WhatsApp button */
p > .btn, .note .btn { margin: 0 8px 10px 0; }
@media (max-width: 600px) { footer.site { padding-bottom: 84px; } }
/* scroll reveal: elements start slightly lower and transparent, then glide in (class added by script.js only) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; will-change: auto; }
@media print { .reveal { opacity: 1; transform: none; transition: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .topbar, header.site nav, .wa-float, .menu-btn { display: none; } }
