/* ============================================================
   Umamicasa | custom.css
   Sits on top of index-lVbExF4A.css (which defines the design
   tokens below via :root). Do not redefine tokens here.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--background) 70%, transparent);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 60%, transparent);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.brand { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a { font-size: 0.9rem; color: var(--muted-foreground); transition: color .15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--foreground); }
.nav-cta {
  padding: .6rem 1.25rem; border-radius: 999px;
  background: var(--primary); color: var(--primary-foreground);
  font-size: .85rem; font-weight: 500;
}
.nav-toggle { display: none; background: none; border: none; color: var(--foreground); font-size: 1.5rem; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  border: 1px solid transparent; transition: opacity .15s, transform .15s;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Sections / Hero ---------- */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.hero { position: relative; overflow: hidden; padding: 7rem 0 5rem; text-align: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in oklch, var(--background) 60%, transparent), color-mix(in oklch, var(--background) 85%, transparent), var(--background)); }
.hero-content { position: relative; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); margin-bottom: .75rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .5rem; }
p { line-height: 1.65; color: var(--muted-foreground); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; max-width: 42rem; margin: 0 auto; }
.center { text-align: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color .15s, transform .15s;
}
.card:hover { border-color: color-mix(in oklch, var(--primary) 40%, var(--border)); }
.card-link { display: block; }
.card img { border-radius: calc(var(--radius) - .25rem); margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: .5rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; text-align: left; }
.field label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .9rem; border-radius: .6rem;
  border: 1px solid var(--border); background: var(--input, var(--card));
  color: var(--foreground); font-family: inherit; font-size: .9rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field textarea { min-height: 6rem; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted-foreground); margin-top: .5rem; }
.form-success { padding: 1rem 1.25rem; border-radius: var(--radius); border: 1px solid color-mix(in oklch, var(--primary) 40%, var(--border)); background: color-mix(in oklch, var(--primary) 10%, transparent); font-size: .9rem; }

/* ---------- Pricing / badges ---------- */
.price-badge { display: inline-flex; align-items: baseline; gap: .35rem; font-size: 2rem; font-weight: 700; }
.price-badge span { font-size: .9rem; font-weight: 400; color: var(--muted-foreground); }
.stat { text-align: center; }
.stat .num { font-size: 2.25rem; font-weight: 700; color: var(--primary); }
.stat .label { font-size: .8rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Testimonials ---------- */
.testimonial { display: flex; gap: 1rem; align-items: flex-start; }
.avatar {
  width: 3rem; height: 3rem; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--secondary); color: var(--foreground); font-weight: 600; font-size: 1rem;
}
.testimonial .quote { font-size: .95rem; margin-bottom: .5rem; }
.testimonial .who { font-size: .8rem; color: var(--muted-foreground); }

/* ---------- Video placeholder (Momysa) ---------- */
.video-block {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 9/16; background: linear-gradient(160deg, var(--card), var(--secondary));
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.video-block .play-badge {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; background: color-mix(in oklch, var(--background) 60%, transparent);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.video-block .caption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; font-size: .8rem; color: var(--muted-foreground); }

/* ---------- Chat / voice demo (NirvanaAI) ---------- */
.chat-shell { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.chat-log { height: 22rem; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.msg { max-width: 80%; padding: .65rem .9rem; border-radius: .9rem; font-size: .9rem; line-height: 1.45; }
.msg.agent { background: var(--secondary); align-self: flex-start; border-bottom-left-radius: .2rem; }
.msg.user { background: var(--primary); color: var(--primary-foreground); align-self: flex-end; border-bottom-right-radius: .2rem; }
.chat-input-row { display: flex; gap: .5rem; padding: .9rem; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; }
.mic-btn { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--secondary); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.mic-btn.live { background: var(--destructive); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.6;} }
.chip { display: inline-block; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border); font-size: .8rem; margin: .25rem .35rem .25rem 0; background: var(--secondary); }

/* ---------- Frenzee ---------- */
.frenzee-hero { background: radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--primary) 18%, transparent), transparent 60%); }
.pill-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 5rem; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin-bottom: .9rem; }
.footer-grid a { display: block; font-size: .9rem; color: var(--muted-foreground); margin-bottom: .6rem; }
.footer-grid a:hover { color: var(--foreground); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--muted-foreground); border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2.5rem; }

/* ---------- Tabs (Case studies / Blog) ---------- */
.tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 2.5rem; }
.tab-btn { padding: .55rem 1.25rem; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted-foreground); font-size: .85rem; }
.tab-btn.active { background: var(--primary); color: var(--primary-foreground); border-color: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Utility ---------- */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.muted{color:var(--muted-foreground)}
.small{font-size:.85rem}
.badge-live { display:inline-flex; align-items:center; gap:.4rem; font-size:.75rem; color: var(--primary); }
.badge-live .dot { width:.5rem; height:.5rem; border-radius:999px; background: var(--primary); animation: pulse 1.4s infinite; }

/* ---------- Products dropdown (matches original site's hover mega-menu) ---------- */
.nav-products-dd { position: relative; }
.nav-products-trigger {
  display: flex; align-items: center; gap: .3rem;
  background: none; border: none; font: inherit; cursor: pointer;
  color: var(--muted-foreground); font-size: .9rem; padding: 0;
}
.nav-products-trigger:hover { color: var(--foreground); }
.nav-products-panel {
  display: none; position: absolute; right: 0; top: 100%; padding-top: .75rem; width: 20rem;
}
.nav-products-panel-inner {
  border-radius: .75rem; border: 1px solid var(--border); background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.5); padding: .5rem;
}
.nav-products-item { display: block; padding: .65rem .75rem; border-radius: .5rem; transition: background .15s; }
.nav-products-item:hover { background: color-mix(in oklch, var(--foreground) 8%, transparent); }
.nav-products-item .name { font-weight: 500; color: var(--foreground); }
.nav-products-item .tagline { font-size: .75rem; color: var(--muted-foreground); }
.nav-products-viewall { display: block; padding: .65rem .75rem; font-size: .9rem; color: var(--primary); border-radius: .5rem; }
.nav-products-viewall:hover { background: color-mix(in oklch, var(--foreground) 8%, transparent); }
@media (max-width: 768px) { .nav-products-dd { display: none; } }

/* ---------- Suyogya page enhancements ---------- */
.suyogya-hero {
  background:
    radial-gradient(circle at 15% 20%, color-mix(in oklch, var(--primary) 22%, transparent), transparent 55%),
    radial-gradient(circle at 85% 0%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 50%),
    var(--background);
}
.course-num {
  display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  color: var(--primary); margin-bottom: .5rem;
}

/* ---------- Careers: inline apply-per-job ---------- */
.apply-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- Blog articles ---------- */
.blog-hero-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/8; object-fit: cover; margin-bottom: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: .75rem; font-size: .8rem; color: var(--muted-foreground); margin-bottom: .75rem; }
.blog-article p { margin-bottom: 1.25rem; line-height: 1.75; color: var(--foreground); }
.blog-article h2 { margin: 2rem 0 1rem; font-size: 1.4rem; font-weight: 600; }
.blog-article .content-img { width: 100%; border-radius: var(--radius); margin: 1.75rem 0; aspect-ratio: 16/9; object-fit: cover; }
blockquote {
  border-left: 3px solid var(--primary); margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem;
  font-size: 1.05rem; font-style: italic; color: var(--foreground);
}
