/* 
   Herald Machine - Brand Styles
   Colors: Red #E30613, Gray #575756 
   Font: 'Outfit', sans-serif (Galano Grotesque alternative)
*/

:root {
    --color-primary: #E30613;
    --color-primary-dark: #b8050f;
    --color-text: #575756;
    --color-text-light: #888;
    --color-dark-bg: #222221;
    --color-gray-bg: #f4f4f4;
    --color-white: #ffffff;

    --font-main: 'Outfit', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    /* Fallback */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-white) !important;
}

.section {
    padding: var(--spacing-xl) 0;
}

.title-bar {
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 1.5rem auto;
}

.title-bar.left-align {
    margin: 1.5rem 0;
}

.title-bar.bar-red {
    background-color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background-color: var(--color-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 80px;
    width: auto;
}

.nav-link {
    color: var(--color-text);
    margin-right: var(--spacing-md);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section / Carousel */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 650px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.75) 0%, rgba(233, 236, 239, 0.7) 100%);
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 8rem 2rem;
}

.hero-tag {
    display: inline-block;
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    pointer-events: all;
    background: rgba(227, 6, 19, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.indicator:hover {
    background: rgba(227, 6, 19, 0.7);
}

/* Sections General */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text);
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    border-left: 3px solid #ddd;
    padding-left: 1rem;
}

/* About Section */
.about-section {
    border-top: 4px solid var(--color-primary);
}


/* Differentiators */
.dark-bg {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}

.dark-bg .section-title {
    color: var(--color-white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    /* very subtle on dark */
    padding: 2.5rem;
    border-left: 3px solid var(--color-primary);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card-title {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.card-text {
    color: #ccc;
    font-size: 0.95rem;
}

/* Solutions */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s;
}

.solution-item:hover {
    border-color: var(--color-primary);
}

.solution-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Credibility */
.gray-bg {
    background-color: var(--color-gray-bg);
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.flex-half {
    flex: 1;
}

.left-align {
    text-align: left;
    margin-left: 0;
}

.check-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: var(--color-dark-bg);
    color: white;
    padding: 6rem 0;
}

.cta-section .section-title {
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* Footer */
.main-footer {
    background: #111;
    color: #fff;
    padding: 4rem 0 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 4rem;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-col p {
    color: #888;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {

    .grid-3,
    .solutions-grid,
    .flex-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .nav-link {
        margin-right: 0;
    }

    .main-footer .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        text-align: center;
        padding-bottom: 2rem;
    }

    .main-footer .footer-col {
        width: 100%;
    }

    .footer-bottom p {
        font-size: 0.7rem;
        padding: 0 1rem;
    }
}