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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.75rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.1rem;
}
h6 {
  font-size: 1rem;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.65rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

p {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Layout Utilities */
.l-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

@media (max-width: 767px) {
  .l-container {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

.l-section {
  padding: 5rem 0;
  position: relative;
}

@media (max-width: 767px) {
  .l-section {
    padding: 3rem 0;
  }
}

/* 1. l-section-transparent: Transparent with grid pattern */
.l-section-transparent {
  background-color: transparent;
  position: relative;
}

.l-section-transparent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(103, 84, 183, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(103, 84, 183, 0.04) 1px, transparent 1px);
  background-size:
    48px 48px,
    48px 48px;
  pointer-events: none;
  z-index: var(--z-back);
}

/* 2. l-section-accent: Tinted background with decorations */
.l-section-accent {
  background-color: #f6f5f9;
  position: relative;
  overflow: hidden;
}

.l-section-accent::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 40px solid rgba(103, 84, 183, 0.08);
  pointer-events: none;
}

.l-section-accent::after {
  content: "";
  position: absolute;
  bottom: -250px;
  left: -250px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 60px solid rgba(72, 56, 140, 0.06);
  pointer-events: none;
}

/* 3. l-section-img: Parallax dark overlay image background */
.l-section-img {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
}

.l-section-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: var(--z-normal);
}

.l-section-img > * {
  position: relative;
  z-index: 2;
}

@media (max-width: 1024px) {
  .l-section-img {
    background-attachment: scroll;
  }
}

/* Common Section Header Component */
.c-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem auto;
}

.c-section-header__subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.l-section-img .c-section-header__subtitle {
  color: #b8a8e8;
}

.c-section-header__title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.l-section-img .c-section-header__title {
  color: var(--color-white);
}

.c-section-header__desc {
  font-size: 1.05rem;
  color: var(--color-secondary);
}

.l-section-img .c-section-header__desc {
  color: #cbd5e1;
}

/* General Button Styles */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.c-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.c-btn--primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.c-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.c-btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.c-btn--secondary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.c-btn--secondary:hover {
  background-color: var(--color-secondary-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.c-btn--outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

.c-btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.c-btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.c-btn--white:hover {
  background-color: #f8fafc;
  color: var(--color-primary-hover);
  transform: translateY(-2px);
}

.c-btn .c-btn__icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.c-btn:hover .c-btn__icon {
  transform: translateX(4px);
}

.c-btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
}

/* Form Styles */
.c-form-group {
  margin-bottom: 1.25rem;
}

.c-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 0.35rem;
}

.c-form-input,
.c-form-select,
.c-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: 0.95rem;
  color: var(--color-dark);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.c-form-input:focus,
.c-form-select:focus,
.c-form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(103, 84, 183, 0.2);
}

/* Common Inner Page Banner */
.c-inner-banner {
  width: 100vw;
  min-height: 300px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #4b3d82 100%);
  color: var(--color-white);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(3rem + 100px) 0 3rem 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.c-inner-banner__title {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.c-inner-banner__desc {
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 700px;
}

.c-inner-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.c-inner-banner__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.c-inner-banner > .l-container {
  position: relative;
  z-index: 2;
}
