/* Shourya Finserve */

:root {
  /* Palette taken from the logo: charcoal, teal and orange */
  --paper: #f2f5f5;
  --white: #ffffff;
  --ink: #1f2327;
  --muted: #4f565c;
  --line: #d8e0e0;
  --accent: #00797b;       /* logo teal, darkened for text/button contrast */
  --accent-dark: #005b5d;
  --tint: #e0efee;
  --deep: #1b2124;         /* logo charcoal */
  --deep-soft: #2c3538;
  --on-deep: #eef4f4;
  --on-deep-muted: #b8c5c7;
  --spark: #fe7809;        /* logo orange: small highlights on dark only */
  --focus: #1a56db;
  --error: #a4121f;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(1180px, calc(100% - 2 * clamp(20px, 5vw, 56px)));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--tint); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.nav-cta { min-height: 42px; padding: 0 18px; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/1 var(--sans);
  cursor: pointer;
}
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.hero-place { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 17ch;
}
.hero-text { font-size: 19px; color: var(--muted); max-width: 52ch; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.hero-facts {
  display: grid;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.hero-facts strong { color: var(--ink); font-weight: 700; }

/* EMI calculator */
.calc {
  background: var(--deep);
  color: var(--on-deep);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 36px);
}
.calc h2 { font-size: 26px; line-height: 1.15; margin-bottom: 24px; color: #fff; }
.field { margin-bottom: 22px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.field-row label { font-size: 15px; font-weight: 500; }
.calc input[type="number"] {
  width: 150px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: 600 16px/1 var(--sans);
  text-align: right;
}
.calc input[type="range"] { width: 100%; accent-color: var(--spark); height: 28px; margin: 0; }
.calc :focus-visible { outline-color: #fff; }

.result { margin: 28px 0 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.result-label { font-size: 14px; color: var(--on-deep-muted); margin-bottom: 4px; }
.result-emi { font: 600 clamp(40px, 5vw, 52px)/1.05 var(--serif); color: #fff; margin: 0 0 18px; letter-spacing: -.01em; }
.bar { height: 8px; border-radius: 99px; background: var(--spark); overflow: hidden; }
.bar span { display: block; height: 100%; width: 60%; background: #fff; transition: width .25s ease; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 0; }
.result-grid dt { font-size: 13px; color: var(--on-deep-muted); }
.result-grid dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; color: #fff; }
.result-grid div:nth-child(1) dt::before,
.result-grid div:nth-child(2) dt::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 6px;
  border-radius: 50%;
}
.result-grid div:nth-child(1) dt::before { background: #fff; }
.result-grid div:nth-child(2) dt::before { background: var(--spark); }
.calc .btn { width: 100%; }
.fineprint { font-size: 13px; line-height: 1.5; color: var(--on-deep-muted); margin: 16px 0 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-white { background: var(--white); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.015em; }
.section-head p { color: var(--muted); margin: 16px 0 0; }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3vw, 40px);
}
.service-card-alt { background: var(--tint); border-color: #c3dcda; }
.service-card h3 { font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.service-card p { color: var(--muted); max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.chips a {
  display: inline-block;
  padding: 10px 18px;
  border: 1.5px solid #c5d0d0;
  border-radius: 99px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s, color .15s, background-color .15s;
}
.service-card-alt .chips a { background: #fff; border-color: #b5d3d1; }
.chips a:hover { border-color: var(--accent); color: var(--accent-dark); }
.note { font-size: 14px; margin: 24px 0 0; color: var(--muted); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-no {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.steps h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 112px); align-items: start; }
.about-copy p { font-size: 18px; color: var(--muted); max-width: 58ch; }
.person { display: grid; gap: 2px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink) !important; font-size: 16px !important; }
.person span { color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 104px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font: 600 20px/1.3 var(--serif);
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  font: 400 28px/1 var(--sans);
  color: var(--accent);
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.faq-list a { color: var(--accent-dark); text-underline-offset: 3px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 7vw, 96px); align-items: start; }
.contact-info > p { color: var(--muted); margin-top: 16px; max-width: 44ch; }
.contact-list { margin-top: 32px; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list li > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-list a { color: var(--accent-dark); font-weight: 600; font-size: 19px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; text-underline-offset: 4px; }
.contact-list .alt-number { font-size: 16px; font-weight: 500; color: var(--muted); }
.contact-list .alt-number span { font-weight: 400; font-size: 14px; }
.contact-list address { font-style: normal; color: var(--ink); margin-bottom: 4px; }
.contact-list address + a { font-size: 16px; }

.form {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.form h3 { font-size: 28px; line-height: 1.1; }
.form-field label:not(.check) { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.form input[type="text"],
.form input[type="tel"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid #9fabab;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.4 var(--sans);
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: var(--error); }
.err { margin: 8px 0 0; font-size: 14px; font-weight: 500; color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { color: var(--accent-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-note { margin: -4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: 8px; font-size: 15px; line-height: 1.5; }
.form-status[data-kind="ok"] { background: #e3f1e8; color: #14532d; }
.form-status[data-kind="error"] { background: #fbe8ea; color: #7a1520; }
.form-status a { color: inherit; font-weight: 700; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep); padding: 56px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--deep-soft);
}
.brand-logo { display: block; height: 46px; width: auto; }
.footer-logo { display: block; height: 124px; width: auto; }
.footer-tag { margin: 14px 0 0; color: var(--on-deep-muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; max-width: 460px; font-size: 15px; }
.footer-links a { text-decoration: none; color: var(--on-deep); padding: 4px 0; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 0 8px;
  font-size: 14px;
  color: var(--on-deep-muted);
}
.disclaimer { max-width: 90ch; margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: var(--on-deep-muted); }
.site-footer :focus-visible { outline-color: #fff; }

/* Mobile quick contact bar */
.quickbar { display: none; }

/* Legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal .prose { max-width: 740px; }
.legal h1 { font-size: clamp(36px, 4.5vw, 52px); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 8px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 12px; }
.legal p, .legal li { color: #30373c; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; display: grid; gap: 6px; }
.legal a { color: var(--accent-dark); text-underline-offset: 3px; }
.legal .back { display: inline-block; margin-bottom: 28px; font-weight: 600; color: var(--accent-dark); }
.header-simple .nav-inner { min-height: 68px; }

/* Let grid children shrink instead of forcing horizontal scroll */
.hero-grid > *, .service-grid > *, .about-grid > *, .faq-grid > *, .contact-grid > * { min-width: 0; }

/* Tablet and mobile */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px clamp(20px, 5vw, 56px) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(27, 33, 36, .14);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 16px; min-height: 48px; }

  .hero-grid, .service-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }

  .quickbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 36px; }
  .footer-logo { height: 104px; }
  .menu-label { display: none; }
  .hero-actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; gap: 10px; }
  .result-grid div { display: flex; justify-content: space-between; align-items: baseline; }
  .calc input[type="number"] { width: 130px; }
  .contact-list a { font-size: 17px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
