/* 
  CarroHyr24 - Official Design System & Core Styles
  Based on CarroHyr24 Workspace Rules (carrohyr24-rule-1.md)
*/

:root {
    /* Brand Colors */
    --primary-blue: #2D3092;
    --accent-orange: #F7941D;
    --light-bg: #F5F5FF;
    --white: #FFFFFF;
    --body-text: #1A1A2E;
    --muted-text: #6B7280;

    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 40px;
    --card-radius: 12px;
    --btn-radius: 8px;
    --shadow: 0 4px 20px rgba(45, 48, 146, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body-text);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 60px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; }

@media (max-width: 767px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: var(--section-padding) 0;
}

@media (max-width: 767px) {
    section { padding: var(--section-padding-mobile) 0; }
}

section:nth-of-type(even) {
    background-color: var(--light-bg);
}

.dark-section {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.03em;
    border-radius: var(--btn-radius);
    cursor: pointer;
    text-align: center;
    border: none;
    transition: 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #e08316; /* darken 10% */
}

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

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-ghost {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-ghost:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Cards */
.card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--card-radius);
    border: 1px solid #E8E8F0;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-orange);
    box-shadow: 0 8px 30px rgba(45, 48, 146, 0.12);
}

/* Utils */
.text-center { text-align: center; }
.text-muted { color: var(--muted-text); }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Sticky Header Customization */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
