/* ============================================
   IDA PHARMA — Design Tokens
   "Healing with Science, Caring with Heart"
   ============================================ */

:root {
  /* Color */
  --forest-900: #082d1c;
  --forest-800: #0d3d26;
  --forest-700: #134a30;
  --forest-600: #1b6640;
  --forest-500: #237d4e;
  --mint-300: #9fd9b8;
  --mint-200: #cdebd9;
  --mint-100: #e9f7ee;
  --cream: #f7faf7;
  --white: #ffffff;
  --ink: #0e1f17;
  --ink-soft: #3c5648;
  --line: #d8ece1;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(8, 45, 28, 0.10);
  --shadow-sm: 0 4px 14px rgba(8, 45, 28, 0.08);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--forest-500);
  display: inline-block;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: var(--forest-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-900); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: var(--forest-700);
  color: var(--forest-800);
}
.btn-ghost:hover { background: var(--forest-700); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--forest-800);
}
.btn-light:hover { background: var(--mint-100); transform: translateY(-2px); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
}
.footer-brand { margin-bottom: 4px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--forest-600);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest-800); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--forest-900);
  margin: 5px 0;
  transition: 0.25s;
}

@media (max-width: 880px) {
  .nav-links { 
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--mint-100); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
}

/* Footer */
.site-footer {
  background: var(--forest-900);
  color: var(--mint-200);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
.footer-grid p, .footer-grid a {
  font-size: 0.92rem;
  color: var(--mint-200);
  opacity: 0.85;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--white); opacity: 1; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.footer-tagline { font-style: italic; opacity: 0.75; margin-top: 10px; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Section spacing */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-deep { background: var(--forest-900); color: var(--mint-100); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-300); }

/* Molecule motif divider */
.motif-divider {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
  opacity: 0.55;
}

/* Breadcrumb / page hero */
.page-hero {
  background: linear-gradient(180deg, var(--mint-100) 0%, var(--white) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 14px; }

/* Utility */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ============== HOME PAGE ============== */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-700) 55%, var(--forest-600) 100%);
}
.hero .eyebrow { color: var(--mint-300); }
.hero .eyebrow::before { background: var(--mint-300); }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--mint-200); }
.hero-trust { color: var(--mint-100) !important; }
.hero-trust .dot { color: var(--forest-500); }
.hero .btn-ghost { border-color: var(--mint-200); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--forest-800); }
.hero-art svg circle:first-child { fill: rgba(255,255,255,0.06); }
.hero-art svg circle:nth-child(2) { stroke: rgba(255,255,255,0.18); }
.hero .pulse-line { stroke: var(--mint-100); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest-700);
  letter-spacing: 0.02em;
}
.hero-trust .dot { color: var(--mint-300); }
.hero-art svg { width: 100%; height: auto; }
.pulse-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-pulse 2.2s ease forwards 0.3s;
}
@keyframes draw-pulse {
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-line { animation: none; stroke-dashoffset: 0; }
}

.cert-strip {
  background: var(--forest-900);
  padding: 28px 0;
}
.cert-strip-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.cert-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white);
  flex: 1;
  min-width: 160px;
}
.cert-item strong { font-family: var(--font-display); font-size: 1.15rem; }
.cert-item span { font-size: 0.8rem; color: var(--mint-200); opacity: 0.8; }

.range-card { display: flex; flex-direction: column; gap: 4px; }
.range-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--forest-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.cta-banner {
  background: linear-gradient(120deg, var(--forest-800), var(--forest-600));
  padding: 64px 0;
}
.cta-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
}

.product-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mint-100);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}
.card:hover .product-photo img { transform: scale(1.04); }
.product-photo.placeholder {
  border: 1.5px dashed var(--line);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: center;
  padding: 20px;
  line-height: 1.4;
}

.brand-logo { height: 40px; width: auto; display: block; }
.footer-logo-chip {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.footer-logo-chip img { height: 34px; width: auto; display: block; }

:focus-visible {
  outline: 2.5px solid var(--forest-600);
  outline-offset: 3px;
}
/* Coming Soon Notice */
.coming-soon-notice {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    grid-column: 1 / -1;
}
.coming-soon-notice p {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d6a4f;
    margin-bottom: 10px;
}
.coming-soon-notice span {
    font-size: 0.95rem;
    color: #888;
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
}