/* ==========================================================
   NIKAM ASSOCIATES — Advocate Kiran Nikam, Pune
   Plain CSS design system. Black / gold / deep pine, built
   from the firm's real logo and portrait. No framework.
   ========================================================== */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600;700&display=swap");

:root{
  --ink:        #0B0B0A;
  --charcoal:   #1E1C18;
  --paper:      #FAF8F3;
  --surface:    #F1ECE0;
  --line:       #E1D9C4;
  --line-strong:#CBBE9B;
  --gold:       #B08D3E;
  --gold-light: #D6B876;
  --gold-deep:  #7C611F;
  --pine:       #0F3D30;
  --pine-deep:  #0A2921;
  --error:      #8C2F1F;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content-max: 76rem;
  --text-max: 42rem;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: #33312B;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

h1, h2, h3, h4{
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3{ font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4{ font-size: 1.05rem; }

p{ margin: 0 0 1.1em; max-width: var(--text-max); }
ul, ol{ margin: 0 0 1.1em; padding-left: 1.25em; }
li{ margin-bottom: 0.4em; }

::selection{ background: var(--gold); color: #fff; }
:focus-visible{ outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.container{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 900px){ .container{ padding: 0 3rem; } }

.section{ padding: clamp(3rem, 7vw, 6rem) 0; }
.section--surface{ background: var(--surface); }
.section--ink{ background: var(--ink); color: #D8D5C8; }
.section--ink h1, .section--ink h2, .section--ink h3{ color: var(--paper); }
.hero-panel{
  position: relative;
  background: radial-gradient(120% 150% at 82% 15%, #2A2410 0%, var(--ink) 58%);
}
.section--pine{ background: var(--pine); color: #E6E2D3; }
.section--pine h2{ color: var(--paper); }

.rule{ border: none; border-top: 1px solid var(--line); }

.eyebrow{
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.6em;
}
.section--ink .eyebrow, .section--pine .eyebrow{ color: var(--gold-light); }

/* ---------- Masthead / nav ---------- */
.masthead{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,243,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(6px);
}

.masthead__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
}
@media (min-width: 900px){ .masthead__bar{ padding: 0.85rem 3rem; } }

.brand{ display: flex; align-items: center; gap: 0.7rem; }
.brand__mark{
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: 3px;
}
.brand__text{ display: flex; flex-direction: column; line-height: 1.2; }
.brand__name{ font-family: var(--serif); font-size: 1.1rem; color: var(--ink); font-weight: 600; }
.brand__tagline{ font-size: 0.72rem; color: #55524A; }

.nav{ display: none; align-items: center; gap: 1.8rem; }
@media (min-width: 980px){ .nav{ display: flex; } }
.nav a{
  font-size: 0.93rem;
  color: #46443C;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"]{ color: var(--ink); border-bottom-color: var(--gold); }

.masthead__actions{ display: flex; align-items: center; gap: 0.8rem; }
.masthead__phone{ display: none; font-size: 0.88rem; color: #46443C; white-space: nowrap; }
@media (min-width: 1100px){ .masthead__phone{ display: inline; } }

.nav-toggle{
  display: inline-flex;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
@media (min-width: 980px){ .nav-toggle{ display: none; } }
.nav-toggle__icon{ width: 20px; height: 14px; position: relative; display: inline-block; }
.nav-toggle__icon span, .nav-toggle__icon::before, .nav-toggle__icon::after{
  position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); content:"";
}
.nav-toggle__icon::before{ top: 0; }
.nav-toggle__icon span{ top: 6px; }
.nav-toggle__icon::after{ top: 12px; }

.mobile-nav{ display: none; flex-direction: column; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav.is-open{ display: flex; }
.mobile-nav a{ padding: 0.95rem 1.5rem; border-bottom: 1px solid var(--line); font-size: 1rem; color: #46443C; }
.mobile-nav a[aria-current="page"]{ color: var(--gold-deep); }
.mobile-nav__actions{ padding: 1rem 1.5rem 1.3rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }
@media (min-width: 980px){ .mobile-nav{ display: none !important; } }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.94rem; font-weight: 600;
  padding: 0.8rem 1.4rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover{ background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }

.btn--outline{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover{ background: var(--ink); color: var(--paper); }

.btn--invert{ background: transparent; color: var(--paper); border-color: rgba(250,248,243,0.5); }
.btn--invert:hover{ background: var(--paper); color: var(--ink); }

.btn--sm{ padding: 0.55rem 1rem; font-size: 0.85rem; }

.btn-row{ display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Hero (full-bleed photo background) ---------- */
.hero-photo{
  position: relative;
  min-height: min(86vh, 700px);
  display: flex;
  align-items: center;
  color: var(--paper);
  background: url("../images/hero-office.jpg") center 38% / cover no-repeat, var(--ink);
}
.hero-photo::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,11,10,0.94) 0%, rgba(11,11,10,0.84) 32%, rgba(11,11,10,0.5) 62%, rgba(11,11,10,0.18) 100%);
}
.hero-photo .container{ position: relative; z-index: 1; max-width: none; width: 100%; margin: 0; padding-left: 1.5rem; }
.hero-photo h1{ color: var(--paper); }
.hero-photo__content{ max-width: 34rem; padding: 3.5rem 0; }
@media (min-width: 700px){ .hero-photo .container{ padding-left: 5vw; } }
@media (min-width: 1400px){ .hero-photo .container{ padding-left: 6vw; } }
.hero-photo .hero__lede{ color: #E3E0D3; }

@media (max-width: 820px){
  .hero-photo{ min-height: 620px; background-position: 68% center; }
  .hero-photo::before{ background: rgba(11,11,10,0.8); }
  .hero-photo__content{ max-width: none; }
}

.hero__lede{ font-size: 1.08rem; color: #C9C5B4; max-width: 34rem; }
.section--ink .hero__lede{ color: #C9C5B4; }

/* ---------- Grids / tiles ---------- */
.grid{ display: grid; gap: 1.8rem; }
@media (min-width: 700px){
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  .grid--4{ grid-template-columns: repeat(4, 1fr); }
}

.two-col{ display: grid; gap: 2.4rem; }
@media (min-width: 900px){
  .two-col{ grid-template-columns: 1fr 1fr; }
  .two-col--wide-left{ grid-template-columns: 1.3fr 1fr; }
}

.tile{
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.55);
  padding: 1.6rem;
  transition: border-color 0.15s ease;
}
.tile:hover{ border-color: var(--gold-deep); }
.tile h3{ font-size: 1.1rem; margin: 0.9rem 0 0.4rem; }
.tile p{ font-size: 0.92rem; margin-bottom: 0.7rem; flex: 1; }
.tile__link{ font-size: 0.88rem; font-weight: 600; color: var(--gold-deep); }

.card{ border: 1px solid var(--line-strong); background: rgba(255,255,255,0.6); padding: 1.6rem; }
.card h4{ margin-bottom: 0.5rem; }
.card p{ font-size: 0.92rem; margin-bottom: 0; }

/* Service listing rows */
.service-row{ display: grid; gap: 0.9rem; padding: 1.9rem 0; border-top: 1px solid var(--line); }
.service-row:last-child{ border-bottom: 1px solid var(--line); }
@media (min-width: 800px){ .service-row{ grid-template-columns: 0.85fr 2fr; align-items: start; gap: 2rem; } }
.service-row__index{ font-family: var(--serif); font-style: italic; color: var(--gold-deep); }
.service-row h3{ margin-bottom: 0.35rem; }
.service-row p{ margin-bottom: 0; }

/* Numbered step sequence */
.steps{ display: grid; gap: 0; counter-reset: step; }
.step{
  counter-increment: step;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.1rem;
  padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.step:last-child{ border-bottom: 1px solid var(--line); }
.step::before{ content: counter(step); font-family: var(--serif); font-size: 1.5rem; color: var(--gold-deep); }
.section--surface .step, .section--surface .service-row{ border-color: var(--line-strong); }

/* Service matrix (services page) — independent cards, not a joined table */
.matrix{
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px){ .matrix{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .matrix{ grid-template-columns: repeat(3, 1fr); } }
.matrix__item{
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-strong);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.matrix__item:hover{
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,11,10,0.06);
}
.matrix__item h4{ font-size: 1rem; margin-bottom: 0.4rem; }
.matrix__item p{ font-size: 0.88rem; margin-bottom: 0; color: #4A4740; }

/* ---------- Placeholder / verification note ---------- */
.verify{
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  color: #4A4740;
  margin: 1.2rem 0;
}
.verify strong{ color: var(--gold-deep); }

/* ---------- Photo frame ---------- */
.photo-frame{ position: relative; overflow: hidden; border: 1px solid var(--line-strong); }
.photo-frame img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- FAQ ---------- */
.faq-item{ border-top: 1px solid var(--line); }
.faq-item:last-child{ border-bottom: 1px solid var(--line); }
.faq-item summary{
  cursor: pointer; list-style: none; padding: 1.2rem 0;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content: "+"; font-size: 1.3rem; color: var(--gold-deep); flex: none; }
.faq-item[open] summary::after{ content: "\2013"; }
.faq-item p{ padding-bottom: 1.2rem; margin: 0; }

/* ---------- Forms ---------- */
.form{ display: grid; gap: 1.05rem; max-width: 34rem; }
.field{ display: grid; gap: 0.4rem; }
.field label{ font-size: 0.87rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea{
  font-family: var(--sans); font-size: 0.97rem;
  padding: 0.72rem 0.9rem; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--gold-deep); }
.field-hint{ font-size: 0.8rem; color: #6B6858; }
.field-error{ font-size: 0.82rem; color: var(--error); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea{ border-color: var(--error); }
.field.has-error .field-error{ display: block; }

.form-status{ padding: 1rem 1.2rem; border: 1px solid var(--line-strong); font-size: 0.92rem; display: none; }
.form-status.is-visible{ display: block; }
.form-status.is-success{ border-color: var(--gold-deep); background: var(--surface); }
.form-status.is-error{ border-color: var(--error); background: #F7ECE9; }

/* ---------- Contact strip ---------- */
.contact-strip{
  display: grid; gap: 1.4rem;
  padding: 0.2rem 0;
}
@media (min-width: 900px){ .contact-strip{ grid-template-columns: repeat(3, 1fr); } }
.contact-strip__item h4{ font-size: 0.8rem; color: var(--gold-deep); font-family: var(--sans); font-weight: 600; margin-bottom: 0.35rem; }
.contact-strip__item p{ margin: 0; font-size: 0.97rem; color: var(--ink); }

.map-frame{ border: 1px solid var(--line-strong); height: 320px; overflow: hidden; }
.map-frame iframe{ width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer{ background: var(--ink); color: #C7C3B4; }
.footer a{ color: #E3E0D3; }
.footer a:hover{ color: var(--gold-light); }
.footer__grid{ display: grid; gap: 2.2rem; padding: 3.2rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 800px){ .footer__grid{ grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand{ font-family: var(--serif); color: var(--paper); font-size: 1.15rem; margin-bottom: 0.6rem; }
.footer h5{ color: #E3E0D3; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer ul{ list-style: none; padding: 0; margin: 0; }
.footer li{ margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer p{ font-size: 0.9rem; max-width: none; }
.footer__bottom{
  padding: 1.2rem 0 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem;
  justify-content: space-between; font-size: 0.8rem; color: #8E8A78;
}
.footer__bottom a{ color: #8E8A78; }
.footer__bottom a:hover{ color: var(--gold-light); }

/* ---------- Utility ---------- */
.text-center{ text-align: center; }
.mx-auto{ margin-left: auto; margin-right: auto; }
.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.8rem 1.2rem; z-index: 100;
}
.skip-link:focus{ left: 1rem; top: 1rem; }
.breadcrumb{ font-size: 0.85rem; color: #6B6858; margin-bottom: 1.1rem; }
.breadcrumb a{ color: var(--gold-deep); }
.page-header{ background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header .container{ padding-top: clamp(2.2rem, 5vw, 3.2rem); padding-bottom: 1.8rem; }
.icon{ width: 22px; height: 22px; color: var(--gold-deep); flex: none; }
.icon-sm{ width: 17px; height: 17px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}
