/* ===========================================
   SHIVAJI PATIL & ASSOCIATES — Main Styles
   =========================================== */

:root {
  /* ---- Brand purple (from logo) ---- */
  --primary: #5E2E8A;        /* deep brand purple */
  --primary-dark: #43205F;   /* darkest purple */
  --primary-light: #A585C9;  /* lavender */
  --primary-soft: #F1EBF8;   /* very light purple tint */
  --on-accent: #FFFFFF;      /* text/icons on purple */

  /* ---- Secondary accent: muted rose (pairs with the purple) ---- */
  --accent: #D6568C;         /* muted raspberry pink */
  --accent-light: #E893B6;   /* soft pink */
  --accent-soft: #FCEEF4;    /* barely-there pink tint */

  /* Back-compat accent aliases (now purple) */
  --y: #5E2E8A;
  --y-dk: #43205F;

  --bg: #F7F5FA;         /* page background (subtle purple tint) */
  --white: #FFFFFF;
  --dark: #1A1523;       /* primary text / buttons (deep near-black purple) */
  --mid: #6B6675;        /* secondary text */
  --light: #A29DAD;      /* tertiary text */
  --border: #E8E4EF;
  --sh-sm: 0 1px 4px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 20px rgba(0,0,0,.07), 0 1px 6px rgba(0,0,0,.04);
  --sh-lg: 0 12px 48px rgba(0,0,0,.1),  0 4px 16px rgba(0,0,0,.06);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --nav-h: 80px;
  --ease: .22s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); background: var(--bg); color: var(--dark); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---- Accent colour ---- */
.y { color: var(--y-dk); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all var(--ease); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-dark  { background: var(--primary); color: var(--on-accent); border-color: var(--primary); }
.btn-dark:hover  { background: var(--primary-dark); color: var(--on-accent); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--border); }
.btn-outline:hover { border-color: var(--dark); background: var(--dark); color: var(--white); transform: translateY(-1px); }
.btn-full { width: 100%; justify-content: center; }

/* ---- Section helpers ---- */
.section { padding: 96px 0; }
.bg-white { background: var(--white); }
.bg-dark  { background: var(--dark); }
.text-white { color: var(--white); }
.text-muted-light { color: rgba(255,255,255,.55); }
.body-text { color: var(--mid); line-height: 1.8; margin-bottom: 14px; font-size: .975rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.sec-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.tag {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 14px;
}
.sec-h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px;
}
.sec-sub { color: var(--mid); font-size: 1rem; line-height: 1.7; }

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(247,247,245,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--sh-sm); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 8px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 52px; width: auto; }
.logo-fallback { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nl {
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 500; color: var(--mid);
  transition: all var(--ease);
}
.nl:hover, .nl.active { color: var(--dark); background: rgba(0,0,0,.05); }
.nav-btn { padding: 8px 18px; font-size: .85rem; margin-left: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .3s; }

.mob-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 199;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 12px 24px 20px; box-shadow: var(--sh-md); flex-direction: column; gap: 2px;
}
.mob-menu.open { display: flex; }
.mob-link { padding: 13px 0; font-size: .975rem; font-weight: 500; color: var(--mid); border-bottom: 1px solid var(--border); }
.mob-link:last-child { border-bottom: none; }

/* ==========================================
   HERO
   ========================================== */
.hero { min-height: 100vh; padding-top: var(--nav-h); position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(94,46,138,.16) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero::before {
  content: ''; position: absolute; bottom: 4%; left: -6%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(214,86,140,.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-wrap {
  max-width: 1180px; margin: 0 auto; padding: 80px 24px 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem); font-weight: 800;
  letter-spacing: -.05em; line-height: 1.08;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.hero-sub { color: var(--mid); font-size: 1.05rem; line-height: 1.78; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero visual cards */
.hero-right { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hg-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  box-shadow: var(--sh-md); transition: transform .3s, box-shadow .3s;
  display: flex; align-items: center; gap: 16px;
}
.hg-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.hg-wide { grid-column: 1 / 3; }
.hg-accent { background: linear-gradient(145deg, var(--primary) 0%, var(--accent) 130%); border-color: var(--primary); color: var(--on-accent); }
.hg-accent .hg-icon { color: var(--on-accent); }
.hg-icon { width: 36px; height: 36px; flex-shrink: 0; }
.hg-icon svg { width: 100%; height: 100%; }
.hg-card span { font-size: .9rem; font-weight: 600; }

/* Stats row */
.hero-stats-row {
  max-width: 1180px; margin: 0 auto;
  padding: 0 24px 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 20px 22px;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.sn { font-size: 1.8rem; font-weight: 800; letter-spacing: -.04em; }
.sl { font-size: .78rem; color: var(--mid); font-weight: 500; }

/* ==========================================
   SERVICES
   ========================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 30px;
  box-shadow: var(--sh-sm); transition: all .3s; position: relative; overflow: hidden;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.svc-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 46px; height: 46px; background: var(--primary); color: var(--on-accent); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.svc-desc { font-size: .875rem; color: var(--mid); line-height: 1.7; }

/* ==========================================
   ABOUT
   ========================================== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-left { display: flex; flex-direction: column; gap: 4px; }
.about-left .tag { margin-bottom: 10px; }
.highlights { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 24px; }
.hl-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.hl-icon {
  width: 22px; height: 22px; background: var(--primary); color: var(--on-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hl-icon svg { width: 11px; height: 11px; }

.about-right { position: relative; }
.about-img-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/5;
}
.about-img-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; height: 100%; color: var(--light);
}
.about-img-ph svg { width: 44px; height: 44px; opacity: .35; }
.about-img-ph span { font-size: .75rem; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.about-float {
  position: absolute; bottom: -16px; left: -24px;
  background: var(--dark); color: var(--white);
  border-radius: var(--r-md); padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--sh-lg);
}
.af-icon {
  width: 38px; height: 38px; background: var(--primary); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.af-icon svg { width: 18px; height: 18px; color: var(--on-accent); }
.af-num { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.af-text { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: 1px; }

/* ==========================================
   PROJECTS
   ========================================== */
.filter-bar { display: flex; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.fb {
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--white);
  font-size: .82rem; font-weight: 500; color: var(--mid);
  cursor: pointer; transition: all var(--ease);
}
.fb:hover, .fb.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: all .3s;
}
.proj-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); }
.proj-img {
  aspect-ratio: 16/10; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); overflow: hidden;
}
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-img-ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--light); }
.proj-img-ph svg { width: 30px; height: 30px; opacity: .25; }
.proj-img-ph span { font-size: .7rem; }
.proj-body { padding: 18px 20px; }
.proj-cat {
  display: inline-block; background: var(--primary-soft); color: var(--primary);
  font-size: .65rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px; margin-bottom: 8px;
}
.proj-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.proj-desc { font-size: .82rem; color: var(--mid); line-height: 1.65; }

/* ==========================================
   WHY US
   ========================================== */
.why-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.why-left { display: flex; flex-direction: column; gap: 16px; }
.why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); padding: 22px;
  transition: all .3s;
}
.why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
.wc-icon {
  width: 34px; height: 34px; background: var(--primary); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.wc-icon svg { width: 17px; height: 17px; color: var(--on-accent); }
.why-card h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.why-card p { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.65; }

/* ==========================================
   CONTACT
   ========================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 12px; }
.ci-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); transition: box-shadow var(--ease);
}
.ci-card:hover { box-shadow: var(--sh-sm); }
.ci-icon {
  width: 38px; height: 38px; background: var(--primary); color: var(--on-accent); border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 17px; height: 17px; }
.ci-label { font-size: .72rem; color: var(--mid); font-weight: 500; margin-bottom: 1px; }
.ci-val { font-size: .875rem; font-weight: 600; transition: color var(--ease); word-break: break-word; }
a.ci-val:hover { color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label { font-size: .82rem; font-weight: 600; }
.fg input, .fg textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .875rem; background: var(--bg); color: var(--dark);
  transition: border-color var(--ease), box-shadow var(--ease); outline: none; resize: vertical;
}
.fg input:focus, .fg textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94,46,138,.12);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--light); }
.form-ok {
  display: none; padding: 11px 14px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: var(--r-sm);
  color: #16a34a; font-size: .875rem; font-weight: 500;
}
.form-ok.show { display: block; }
.form-ok.error { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background: var(--dark); color: var(--white); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 64px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 2.4fr; gap: 64px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.footer-logo-img { height: 42px; width: auto; margin-bottom: 14px; }
.footer-tag { color: rgba(255,255,255,.45); font-size: .875rem; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.fc h4 {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 14px;
}
.fc ul { display: flex; flex-direction: column; gap: 9px; }
.fc ul li { font-size: .85rem; color: rgba(255,255,255,.45); }
.fc ul li a { color: rgba(255,255,255,.45); transition: color var(--ease); }
.fc ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px; text-align: center;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.35); max-width: 1180px; margin: 0 auto; }

/* ==========================================
   LEGAL / SUB-PAGES
   ========================================== */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--white); border-bottom: 1px solid var(--border);
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 640px; height: 420px;
  background:
    radial-gradient(circle at 38% 50%, rgba(94,46,138,.10) 0%, transparent 62%),
    radial-gradient(circle at 66% 55%, rgba(214,86,140,.08) 0%, transparent 62%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  letter-spacing: -.04em; margin: 14px 0 10px;
}
.page-hero p { color: var(--mid); font-size: 1rem; max-width: 560px; margin: 0 auto; }
.page-updated { display: inline-block; margin-top: 16px; font-size: .8rem; color: var(--light); }

.legal { padding: 64px 0 88px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-block { margin-bottom: 34px; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block h2 {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.legal-block h2 .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  border-radius: 7px; font-size: .8rem; font-weight: 800;
}
.legal-block p, .legal-block li { color: var(--mid); font-size: .95rem; line-height: 1.8; }
.legal-block p { margin-bottom: 12px; }
.legal-block ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.legal-block ul li { position: relative; padding-left: 20px; }
.legal-block ul li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light);
}
.legal-block a { color: var(--primary); font-weight: 600; }
.legal-block a:hover { text-decoration: underline; }
.legal-note {
  background: var(--primary-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 18px 20px; margin-top: 8px;
}
.legal-note p { margin: 0; font-size: .875rem; color: var(--mid); }

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-up.in { opacity: 1; transform: none; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .projects-grid  { grid-template-columns: 1fr 1fr; }
  .about-layout   { grid-template-columns: 1fr; gap: 48px; }
  .why-layout     { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 40px; }
  .hero-wrap      { grid-template-columns: 1fr; gap: 48px; }
  .hero-right     { display: none; }
  .hero-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-btn { display: none; }
  .burger { display: flex; }
  .nav-logo img { height: 40px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 40px; }
  .services-grid  { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .why-cards      { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-cols    { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; }
  .hero-wrap { padding: 48px 24px 32px; }
  .hero-btns .btn { flex: 1; justify-content: center; }
  /* Keep the floating badge inside the viewport on small screens */
  .about-float { left: 16px; bottom: -14px; }
  /* Prevent iOS auto-zoom on focus (needs >=16px) */
  .fg input, .fg textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-wrap { padding: 40px 18px 28px; }
  .hero-stats-row { grid-template-columns: 1fr 1fr; padding: 0 18px 56px; }
  .footer-cols    { grid-template-columns: 1fr; }
  .footer-inner   { padding: 48px 18px 32px; }
  .about-float { position: static; margin-top: 16px; }
}
