/*
Theme Name: Kaashvi Universal
Theme URI: https://kaashviuniversal.in
Author: Kaashvi Universal Ventures LLP
Description: Custom theme for Kaashvi Universal Ventures LLP — performance marketing and web solutions. Warm editorial palette, sparse and intentional.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaashvi-universal
*/

/* =====================================================
   DESIGN TOKENS — edit via Appearance → Customize
   ===================================================== */
:root{
  /* Palette — Exteta warm editorial */
  --paper:     #EAE7DC;
  --paper-off: #F2EFE6;
  --tan:       #D8C3A5;
  --stone:     #8E8D8A;
  --coral:     #E98074;
  --coral-deep:#E85A4F;
  --ink:       #2C2B28;
  --ink-soft:  #5A5855;
  --line:      #D4D0C7;

  /* Typography — overridden by Customizer PHP vars */
  --font-display: var(--kuv-font-display, "Cormorant Garamond", "Garamond", Georgia, serif);
  --font-body:    var(--kuv-font-body, "Jost", "Inter", system-ui, sans-serif);
  --font-mono:    var(--kuv-font-mono, "IBM Plex Mono", ui-monospace, monospace);

  /* Layout */
  --wrap: 1160px;
  --radius: 6px;
}

/* =====================================================
   RESET
   ===================================================== */
*,*::before,*::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px }

h1,h2,h3,h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 400;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); letter-spacing: .14em; text-transform: uppercase }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.9rem); letter-spacing: .1em; text-transform: uppercase }
h3 { font-size: 1.1rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400 }
p  { margin: 0 0 1em; color: var(--ink-soft) }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px }

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 18px;
}
.eyebrow-coral { color: var(--coral) }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background .2s, color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px) }
.btn-coral {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}
.btn-coral:hover { background: var(--coral-deep); border-color: var(--coral-deep) }
.btn-outline {
  background: transparent;
  border-color: var(--ink-soft);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper) }
.btn-outline-light {
  background: transparent;
  border-color: rgba(234,231,220,.5);
  color: var(--paper);
}
.btn-outline-light:hover { background: rgba(234,231,220,.12) }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234,231,220,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 1px;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0; padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover { color: var(--coral); border-bottom-color: var(--coral) }
.header-cta { font-size: .75rem; padding: 10px 22px; white-space: nowrap }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink-soft);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 840px) {
  .nav-toggle { display: block }
  .header-cta { display: none }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 32px 24px;
  }
  .main-nav.open { display: block }
  .main-nav ul { flex-direction: column; gap: 0 }
  .main-nav a { display: block; padding: 13px 0; font-size: .9rem }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
/* Decorative radial tick-mark ring — CSS only, no SVG file needed */
.hero-ring {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 620px; height: 620px;
  border-radius: 50%;
  border: 1px dashed var(--tan);
  pointer-events: none;
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  opacity: .2;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text .eyebrow { margin-bottom: 24px }
.hero-text h1 { margin-bottom: .45em }
.hero-text .lede {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 36em;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap }
.hero-meta {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  color: var(--stone);
  text-transform: uppercase;
}
.hero-meta .sep { color: var(--coral); margin: 0 8px }

/* Ledger card (signature element) */
.ledger {
  background: var(--paper-off);
  border: 1px solid var(--tan);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(44,43,40,.22);
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ledger-head .live { color: var(--coral) }
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.ledger-row:last-child { border-bottom: 0 }
.ledger-row .lk { font-size: .9rem; color: var(--stone) }
.ledger-row .lv {
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.ledger-foot {
  background: var(--tan);
  padding: 11px 22px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-ring { display: none }
  .hero { min-height: auto; padding: 64px 0 72px }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 96px 0 }
.section-warm { background: var(--paper-off) }
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink h2, .section-ink h3 { color: var(--paper) }
.section-ink p { color: var(--tan) }
.section-ink .eyebrow { color: var(--stone) }

.section-header { max-width: 42em; margin-bottom: 60px }
.section-header h2 { margin-bottom: .35em }
.section-intro { font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft) }
.section-ink .section-intro { color: var(--tan) }

/* =====================================================
   SERVICES
   ===================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc {
  background: var(--paper-off);
  padding: 44px 36px;
  transition: background .2s;
}
.svc:hover { background: #fff }
.svc-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 16px;
}
.svc h3 { margin-bottom: .6em; font-size: 1.05rem }
.svc p { font-size: .96rem; margin: 0; line-height: 1.7 }

@media (max-width: 720px) {
  .svc-grid { grid-template-columns: 1fr }
}

/* =====================================================
   PROCESS
   ===================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(234,231,220,.15);
  margin-top: 56px;
}
.step {
  padding: 36px 28px;
  border-right: 1px solid rgba(234,231,220,.12);
}
.step:last-child { border-right: 0 }
.step-num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--coral);
  display: block;
  margin-bottom: 20px;
}
.step h3 { font-size: .95rem; margin-bottom: .5em; color: var(--paper) }
.step p { font-size: .9rem; color: rgba(234,231,220,.6); margin: 0 }

@media (max-width: 840px) {
  .steps { grid-template-columns: repeat(2, 1fr) }
  .step { border-right: 1px solid rgba(234,231,220,.12); border-bottom: 1px solid rgba(234,231,220,.12) }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr }
  .step { border-right: 0 }
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: start;
}
.about-facts { list-style: none; margin: 0; padding: 0 }
.about-facts li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.about-facts li:first-child { border-top: 1px solid var(--line) }
.about-facts .fk { color: var(--stone); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase }
.about-facts .fv { color: var(--ink); text-align: right }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px }
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.contact-card {
  background: var(--paper-off);
  padding: 44px 36px;
}
.contact-card h3 { margin-bottom: 6px }
.cc-sub { font-size: .9rem; color: var(--stone); margin-bottom: 24px }
.contact-link {
  display: block;
  font-family: var(--font-mono);
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: color .15s;
}
.contact-link:last-of-type { border-bottom: 0 }
.contact-link:hover { color: var(--coral) }
.contact-link.wa {
  color: var(--coral);
  font-weight: 600;
}

/* Billing app link */
.billing-link-bar {
  background: var(--tan);
  text-align: center;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.billing-link-bar a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-soft);
  padding-bottom: 1px;
  transition: color .15s;
}
.billing-link-bar a:hover { color: var(--coral); border-bottom-color: var(--coral) }

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: 60px 0 36px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(234,231,220,.1);
  margin-bottom: 28px;
}
.footer-brand .brand-name { color: var(--paper); font-size: 1.05rem; letter-spacing: .18em }
.footer-brand .brand-tag { color: var(--stone) }
.footer-brand p { font-size: .88rem; max-width: 28em; margin-top: 12px; color: var(--stone) }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap }
.footer-links a {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: var(--paper) }
.footer-billing {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  margin-top: 8px;
}
.footer-billing a {
  color: var(--coral);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.footer-billing a:hover { border-bottom-color: var(--coral) }
.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: rgba(142,141,138,.55);
  text-transform: uppercase;
}

/* =====================================================
   WhatsApp float
   ===================================================== */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  background: #25D366; color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px -8px rgba(0,0,0,.3);
  text-decoration: none;
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.07) }

/* =====================================================
   INNER PAGES
   ===================================================== */
.page-hero { padding: 72px 0 36px }
.page-hero .eyebrow { margin-bottom: 16px }
.entry-content { max-width: 740px; padding-bottom: 96px }
.entry-content h2 { margin-top: 1.8em; font-size: 1.5rem }

/* =====================================================
   REVEAL ANIMATION
   ===================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease }
.reveal.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none } }

/* =====================================================
   GOOGLE FONTS IMPORT
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Jost:wght@300;400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* =====================================================
   INLINE EDITOR — visual highlights (admin-only)
   ===================================================== */

/* Pulse animation on editable fields when edit mode active */
@keyframes kuv-pulse-border {
  0%   { outline-color: rgba(233,128,116,.25) }
  50%  { outline-color: rgba(233,128,116,.6) }
  100% { outline-color: rgba(233,128,116,.25) }
}

/* "EDIT" pill that appears on hover in edit mode */
.kuv-edit-mode [data-kuv] {
  position: relative;
}
.kuv-edit-mode [data-kuv]:not(:focus)::after {
  content: 'EDIT';
  position: absolute;
  top: -18px; right: 0;
  background: #E98074;
  color: #fff;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  padding: 2px 6px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  white-space: nowrap;
  z-index: 100;
}
.kuv-edit-mode [data-kuv]:hover::after {
  opacity: 1;
}

/* Make sure edit pills don't overflow hidden parents */
.svc, .step, .contact-card, .ledger, .about-facts li {
  position: relative;
  overflow: visible;
}
