
:root {
  --font-main: 'Inter', sans-serif;
  --font-serif: 'Source Serif Pro', serif;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: #002e5b;
  background: #f8fafe;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: #1a62b7;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.375rem;
  font-weight: 600;
}

p, li {
  font-size: 0.9rem;
  color: #333;
}

/* Pequeno texto */
small {
  font-size: 0.875rem;
  color: #6c757d;
}

/* Botões */
button, .cta-btn {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Frases em destaque, citações */
blockquote, .highlighted-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #002e5b;
}



* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body { 
  font-family: 'Inter', sans-serif; 
  background: #f8fafe; 
}

h2 { font-size: 2.2rem; margin-bottom: 20px; }

section {
    padding: 100px 20px;
    text-align: center;
    color: #1a62b7;
}

/* Menu */
#top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: transparent;
    z-index: 1001;
    transition: all 0.3s ease;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}


.logo {
    height: 90px;
}

.lang-switch button {
    background: none;
    border: none;
    color: #1a62b7;
    font-weight: bold;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1rem;
}

.lang-switch button:hover {
    color: #f1593e;
}

#hamburger {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

/* Estado transparente (no topo) */
#top-bar.transparent {
    background: transparent;
    box-shadow: none;
}

/* Estado com scroll (fundo branco e sombra) */
#top-bar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-dropdown {
    position: relative;
}

#current-lang {
    background: none;
    border: none;
    color: #1a62b7;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.flag {
    width: 20px;
    height: 14px;
    object-fit: contain;
    vertical-align: middle;
}

#lang-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    list-style: none;
    padding: 5px 0;
    z-index: 2000;
    min-width: 140px;
}

#lang-menu li {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

#lang-menu li:hover {
    background: #f0f5ff;
}

.flag-icon {
    margin-right: 8px;
    width: 20px;
    height: 14px;
}

.section-divider {
  height: 80px;
  background: linear-gradient(to bottom, transparent, #e1e8f0);
}

/* VALORES */
/* Secções fluídas */
#valores, #sobre {
  background-color: #f5f7fa; /* tom cinza-claro consistente com o site */
  padding: 80px 20px;
  text-align: center;
}

/* VALORES */
#valores {
  background-color: #e1e8f0; /* cinza-azulado suave para contraste */
  padding: 100px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.valor-bloco {
  flex: 1 1 280px;
  max-width: 320px;
  padding: 30px 20px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.valor-bloco:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


.valor-bloco h3 {
  font-size: 1.5rem;
  color: #1a62b7; /* tom azul do logotipo */
  margin-bottom: 10px;
}

.valor-bloco p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.6;
}

/* SOBRE */
#sobre {
  background-color: #ffffff;
  padding: 100px 20px;
}

.sobre-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.sobre-imagem img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.sobre-texto {
  flex: 1;
  min-width: 280px;
}

.sobre-texto h2 {
  font-size: 2rem;
  color: #1a62b7;
  margin-bottom: 20px;
}

.sobre-texto p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.8;
}


.divider {
    background: url('../images/bg_img2.jpg') center center / cover no-repeat fixed;
    color: white;
    padding: 100px 20px;
}

.divider h2 {
  color: white;
}

footer {
    background: #1a62b7;
    color: #f8fafe;
    text-align: center;
    padding: 20px;
}

#intro {
    position: relative;
    height: 100vh;
    background: url('../images/bg_img1.jpg') center center / cover no-repeat fixed;
    overflow: hidden;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 254, 0.85);
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    position: relative;
    z-index: 3;
    gap: 110px;
    color: #1a62b7;
}

.intro-content img {
    width: 300px;
    margin-bottom: 20px;
}

.intro-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #002e5b;
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#animated-text {
  /*font-size: 24px;
  font-weight: 600;
  color: #1a62b7;
  */
  position: relative;
  z-index: 2;
}

/* .cta-btn {
    background: #f1593e;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    transition: background 0.3s;
} */

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 30px;
    height: 50px;
    border: 2px solid #1a62b7;
    border-radius: 25px;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #1a62b7;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Cubo */
.cube-container {
  width: clamp(250px, 20vw, 300px);
  height: clamp(250px, 20vw, 300px);

  perspective: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  cursor: grab;
}

.cube-container:active {
  cursor: grabbing;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.cube-wrapper {
  position: relative;
  z-index: 3;
}

.cube.auto-rotate {
  animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
  0%   { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: #3a3f47;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.08);
    font-size: 46px;
    color: #fff;
}

.face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.icon-wrapper {
  background: #f8f9fa;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.face-content i {
  font-size: 26px;
  color: inherit; /* herda a cor específica de cada face */
  /* text-shadow: 0 0 3px currentColor;*/
  transition: transform 0.3s;
}


/* .face-content i {
  font-size: 40px;
  margin-bottom: 6px;
  text-shadow: 0 0 3px currentColor;
  transition: transform 0.3s;
} */

.face-content i:hover {
  transform: scale(1.2);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}


.face-content span {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

/* Ícones com cores distintas */
.front i  { color: #f04c3e; }     /* Medicamentos - vermelho */
.back i   { color: #1a62b7; }     /* Cosméticos - azul escuro */
.right i  { color: #5eb3f3; }     /* Laboratório - azul claro */
.left i   { color: #00a86b; }     /* Biotecnologia - verde clínico */
.top i    { color: #ff9800; }     /* Cuidados - laranja */
.bottom i { color: #6d4c41; }     /* Natural - castanho suave */

/* Face positions */
.front  { transform: rotateY(0deg) translateZ(125px); }
.back   { transform: rotateY(180deg) translateZ(125px); }
.right  { transform: rotateY(90deg) translateZ(125px); }
.left   { transform: rotateY(-90deg) translateZ(125px); }
.top    { transform: rotateX(90deg) translateZ(125px); }
.bottom { transform: rotateX(-90deg) translateZ(125px); }

@keyframes rotateCube {
  0%   { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-container,
.cube,
.face,
.face-content,
.face-content i,
.face-content span {
  user-select: none;
}



/* Menu Hamburger */
#hamburger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


#hamburger span {
    height: 3px;
    background: #1a62b7;
    border-radius: 2px;
    transition: 0.4s;
}

#hamburger.active span {
    background: #f1593e;
}

#hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#hamburger.active span:nth-child(2) {
    opacity: 0;
}

#hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#sideMenu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #1a62b7;
    z-index: 1000;
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#sideMenu ul {
    list-style: none;
    text-align: center;
}

#sideMenu li {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(20px);
}

#sideMenu a {
    color: #f8fafe;
    font-size: 1.5rem;
    text-decoration: none;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    z-index: 900;
}

/* Produtos */

#produtos {
  padding: 100px 20px;
  background-color: #f9fbfd;
  text-align: center;
}

#produtos h2 {
  color: #1a62b7;
  font-size: 2rem;
  margin-bottom: 10px;
}

#produtos p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 40px;
}

.slider-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.slider {
  display: flex;
  gap: 20px;
  padding-bottom: 10px;
  scroll-snap-align: start;
  width: max-content;
}

.produto-bloco {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  text-align: center;
}

.produto-bloco:hover {
  transform: translateY(-5px);
}

.produto-bloco img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.produto-bloco h3 {
  color: #1a62b7;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.produto-bloco p {
  color: #444;
  font-size: 0.95rem;
}

.produto-categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px auto 100px;
  max-width: 1100px;
  padding: 0 20px;
}

.categoria-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: center;
  flex: 1 1 calc(25% - 30px); /* 4 por linha com espaço entre */
  max-width: calc(25% - 30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.categoria-card span {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
}

.categoria-card h4 {
  font-size: 1.1rem;
  color: #1a62b7;
  margin-bottom: 8px;
}

.categoria-card a {
  font-size: 0.9rem;
  color: #1a62b7;
  text-decoration: none;
  font-weight: 600;
}


/* Parceiros */
#parceiros {
    background: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

#parceiros h2 {
    color: #1a62b7;
    font-size: 2rem;
    margin-bottom: 40px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    width: calc(200px * 10); /* 10 logos */
    animation: scrollLogos 30s linear infinite;
    gap: 40px;
    align-items: center;
}

.logo-track img {
    width: 200px;
    height: auto;
    object-fit: contain;
    opacity: 0.8 !important;
    transition: transform 0.3s, opacity 0.3s;
}

.logo-track img:hover {
    transform: scale(1.05);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Contactos */
#contacto {
    background: #1a62b7;
    color: #f8fafe;
    padding: 100px 20px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.contact-content {
    flex: 1 1 400px;
    max-width: 500px;
}

.contact-content h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    background: #f8fafe;
    color: #1a62b7;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8899cc;
}

.contact-form button {
    background: #f1593e;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #d94c32;
}

.contact-side {
    flex: 1 1 400px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-side iframe {
    border-radius: 8px;
}

.contact-details {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    color: #f8fafe;
    font-size: 0.95rem;
    line-height: 1.6;
}

