/* 
    INSECO S.A. - Landing Page Design System
    Colors from Logo:
    - Red: #ed3237
    - Cyan: #9fd5d1
    - Light Gray: #9c9d9e
    - Dark Gray: #3f3f3f
*/

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

:root {
    --primary: #ed3237;
    --secondary: #9fd5d1;
    --gray-light: #9c9d9e;
    --gray-dark: #3f3f3f;
    --bg-white: #ffffff;
    --text-main: #2d2d2d;
    --text-muted: #666666;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- REUSABLE COMPONENTS --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #d12a2f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(237, 50, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 60px;
}

/* --- HEADER --- */
header {
    height: 90px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-brand .logo img {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1); /* Optional: make logo white in footer if needed, but let's see if user likes it first. Actually, for now let's just keep it regular */
}

/* Remove or update these if they were specific to placeholder */
.footer-brand .logo {
    margin-bottom: 24px;
}

nav ul {
    display: flex;
    gap: 40px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

nav ul li a:hover {
    color: var(--primary);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    position: relative;
    max-width: 480px;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-dark);
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 460px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 85%;
    background: url('../assets/hero.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 40px 0 0 40px;
    box-shadow: -20px 40px 80px rgba(0,0,0,0.1);
    z-index: 1;
}

/* --- ABOUT --- */
.about {
    padding: var(--section-padding);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.value-item {
    text-align: center;
    padding: 32px;
    background: #fdfdfd;
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.value-item:hover {
    background: var(--bg-white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}

.value-item i, .value-item svg {
    width: 40px;
    height: 40px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.value-item span {
    font-weight: 600;
    color: var(--gray-dark);
}

/* --- SERVICES --- */
.services {
    padding: var(--section-padding);
    background-color: #fcfcfc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-category {
    margin-bottom: 40px;
}

.service-category h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-light);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-category h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* --- CONTACT --- */
.contact {
    padding: var(--section-padding);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

.contact-form {
    background: #f8f9fa;
    padding: 60px;
    border-radius: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(237, 50, 55, 0.1);
}

textarea.form-control {
    height: 120px;
    resize: none;
}

/* --- FOOTER --- */
footer {
    padding: 80px 0 40px;
    background: var(--gray-dark);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.6);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-image { display: none; }
    .hero { text-align: center; height: auto; padding: 150px 0 100px; }
    .hero-description { margin: 0 auto 40px; }
    .hero-btns { justify-content: center; }
    .mission-vision { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    nav { display: none; } /* Add burger menu later */
    .contact-form { padding: 30px; }
    .values-grid { grid-template-columns: 1fr; }
}
