/*
 * Global styles for TRASNKIKA landing page
 */

/* CSS reset / base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Root variables for easy theming */
:root {
    --primary-color: #004d99;
    --secondary-color: #f77f00;
    --light-color: #f6f6f6;
    --dark-overlay: rgba(0, 0, 0, 0.45);
    --text-light: #f9f9f9;
}

/* Container utility */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

/* When hovering primary button, slightly darken the background manually */
.btn-primary:hover {
    background-color: #003a78;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    margin-left: 0.5rem;
}

/* Slightly darken secondary button on hover */
.btn-secondary:hover {
    background-color: #db7200;
}

/* Hero section */
.hero {
    position: relative;
    height: 100vh;
    background-image: url('../images/hero_truck.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: var(--text-light);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.hero p {
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    margin: 0.25rem;
}

/* Sobre sección */
.sobre {
    background-color: var(--light-color);
}

.sobre-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.sobre-text {
    flex: 1;
}

.sobre-image {
    flex: 1;
    text-align: right;
}

.sobre-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.sobre h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sobre p + p {
    margin-top: 1rem;
}

/* Servicios */
.services {
    background-color: #fff;
}

.services h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Other services */
.otros-servicios {
    background-color: var(--light-color);
}

.otros-servicios h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.otros-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-top: 1rem;
}

.otros-list li {
    margin-bottom: 0.5rem;
}

/* Diferencial */
.diferencial {
    background-color: #fff;
}

.diferencial-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.diferencial-text {
    flex: 1;
}

.diferencial-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.diferencial-text ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.diferencial-text li {
    margin-bottom: 0.5rem;
}

.diferencial-image {
    flex: 1;
    text-align: right;
}

.diferencial-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Cobertura */
.cobertura {
    background-color: var(--light-color);
}

.cobertura h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.cobertura-list {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.cobertura-list li {
    margin-bottom: 0.5rem;
}

/* Proceso */
.proceso {
    background-color: #fff;
}

.proceso h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.proceso-step {
    padding: 1rem;
    background-color: var(--light-color);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Confianza */
.confianza {
    background-color: var(--light-color);
}

.confianza h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.confianza p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contacto */
.contacto {
    background-color: #fff;
}

.contacto h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contacto-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

.contacto-details {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover for contact form */
.contact-form button:hover {
    background-color: #003a78;
}

/*
 * Override button styling inside the contact form when using generic .btn classes.
 * This ensures that if a button has class="btn btn-primary", it still adopts
 * our colour scheme instead of the browser's default styles.
 */
.contact-form .btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #003a78;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

.footer p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero h2 {
        font-size: 1.25rem;
    }
    .sobre-content,
    .diferencial-content {
        flex-direction: column;
        text-align: center;
    }
    .sobre-image,
    .diferencial-image {
        order: -1;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .proceso-grid {
        grid-template-columns: 1fr;
    }
}
