/*==================================================
                    RESET
==================================================*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

/*==================================================
                DESIGN TOKENS
==================================================*/

:root {
  /* Colors */

  --clrPrimary: #6d28d9;
  --clrGold: #f4b400;

  --clrHeading: #1e1e2f;
  --clrBody: #4b5563;

  --clrBackground: #f9fafb;
  --clrSurface: #ffffff;

  /* Typography */

  --ffHeading: "Cinzel", serif;
  --ffBody: "Manrope", sans-serif;

  /* Layout */

  --containerWidth: 1200px;

  --headerHeight: 60px;

  --sectionSpace: 120px;

--borderRadiusSm:12px;
--borderRadiusMd:20px;
--borderRadiusLg:28px;

--borderRadiusFull:999px;

  /* Spacing */

  --space4: 4px;
  --space8: 8px;
  --space12: 12px;
  --space16: 16px;
  --space20: 20px;
  --space24: 24px;
  --space32: 32px;
  --space40: 40px;
  --space48: 48px;
  --space64: 64px;
  --space80: 80px;
  --space96: 96px;

  /* Shadows */

  --shadowSm: 0 4px 12px rgba(15, 23, 42, 0.06);

  --shadowMd: 0 12px 30px rgba(15, 23, 42, 0.1);

  --shadowLg: 0 24px 60px rgba(15, 23, 42, 0.16);

  /* Borders */

  --borderColor: rgba(15, 23, 42, 0.08);

  /* Transition */

  --transition: 300ms ease;
}

/*==================================================
                BASE DOCUMENT
==================================================*/

html {
  font-size: 16px;
}

body {
  font-family: var(--ffBody);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;

  color: var(--clrBody);
  background: var(--clrBackground);

  overflow-x: hidden;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*==================================================
                SELECTION
==================================================*/

::selection {
  color: #fff;
  background: var(--clrPrimary);
}

/*==================================================
                HEADINGS
==================================================*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ffHeading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--clrHeading);
}

h1 {
  font-size: clamp(2.75rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

/*==================================================
                TEXT
==================================================*/

p {
  color: var(--clrBody);
  margin-bottom: var(--space24);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

small {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1.5;
}

/*==================================================
                LINKS
==================================================*/

a {
  transition:
    color var(--transition),
    opacity var(--transition);
}

a:hover {
  color: var(--clrPrimary);
}

/*==================================================
                LAYOUT
==================================================*/

section {
  position: relative;
  padding: var(--sectionSpace) 0;
}

.container {
  width: min(calc(100% - 2rem), var(--containerWidth));

  margin-inline: auto;
}

/*==================================================
            RESPONSIVE LAYOUT
==================================================*/

@media (max-width: 991px) {
  :root {
    --sectionSpace: 96px;
  }

  .container {
    width: min(calc(100% - 1.5rem), var(--containerWidth));
  }
}

@media (max-width: 767px) {
  :root {
    --sectionSpace: 80px;
  }

  body {
    line-height: 1.65;
  }

  .container {
    width: min(calc(100% - 1.25rem), var(--containerWidth));
  }
}

@media (max-width: 575px) {
  :root {
    --sectionSpace: 72px;
  }

  .container {
    width: min(calc(100% - 1rem), var(--containerWidth));
  }
}

/*==================================================
                    BUTTONS
==================================================*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space8);

  min-width: 170px;
  height: 48px;

  padding: 0 var(--space24);

  border: 1px solid transparent;
  border-radius: var(--borderRadiusFull);

  font-family: var(--ffBody);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition:
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

/*==================================================
                PRIMARY BUTTON
==================================================*/

.btnPrimary {
  color: #fff;
  background: var(--clrPrimary);

  box-shadow: var(--shadowSm);
}

.btnPrimary:hover {
  transform: translateY(-2px);

  background: #5b21b6;

  box-shadow: var(--shadowMd);
}

.btnPrimary:active {
  transform: translateY(0);
}

/*==================================================
                SECONDARY BUTTON
==================================================*/

.btnSecondary {
  color: var(--clrPrimary);

  background: rgba(255, 255, 255, 0.85);

  border-color: rgba(109, 40, 217, 0.15);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btnSecondary:hover {
  color: #fff;

  background: var(--clrPrimary);

  border-color: var(--clrPrimary);

  transform: translateY(-2px);

  box-shadow: var(--shadowSm);
}

.btnSecondary:active {
  transform: translateY(0);
}

/*==================================================
                FOCUS STATES
==================================================*/

.btn:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.25);
  outline-offset: 3px;
}

/*==================================================
                DISABLED
==================================================*/

.btn:disabled,
.btn.disabled {
  opacity: 0.6;

  cursor: not-allowed;

  pointer-events: none;
}

/*==================================================
            RESPONSIVE BUTTONS
==================================================*/

@media (max-width: 767px) {
  .btn {
    min-width: 160px;

    height: 46px;

    padding: 0 var(--space20);

    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .btn {
    width: 100%;
    min-width: auto;
  }
}

/*==================================================
                    FORMS
==================================================*/

.formGroup {
  display: flex;
  flex-direction: column;
  gap: var(--space8);

  margin-bottom: var(--space24);
}

label {
  font-size: 0.95rem;
  font-weight: 600;

  color: var(--clrHeading);
}

input,
textarea,
select {
  width: 100%;

  padding: 0.9rem 1rem;

  border: 1px solid var(--borderColor);
  border-radius: var(--borderRadiusSm);

  background: var(--clrSurface);

  color: var(--clrHeading);

  font-family: var(--ffBody);
  font-size: 1rem;

  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

input {
  min-height: 48px;
}

textarea {
  min-height: 160px;

  resize: vertical;
}

select {
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(109, 40, 217, 0.25);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;

  border-color: var(--clrPrimary);

  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.12);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/*==================================================
                RESPONSIVE FORMS
==================================================*/

@media (max-width: 767px) {
  input,
  textarea,
  select {
    font-size: 0.95rem;
  }

  textarea {
    min-height: 140px;
  }
}
