/*
Theme Name: Medicamentele Nu Sunt Gunoi
Theme URI: https://medicamentelenusuntgunoi.ro
Description: Temă pentru proiect CSR studențesc FEEA UAIC Iași
Author: FEEA UAIC
Version: 1.0.0
License: GNU General Public License v2
Text Domain: mnsg
*/

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

:root {
  --navy:       #0D2B4E;
  --blue:       #1A5C8A;
  --sky:        #2E8FBF;
  --accent:     #1EAAD4;
  --light-blue: #E6F4FA;
  --paper:      #F7FAFB;
  --ink:        #0D2B4E;
  --mid:        #4A6D8C;
  --line:       rgba(13,43,78,0.12);
  --white:      #FFFFFF;

  --max-w: 1060px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── UTILITIES ── */
.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER / NAV ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}

.site-header .inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.site-branding a {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-transform: uppercase;
  line-height: 1.2;
}

.site-branding .logo-pill {
  background: var(--navy);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 3px;
  white-space: nowrap;
}

.site-branding .logo-text {
  font-size: .92rem;
  line-height: 1.25;
}

.main-navigation ul {
  display: flex; gap: 2rem; list-style: none;
}

.main-navigation ul li a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--mid);
  text-decoration: none;
  letter-spacing: .02em;
  transition: color .2s;
}

.main-navigation ul li a:hover { color: var(--navy); }

.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

/* ── HERO ── */
.hero-section {
  padding-top: 72px;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(30,170,212,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(26,92,138,.35) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid pattern subtle */
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  position: relative; z-index: 1;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--accent);
  display: block;
}

.hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -.03em;
}

.hero-section h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, transform .15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--blue); transform: translateY(-2px); }

.btn-ghost {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.hero-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-stat .num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero-stat .num span {
  font-size: 1.4rem;
  color: var(--accent);
}

.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: .3rem;
}

.hero-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(30,170,212,.3);
  border-radius: 3px;
  padding: .3rem .7rem;
}

/* ── SECTION COMMONS ── */
.page-section {
  padding: 6rem 0;
}

.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}

.section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--accent);
  display: block;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

/* ── DESPRE / MISIUNE ── */
.mission-section {
  background: var(--white);
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.mission-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 2rem;
}

.mission-values {
  display: flex; flex-direction: column; gap: 0.5rem;
}

.value-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}

.value-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(30,170,212,.08);
}

.value-num {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--light-blue);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
  letter-spacing: -.05em;
}

.value-item h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

.value-item p {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── PROIECTE ── */
.projects-section {
  background: var(--paper);
}

.projects-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,43,78,.1);
}

.project-card-img {
  aspect-ratio: 16/9;
  background: var(--light-blue);
  overflow: hidden;
}

.project-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}

.project-card-img .no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
}

.project-card-img .no-img span {
  font-size: 2.5rem; opacity: .3;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-meta {
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}

.project-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--light-blue);
  padding: .25rem .6rem;
  border-radius: 3px;
}

.project-status {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
}

.project-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.35;
}

.project-card p {
  font-size: .875rem;
  color: var(--mid);
  line-height: 1.6;
}

.btn-outline {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: .6rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ── NOUTĂȚI / BLOG ── */
.news-section {
  background: var(--white);
}

.news-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper);
  transition: transform .25s, box-shadow .25s;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,43,78,.1);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--light-blue);
}

.news-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}

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

.news-card-img .no-img {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--sky) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
}

.news-card-body {
  padding: 1.25rem;
}

.news-card-date {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.news-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: .5rem;
}

.news-card h3 a {
  color: inherit; text-decoration: none;
  transition: color .2s;
}

.news-card h3 a:hover { color: var(--accent); }

.news-card p {
  font-size: .85rem;
  color: var(--mid);
  line-height: 1.6;
}

.news-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 3rem;
  color: var(--mid);
  font-size: .95rem;
}

/* ── CONTACT ── */
.contact-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(30,170,212,.15) 0%, transparent 65%);
  pointer-events: none;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  position: relative; z-index: 1;
}

.contact-info .section-title {
  color: var(--white);
}

.contact-info .section-label {
  color: var(--accent);
}

.contact-info .section-label::before {
  background: var(--accent);
}

.contact-tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,.65);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex; flex-direction: column; gap: .75rem;
}

.contact-detail {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}

.contact-detail-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.08);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

/* Contact form */
.contact-form-wrap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.form-success {
  background: rgba(30,170,212,.12);
  border: 1px solid rgba(30,170,212,.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: .9rem;
}

.form-error {
  background: rgba(220,80,60,.1);
  border: 1px solid rgba(220,80,60,.3);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  color: #ff8a78;
  font-size: .9rem;
}

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}

.form-group {
  display: flex; flex-direction: column; gap: .4rem;
}

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: .9rem;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 120px; resize: vertical;
}

.contact-form .btn-primary {
  align-self: flex-start;
  margin-top: .5rem;
}

/* ── FOOTER ── */
.site-footer {
  background: #081D35;
  padding: 2.5rem 0;
}

.site-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  display: flex; align-items: center; gap: .5rem;
}

.footer-brand .logo-pill {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
}

.site-footer p {
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}

.footer-nav {
  display: flex; gap: 1.5rem;
}

.footer-nav a {
  font-size: .8rem;
  color: rgba(255,255,255,.35) !important;
  text-decoration: none !important;
  transition: color .2s !important;
}

.footer-nav a:hover {
  color: rgba(255,255,255,.75) !important;
}

/* ── BLOG PAGES ── */
.blog-wrap {
  padding-top: calc(72px + 4rem);
  padding-bottom: 6rem;
  min-height: 100vh;
}

.blog-page-header {
  margin-bottom: 3rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.blog-pagination {
  display: flex; gap: .5rem; justify-content: center;
}

.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── SINGLE POST ── */
.single-wrap {
  padding-top: calc(72px + 4rem);
  padding-bottom: 6rem;
}

.single-post-header {
  margin-bottom: 2.5rem;
}

.single-post-meta {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}

.single-post-date {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

.single-post-header h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1rem;
}

.single-post-header .excerpt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--mid);
  font-weight: 300;
  max-width: 680px;
}

.single-post-thumb {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.single-post-thumb img {
  width: 100%; display: block;
  max-height: 500px; object-fit: cover;
}

.single-post-content {
  max-width: 720px;
}

.single-post-content p,
.single-post-content li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #2a3f55;
  font-weight: 300;
  margin-bottom: 1.25rem;
}

.single-post-content h2,
.single-post-content h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .75rem;
}

.single-post-content h2 { font-size: 1.5rem; }
.single-post-content h3 { font-size: 1.2rem; }

.single-post-content a {
  color: var(--accent);
}

.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--mid);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color .2s;
}

.back-link:hover { color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .mission-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid,
  .news-grid,
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .projects-header,
  .news-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 600px) {
  .projects-grid,
  .news-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
}


/* ── PUNCTE DE COLECTARE ── */
.puncte-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(30,170,212,.3);
  border-radius: 3px;
  padding: .3rem .7rem;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.puncte-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.puncte-lista li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.pin-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #e03030;
  margin-top: .15rem;
}

.pin-icon svg {
  width: 100%;
  height: 100%;
}

.puncte-lista li span:last-child {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.puncte-lista li strong {
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  line-height: 1.2;
}

.puncte-lista li em {
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: rgba(255,255,255,.45);
}
