/* Custom styles and enhancements on top of Tailwind CSS — MICOSolv® Product Palette */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Work+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700;1,900&display=swap');

:root {
  --font-sans: 'Poppins', sans-serif;
  --font-heading: 'Work Sans', sans-serif;

  /* MICOSolv® Packaging Palette (Deep Dermo-Teal + Bright Aqua-Cyan + Cool Slate-Grey + Pure White) */
  --color-primary: #007078;         /* MICOSolv Signature Deep Teal */
  --color-primary-mid: #00A0A8;     /* MICOSolv Bright Aqua-Teal Ribbon */
  --color-primary-hover: #00575E;   /* Deep Clinical Teal Hover */
  --color-primary-light: #EEF9FA;   /* Soft Ice-Aqua Tint */
  --color-primary-border: #BBE3E7;  /* Crisp Aqua Border */

  --color-accent-slate: #5F686C;    /* Label Cool Slate-Grey ("UTILE COME COADIUVANTE") */
  --color-accent-slate-bg: #F3F6F7; /* Soft Clinical Slate Tint */
  --color-dark-teal: #042C30;       /* Deep Teal Header/Promo Bar */
  --color-footer-bg: #031E22;       /* Deep Teal-Navy Footer */
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 640px) {
  body {
    font-size: 16px;
    line-height: 30px;
  }
}

/* Section Headers */
.header-text, h2 {
  font-family: "Work Sans", sans-serif !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 34px !important;
  color: rgb(0, 0, 0) !important;
  text-align: center !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 640px) {
  .header-text, h2 {
    font-size: 40px !important;
    line-height: 44px !important;
  }
}

/* Main Header (H1) */
.main-header, h1 {
  font-family: "Work Sans", sans-serif !important;
  font-size: 38px !important;
  font-weight: 900 !important;
  line-height: 42px !important;
  color: rgb(0, 0, 0) !important;
  text-align: center !important;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (min-width: 420px) {
  .main-header, h1 {
    font-size: 45px !important;
    line-height: 48px !important;
  }
}

h3, h4, h5, h6, .font-heading {
  font-family: "Work Sans", sans-serif;
  color: rgb(0, 0, 0);
  overflow-wrap: break-word;
}

/* Body / Paragraph Text */
p, .body-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 26px;
  color: rgb(0, 0, 0);
}

@media (min-width: 640px) {
  p, .body-text {
    font-size: 16px;
    line-height: 30px;
  }
}

/* Smooth transitions */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #BBE3E7;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #EEF9FA;
}

::-webkit-scrollbar-thumb {
  background: #77C5CB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #007078;
}

/* Global 1:1 Aspect Ratio Enforcement */
.img-1-to-1 {
  aspect-ratio: 1 / 1 !important;
}

/* Direct-Response 3D Warm Amber-Orange CTA Button */
.btn-cta-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #FFA000;
  border-bottom: 5px solid #C66900;
  border-radius: 8px;
  padding: 13px 14px;
  font-family: "Work Sans", sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  color: #000000 !important;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 112, 120, 0.20);
  transition: all 0.12s ease-in-out;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 400px) {
  .btn-cta-orange {
    font-size: 16.5px !important;
    padding: 14px 20px;
    gap: 10px;
  }
}

@media (min-width: 640px) {
  .btn-cta-orange {
    font-size: 21px !important;
    padding: 18px 36px;
    gap: 14px;
  }
}

.btn-cta-orange:hover {
  background-color: #FFAB1A;
  border-bottom-color: #B45D00;
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.btn-cta-orange:active {
  transform: translateY(3px);
  border-bottom-width: 2px;
}

.btn-cta-orange .cta-arrow-fill {
  fill: #FFA000;
  transition: fill 0.12s ease-in-out;
}

.btn-cta-orange:hover .cta-arrow-fill {
  fill: #FFAB1A;
}

/* High CTR Tag Line below Main Header */
.high-ctr-tag {
  display: block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  color: #042C30;
  margin-top: 6px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .high-ctr-tag {
    font-size: 16px;
    line-height: 28px;
  }
}

/* Premium Ingredients Card Styling (Matched to MICOSolv Teal, Aqua & White Packaging) */
.ingredient-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #BBE3E7;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 3px 12px rgba(0, 112, 120, 0.07);
  transition: all 0.25s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.ingredient-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 112, 120, 0.15);
  border-color: #00A0A8;
}

.ingredient-card .ingredient-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 112, 120, 0.09);
  border: 1px solid #BBE3E7;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
  background-color: #EEF9FA;
}

@media (min-width: 640px) {
  .ingredient-card .ingredient-img-wrap {
    width: 130px;
    height: 130px;
  }
}

.ingredient-card:hover .ingredient-img-wrap {
  transform: scale(1.04);
}

.ingredient-card h3 {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  color: #042C30 !important;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .ingredient-card h3 {
    font-size: 19px !important;
    line-height: 25px !important;
  }
}

.ingredient-card p {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 22px !important;
  color: #334155 !important;
  flex-grow: 1;
  margin: 0;
}

@media (min-width: 640px) {
  .ingredient-card p {
    font-size: 15px !important;
    line-height: 24px !important;
  }
}
