/* ========================================
   MAIN.CSS - Core Styles, Variables, Resets, Typography
   ======================================== */

/* ========================================
   CSS VARIABLES (ROOT)
   ======================================== */
:root {
    /* Colors */
    --primary-teal: rgb(8, 118, 105);
    --dark-teal: rgb(6, 84, 75);
    --light-teal-bg: rgb(230, 241, 240);
    --teal-muted: rgb(178, 213, 209);
    --primary-text: rgb(51, 51, 51);
    --light-gray: rgb(241, 241, 241);
    --white: rgb(255, 255, 255);
    --blue-accent: rgb(30, 135, 240);
    --dark-bg: rgb(17, 17, 17);

    /* Typography */
    --font-body: "Libre Franklin", sans-serif;
    --font-heading: "DM Serif Text", serif;

    /* Font Sizes */
    --font-size-h1: 110px;
    --font-size-h2: 60px;
    --font-size-h3: 30px;
    --font-size-h4: 24px;
    --font-size-h5: 16px;
    --font-size-body: 18px;
    --font-size-small: 14px;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    --line-height-loose: 1.8;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    --spacing-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   CSS RESET
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    color: var(--primary-text);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

/* Remove default button styles */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: all var(--transition-normal);
}

/* Image reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form elements reset */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    color: var(--primary-text);
}

h1 {
    font-size: var(--font-size-h1);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-teal);
}

p {
    margin-bottom: var(--spacing-md);
}

p:last-child {
    margin-bottom: 0;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

.text-primary {
    color: var(--primary-teal);
}

.text-white {
    color: var(--white);
}

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

.bg-primary {
    background-color: var(--primary-teal);
}

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

.bg-dark {
    background-color: var(--dark-bg);
}

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

/* Spacing Utilities */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-2xl { margin-bottom: var(--spacing-2xl); }
.mb-3xl { margin-bottom: var(--spacing-3xl); }

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

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }
.pt-2xl { padding-top: var(--spacing-2xl); }
.pt-3xl { padding-top: var(--spacing-3xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }
.pb-2xl { padding-bottom: var(--spacing-2xl); }
.pb-3xl { padding-bottom: var(--spacing-3xl); }

/* ========================================
   SECTION HEADERS
   ======================================== */
.section__pretitle {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-teal);
}

.section__title {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h2);
    color: var(--primary-text);
}

.section__text {
    font-size: var(--font-size-body);
    line-height: var(--line-height-loose);
    color: var(--primary-text);
    opacity: 0.85;
}

.section__header {
    margin-bottom: var(--spacing-3xl);
}

.section__header--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--spacing-3xl);
}

/* ========================================
   FEATURES LIST
   ======================================== */
.features-list {
    list-style: none;
}

.features-list__item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.features-list__item:last-child {
    margin-bottom: 0;
}

.features-list__item .checkmark {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--primary-teal);
}

.features-list__item span {
    font-size: var(--font-size-body);
    line-height: var(--line-height-relaxed);
    color: var(--primary-text);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.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;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
    background-color: var(--primary-teal);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-teal);
    color: var(--white);
}
