:root {
    --color-red: #C81D11;
    --color-yellow: #F7C548;
    --color-gold: #C9971C;
    --color-black: #100C0A;
    --color-white: #FFFFFF;
    --color-bg-soft: #FFF8EC;
    --color-border: #EEDFC2;
    --gradient-brand: linear-gradient(120deg, var(--color-red), var(--color-gold) 55%, var(--color-yellow));
    --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background: var(--color-white);
    line-height: 1.6;
}

a {
    color: var(--color-red);
    text-decoration: none;
}

a:hover {
    color: var(--color-gold);
}

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

img {
    max-width: 100%;
}

/* Header */

.site-header {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-white);
    z-index: 100;
}

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

.wordmark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wordmark-iteiga {
    color: var(--color-black);
}

.wordmark-tech {
    color: var(--color-red);
}

.site-nav {
    display: flex;
    gap: 32px;
}

.site-nav a {
    color: var(--color-black);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-red);
    border-bottom-color: var(--color-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-black);
}

/* Hero */

.hero {
    background: var(--gradient-brand);
    color: var(--color-white);
    padding: 96px 0 88px;
}

.hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin: 0 0 16px;
    max-width: 720px;
}

.hero .tagline {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0 0 28px;
}

.hero .cvp-statement {
    max-width: 720px;
    font-size: 1.05rem;
    opacity: 0.92;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Homepage hero with the animated flame canvas */

.hero-flames {
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

.flame-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.flame-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-flames .hero-content {
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

/* Sections */

section {
    padding: 72px 0;
}

.section-alt {
    background: var(--color-bg-soft);
}

h2 {
    font-size: 2rem;
    margin: 0 0 12px;
}

.section-lead {
    max-width: 640px;
    color: #52443A;
    margin-bottom: 40px;
}

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

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 28px;
}

.card h3 {
    color: var(--color-gold);
    margin-top: 0;
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gradient-brand);
    margin-bottom: 16px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* Forms */

.form-card {
    max-width: 560px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-black);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(200, 29, 17, 0.15);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.field-error {
    color: #B3261E;
    font-size: 0.875rem;
    margin-top: 6px;
}

.alert {
    padding: 16px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: #E4F5EC;
    color: #145C38;
    border: 1px solid #A9DCC1;
}

.alert-error {
    background: #FBEAEA;
    color: #8A2A24;
    border: 1px solid #F0B8B4;
}

.placeholder-panel {
    text-align: center;
    padding: 64px 24px;
    background: var(--color-bg-soft);
    border: 1px dashed var(--color-border);
    border-radius: 10px;
}

.placeholder-panel h3 {
    color: var(--color-gold);
    margin-top: 0;
}

/* Footer */

.site-footer {
    background: var(--color-black);
    color: #D8CFC7;
    padding: 48px 0 28px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.footer-brand .wordmark-iteiga {
    color: var(--color-white);
}

.footer-brand p {
    color: #B0A296;
    max-width: 280px;
    margin: 8px 0 0;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: #D8CFC7;
}

.footer-nav a:hover {
    color: var(--color-yellow);
}

.footer-copy {
    width: 100%;
    margin: 24px 0 0;
    font-size: 0.85rem;
    color: #8A7C71;
}

@media (max-width: 860px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }
}

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

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}
