/*=========================================
        ECOAGROMATIC SAS
        style.css
==========================================*/

/*==========================
VARIABLES
==========================*/

:root{

    --primary:#0B4F8C;
    --secondary:#1E88E5;
    --accent:#5AB44B;
    --yellow:#F4C542;

    --white:#FFFFFF;
    --light:#F7F9FC;
    --gray:#777;
    --dark:#202124;

    --shadow:0 8px 25px rgba(0,0,0,.12);

    --radius:16px;

}

/*==========================
RESET
==========================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;
    background:var(--white);
    color:var(--dark);
    line-height:1.7;

}

img{

    width:100%;
    display:block;

}

a{

    text-decoration:none;

}

ul{

    list-style:none;

}

section{

    padding:90px 0;

}

.container{

    width:90%;
    max-width:1200px;
    margin:auto;

}

/*==========================
HEADER
==========================*/

#header{

    position:fixed;
    width:100%;
    top:0;
    left:0;

    z-index:999;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    box-shadow:0 2px 12px rgba(0,0,0,.08);

}

.nav-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:75px;

}

.logo{

    font-size:1.6rem;

    font-weight:700;

    color:var(--primary);

}

.logo span{

    color:var(--accent);

}

#navbar ul{

    display:flex;

    gap:28px;

}

#navbar a{

    color:var(--dark);

    font-weight:500;

    transition:.3s;

}

#navbar a:hover{

    color:var(--secondary);

}

#menu-btn{

    display:none;

    font-size:2rem;

    cursor:pointer;

}

/*==========================
HERO
==========================*/

#hero{

    position:relative;

    height:100vh;

    overflow:hidden;

}

#hero img{

    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(0.55);

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(7,42,82,.28),
        rgba(7,42,82,.75)
    ),
    radial-gradient(circle at center, rgba(255,255,255,.08), transparent 45%);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

    padding:40px 28px;

    text-shadow:0 16px 30px rgba(0,0,0,.32);

}

.hero-overlay h1{

    font-size:3rem;

    margin-bottom:22px;

    max-width:860px;

    line-height:1.04;

}

.hero-overlay p{

    max-width:680px;

    font-size:1.15rem;

    margin-bottom:35px;

    color:rgba(255,255,255,.94);

}

.btn{

    display:inline-block;

    background:var(--accent);

    color:white;

    padding:15px 35px;

    border-radius:40px;

    font-weight:600;

    transition:.3s;

    box-shadow:var(--shadow);

}

.btn:hover{

    transform:translateY(-4px);

    background:#4AA33E;

}

/*==========================
SERVICIOS
==========================*/

.service{

    background:white;

}

.alternate{

    background:var(--light);

}

.service .container{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}

.service-text h2{

    font-size:2.2rem;

    color:var(--primary);

    margin-bottom:20px;

}

.service-text p{

    color:var(--gray);

    text-align:justify;

}

/*==========================
GALERIA
==========================*/

.gallery{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(190px,1fr));

    gap:18px;

}

.gallery img{

    border-radius:var(--radius);

    height:220px;

    width:100%;

    object-fit:cover;

    object-position:center;

    box-shadow:var(--shadow);

    transition:.4s;

}

.gallery img:hover{

    transform:scale(1.04);

}

/*==========================
CONTACTO
==========================*/

#contacto{

    background:linear-gradient(
        135deg,
        #0B4F8C,
        #1565C0
    );

    color:white;

}

#contacto h2{

    text-align:center;

    margin-bottom:50px;

    font-size:2.3rem;

}

.contact-grid{

    display:grid;

    grid-template-columns:1fr 300px 1fr;

    gap:40px;

    align-items:center;

}

.contact-grid h3{

    margin-bottom:15px;

}

.qr{

    width:250px;

    margin:auto;

    border-radius:20px;

    background:white;

    padding:12px;

}

.socials{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.socials a{

    color:white;

    transition:.3s;

    font-weight:500;

}

.socials a:hover{

    color:var(--yellow);

    padding-left:8px;

}

/*==========================
FOOTER
==========================*/

footer{

    background:#0A3158;

    color:white;

    text-align:center;

    padding:30px;

    font-size:.95rem;

}

/*==========================
WHATSAPP
==========================*/

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    background:#25D366;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-weight:bold;

    box-shadow:0 12px 30px rgba(0,0,0,.25);

    transition:.3s;

    z-index:999;

}

.whatsapp:hover{

    transform:scale(1.1);

}

/*==========================
TITULOS
==========================*/

h1,h2,h3{

    line-height:1.2;

}

/*==========================
SCROLLBAR
==========================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#ECECEC;

}

::-webkit-scrollbar-thumb{

    background:var(--secondary);

    border-radius:20px;

}

/*==========================
SEPARACIÓN
==========================*/

.service:nth-child(even){

    border-top:1px solid #EEE;

}

.service:nth-child(odd){

    border-bottom:1px solid #EEE;

}

/*==========================
TRANSICIONES
==========================*/

button,
a,
img{

    transition:.3s ease;

}

/*==========================
SELECCIÓN
==========================*/

::selection{

    background:var(--secondary);

    color:white;

}