/* ========================================
   KOLHU WALE — Layout: Header, Footer, Grid
   ======================================== */
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, var(--container-narrow));
}

.section {
  padding-block: var(--space-16);
}

.section--cream {
  background: var(--grad-cream);
}

.section--beige {
  background: var(--color-surface);
}

.section--forest {
  background: var(--grad-forest);
  color: var(--color-text-on-dark);
}

.section--forest h2,
.section--forest h3 {
  color: var(--color-text-on-dark);
}

.section--forest p {
  color: var(--color-text-on-dark-muted);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-base) var(--ease-soft),
    border-color var(--dur-base) var(--ease-soft),
    background var(--dur-base) var(--ease-soft);
}

.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-link img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-forest);
}

.logo-text span {
  font-family: var(--font-urdu-display);
  font-size: var(--fs-sm);
  color: var(--color-forest-soft);
}

@media (min-width: 480px) {
  .logo-text { display: flex; }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-1);
}

.nav-desktop a {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-forest-soft);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--color-forest);
}

.nav-desktop a.is-active::after {
  content: "";
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: 2px;
  height: 2px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

.nav-desktop .nav-ur {
  display: block;
  font-family: var(--font-urdu);
  font-size: 0.7rem;
  color: var(--color-text-light);
  line-height: 1.3;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-actions .btn--sm {
  display: none;
}

@media (min-width: 480px) {
  .header-actions .btn--sm {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-forest);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
    opacity var(--dur-fast);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile,
  .nav-mobile-backdrop { display: none; }
}

/* Mobile drawer */
.nav-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  width: 100%;
  height: 100dvh;
  background: rgba(4, 17, 13, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-soft),
    visibility 0s linear var(--dur-base);
}

.nav-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 390px);
  background: var(--color-off-white);
  padding: var(--space-4) var(--space-6) var(--space-8);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-out),
    visibility 0s linear var(--dur-slow);
  z-index: 1200;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: -20px 0 60px rgba(4, 17, 13, 0.24);
}

.nav-mobile.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.nav-mobile__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-button, var(--font-body));
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-mobile__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-mobile__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-mobile__brand span,
.nav-mobile__brand strong,
.nav-mobile__brand small {
  display: block;
}

.nav-mobile__brand strong {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  letter-spacing: 0.08em;
}

.nav-mobile__brand small {
  margin-top: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  opacity: 0.65;
}

.nav-mobile__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
}

.nav-mobile__links a {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-lg);
  font-family: var(--font-display);
  font-weight: 600;
}

.nav-mobile__links a.is-active {
  color: var(--color-gold);
}

.nav-mobile__footer {
  margin-top: var(--space-8);
}

.nav-mobile__footer .btn {
  width: 100%;
}

.nav-mobile__footer > small {
  display: block;
  margin-top: var(--space-3);
  text-align: center;
  font-size: 0.62rem;
  opacity: 0.58;
}

.nav-mobile__links a .nav-ur {
  font-family: var(--font-urdu);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

body.nav-open {
  overflow: hidden;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--color-forest-deep);
  color: var(--color-text-on-dark);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer-brand img {
  width: 88px;
  height: 88px;
  margin-bottom: var(--space-4);
  background: var(--color-white);
  border-radius: 50%;
  padding: 4px;
}

.footer-brand h3 {
  color: var(--color-text-on-dark);
  font-size: var(--fs-xl);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.footer-brand .urdu {
  color: var(--color-gold-light);
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
  line-height: 2;
}

.footer-brand p {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  max-width: 280px;
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col .heading-ur {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: var(--color-gold-light);
}

.footer-contact li {
  color: var(--color-text-on-dark-muted);
  font-size: var(--fs-sm);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--color-text-on-dark-muted);
}

/* Page shell */
.page-main {
  min-height: 50vh;
}

.page-hero {
  padding: var(--space-16) 0 var(--space-12);
  background: var(--grad-cream);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: var(--space-3);
}

.page-hero .heading-ur {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 2;
  color: var(--color-forest-soft);
  margin-bottom: var(--space-4);
}
