/* ===========================
   Cabinet Grotesk Font Import
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Cabinet+Grotesk:wght@400;500;700;900&display=swap');

/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: orchid;
    --color-accent: salmon;
    --color-text: #1a1a1a;
    --color-bg: #ffffff;
    --color-light: #f8f9fa;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    line-height: 1.7;
    font-size: 18px;
    background-color: var(--color-bg);
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    margin-top: 2rem !important;
}

h1 {
    font-size: 3rem !important;
    color: var(--color-text) !important;
}

h2 {
    font-size: 2.25rem !important;
    color: var(--color-primary) !important;
}

h3 {
    font-size: 1.75rem !important;
    color: var(--color-text) !important;
}

p {
    margin-bottom: 1.25rem;
    font-size: 18px;
    line-height: 1.8;
}

strong {
    font-weight: 700;
    color: var(--color-primary);
}

/* ===========================
   Navigation
   =========================== */
nav {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

nav ul::before,
nav ul::after {
    display: none !important;
}

nav li {
    list-style: none !important;
}

nav li::before,
nav li::after,
nav li::marker {
    display: none !important;
    content: none !important;
}

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-brand svg {
    width: 36px;
    height: 36px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 4rem 2rem !important;
    text-align: center !important;
    margin-bottom: 3rem !important;
}

.hero h1 {
    font-size: 3rem !important;
    font-weight: 900 !important;
    color: var(--color-text) !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.2 !important;
}

.hero p {
    font-size: 1.25rem !important;
    color: var(--color-text) !important;
    max-width: 800px !important;
    margin: 0 auto 2rem !important;
    line-height: 1.8 !important;
}

.hero-cta {
    display: inline-block !important;
    padding: 1rem 2.5rem !important;
    background-color: transparent !important;
    border: 3px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1.125rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

.hero-cta:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 1.125rem !important;
    }
}

/* ===========================
   Table of Contents
   =========================== */
.toc {
    background-color: var(--color-light);
    border-left: 4px solid var(--color-accent);
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 8px;
}

.toc ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.toc li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.toc a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ===========================
   Content Container
   =========================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===========================
   Sections
   =========================== */
section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.content-section {
    background-color: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* ===========================
   Lists
   =========================== */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

ul li, ol li {
    margin-bottom: 0.875rem;
    padding-left: 2rem;
    position: relative;
    font-size: 18px;
    line-height: 1.7;
}

ul li::before {
    content: "" !important;
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

ol {
    counter-reset: list-counter;
}

ol li {
    counter-increment: list-counter;
}

ol li::before {
    content: counter(list-counter) "." !important;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 18px;
}

/* Make sure nav and footer lists don't have markers */
nav ul,
nav ol,
footer ul,
footer ol {
    list-style: none !important;
}

nav li,
footer li {
    padding-left: 0 !important;
}

nav li::before,
nav li::after,
nav li::marker,
footer li::before,
footer li::after,
footer li::marker {
    display: none !important;
    content: none !important;
}

/* ===========================
   Cards
   =========================== */
.card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(218, 112, 214, 0.15);
    border-color: var(--color-primary);
}

.card h3 {
    color: var(--color-primary) !important;
    margin-top: 0 !important;
}

/* ===========================
   Images
   =========================== */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

picture {
    display: block;
    margin: 2rem 0;
}

picture img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Tables
   =========================== */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    min-width: 600px;
}

thead {
    background-color: var(--color-primary);
    color: white;
}

th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 18px;
}

td {
    padding: 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 18px;
}

tbody tr:hover {
    background-color: var(--color-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

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

/* ===========================
   Footer
   =========================== */
footer {
    background-color: var(--color-text);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

footer ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

footer ul::before,
footer ul::after {
    display: none !important;
}

footer li {
    list-style: none !important;
    margin-bottom: 0.75rem;
    padding-left: 0 !important;
}

footer li::before,
footer li::after,
footer li::marker {
    display: none !important;
    content: none !important;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

footer a:hover {
    color: var(--color-accent);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--color-accent) !important;
    margin-top: 0 !important;
    margin-bottom: 1.25rem !important;
    font-size: 1.25rem !important;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .container {
        padding: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    table {
        font-size: 16px;
    }

    th, td {
        padding: 0.875rem;
        font-size: 16px;
    }
}

/* ===========================
   Utility Classes
   =========================== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}
