/* 
   CHESS Consultoría SAS - Core Design System
   Style: Minimalist, Professional, High Impact
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Colors */
    --clr-yellow: #FBBC05;
    --clr-navy: #0F172A;
    --clr-navy-light: #1E293B;
    --clr-white: #F8FAFC;
    --clr-text-main: #1E293B;
    --clr-text-muted: #64748B;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing & Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-white);
    color: var(--clr-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--clr-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--clr-yellow);
    color: var(--clr-navy);
    border: 1px solid var(--clr-yellow);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--clr-yellow);
}

.btn-outline {
    border: 1px solid var(--clr-navy);
    color: var(--clr-navy);
}

.btn-outline:hover {
    background-color: var(--clr-navy);
    color: white;
}

/* Logo Transparency Utility */
.logo img {
    height: 50px;
    mix-blend-mode: multiply;
    /* Removes white background if present */
    filter: contrast(110%);
}

.footer-logo img {
    height: 40px;
    mix-blend-mode: screen;
    /* Mimetizes white on dark background */
}

/* Image Background Utilities */
.img-header {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Navbar Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-left: 60px;
    /* Space after logo */
    margin-right: auto;
    /* Pushes the button to the far right */
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--clr-navy);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* Nav Icons */
.nav-links li:nth-child(1) a::before {
    content: '🏠';
    font-size: 1.1rem;
}

.nav-links li:nth-child(2) a::before {
    content: '👥';
    font-size: 1.1rem;
}

.nav-links li:nth-child(3) a::before {
    content: '💼';
    font-size: 1.1rem;
}

.nav-links li:nth-child(4) a::before {
    content: '✉️';
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--clr-yellow);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 60%, #f1f5f9 100%);
    padding-top: 90px;
}

.hero-content {
    max-width: 700px;
}

.hero-tagline {
    color: var(--clr-yellow);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 40px;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    padding: 0;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card-content {
    padding: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border-color: var(--clr-yellow);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--clr-yellow);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--clr-text-muted);
}

/* Footer */
footer {
    background-color: var(--clr-navy);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--clr-gold);
    padding-left: 5px;
}

/* Hexagon Shape Utility */
.hexagon-card {
    background-color: white;
    padding: 40px 20px;
    width: 280px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    transition: var(--transition-smooth);
    border-bottom: none !important;
    /* Removes the old border style */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hexagon-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    right: 25%;
    height: 4px;
    background: var(--bg-color, var(--clr-yellow));
}

.hexagon-card:hover {
    transform: scale(1.05);
    z-index: 2;
}

.hexagon-card h3 {
    font-size: 3.5rem !important;
    margin-bottom: 5px !important;
}

.hexagon-wrap {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}