/* ============================================================
   Parikh Holdings — shared design system (v2)
   Palette: pure black ground, ivory ink, gold + red accents
   Type: Fraunces (serif, display) + Inter (sans, body/UI)
         Nakara (licensed) reserved for the footer wordmark
   ============================================================ */

@font-face {
  font-family: 'Nakara';
  src: url('../assets/fonts/Nakara-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black:  #000000;
  --ivory:  #FFFFF0;
  --gold:   #C5A059;
  --red:    #A31D1D;

  /* derived, opacity-only variants of the four brand colors */
  --ink:        var(--ivory);
  --ink-dim:    rgba(255,255,240,0.74);
  --ink-mute:   rgba(255,255,240,0.46);
  --gold-soft:  rgba(197,160,89,0.92);
  --gold-dim:   rgba(197,160,89,0.55);
  
  /* Increased opacity for thicker, more visible lines */
  --gold-line:  rgba(197,160,89,0.40);
  --gold-line-soft: rgba(197,160,89,0.25); 
  
  --gold-tint:  rgba(197,160,89,0.045);
  --red-soft:   rgba(163,29,29,0.88);

  --line:      var(--gold-line);
  --line-soft: var(--gold-line-soft);
  --bg:        var(--black);
  --bg-panel:  var(--gold-tint);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --pad: clamp(24px, 5vw, 72px);
}

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

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- constant, site-wide static luxury backdrop ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 900px 700px at 14% 8%, rgba(197,160,89,0.085), transparent 60%),
    radial-gradient(ellipse 700px 600px at 92% 85%, rgba(163,29,29,0.05), transparent 65%),
    var(--black);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(197,160,89,0.028) 0 1px, transparent 1px 130px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-dim); color: var(--black); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- color utilities ---------- */
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0 0 14px;
}

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

h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em; color: var(--ink-dim); max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 24px);
  color: var(--ink);
  line-height: 1.55;
  max-width: 46ch;
}

/* Standard Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--gold-dim);
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  background: transparent;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.btn:hover { border-color: var(--gold); color: var(--black); background: var(--gold); }

/* Red Inquiries Button */
.btn-red {
  background-color: var(--red);
  color: var(--ivory);
  border: 1px solid var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color .25s ease;
}
.btn-red:hover {
  background-color: #7a1515;
  color: var(--ivory);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  border-bottom: 2px solid var(--gold-dim);
  padding-bottom: 2px;
  transition: border-color .25s ease, opacity .25s ease;
}
.btn-quiet:hover { border-color: var(--gold); opacity: .85; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line-soft); /* Thicker line */
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px; /* Increased height to fit larger logo */
}
.brand { display: flex; align-items: center; }
.brand img { height: 64px; width: auto; } /* Increased logo size */

.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav-links a {
  color: var(--ink-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-soft);
  border-color: var(--gold-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 100px 0 0 0; /* Updated to match new header height */
    background: var(--black);
    flex-direction: column;
    padding: 32px var(--pad);
    gap: 22px;
    font-size: 16px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: flex; }
}

/* ---------- page hero (interior pages) ---------- */
.page-hero {
  padding: 76px 0 56px;
  border-bottom: 2px solid var(--line-soft); /* Thicker line */
}
.page-hero .eyebrow { margin-bottom: 18px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--line-soft); /* Thicker line */
  padding: 56px 0 34px;
  margin-top: 120px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand {
  font-family: 'Nakara', var(--serif);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { height: 28px; } /* Slightly increased footer logo */
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-dim); font-size: 14px; }
.footer-col a:hover { color: var(--gold-soft); }

.footer-legal {
  border-top: 2px solid var(--line-soft); /* Thicker line */
  padding-top: 28px;
  display: grid;
  gap: 12px;
}
.footer-legal p {
  font-size: 12.5px;
  color: var(--ink-mute);
  max-width: 90ch;
  margin: 0;
  line-height: 1.7;
}
.footer-copyright {
  font-size: 12.5px;
  color: var(--ink-mute);
  margin-top: 6px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- placeholder blocks ---------- */
.placeholder {
  border: 2px dashed var(--line);
  background: var(--bg-panel);
  color: var(--ink-mute);
  font-size: 13px;
  padding: 18px;
  text-align: center;
}
.placeholder-media {
  border: 2px dashed var(--line);
  background: var(--bg-panel);
  color: var(--ink-mute);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.placeholder-media.wide { aspect-ratio: 16 / 9; }
.placeholder-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- generic section spacing ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-border-t { border-top: 2px solid var(--line-soft); } /* Thicker line */

/* ---------- interior page components ---------- */
.principles-grid, .goals-grid, .stats-grid {
  display: grid;
  gap: 2px; /* Thicker gap lines */
  background: var(--line-soft);
  border: 2px solid var(--line-soft);
}
.principles-grid { grid-template-columns: repeat(3, 1fr); }
.goals-grid { grid-template-columns: repeat(2, 1fr); }
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.principles-grid > div, .goals-grid > div, .stats-grid > div {
  background: var(--black);
  padding: 36px 32px;
}
.principles-grid h3, .goals-grid h3 { margin-bottom: 12px; }
.principles-grid p, .goals-grid p { font-size: 14.5px; }

.stat-num {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--gold-soft);
  display: block;
  margin-bottom: 8px;
}
.stat-label { font-size: 12.5px; color: var(--ink-mute); letter-spacing: .02em; }

@media (max-width: 820px) {
  .principles-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.form-grid { display: grid; gap: 20px; max-width: 560px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 13px; color: var(--ink-mute); letter-spacing: .01em; }
.form-row input, .form-row textarea, .form-row select {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold-dim);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.card { border: 2px solid var(--line-soft); padding: 30px; background: var(--bg-panel); } /* Thicker line */
.card + .card { margin-top: 2px; }
.card-list { display: grid; gap: 2px; background: var(--line-soft); border: 2px solid var(--line-soft); } /* Thicker line */
.card-list .card { border: none; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line-soft); border: 2px solid var(--line-soft); } /* Thicker line */
.blog-card { background: var(--black); padding: 30px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; }
.blog-tag { font-size: 11.5px; letter-spacing: .04em; color: var(--gold-dim); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- home page specific ---------- */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: center; /* Changed from flex-end to center */
  justify-content: center; /* Centers horizontally */
  text-align: center; /* Centers the text inside */
  padding: 0;
  border-bottom: 2px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero-dynamic-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 640px 520px at 22% 28%, rgba(197,160,89,0.16), transparent 60%),
    radial-gradient(ellipse 520px 420px at 82% 78%, rgba(163,29,29,0.07), transparent 65%);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  50%  { transform: translate(2%, -3%) scale(1.04); opacity: 0.85; }
  100% { transform: translate(-2%, 2%) scale(1.02); opacity: 1; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(197,160,89,0.045) 0 1px, transparent 1px 120px);
}
.hero-inner { 
  position: relative; 
  z-index: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 { max-width: none; }
.hero-sub {
  margin-top: 22px;
  max-width: 52ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px); /* Slightly larger font */
  color: var(--red); /* Specific requested color */
}

.philosophy {
  position: relative;
  min-height: 64vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 2px solid var(--line-soft);
}
.philosophy-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.7));
}
.philosophy .wrap { position: relative; z-index: 1; }

.split { display: grid; grid-template-columns: 1fr 2px 1fr; } /* Thicker center divider */
.split-col { padding: 72px var(--pad); }
.split-col:first-child { padding-left: var(--pad); }
.split-divider { background: var(--line-soft); }
.split-col .eyebrow { margin-bottom: 16px; }
.split-col h2 { margin-bottom: 18px; }
.split-col p { margin-bottom: 28px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-divider { display: none; height: 2px; }
  .split-col { padding: 56px var(--pad); border-bottom: 2px solid var(--line-soft); }
}

.cta-band { 
  text-align: center; 
  padding: 96px var(--pad); 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-band .lead { max-width: 56ch; margin: 0 auto 34px; }


/* ---------- founder portrait ---------- */
.founder-frame {
  border: 2px solid var(--gold-line); /* Thicker border */
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.founder-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* Removed grayscale and sepia filters to display image in true full color */
}
