/* Yushan Media Pvt. Ltd — Stylesheet */

/* Design Tokens */
:root {
  --primary: oklch(0.45 0.2 262);
  --primary-rgb: 0, 86, 204;
  --primary-hover: oklch(0.4 0.22 262);
  --primary-foreground: oklch(0.99 0 0);
  --foreground: oklch(0.22 0.01 260);
  --background: #ffffff;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --ink: oklch(0.16 0 0);
  --ink-soft: oklch(0.3 0 0);
  --ink-foreground: oklch(0.97 0 0);

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Fallback for browsers not supporting OKLCH */
@supports not (color: oklch(0.45 0.2 262)) {
  :root {
    --primary: #0056cc;
    --primary-hover: #0046a8;
    --primary-foreground: #ffffff;
    --foreground: #1e2532;
    --ink: #141414;
    --ink-soft: #262626;
    --ink-foreground: #f5f5f5;
  }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: inherit;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container Utility */
.container {
  max-width: 72rem; /* 1152px / max-w-6xl */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Focus Ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 1. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.05);
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.wordmark-primary {
  color: var(--primary);
}

.wordmark-media {
  color: var(--foreground);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--foreground);
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn:hover {
  color: var(--primary);
}

.mobile-menu-btn .icon-close {
  display: none;
}

.mobile-menu-btn.active .icon-menu {
  display: none;
}

.mobile-menu-btn.active .icon-close {
  display: block;
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 4rem;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: slideDown 0.25s ease-out forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 7rem 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: heroFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-nepali-line {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-nepali-line {
    font-size: 1.05rem;
  }
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 2rem;
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title .highlight {
  color: var(--primary);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}

.btn-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 86, 204, 0.25);
}

.btn-cta svg {
  transition: transform 0.25s ease;
}

.btn-cta:hover svg {
  transform: translateX(4px);
}

.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-large {
  width: 16rem;
  height: auto;
  object-fit: contain;
  user-select: none;
}

@media (min-width: 768px) {
  .hero-logo-large {
    width: 24rem;
  }
}

/* 3. About Section */
.about-section {
  position: relative;
  background-color: var(--ink);
  color: var(--ink-foreground);
  padding: 6rem 0;
  overflow: hidden;
  scroll-margin-top: 4rem;
}

@media (min-width: 768px) {
  .about-section {
    padding: 8rem 0;
  }
}

.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.about-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgba(20, 20, 20, 0.92) 50%, rgba(20, 20, 20, 0.75) 100%);
}

.about-content {
  position: relative;
  z-index: 10;
  max-width: 36rem;
}

.about-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-foreground);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2.5rem;
  }
}

.about-lead {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-foreground);
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .about-lead {
    font-size: 1.25rem;
  }
}

.about-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .about-body {
    font-size: 1.05rem;
  }
}

/* 4. Companies Section */
.companies-section {
  position: relative;
  background-color: var(--ink-soft);
  color: var(--ink-foreground);
  padding: 6rem 0;
  overflow: hidden;
  scroll-margin-top: 4rem;
}

.companies-decorative-panel {
  display: none;
  position: absolute;
  right: -8rem;
  top: 0;
  height: 100%;
  width: 50%;
  transform: skewX(-12deg);
  background-color: var(--primary);
  pointer-events: none;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .companies-decorative-panel {
    display: block;
  }
}

.companies-inner {
  position: relative;
  z-index: 10;
}

.companies-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-foreground);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .companies-title {
    font-size: 2.5rem;
  }
}

.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .companies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.company-card {
  background-color: var(--ink);
  padding: 2.25rem;
  min-height: 16rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-year {
  font-size: 0.75rem;
  opacity: 0.6;
  font-family: monospace;
  margin-bottom: 0.5rem;
}

.card-rule {
  height: 1px;
  width: 2.5rem;
  background-color: var(--primary);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.company-card:hover .card-link-text {
  color: var(--primary);
}

.card-link-text svg {
  transition: transform 0.3s ease;
}

.company-card:hover .card-link-text svg {
  transform: translateX(6px);
}

/* 5. Chairman Section */
.chairman-section {
  padding: 6rem 0;
  background-color: var(--background);
  color: var(--foreground);
  scroll-margin-top: 4rem;
}

.chairman-container {
  max-width: 56rem; /* 896px / max-w-4xl */
}

.chairman-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .chairman-title {
    font-size: 2.5rem;
  }
}

.chairman-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .chairman-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

.chairman-avatar {
  width: 9rem;
  height: 9rem;
  min-width: 9rem;
  min-height: 9rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  box-shadow: 0 10px 25px rgba(0, 86, 204, 0.2);
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--border);
}

.chairman-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
}

.chairman-content {
  flex: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .chairman-content {
    text-align: left;
  }
}

.chairman-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(34, 38, 48, 0.85);
  font-style: italic;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .chairman-quote {
    font-size: 1.05rem;
  }
}

.chairman-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
}

.chairman-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* 6. Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--muted);
  color: var(--foreground);
  padding: 4rem 0 2rem;
  scroll-margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
    gap: 2rem;
  }
}

.footer-brand .brand-logo {
  height: 1.75rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-list li,
.footer-list a {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--primary);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.contact-row svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom a {
  color: var(--primary);
  font-weight: 500;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

