:root {
    /* Colors */
    --color-text-main: #1E2124;
    --color-bg-main: #FFFFFF;
    --color-bg-dark: #1E2124;
    --color-text-inverse: #FFFFFF;
    --color-border: #E5E5E5;
    --color-border-dark: #333333;
    --color-brand: rgb(255, 103, 31);

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --spacing-section: 100px;
    --spacing-container: 40px;
    --max-width: 1440px;
}

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

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    position: relative;
    display: table;
}

h1 {
    font-size: clamp(48px, 5vw, 80px);
    letter-spacing: -2px;
    display: table;
    border-top: 3px solid var(--color-brand);
    padding-top: 2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 900px;
}

h2::before,
h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--color-brand);
    width: 0;
    transition: width 1.2s ease-in-out;
}

.is-visible::before {
    width: 100%;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
    padding-top: 2rem;
    margin-top: 4rem;
}

h3 {
    font-size: 30px;
    line-height: 1.3;
    padding-top: 1.5rem;
}

/* Specific spacing for h3 lines to match original design */
h3::before {
    top: 0;
}

p {
    font-size: 18px;
    margin-bottom: 24px;
    max-width: 65ch;
}

strong {
    font-weight: 600;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    border: none;
    margin: 0;
}

/* Header */
header {
    padding: 0;
    border-bottom: 1px solid var(--color-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 200px;
    width: auto;
}

.nav-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: var(--color-brand);
    width: 0;
    transition: width 0.4s ease-in-out;
}

.nav-link:hover {
    color: var(--color-text-main);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: url('/.netlify/images?url=/assets/images/JB-01424.jpg&w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px;
    max-width: 800px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--color-border);
    border-top: none !important;
}

.hero-title {
    font-size: clamp(45px, 6vw, 90px);
    line-height: 1;
    letter-spacing: -2px;
    /* Adjusted spacing for smaller text */
    margin-bottom: 32px;
}

/* Icons */
.icon-box {
    margin-bottom: 24px;
    color: var(--color-brand);
}

.icon-svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.divider-strong {
    height: 3px;
    background-color: var(--color-brand);
    width: 60px;
    border: none;
    margin: 0 0 24px 0;
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Components */
.btn {
    display: inline-block;
    border-radius: 0;
    padding: 16px 32px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--color-brand);
    cursor: pointer;
    background: transparent;
    color: var(--color-text-main);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text-main);
}

.btn-outline {
    border-color: var(--color-brand);
    color: var(--color-text-main);
}

.btn-outline:hover {
    background-color: var(--color-brand);
    color: var(--color-text-main);
}

.card {
    padding: 40px;
    border: 1px solid var(--color-border);
    height: 100%;
}

/* Specific Sections */
.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

.bg-dark h2::before,
.bg-dark h3::before {
    background-color: var(--color-text-inverse);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark p {
    color: var(--color-text-inverse);
}

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

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

.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.cta-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    margin-bottom: 24px;
}

.grid-3 h3,
.grid-3 p {
    padding-right: 24px;
}

.card-transparent {
    border: none;
    padding: 0;
    background: transparent !important;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    header {
        padding: 20px 0;
    }
}