/* ==========================================================================
   LYCUS PHARMA PVT. LTD. — Design System
   layout.css · Grid, Spacing, Container
   ========================================================================== */



/* --- Section Wrapper ----------------------------------------------------- */
section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}



/* --- Section Modifiers --------------------------------------------------- */
.section-light {
  background-color: var(--color-bg-white);
}

.section-alt {
  background-color: var(--color-bg-light);
}

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-text-on-dark);
}

.section-border-top {
  border-top: 1px solid var(--color-border);
}

.section-border-bottom {
  border-bottom: 1px solid var(--color-border);
}

.section-no-pad-top {
  padding-top: 0;
}

.section-no-pad-bottom {
  padding-bottom: 0;
}

.section-no-pad {
  padding: 0;
}

/* --- Section Header ----------------------------------------------------- */
.section-header {
  margin-bottom: var(--space-6);
}

.section-header--no-mb {
  margin-bottom: 0;
}

.section-header--centered {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

.section-header__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-1);
  display: block;
}

.section-header__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
  line-height: var(--lh-heading);
}

.section-header__subtitle {
  font-size: var(--text-body);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.section-header--centered .section-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Grid System --------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fill-280 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Gap modifiers */
.grid--gap-xs {
  gap: var(--space-1);
}

.grid--gap-sm {
  gap: var(--space-2);
}

.grid--gap-lg {
  gap: var(--space-4);
}

/* --- Flex Utilities ------------------------------------------------------ */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: var(--space-1);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.gap-5 {
  gap: var(--space-5);
}

.gap-6 {
  gap: var(--space-6);
}

/* --- Spacing Utilities --------------------------------------------------- */
.mt-1 {
  margin-top: var(--space-1);
}

.mt-2 {
  margin-top: var(--space-2);
}

.mt-3 {
  margin-top: var(--space-3);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: var(--space-8);
}

.mb-1 {
  margin-bottom: var(--space-1);
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-5 {
  margin-bottom: var(--space-5);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

/* --- Hero Slider Layout ------------------------------------------------- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 88vh;
  overflow: hidden;
  background-color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

/* --- Split Layout ------------------------------------------------------- */
.split-layout {
  display: flex;
  min-height: 580px;
}

.split-layout__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-bg-white);
}

.split-layout__content--alt {
  background-color: var(--color-bg-light);
}

.split-layout__media {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-surface);
  min-height: 400px;
}

.split-layout__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Sidebar Layout ----------------------------------------------------- */
.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-4);
  align-items: start;
}

/* --- Masonry / Asymmetric Grid ------------------------------------------ */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: var(--space-3);
}

.masonry-grid__item--wide {
  grid-column: span 2;
}

.masonry-grid__item--tall {
  grid-row: span 2;
}

/* --- Max Width Helpers -------------------------------------------------- */
.max-w-sm {
  max-width: 480px;
}

.max-w-md {
  max-width: 640px;
}

.max-w-lg {
  max-width: 860px;
}

.max-w-xl {
  max-width: 1000px;
}

/* --- Section Flex Header (title + action inline) ----------------------- */
.section-flex-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}