/* =======================
   Synovati Styles: Full CSS
   ======================= */

/* ---- VARIABLES ---- */
:root {
    --primary-blue: #0056FF;
    --dark-blue: #001B4D;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --success-green: #00C896;
    --alert-red: #FF4757;
    --text-gray: #666;
}

/* ---- BASE STYLES ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--white);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
/* ---- UTILITIES ---- */
.page-header-offset {
    padding-top: 80px;
}

.nav { margin-left: auto; }

/* ---- NAVBAR & LOGO ---- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.2s, background 0.2s;
}

.navbar .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 18px 18px 14px 18px;
    min-height: 70px;
    gap: 24px;
}

.logo img {
    width: 240px;
    height: auto;
    display: block;
}
.navbar.shrink .container {
    padding: 0.1rem 10px !important;
}
.navbar.shrink {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar.shrink .logo img {
    max-width: 200px;
}

/* ---- NAVIGATION LINKS ---- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary-blue);
}
.nav-links a.active {
    font-weight: 700;
    color: var(--primary-blue);
}

/* ---- MENU PILLS ---- */
.menu-pills {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}
.menu-pills a {
  display: inline-block;
  padding: 0.4em 1.4em;
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 38px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  text-decoration: none;
  border: none;
}
.menu-pills a.active,
.menu-pills a:hover {
  background: #003bcc;
  color: #fff;
}

/* ---- BUTTONS ---- */
.btn {
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}
.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}
.btn-primary:hover {
    background: #0045CC;
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}
.cta-button {
    background: var(--primary-blue);
    color: var(--white) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
}
.cta-button:hover {
    background: #0045CC;
}

/* ---- BACKGROUND SECTIONS ---- */
.mission,
.services,
.certifications {
    background: var(--white);
}

.key-figures,
.about,
.presence-eu {
    background: var(--light-gray);
}

/* ---- HERO SECTION ---- */
.hero {
    background: url('hero-lab.jpg') center/cover no-repeat;
    padding: 240px 0 80px;
    text-align: center;
    color: white;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ---- GENERIC SECTIONS ---- */
.mission, .key-figures, .expertise, .services, .about, .contact {padding: 80px 0;}

.mission h2, .key-figures h2, .expertise h2, .expertise-diagram h2, .services h2, .about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}
.mission-text, .tech-section p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* ---- SERVICES ---- */
.services-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.service-box {
    flex: 1 1 350px;
    min-width: 320px;
    max-width: 500px;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.service-item h4 {
    color: var(--primary-blue);
}

/* ---- ABOUT ---- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.about-history img {
    max-width: 350px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ---- FIGURES ---- */
.figures-grid, .expertise-grid, .service-grid, .cert-grid {
    display: grid;
    gap: 2rem;
}
.figures-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.figure-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.figure-label {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* ---- ABOUT FLEX ---- */
.about-flex {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}
.about-img {
    max-width: 350px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
    margin-top: 2.2rem;
}
.about-text h3 {
    margin-top: 0;
}
.about-text p {
    margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
    .about-flex {
        flex-direction: column;
        align-items: stretch;
    }
    .about-img {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
}

/* ---- CERTIFICATION ---- */
.certifications {
    padding: 80px 0;
}
.certifications h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}
.cert-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cert-item, .figure-card {
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.cert-item:hover, .figure-card:hover {
    transform: translateY(-5px);
}
.cert-item {
    color: var(--primary-blue);
    font-weight: 700;
}
.cert-desc {
    max-width: 700px;
    margin: 2rem auto 0 auto;
    text-align: center;
}

/* ---- PRESENCE EU ---- */
.presence-eu {
    margin-top: 56px;
    padding-top: 36px;
    padding-bottom: 60px;
}
.presence-eu h2 {
    color: var(--dark-blue);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-family: inherit;
    font-weight: 700;
}
.eu-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.eu-country {
    border: 1.5px solid var(--primary-blue);
    border-radius: 12px;
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    min-width: 130px;
    min-height: 44px;
    box-sizing: border-box;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.eu-country-large {
    min-width: 200px;
    justify-content: center;
    margin-top: 8px;
}
.flag {
    font-size: 1.4rem;
    vertical-align: middle;
}
@media (max-width: 900px) {
    .eu-grid { flex-direction: column; align-items: center; }
    .eu-country, .eu-country-large { min-width: 170px; font-size: 1rem; padding: 8px 14px; }
    .presence-eu h2 { font-size: 2rem; }
}

/* ---- FOOTER ---- */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
}
.footer a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.2s;
}
.footer a:hover {
    color: #ffd700;
}

/* ---- CONTACT ---- */
.contact {
    padding: 120px 0 80px 0;
    background-color: #ffffff;
}
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
}
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    background: #f0f4f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.contact-text {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.contact-form button {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form button:hover {
    background-color: #0045cc;
}
.contact-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* ---- OFFICE ADDRESS ---- */
.office-address {
    margin-top: 2rem;
    text-align: center;
    background: #f0f4f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    color: var(--dark-blue);
}
.office-address h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ---- EMAIL ---- */
.email-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    gap: 0.5rem;
}
.email-link:hover {
    text-decoration: underline;
}

/* ---- EXPERTISE PAGE ---- */
.expertise-card img {
    width: 200px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 1rem;
}
.expertise-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
    overflow-x: auto;
}
.expertise-diagram img {
    max-width: 950px;   /* or 900px, whatever looks best for your site */
    width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

}
.expertise-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.expertise-list h3 {
    margin-top: 0;
}
.expertise-list ul {
    padding-left: 1.5rem;
}
.expertise-box {
    background: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2rem 1.5rem;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e0e7ef;
    transition: box-shadow 0.2s;
}
.expertise-box:hover {
    box-shadow: 0 8px 28px rgba(0,86,255,0.10);
}
.expertise-box h3 {
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1.2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.expertise-box ul {
    padding-left: 1.2rem;
    font-size: 1.05rem;
}

/* ---- BACK BUTTON SPACING FOR PRIVACY PAGE ---- */
.privacy .btn,
.page-header-offset .btn {
    margin-top: 28px;
    margin-bottom: 36px;
}

/* ---- RESPONSIVE MENU (MOBILE) ---- */
@media (max-width: 900px) {
  .menu-pills {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .menu-pills a {
    font-size: 1rem;
    padding: 0.5em 1em;
  }
  .navbar .container {
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 6px;
    gap: 10px;
  }
  .logo img {
    width: 110px;
  }
}

@media (max-width: 600px) {
  .navbar .container {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 7vw 12px 7vw;
    gap: 0;
  }
}

@media (max-width: 900px) {
    .expertise-list {
        grid-template-columns: 1fr;   /* 1 column on tablets and mobile */
        gap: 1.5rem;
    }
    .expertise-diagram {
        padding: 120px 1rem 1.5rem 1rem;  /* More compact for mobile, space for header */
    }
}
@media (max-width: 600px) {
    .expertise-diagram {
        padding: 170px 2vw 1rem 2vw; /* enough top space for wrapped menu */
    }
}

