@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --color-primary: #ff830f; /* Orange from QT logo */
    --color-secondary: #004a99; /* Deep blue from banner */
    --color-bg-dark: #23222d; /* Form background blue/black */
    --color-bg-light: #f8f9fa;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-white: #ffffff;
    --color-accent: #6d6e71; /* Gray */
    --color-blue-accent: #29abe2;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 12px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
}

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

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

ul {
    list-style: none;
}

.p {
    font-weight: 500;
}

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

/* Typography Extensions */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-top: 1.5rem;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background-color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
    border: none;
}

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

.btn-primary:hover {
    background-color: #d15115;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

.btn-blue {
    background-color: #70a1ff;
    color: var(--color-white);
}

.btn-blue:hover {
    background-color: #5352ed;
}

.btn-orange {
    background-color: #c24f00;
    color: var(--color-white);
    margin: auto;
}

.btn-orange:hover {
    background-color: #ff830f;
}

/* Placeholder Utility */
.placeholder-img {
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    border: 1px dashed #ccc;
    font-style: italic;
    width: 100%;
    height: 100%;
    min-height: 150px;
}

.placeholder-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

/* Header & Hero */
.hero {
    position: relative;
    color: var(--color-white);
    padding: var(--spacing-md) 0 4rem;
    text-align: center;
    background: url('images/header-backdrop-blue.png'), url('images/fabrica-header.png');
    background-size: cover;
    background-position: top;
}

.hero-logo-top {
    max-width: 200px;
    margin-bottom: 50px;
    filter: brightness(0) invert(1);
    display: block;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-main-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8rem;
    margin-bottom: 2rem;
    padding-right: 4rem;
}

.hero-products {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.hero-product-img {
    max-width: 600px;
    transition: transform var(--transition-speed);
}

.hero-logo-cw-aside {
    max-width: 250px;
}

.cw-logo-header {
    width: 150px;
}

.hero-section-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.orange-dash {
    width: 30px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 0;
}

.hero-section-title h1 {
    font-size: 2.2rem;
    color: var(--color-white);
}

/* Features inside Hero */
.features-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    background: var(--color-white);
    padding: 0 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: var(--border-radius-sm);
    transform: translateY(2rem);
}

.feature-card {
    padding: var(--spacing-sm);
    text-align: left;
}

.feature-card:last-child {
    border-right: none;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: #333;
}

.feature-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Characteristics */
.characteristics {
    padding: 1.5rem;
}

.char-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    font-size: 0.82rem;
}

.char-column h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.char-list {
    margin-bottom: var(--spacing-md);
    line-height: 1;
}

.char-list li {
    margin-bottom: 0.25rem;
}

.char-highlight {
    font-weight: 800;
}

.char-footer-link {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.link-small {
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* Banner Table Section */
.banner-section {
    padding: 0 0 15px;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/images/shed.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.banner-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    align-items: center;
    gap: 0;
}

.banner-person {
    position: relative;
    transform: translateY(-0.9rem) translateX(8rem) scale(1.13);
}

.banner-table-container {
    overflow: hidden;
    transform: scale(0.9);
}

table.spec-table {
    width: 100%;
    border-collapse: collapse;
    border: 10px solid #7495ed;
}

.spec-table td {
    padding: 0.2rem 1rem;
    border: 0;
    font-size: 1rem;
}

.spec-table .cat-cell {
    width: 180px;
    color: #000;
    font-weight: 400;
    text-align: center;
    font-style: italic;
}

.spec-table .subcat-cell {
    width: 120px;
    color: #333;
    font-weight: 400;
    text-align: center;
    font-style: italic;
}

.spec-table .content-cell {
    background-color: rgba(255,255,255,0.9);
    color: #333;
    font-weight: 500;
}

/* CTA & Form */
.cta-form-section {
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.cta-header h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.form-wrapper {
    width: 100%;
    max-width: 900px;
    background-color: #383a45;
    padding: 2rem 5rem 0.5rem 5rem;
    border-radius: 15px;
    margin: 3rem auto 0;
    color: var(--color-white);
    position: relative;
}

.form-wrapper:after {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    content: "";
    position: absolute;
    background: #ff830f;
    right: -25px;
    z-index: -1;
    bottom: -25px;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 30px;
    height: 8px;
    background-color: #fff;
}

.form-wrapper h3 {
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
}

#contact-form {
    max-width: 800px;
    margin: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: .5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    font-weight: 800;
}

.form-group input {
    height: 35px;
    border-radius: 5px;
    padding: .5rem 1rem;
}

.form-footer a.btn {
    background-color: #4b00ff;
}

/* Footer */
footer {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-white);
    text-align: center;
    font-size: 0.7rem;
    border-top: 1px solid #eee;
}

.footer-logo {
    max-width: 120px;
    margin-bottom: var(--spacing-md);
}

.footer-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .banner-grid {
        grid-template-columns: 1fr;
    }
    .banner-person {
        display: none;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .banner-section {
        height: 300px;
        align-items: center;
        display: flex;
    }
    .cta-header {
        height: 300px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .cta-header .btn-orange {
        margin-bottom: 5rem;
    }

    .cta-header h2 {
        margin-top: 5rem;
    }
    .cta-form-section {
        padding: 0;
    }
    .form-wrapper::after {
        display: none;
    }
    .form-wrapper::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-main-display {
        flex-direction: column;
        gap: 2rem;
    }
    .char-content {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 2rem;
    }
}
