/*
Theme Name: PharmaTech
Theme URI: https://example.com/pharmatech
Author: PharmaTech
Author URI: https://example.com
Description: Custom WordPress tema za Uriotic landing stranicu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pharmatech
*/
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal-deep: #243463;
  --teal-mid: #0e7a8f;
  --teal-light: #14A3B8;
  --teal-pale: #E0F5F9;
  --mint: #A8E6CF;
  --mint-light: #D4F5E4;
  --gold: #D4A843;
  --gold-light: #F5E6C0;
  --white: #FFFFFF;
  --off-white: #F8FAFB;
  --gray-50: #F1F5F7;
  --gray-100: #E2E8EC;
  --gray-200: #C5CED4;
  --gray-500: #6B7D88;
  --gray-700: #3A4D57;
  --gray-900: #1A2B33;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(10,77,92,0.06);
  --shadow-md: 0 8px 32px rgba(10,77,92,0.10);
  --shadow-lg: 0 16px 48px rgba(10,77,92,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10,77,92,0.06);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 72px;
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--teal-deep); text-decoration: none; letter-spacing: -0.02em;
  display: inline-flex; align-items: center;
}
.nav-logo .custom-logo-link { display: inline-flex; align-items: center; }
.nav-logo .custom-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 260px;
}
.nav-logo .nav-logo-text {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--teal-deep); text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--gray-700);
  font-size: 0.88rem; font-weight: 500; padding: 8px 16px;
  border-radius: 8px; transition: all 0.25s;
}
.nav-links a:hover { color: var(--teal-deep); background: var(--teal-pale); }
.nav-links a.active { color: var(--teal-deep); background: var(--teal-pale); }
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 36px; height: 36px; position: relative;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--gray-700);
  position: absolute; left: 7px; transition: all 0.3s;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 23px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(160deg, var(--teal-deep) 0%, #0C6577 40%, var(--teal-mid) 100%);
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 80%, rgba(168,230,207,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 600px 600px at 80% 20%, rgba(20,163,184,0.2) 0%, transparent 70%);
}
.hero-grid {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.3;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--mint);
  top: -100px; right: -100px;
  animation: float 12s ease-in-out infinite;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: var(--teal-light);
  bottom: -50px; left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 18px; border-radius: 100px;
  color: var(--mint); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}
.hero-tag::before {
  content: ''; width: 8px; height: 8px;
  background: var(--mint); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.15s ease both;
}
.hero h1 em {
  font-style: italic; color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.75);
  max-width: 520px; line-height: 1.8; margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.3s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  animation: fadeInUp 0.8s 0.45s ease both;
}
.hero-stat {
  text-align: center; padding: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.hero-stat-num {
  font-family: var(--font-display); font-size: 2rem;
  color: var(--mint); display: block;
}
.hero-stat-label {
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
  margin-top: 4px; font-weight: 500;
}
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-product-image {
  width: min(460px, 90%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.22));
}
.capsule-visual {
  width: 320px; height: 420px;
  background: linear-gradient(170deg, rgba(255,255,255,0.12), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 160px; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  animation: floatSlow 8s ease-in-out infinite;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.capsule-visual .ingredient-bubble {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 22px; border-radius: 100px;
  color: var(--white); font-size: 0.82rem; font-weight: 500;
  text-align: center; backdrop-filter: blur(8px);
  transition: all 0.3s;
}
.capsule-visual .ingredient-bubble:hover {
  background: rgba(168,230,207,0.15);
  border-color: rgba(168,230,207,0.3);
  transform: scale(1.05);
}
.capsule-visual .center-text {
  font-family: var(--font-display); font-size: 2.4rem;
  color: var(--white); letter-spacing: -0.02em;
}
.capsule-visual .cfu {
  color: var(--mint); font-size: 0.9rem; font-weight: 600;
}

/* ===== SECTIONS COMMON ===== */
section { padding: 100px 40px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--teal-mid);
  background: var(--teal-pale); padding: 6px 16px;
  border-radius: 100px; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--teal-deep); line-height: 1.2; margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--gray-500);
  max-width: 640px; line-height: 1.8;
}

/* ===== OVERVIEW ===== */
.overview { background: var(--off-white); }
.overview-text {
  font-size: 1.08rem; line-height: 1.9; color: var(--gray-700);
  max-width: 860px; margin: 32px auto 0;
  column-count: 1;
}
.overview-text p { margin-bottom: 20px; }
.overview-text strong { color: var(--teal-deep); }

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; margin-top: 48px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all 0.35s;
  position: relative; overflow: hidden;
}
.benefit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--teal-light), var(--mint));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.benefit-card:hover { border-color: var(--teal-pale); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-card:hover::before { transform: scaleX(1); }
.benefit-num {
  font-family: var(--font-display); font-size: 2.4rem;
  color: var(--teal-pale); margin-bottom: 12px;
}
.benefit-card h3 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--teal-deep); margin-bottom: 12px;
}
.benefit-card p {
  font-size: 0.95rem; color: var(--gray-500); line-height: 1.7;
}

/* ===== INDICATIONS ===== */
.indications { background: linear-gradient(160deg, var(--teal-deep) 0%, var(--teal-mid) 100%); color: var(--white); }
.indications .section-tag { background: rgba(255,255,255,0.1); color: var(--mint); }
.indications .section-title { color: var(--white); }
.indications .section-subtitle { color: rgba(255,255,255,0.6); }
.indications-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 48px;
}
.indication-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  transition: all 0.3s;
}
.indication-item:hover { background: rgba(255,255,255,0.1); }
.indication-icon {
  width: 58px; height: 58px; min-width: 58px;
  background: rgba(168,230,207,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.indication-icon-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.indication-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.indication-item p { font-size: 0.85rem; color: rgba(255,255,255,0.55); line-height: 1.6; }
.indications-closing {
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 1.05rem; line-height: 1.9;
  color: rgba(255,255,255,0.75); max-width: 860px;
}
.indications-closing strong { color: var(--mint); }

/* ===== INGREDIENTS ===== */
.ingredients { background: var(--off-white); }
.accordion-group { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s;
}
.accordion-item.open { border-color: var(--teal-light); box-shadow: var(--shadow-sm); }
.accordion-header {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px; background: none; border: none;
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--teal-deep); cursor: pointer; transition: all 0.25s;
  text-align: left; gap: 16px;
}
.accordion-header:hover { background: var(--gray-50); }
.accordion-item.open .accordion-header { background: var(--teal-pale); }
.accordion-chevron {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%; background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s; font-size: 0.9rem; color: var(--gray-500);
}
.accordion-item.open .accordion-chevron {
  background: var(--teal-deep); color: var(--white); transform: rotate(180deg);
}
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.open .accordion-body { max-height: 5000px; }
.accordion-content { padding: 32px 32px 40px; }
@media (max-width: 900px) { .accordion-content { padding: 20px; } .accordion-header { padding: 18px 20px; font-size: 1.1rem; } }
.accordion-content .intro {
  font-size: 1.02rem; color: var(--gray-500);
  margin-bottom: 28px; line-height: 1.8;
}
.accordion-content h4 {
  font-family: var(--font-display); font-size: 1.15rem;
  color: var(--teal-deep); margin: 32px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--gray-50);
}
.accordion-content h4:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.accordion-content p {
  font-size: 0.95rem; color: var(--gray-700); line-height: 1.8;
  margin-bottom: 12px;
}
.accordion-content ul {
  list-style: none; padding: 0; margin: 12px 0;
}
.accordion-content ul li {
  font-size: 0.93rem; color: var(--gray-700); line-height: 1.7;
  padding: 6px 0 6px 24px; position: relative;
}
.accordion-content ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--mint));
}
.accordion-content .ref {
  font-size: 0.82rem; color: var(--gray-500); font-style: italic;
  margin-top: 8px; padding-left: 16px;
  border-left: 2px solid var(--teal-pale);
}
.highlight-box {
  background: var(--teal-pale); border-radius: var(--radius-sm);
  padding: 24px 28px; margin: 24px 0;
}
.highlight-box strong { color: var(--teal-deep); }
.highlight-box ul li::before { background: var(--teal-deep); }

/* ===== SYNERGY ===== */
.synergy {
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.synergy-text {
  font-size: 1.08rem; line-height: 1.9; color: var(--gray-700);
  max-width: 860px; margin: 32px auto 0;
}
.synergy-text strong { color: var(--teal-deep); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(160deg, var(--teal-deep), var(--teal-mid));
  text-align: center; padding: 80px 40px;
}
.cta-section .section-title { color: var(--white); max-width: 600px; margin: 0 auto 16px; }
.cta-section p { color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 32px; font-size: 1rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px; border-radius: 100px;
  background: var(--white); color: var(--teal-deep);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; transition: all 0.3s; border: none; cursor: pointer;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ===== FOOTER ===== */
footer {
  background: var(--teal-deep); color: rgba(255,255,255,0.4);
  padding: 48px 40px 32px; text-align: center;
  font-size: 0.85rem;
}
footer a { color: var(--mint); text-decoration: none; }
footer .footer-brand {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--white); margin-bottom: 12px;
}
footer .footer-brand span { color: var(--teal-light); }
footer .footer-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}
footer .footer-brand .custom-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 260px;
  filter: brightness(0) invert(1);
}
footer .footer-brand a {
  color: var(--white);
  text-decoration: none;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; padding-left: 0; padding-right: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual { display: none; }
  section { padding: 64px 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }
  .benefits-grid { grid-template-columns: 1fr; }
  .indications-grid { grid-template-columns: 1fr; }
  .tab-panel { padding: 28px 20px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.site-main {
  padding-top: 72px;
}
.page-content-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.page-title {
  font-family: var(--font-display);
  color: var(--teal-deep);
  margin-bottom: 24px;
  line-height: 1.2;
}
.page-content-wrap .entry-content {
  color: var(--gray-700);
}
.error-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-404 .error-wrap {
  max-width: 700px;
  padding: 120px 24px 80px;
}
.error-404 .error-code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--teal-deep);
  line-height: 1;
  margin-bottom: 16px;
}

/* ===== HOME PRODUCTS ===== */
.home-products {
  min-height: 100vh;
  padding: 72px 0 0;
  background: linear-gradient(160deg, var(--teal-deep) 0%, #0C6577 40%, var(--teal-mid) 100%);
  position: relative;
}
.home-swipe-hint {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.home-swipe-hint.is-hidden {
  opacity: 0;
}
.home-swipe-hint-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  animation: swipeArrow 1.4s ease-in-out infinite;
}
.home-swipe-hint-arrow svg {
  width: 100%;
  height: 100%;
}
.home-swipe-hint-arrow svg circle {
  fill: rgba(255,255,255,0.14);
  stroke: rgba(255,255,255,0.25);
  stroke-width: 2;
}
.home-swipe-hint-arrow svg path {
  fill: none;
  stroke: #fff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes swipeArrow {
  0% { transform: translateX(-8px); opacity: 0.35; }
  55% { transform: translateX(8px); opacity: 1; }
  100% { transform: translateX(-8px); opacity: 0.35; }
}
.home-products-grid {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-product-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}
.home-product-card:first-child {
  border-left: none;
}
.home-product-card img {
  max-width: 72%;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
  transition: transform 0.35s ease;
}
.home-product-title {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -0.02em;
}
.home-product-card:hover {
  background: rgba(255,255,255,0.05);
}
.home-product-renalit {
  background: linear-gradient(160deg, #0A1F38 0%, #12345A 55%, #1C4A78 100%);
}
.home-product-renalit:hover {
  background: linear-gradient(160deg, #0D2744 0%, #184069 55%, #245887 100%);
}
.home-product-card:hover img {
  transform: translateY(-6px) scale(1.03);
}
@media (max-width: 900px) {
  .home-products {
    min-height: auto;
  }
  .home-swipe-hint {
    top: 84px;
  }
  .home-products-grid {
    min-height: auto;
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-products-grid::-webkit-scrollbar { display: none; }
  .home-product-card {
    flex: 0 0 70vw;
    min-height: 62vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-top: none;
  }
  .home-product-card:first-child {
    border-left: none;
  }
  .home-product-card img {
    max-width: 78%;
    max-height: 62vh;
  }
  .home-product-title {
    bottom: 28px;
    font-size: 1.6rem;
  }
}
