/* AVATR.PT - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #666666;
    --color-accent: #f4f4f4;
    --color-border: #e5e5e5;
    --color-black: #000000;
    --color-white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    /* 8px */
    --spacing-sm: 1rem;
    /* 16px */
    --spacing-md: 2rem;
    /* 32px */
    --spacing-lg: 4rem;
    /* 64px */
    --spacing-xl: 8rem;
    /* 128px */

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-heading-sm: 2rem;
    --text-heading-lg: 4rem;

    /* Layout */
    --container-width: 1440px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Support (Implicit architectural feel often encompasses dark variants, 
   but adhering to "Neutral light" as primary based on brief, 
   will add dark sections for contrast) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.flex {
    display: flex;
}

.flex-between {
    justify-content: space-between;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

/* Typography Utilities */
.h1 {
    font-size: var(--text-heading-lg);
    font-weight: 300;
    /* Architectural precise feel */
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.h2 {
    font-size: var(--text-heading-sm);
    font-weight: 400;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.h3 {
    font-size: var(--text-lg);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.text-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.text-lead {
    font-size: var(--text-xl);
    font-weight: 300;
    max-width: 800px;
    color: var(--color-text);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-black);
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    height: 32px;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-light);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-black);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Supporting Statement */
.supporting-statement {
    background-color: var(--color-white);
}

/* Solutions Overview */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px;
    background-color: var(--color-border);
    /* Creates grid lines */
    border: 1px solid var(--color-border);
}

.solution-card {
    background: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: var(--transition-smooth);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card:hover {
    background: var(--color-accent);
}

.solution-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

/* Footer */
footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.footer-col h4 {
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col a {
    color: #888;
}

.footer-col a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --text-heading-lg: 2.5rem;
        --spacing-xl: 4rem;
    }

    .nav-links {
        display: none;
        /* Hide for now, allow JS to toggle */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel Component */
.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    padding: 0 var(--spacing-md);
    /* Side padding for better mobile feel */
}

/* Ensure cards don't shrink */
.carousel-card {
    flex: 0 0 350px;
    height: 450px;
    position: relative;
    overflow: hidden;
    color: white;
    /* Text on image */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
}

.carousel-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition-smooth);
}

/* Gradient overlay to make text readable */
.carousel-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.carousel-content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-md);
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

/* Hover effects */
.carousel-card:hover img {
    transform: scale(1.05);
}

.carousel-card:hover .carousel-content {
    transform: translateY(0);
}

.carousel-card .h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.carousel-card p {
    /* Adding subtitle/desc if needed */
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.carousel-card .text-label {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

/* Button style adaptation for dark background */
.carousel-card .btn-link {
    color: white;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .carousel-card {
        flex: 0 0 85vw;
        /* Almost full width on mobile */
        height: 400px;
        scroll-snap-align: center;
    }

    .carousel-track {
        scroll-snap-type: x mandatory;
    }
}