/* 
  Modern CSS Boilerplate
  Includes:
  1. Modern CSS Reset (inspired by https://piccalil.li/blog/a-more-modern-css-reset/)
  2. Responsive Typography using clamp()
  3. Utility Classes for layouts and common patterns
  4. CSS Custom Properties for theming
*/

/* ------------------- */
/* Custom properties   */
/* ------------------- */

:root {
  /* Colors - Simplified color system */
  --clr-primary: #b8860b;
  --clr-secondary: #64c2c8;
  --clr-white: #ffffff;
  --clr-black: #090a0b;

  /* Typography */
  --font-body:'Lora', sans-serif;
  --font-body-secondary: 'Lora', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-heading-secondary: 'Playfair Display', serif;

  /* Font sizes - Using a fluid type scale */
  --fs-300: clamp(0.8rem, 0.17vw + 0.76rem, 0.89rem);
  --fs-400: clamp(1.1rem, 1.0571rem + 0.2143vw, 1.25rem);
  --fs-500: clamp(1.25rem, 0.61vw + 1.1rem, 1.58rem);
  --fs-600: clamp(1.5rem, 1.3929rem + 0.5357vw, 1.875rem);
  --fs-700: clamp(1.5rem, 1.2143rem + 1.4286vw, 2.5rem);
  --fs-800: clamp(2rem, 2.38vw + 1.85rem, 3.75rem);
  --fs-900: clamp(3.05rem, 3.54vw + 2.17rem, 5rem);
  /* Font weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Spacing */
  --space-3xs: clamp(0.25rem, 0.25rem + 0vw, 0.25rem);
  --space-2xs: clamp(0.5rem, 0.5rem + 0vw, 0.5rem);
  --space-xs: clamp(0.75rem, 0.75rem + 0vw, 0.75rem);
  --space-sm: clamp(1rem, 1rem + 0vw, 1rem);
  --space-md: clamp(1.5rem, 1.5rem + 0vw, 1.5rem);
  --space-lg: clamp(2rem, 2rem + 0vw, 2rem);
  --space-xl: clamp(3rem, 3rem + 0vw, 3rem);
  --space-2xl: clamp(4rem, 4rem + 0vw, 4rem);
  --space-3xl: clamp(6rem, 6rem + 0vw, 6rem);

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Box shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ------------------- */
/* Modern CSS Reset    */
/* ------------------- */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p,
li {
  margin-bottom: 1em;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  color: var(--clr-black);
  font-size: 1rem;
}

/* Make images, videos, canvases easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

/* Remove default button styles */
button {
  cursor: pointer;
  background-color: transparent;
  color: inherit;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Create a root stacking context */
#root,
#__next {
  isolation: isolate;
}

/* Remove all animations and transitions for people who prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------- */
/* Layout Utilities    */
/* ------------------- */

/* Container */
.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container-narrow {
  max-width: 1018px;
}

#cmplz-document{
	max-width: 1018px;
	width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-sm);
	margin-top: 14rem;
}

.container-wide {
  max-width: calc(100% - 124px);
}

@media (max-width: 1024px) {
  .container-narrow,
  .container-wide {
    max-width: 100% !important;
  }
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-column {
  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-around {
  justify-content: space-around;
}

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

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

.gap-3xs {
  gap: var(--space-3xs);
}
.gap-2xs {
  gap: var(--space-2xs);
}
.gap-xs {
  gap: var(--space-xs);
}
.gap-sm {
  gap: var(--space-sm);
}
.gap-md {
  gap: var(--space-md);
}
.gap-lg {
  gap: var(--space-lg);
}
.gap-xl {
  gap: var(--space-xl);
}
.gap-2xl {
  gap: var(--space-2xl);
}
.gap-3xl {
  gap: var(--space-3xl);
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

/* Auto columns for responsive behavior */
.grid-cols-auto-fill-sm {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.grid-cols-auto-fill-md {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
}
.grid-cols-auto-fill-lg {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 450px), 1fr));
}

/* Responsive grid breakpoints */
@media (min-width: 640px) {
  .sm-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sm-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md-grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lg-grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .lg-grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* ------------------- */
/* Spacing Utilities   */
/* ------------------- */

/* Margin utilities */
.m-auto {
  margin: auto;
}
.mx-auto {
  margin-inline: auto;
}
.my-auto {
  margin-block: auto;
}

.m-3xs {
  margin: var(--space-3xs);
}
.m-2xs {
  margin: var(--space-2xs);
}
.m-xs {
  margin: var(--space-xs);
}
.m-sm {
  margin: var(--space-sm);
}
.m-md {
  margin: var(--space-md);
}
.m-lg {
  margin: var(--space-lg);
}
.m-xl {
  margin: var(--space-xl);
}
.m-2xl {
  margin: var(--space-2xl);
}
.m-3xl {
  margin: var(--space-3xl);
}

.mt-3xs {
  margin-top: var(--space-3xs);
}
.mt-2xs {
  margin-top: var(--space-2xs);
}
.mt-xs {
  margin-top: var(--space-xs);
}
.mt-sm {
  margin-top: var(--space-sm);
}
.mt-md {
  margin-top: var(--space-md);
}
.mt-lg {
  margin-top: var(--space-lg);
}
.mt-xl {
  margin-top: var(--space-xl);
}
.mt-2xl {
  margin-top: var(--space-2xl);
}
.mt-3xl {
  margin-top: var(--space-3xl);
}

.mb-3xs {
  margin-bottom: var(--space-3xs);
}
.mb-2xs {
  margin-bottom: var(--space-2xs);
}
.mb-xs {
  margin-bottom: var(--space-xs);
}
.mb-sm {
  margin-bottom: var(--space-sm);
}
.mb-md {
  margin-bottom: var(--space-md);
}
.mb-lg {
  margin-bottom: var(--space-lg);
}
.mb-xl {
  margin-bottom: var(--space-xl);
}
.mb-2xl {
  margin-bottom: var(--space-2xl);
}
.mb-3xl {
  margin-bottom: var(--space-3xl);
}

/* Padding utilities */
.p-3xs {
  padding: var(--space-3xs);
}
.p-2xs {
  padding: var(--space-2xs);
}
.p-xs {
  padding: var(--space-xs);
}
.p-sm {
  padding: var(--space-sm);
}
.p-md {
  padding: var(--space-md);
}
.p-lg {
  padding: var(--space-lg);
}
.p-xl {
  padding: var(--space-xl);
}
.p-2xl {
  padding: var(--space-2xl);
}
.p-3xl {
  padding: var(--space-3xl);
}

/* Padding inline */
.px-3xs {
  padding-inline: var(--space-3xs);
}
.px-2xs {
  padding-inline: var(--space-2xs);
}
.px-xs {
  padding-inline: var(--space-xs);
}
.px-sm {
  padding-inline: var(--space-sm);
}
.px-md {
  padding-inline: var(--space-md);
}
.px-lg {
  padding-inline: var(--space-lg);
}
.px-xl {
  padding-inline: var(--space-xl);
}
.px-2xl {
  padding-inline: var(--space-2xl);
}
.px-3xl {
  padding-inline: var(--space-3xl);
}

/* Padding block */
.py-3xs {
  padding-block: var(--space-3xs);
}
.py-2xs {
  padding-block: var(--space-2xs);
}
.py-xs {
  padding-block: var(--space-xs);
}
.py-sm {
  padding-block: var(--space-sm);
}
.py-md {
  padding-block: var(--space-md);
}
.py-lg {
  padding-block: var(--space-lg);
}
.py-xl {
  padding-block: var(--space-xl);
}
.py-2xl {
  padding-block: var(--space-2xl);
}
.py-3xl {
  padding-block: var(--space-3xl);
}

/* padding top */
.pt-3xs {
  padding-block-start: var(--space-3xs);
}
.pt-2xs {
  padding-block-start: var(--space-2xs);
}
.pt-xs {
  padding-block-start: var(--space-xs);
}
.pt-sm {
  padding-block-start: var(--space-sm);
}
.pt-md {
  padding-block-start: var(--space-md);
}
.pt-lg {
  padding-block-start: var(--space-lg);
}
.pt-xl {
  padding-block-start: var(--space-xl);
}
.pt-2xl {
  padding-block-start: var(--space-2xl);
}
.pt-3xl {
  padding-block-start: var(--space-3xl);
}

/* Padding bottom */
.pb-3xs {
  padding-block-end: var(--space-3xs);
}
.pb-2xs {
  padding-block-end: var(--space-2xs);
}
.pb-xs {
  padding-block-end: var(--space-xs);
}
.pb-sm {
  padding-block-end: var(--space-sm);
}
.pb-md {
  padding-block-end: var(--space-md);
}
.pb-lg {
  padding-block-end: var(--space-lg);
}
.pb-xl {
  padding-block-end: var(--space-xl);
}
.pb-2xl {
  padding-block-end: var(--space-2xl);
}
.pb-3xl {
  padding-block-end: var(--space-3xl);
}

/* Flow utility - for vertical spacing between children */
.flow > * + * {
  margin-top: var(--flow-space, var(--space-md));
}

.flow-tight {
  --flow-space: var(--space-xs);
}

.flow-loose {
  --flow-space: var(--space-lg);
}

/* ------------------- */
/* Typography Utilities */
/* ------------------- */

.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}

.text-300 {
  font-size: var(--fs-300);
}
.text-400 {
  font-size: var(--fs-400);
}
.text-500 {
  font-size: var(--fs-500);
}
.text-600 {
  font-size: var(--fs-600);
}
.text-700 {
  font-size: var(--fs-700);
}
.text-800 {
  font-size: var(--fs-800);
}
.text-900 {
  font-size: var(--fs-900);
}

.fw-light {
  font-weight: var(--fw-light);
}
.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-medium {
  font-weight: var(--fw-medium);
}
.fw-semibold {
  font-weight: var(--fw-semibold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}

.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}

/* ------------------- */
/* Component Utilities */
/* ------------------- */

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 2.5em;
  /* border-radius: var(--radius-full); */
  font-weight: var(--fw-medium);
  font-size: var(--fs-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  width: fit-content;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Solid button styles */
.btn-solid.btn-primary {
  /* background: var(--clr-primary); */
  color: white;
  border: 2px solid var(--clr-primary);
}
.btn-solid.btn-secondary {
  background: var(--clr-secondary);
  color: white;
  border: 2px solid var(--clr-secondary);
}
.btn-solid.btn-white {
  background: var(--clr-white);
  color: var(--clr-black);
  border: 2px solid var(--clr-white);
}
.btn-solid.btn-black {
  background: var(--clr-black);
  color: white;
  border: 2px solid var(--clr-black);
}

/* Outline button styles */
.btn-outline.btn-primary {
  color: var(--clr-primary);
  border: 1px solid var(--clr-primary);
  background: transparent;
}
.btn-outline.btn-secondary {
  color: var(--clr-secondary);
  border: 2px solid var(--clr-secondary);
  background: transparent;
}
.btn-outline.btn-white {
  color: var(--clr-white);
  border: 2px solid var(--clr-white);
  background: transparent;
}
.btn-outline.btn-black {
  color: var(--clr-black);
  border: 2px solid var(--clr-black);
  background: transparent;
}

/* Card styles */
.card {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--clr-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ------------------- */
/* Utility classes     */
/* ------------------- */

/* Display utilities */
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.hidden {
  display: none;
}

/* Common utility classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Border radius */
.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* Box shadow */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-md {
  box-shadow: var(--shadow-md);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* Position utilities */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}
.right-0 {
  right: 0;
}
.bottom-0 {
  bottom: 0;
}
.left-0 {
  left: 0;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Z-index utilities */
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-auto {
  z-index: auto;
}

/* Width and height utilities */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.w-screen {
  width: 100vw;
}
.min-w-full {
  min-width: 100%;
}
.max-w-full {
  max-width: 100%;
}

.h-full {
  height: 100%;
}
.h-auto {
  height: auto;
}
.h-screen {
  height: 100vh;
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-dvh {
  min-height: 100dvh;
}

/* Overflow utilities */
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-scroll {
  overflow: scroll;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.overflow-y-hidden {
  overflow-y: hidden;
}
