/* ============================================
   PLUMA LIBRE v3 — Clean Modern Design
   Inspired by Apple's design language
   ============================================ */

:root {
  --white: #FFFFFF;
  --bg: #F5F5F7;
  --bg-card: #FFFFFF;
  --text-primary: #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary: #86868B;
  --border: #E8E8ED;
  --border-hover: #D2D2D7;
  --brand: #0B2545;
  --brand-light: #13315C;
  --accent: #0071E3;
  --accent-hover: #0077ED;
  --red: #FF3B30;
  --red-bg: #FFF5F5;
  --green-wa: #25D366;
  --fb-blue: #1877F2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --max-w: 1080px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEADER — Frosted glass sticky
   ============================================ */
.top-bar {
  background: var(--brand);
  color: rgba(255,255,255,0.85);
  font-size: 0.68rem;
  padding: 6px 0;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.7); transition: color 0.2s; display: inline-flex; }
.top-bar a:hover { color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.logo-text h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.logo-text .tagline {
  font-size: 0.55rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-top: 1px;
}

/* Menu button */
.menu-btn {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  padding: 0;
}
.menu-btn:active { background: var(--bg); }
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Nav */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  animation: navSlide 0.25s var(--ease);
}
@keyframes navSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.nav.open { display: block; }
.nav a {
  display: block;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s;
}
.nav a:hover, .nav a.on { color: var(--accent); background: rgba(0,113,227,0.04); }
.nav a.on { font-weight: 600; }

/* ============================================
   HERO / FEATURED
   ============================================ */
.hero {
  padding: 24px 0 0;
}
.hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease);
}
.hero-card:hover { box-shadow: var(--shadow-md); }
.hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-card:hover .hero-img img { transform: scale(1.03); }
.hero-body { padding: 20px; }
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-red { background: var(--red); color: white; }
.badge-brand { background: var(--brand); color: white; }
.badge-outline { background: rgba(0,113,227,0.08); color: var(--accent); }
.hero-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 10px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.hero-body h2 a { transition: color 0.2s; }
.hero-body h2 a:hover { color: var(--accent); }
.hero-body .excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.55;
}
.hero-body .meta {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 12px;
  font-weight: 500;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 36px 0 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.section-head .see-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.section-head .see-all:hover { opacity: 0.7; }

/* ============================================
   NEWS CARDS — Clean card style
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 12px;
}
.card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
  transform: translateY(-1px);
}
.card .thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.card .badge-sm {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.card h3 a:hover { color: var(--accent); }
.card .meta {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: 6px;
  font-weight: 500;
}

/* Big card for section pages */
.card-lg {
  display: block;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  margin-bottom: 12px;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
}
.card-lg:hover { box-shadow: var(--shadow-md); border-color: var(--border); transform: translateY(-1px); }
.card-lg .img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 14px;
}
.card-lg .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card-lg:hover .img-wrap img { transform: scale(1.03); }
.card-lg h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}
.card-lg h3 a:hover { color: var(--accent); }
.card-lg .excerpt { font-size: 0.88rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.card-lg .meta { font-size: 0.7rem; color: var(--text-tertiary); margin-top: 8px; font-weight: 500; }

/* ============================================
   ARTICLE PAGE
   ============================================ */
.article-page { background: var(--white); }
.article-header { padding: 28px 0 20px; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 12px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  max-width: 700px;
}
.article-header .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.5;
  max-width: 660px;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-weight: 500;
}
.article-meta strong { color: var(--text-primary); }

.article-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 24px 0;
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-img figcaption {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 8px;
  font-style: italic;
}

.article-body {
  padding: 16px 0 48px;
  max-width: 660px;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 22px;
  color: var(--text-primary);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 36px 0 14px;
  color: var(--brand);
  font-weight: 600;
}
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: rgba(0,113,227,0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  line-height: 1.7;
}

/* Share buttons */
.share {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 28px;
}
.share-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btns a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 100px;
  color: var(--white);
  transition: all 0.2s var(--ease);
}
.share-btns a:hover { transform: scale(1.03); }
.share-btns .fb { background: var(--fb-blue); }
.share-btns .wa { background: var(--green-wa); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about { padding: 32px 0 52px; }
.about h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.about h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}
.about p { font-size: 0.95rem; line-height: 1.75; color: var(--text-secondary); margin-bottom: 14px; max-width: 660px; }
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  max-width: 660px;
  box-shadow: var(--shadow-xs);
}
.value-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.value-card p { margin-bottom: 0; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.contact-row svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }

/* Contact form */
.form-box { max-width: 520px; margin-top: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  transition: all 0.2s var(--ease);
  -webkit-appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-submit:hover { background: var(--brand-light); transform: scale(1.02); }

/* ============================================
   BACK TO TOP
   ============================================ */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s var(--ease);
  z-index: 80;
}
.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:active { transform: scale(0.92); }

/* ============================================
   FOOTER — Clean minimal
   ============================================ */
.footer {
  background: var(--brand);
  color: var(--white);
  padding: 40px 0 24px;
  margin-top: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.95;
}
.footer p, .footer a {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.65;
}
.footer a:hover { opacity: 1; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom {
  text-align: center;
  font-size: 0.68rem;
  opacity: 0.4;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .news-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  .card .thumb { width: 100%; height: 160px; border-radius: 0; }
  .card .info { padding: 14px; }
}
@media (min-width: 900px) {
  .wrap { padding: 0 32px; }
  .menu-btn { display: none; }
  .nav {
    display: flex !important;
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    animation: none;
  }
  .nav ul { display: flex; flex-direction: row; gap: 2px; }
  .nav a {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 100px;
  }
  .nav a:hover { background: rgba(0,0,0,0.04); }
  .nav a.on { background: rgba(0,113,227,0.08); color: var(--accent); }
  .logo-text h1 { font-size: 1.4rem; }
  .logo img { width: 40px; height: 40px; }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
  }
  .hero-body h2 { font-size: 1.75rem; }
  .news-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .article-header h1 { font-size: 2.2rem; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.card { animation: fadeIn 0.4s var(--ease) both; }
.card:nth-child(2) { animation-delay: 40ms; }
.card:nth-child(3) { animation-delay: 80ms; }
.card:nth-child(4) { animation-delay: 120ms; }
.card:nth-child(5) { animation-delay: 160ms; }
.card:nth-child(6) { animation-delay: 200ms; }
.hero-card { animation: fadeIn 0.5s var(--ease) both; }
.card-lg { animation: fadeIn 0.4s var(--ease) both; }

@media print {
  .header, .top-bar, .footer, .menu-btn, .share, .to-top { display: none; }
  body { background: white; }
}
