/* =============================================
   PharmaEssentials — style.css
   Editorial B&W with blue accents
   Inspired by Urban ThinkTank aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --blue:          #19A4BB;
  --blue-light:  #e8f7fa;
  --blue-border: #9edbe5;
  --black:        #111111;
  --off-black:    #222222;
  --dark-grey:    #444444;
  --mid-grey:     #888888;
  --light-grey:   #e8e8e8;
  --near-white:   #f7f7f7;
  --white:        #ffffff;
  --rule:         #111111;
  --rule-light:   #dcdcdc;

  /* tipografia mais próxima do universo Adhara */
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body:    'Arial', 'Helvetica Neue', Helvetica, sans-serif;

  --nav-h:        64px;
  --left-w:       600px;;   /* antes 360px */
  --page-pad:     48px;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   NAVBAR — minimal header strip
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 2px solid var(--black);
  z-index: 1000;
  transition: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 var(--page-pad);
}

/* Brand: "Pharma" bold black + "Essentials" in blue */
.nav-brand {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* The dash line between brand parts — like Urban ThinkTank logo */
.nav-brand::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--black);
  flex-shrink: 0;
  margin: 0 2px;
}
.nav-brand span {
  color: var(--blue);
}

.nav-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity var(--transition), filter var(--transition);
}
.nav-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ============================================
   MAIN TWO-COLUMN LAYOUT
   ============================================ */
.main-layout {
  display: grid;
  grid-template-columns: var(--left-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  align-items: start;
}

/* ============================================
   LEFT COLUMN
   ============================================ */
.left-col {
  border-right: 2px solid var(--black);
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--light-grey) transparent;
  background: var(--white);
}
.left-col::-webkit-scrollbar { width: 3px; }
.left-col::-webkit-scrollbar-thumb { background: var(--light-grey); border-radius: 2px; }

.left-section {
  padding: 36px 40px 36px 40px;
  border-bottom: 1px solid var(--rule-light);
}
.left-section:last-child { border-bottom: none; }

/* Section label */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-grey);
  margin-bottom: 16px;
}

/* Left titles */
.left-title {
  font-family: var(--font-body);
  font-size: clamp(1.65rem, 1.8vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule-light);
  padding-bottom: 12px;
  letter-spacing: -0.03em;
}
.left-title em {
  color: var(--blue);
  font-style: italic;
}

/* Sobre text */
.left-text {
  font-size: 0.84rem;
  color: var(--dark-grey);
  line-height: 1.55;
  margin-bottom: 12px;
}
.left-text:last-of-type { margin-bottom: 0; }
.left-text strong { color: var(--black); font-weight: 600; }

/* ============================================
   FAQ (inside left col)
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--rule-light);
  overflow: hidden;
}
.faq-item:first-child {
  border-top: 1px solid var(--rule-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--blue); }
.faq-item.open .faq-question { color: var(--blue); }

.faq-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon svg {
  width: 12px; height: 12px;
  stroke: currentColor;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 0 12px;
  font-size: 0.78rem;
  color: var(--dark-grey);
  line-height: 1.5;
}
.faq-answer-inner p { margin-bottom: 8px; }
.faq-answer-inner p:last-child { margin-bottom: 0; }
.faq-answer-inner ul {
  list-style: none;
  padding: 0;
  margin-bottom: 8px;
}
.faq-answer-inner ul li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.faq-answer-inner ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 0.7rem;
}
.faq-answer-inner a { color: var(--blue); text-decoration: underline; }

/* ============================================
   RIGHT COLUMN — CURSOS
   ============================================ */
.right-col {
  background: var(--white);
  padding: 40px var(--page-pad) 60px 40px;
  min-height: calc(100vh - var(--nav-h));
}

.cursos-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--black);
}
.cursos-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.08;
  margin-top: 6px;
  letter-spacing: -0.04em;
}
.cursos-title em {
  color: var(--blue);
  font-style: italic;
}

/* 3-column grid — smaller cards, balanced space */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  background: transparent;
  border: none;
}

/* Course card — editorial flat style */
.curso-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid var(--rule-light);
}

.curso-card:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.curso-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.curso-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
  filter: none;
}

.curso-card:hover .curso-img-wrap img {
  transform: scale(1.01);
  filter: none;
}

.curso-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: none;
}
.curso-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.curso-btns {
  display: flex;
  gap: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 11px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  white-space: nowrap;
  flex: 1;
}
.btn svg {
  width: 11px; height: 11px;
  flex-shrink: 0;
}

/* Primary: black fill */
.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--black);
  color: var(--white);
  padding: 24px 0;
  border-top: 2px solid var(--black);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 var(--page-pad);
}
.footer-social {
  display: flex;
  gap: 8px;
  align-items: center;
}
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.social-link svg {
  width: 13px; height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-link:first-child svg { fill: currentColor; stroke: none; }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.cursos-grid .fade-up:nth-child(2) { transition-delay: 0.05s; }
.cursos-grid .fade-up:nth-child(3) { transition-delay: 0.10s; }
.cursos-grid .fade-up:nth-child(4) { transition-delay: 0.15s; }
.cursos-grid .fade-up:nth-child(5) { transition-delay: 0.20s; }
.cursos-grid .fade-up:nth-child(6) { transition-delay: 0.25s; }

/* ============================================
   RESPONSIVE
   ============================================ */

/* Large tablet */
@media (max-width: 1100px) {
  :root {
    --left-w: 360px;
    --page-pad: 32px;
  }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet — stack */
@media (max-width: 860px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .left-col {
    position: static;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 2px solid var(--black);
  }
  .left-section {
    padding: 36px var(--page-pad);
  }
  .right-col {
    min-height: auto;
    padding: 36px var(--page-pad) 52px;
  }
  .cursos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --page-pad: 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-brand { font-size: 1.05rem; }
  .nav-brand::after { width: 18px; }
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 440px) {
  :root { --page-pad: 18px; }
  .cursos-grid { grid-template-columns: 1fr; }
  .curso-btns { flex-direction: column; }
}
/* ============================================
   BANNER SLIDER
   ============================================ */

.banner-section {
 padding: 8px 0 6px 0;
  border-bottom: 1px solid var(--rule-light);

}

.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border: none;
  border-left: none;
  border-right: none;
  background: var(--white);
}
.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* dots */
.banner-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--light-grey);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.banner-dot:hover {
  transform: scale(1.15);
}

.banner-dot.active {
  background: var(--blue);
}

@media (max-width: 860px) {
  .banner-section {
    padding: 24px var(--page-pad);
  }

  .banner-slider {
    aspect-ratio: 16 / 5.5;
  }
}

@media (max-width: 680px) {
  .banner-slider {
    aspect-ratio: 16 / 6;
  }
}