:root{
    --color-primary: #000000;
    --color-primary-light: #171D27;
    --color-primary-light-2: #5C616B;
    --color-primary-light-3: #A1A6B0;
    --color-primary-light-4: #e1e9e9;
    --color-secondary: #D10304;
    --color-secondary-light: #c01515;
    --color-secondary-light-1: #820000;
    --color-white: #FFFFFF;

    
    --max-width-top-container: 1600px;
    --max-width-container: 1000px;
}


@font-face {
    font-family: 'Lato';
    src: url('fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
  
@font-face {
font-family: 'Lato';
src: url('fonts/Lato-Bold.ttf') format('truetype');
font-weight: 700;
font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    color: var(--color-primary);
    line-height: 1.6;
}

header {
    background-color: var(--color-primary);
    color: white;
    padding: .75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo{
    display: flex;
}

header .logo img{
    height: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

nav a:hover {
    color: var(--color-secondary);
}

.hero {
    background-color: var(--color-primary-light-4);
    text-align: center;
    max-width: var(--max-width-top-container);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    padding-top:0px;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("./img/background.png");
    background-size: cover;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-primary-light);
}

.hero-content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 2rem;
    max-width: var(--max-width-container);
    margin: auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

section h2{
    color: var(--color-secondary);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.services {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.service {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#contact .contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
.contact-info {
    flex: 1;
    text-align: left;
}

.contact-image img {
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
}

footer {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .services {
        flex-direction: row;
        justify-content: space-between;
    }
    .service {
        flex: 1;
    }
}

@media (min-width: 1320px) {
    .hero {
        min-height: 800px;
    }
}

/* Responsive side-by-side layout on wider screens */
@media (min-width: 768px) {
    #contact .contact-content {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      text-align: left;
    }
  }