/* ====================================================
   COPIRAL S.L. — Stylesheet
   ==================================================== */

* {
    font-family: 'Open Sans', sans-serif;
    color: #868789;
    font-weight: 300;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

b { font-weight: bold; }

/* ====================================================
   LAYOUT
   ==================================================== */
#web {
    max-width: 1400px;
    margin: 0 auto;
}

/* ====================================================
   HEADER
   ==================================================== */
#web_header {
    max-width: 1700px;
    margin: 0 auto;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    background-color: rgba(255,255,255,1);
    padding: 10px 20px;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

#web_header_logo {
    display: inline-block;
    height: 70px;
    width: 200px;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
}

#web_header_logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #042B78;
    letter-spacing: 1px;
    line-height: 70px;
}

#web_header_logo .logo-text span {
    color: #85a000;
}

#web_header_menu {
    height: 70px;
    display: inline-block;
    float: right;
    line-height: 32px;
    font-size: 0;
}

.menu_horizontal {
    margin-top: 18px;
    display: inline-block;
}

.header_menu {
    display: inline-block;
    line-height: 35px;
    vertical-align: middle;
    margin-left: 20px;
}

.header_menu.first { margin-left: 0; }

.header_menu a {
    font-size: 13px;
    text-decoration: none;
    line-height: 19px;
    padding: 5px 0;
    vertical-align: middle;
    display: inline-block;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 400;
    color: #868789;
}

.header_menu a:hover,
.header_menu a.on {
    color: #042B78;
    border-bottom: 2px solid #85a000;
}

/* Mobile menu button */
.btn_header_menu {
    border-radius: 3px;
    border: 1px solid #85a000;
    padding: 4px 8px;
    height: 36px;
    width: 40px;
    text-align: center;
    margin-left: 10px;
    cursor: pointer;
    transition: 0.2s;
    display: none;
    vertical-align: middle;
    margin-top: 17px;
    float: right;
    font-size: 22px;
    color: #85a000;
    line-height: 28px;
}

.btn_header_menu:hover { background-color: rgba(133,160,0,0.1); }

.web_header_submenu {
    position: fixed;
    left: 0;
    right: 0;
    top: 90px;
    display: none;
    z-index: 99;
}

.web_header_submenu.on { display: block; }

.header_submenu { text-align: center; }

.header_submenu a {
    font-size: 17px;
    width: 100%;
    color: rgba(255,255,255,1);
    text-decoration: none;
    padding: 10px 0;
    line-height: 37px;
    display: inline-block;
    background-color: rgba(133,160,0,0.97);
    transition: 0.2s;
}

.header_submenu a:hover { background-color: #617209; }

/* Languages */
.languages {
    position: fixed;
    top: 90px;
    margin: 0 auto;
    left: 0;
    right: 0;
    max-width: 300px;
    background-color: rgba(133,160,0,0.9);
    text-align: center;
    padding: 4px;
    z-index: 98;
}

.lang {
    display: inline-block;
    color: rgba(255,255,255,0.6);
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
}

.lang.on, .lang:hover { color: rgba(255,255,255,1); }

/* ====================================================
   HERO / SLIDE
   ==================================================== */
#web_slide {
    padding-top: 90px;
    background-color: #e5e5e5;
    position: relative;
    overflow: hidden;
}

.hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 60px;
    position: relative;
}

.hero-home { background-image: url("/img/hero.png"); }
.hero-about { background: linear-gradient(135deg, #042B78 0%, #4a5c1a 100%); }
.hero-qualitat { background: linear-gradient(135deg, #0a3a0a 0%, #85a000 100%); }
.hero-medi { background: linear-gradient(135deg, #1a4a1a 0%, #2d6e2d 100%); }
.hero-sostenibilitat { background: linear-gradient(135deg, #042B78 0%, #85a000 100%); }
.hero-rdi { background: linear-gradient(135deg, #1a1a4a 0%, #042B78 50%, #85a000 100%); }
.hero-contact { background: linear-gradient(135deg, #2a2a2a 0%, #55621A 100%); }

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.hero-text {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* Language bar below hero */
.lang-bar {
    background-color: rgba(133,160,0,0.92);
    text-align: center;
    padding: 6px;
}

/* ====================================================
   CONTENT SECTIONS
   ==================================================== */
.section {
    padding: 60px 50px;
}

.section.grey { background-color: #f7f7f7; }

.section-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.section-inner.reverse { flex-direction: row-reverse; }

.section-text { flex: 1; }
.section-img { flex: 0 0 38%; }

.section-img img {
    width: 100%;
    border-radius: 4px;
    display: block;
}

.img-placeholder {
    width: 100%;
    min-height: 320px;
    border-radius: 4px;
    /*background: linear-gradient(135deg, #d4e04a 0%, #85a000 50%, #55621A 100%);*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-style: italic;
}

h1.title {
    font-size: 28px;
    font-weight: 700;
    color: #042B78;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #85a000;
    display: inline-block;
}

.section-text p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    color: #666;
}

.section-text ul {
    margin: 10px 0 16px 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.section-text li { margin-bottom: 6px; }

.subtitle {
    font-weight: 700;
    color: #042B78;
    font-size: 15px;
    margin: 16px 0 8px;
}

/* ====================================================
   HORIZONTAL DIVIDER IMAGE STRIPS
   ==================================================== */
.hstrip {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hstrip-1 { background: linear-gradient(to right, #042B78, #85a000); opacity: 0.85; }
.hstrip-2 { background: linear-gradient(to right, #55621A, #042B78); opacity: 0.85; }

/* ====================================================
   BUTTONS
   ==================================================== */
.btn {
    display: inline-block;
    padding: 13px 25px;
    background-color: rgba(133,160,0,1);
    border: 0;
    border-radius: 3px;
    color: #fff !important;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 400;
}

.btn:hover { background-color: rgba(133,160,0,0.8); }
.btn.full { width: 100%; text-align: center; }

.btn-flat {
    display: inline-block;
    padding: 8px 25px;
    background-color: transparent;
    border: 2px solid #85a000;
    border-radius: 3px;
    color: #85a000 !important;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 400;
    margin-top: 16px;
}

.btn-flat:hover { opacity: 0.8; }

/* ====================================================
   CONTACT FORM
   ==================================================== */
.contact-wrap {
    padding: 50px;
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-col { flex: 1; }
.contact-map-col { flex: 1; }

.inputContact {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
    background: #fafafa;
    display: block;
    font-family: 'Open Sans', sans-serif;
    resize: vertical;
}

.inputContact:focus { outline: none; border-color: #85a000; }

textarea.inputContact { min-height: 120px; }

.contact-info div { margin-bottom: 14px; font-size: 14px; }
.contact-info strong { color: #042B78; font-weight: 700; display: block; margin-bottom: 2px; }

.map-box {
    height: 280px;
    background: linear-gradient(135deg, #c8d96e, #55621A);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.map-box::after {
    content: '📍 Agramunt, Lleida';
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

/* ====================================================
   FOOTER
   ==================================================== */
#web_footer { margin-top: 0; }

.footer-header {
    background-color: #f1feee;
    padding: 20px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo-text {
    font-size: 30px;
    font-weight: 800;
    color: #042B78;
    letter-spacing: 1px;
}

.footer-logo-text span { color: #85a000; }

.back-top {
    color: #104080;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}

.back-top:hover { opacity: 0.7; }

.footer-cont {
    background-color: #55621A;
    padding: 40px 50px;
    display: flex;
    gap: 30px;
}

.footer-desc {
    flex: 1;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    border-right: 1px solid rgba(255,255,255,0.3);
    padding-right: 30px;
}

.footer-menu {
    flex: 1;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.3);
    display: flex;
    gap: 20px;
}

.footer-menu a {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    line-height: 2;
    transition: 0.2s;
}

.footer-menu a:hover { color: #fff; }

.footer-legal {
    flex: 0 0 200px;
    padding-left: 20px;
}

.footer-legal a {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    line-height: 2;
    transition: 0.2s;
}

.footer-legal a:hover { color: #fff; }

.footer-copy {
    background-color: #3d470f;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ====================================================
   CERT BADGES / TAGS
   ==================================================== */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.cert-badge {
    padding: 6px 16px;
    border: 2px solid #85a000;
    border-radius: 20px;
    font-size: 13px;
    color: #85a000;
    font-weight: 600;
}

/* ====================================================
   STATS ROW
   ==================================================== */
.stats-row {
    display: flex;
    background: #042B78;
    padding: 40px 50px;
    gap: 0;
}

.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding: 0 20px;
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: #85a000;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
    display: block;
    font-weight: 300;
}

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
    #web_header_menu { display: none; }
    .btn_header_menu { display: inline-block; }
    .languages { top: 90px; }

    .section-inner, .section-inner.reverse { flex-direction: column; }
    .section-img { flex: none; width: 100%; }
    .hero-text h1 { font-size: 26px; }
    .hero { height: 320px; padding: 0 30px; }
    .section { padding: 40px 24px; }
    .contact-wrap { flex-direction: column; padding: 30px 24px; }
    .footer-cont { flex-direction: column; }
    .footer-desc, .footer-menu { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 20px; margin-bottom: 10px; }
    .stats-row { flex-wrap: wrap; }
    .stat-item { flex: 0 0 50%; border: none; padding: 16px; }
    .footer-header { padding: 20px 24px; }
}
