/*
Theme Name: Ligacao Judaica
Theme URI: https://ligacaojudaica.com
Author: Ligacao Judaica por Portugal
Description: תבנית מותאמת לעמותת Ligação Judaica por Portugal
Version: 1.0.0
Text Domain: ligacao-judaica
*/

/* ===== VARIABLES ===== */
:root {
  --color-navy: #1a2744;
  --color-navy-dark: #0f1a30;
  --color-gold: #c9922a;
  --color-gold-light: #e4b55a;
  --color-terracotta: #c1632a;
  --color-parchment: #f5f0e8;
  --color-ivory: #faf8f3;
  --color-brown-dark: #3d2b1f;
  --color-brown: #6b4c3b;
  --color-text: #2c2c2c;
  --font-serif: 'Playfair Display', 'David Libre', Georgia, serif;
  --font-body: 'Assistant', 'Open Sans', Arial, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.2);
  --radius: 12px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-ivory);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-terracotta); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 16px;
}
.section-divider {
  width: 80px; height: 3px;
  background: var(--color-gold);
  margin: 0 auto 48px;
  border-radius: 2px;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--color-gold);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover {
  background: #fff;
  color: var(--color-navy);
}

/* ===== HEADER / NAV ===== */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--color-navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}
.site-logo:hover { color: var(--color-gold); }
.site-logo img { max-width: 48px; max-height: 48px; width: auto; height: auto; }
.site-logo-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-gold);
  flex-shrink: 0;
}
.site-logo-star svg { width: 100%; height: 100%; display: block; }
.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.site-logo-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}
.site-logo-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-gold-light);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}
#main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}
#main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
#main-nav a:hover, #main-nav a.active {
  color: var(--color-gold);
  background: rgba(255,255,255,0.08);
}
.nav-join {
  background: var(--color-gold) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
}
.nav-join:hover {
  background: var(--color-terracotta) !important;
}
/* ===== LANGUAGE SWITCHER (DROPDOWN) ===== */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-body);
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.lang-current:hover,
.lang-switcher.open .lang-current {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: rgba(201,146,42,0.12);
}
.lang-current .lang-globe { font-size: 0.9rem; }
.lang-current .lang-caret {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.lang-switcher.open .lang-current .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  background: var(--color-navy-dark);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  min-width: 160px;
  list-style: none;
  padding: 6px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropdown li,
.lang-dropdown .lang-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.lang-dropdown li a,
.lang-dropdown .lang-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.lang-dropdown li a:hover,
.lang-dropdown .lang-item a:hover,
.lang-dropdown li.current-lang a {
  color: var(--color-gold);
  background: rgba(255,255,255,0.06);
}
.lang-dropdown li img,
.lang-dropdown .lang-item img {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.lang-dropdown li span,
.lang-dropdown .lang-item span {
  margin-right: 0 !important;
  margin-inline-start: 0 !important;
}

@media (max-width: 768px) {
  .lang-switcher { order: 2; margin-inline-start: auto; margin-inline-end: 8px; }
  .lang-dropdown { inset-inline-start: auto; inset-inline-end: 0; }
}

/* Admin bar offset for fixed header */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: var(--transition);
}
.hamburger:hover, .hamburger:focus-visible { background: rgba(255,255,255,0.08); }
.hamburger span {
  width: 24px; height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO SECTION ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,26,48,0.7) 0%, rgba(15,26,48,0.5) 50%, rgba(15,26,48,0.8) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  padding: 0 20px;
}
.hero-star {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-gold);
  opacity: 0.95;
}
.hero-star .lj-star { width: 70px; height: 70px; }
.lj-star { display: inline-block; color: var(--color-gold); }
.lj-star svg { display: block; width: 100%; height: 100%; }
.hero-subtitle-loc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  font-style: normal;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-gold-light);
  font-style: italic;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-image-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-brown-dark) 100%);
  z-index: 0;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: var(--color-navy);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.about-strip p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.9;
  opacity: 0.9;
}

/* ===== CATEGORY CARDS ===== */
.cards-section { background: var(--color-parchment); }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.card:hover .card-bg { transform: scale(1.05); }
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 100%);
  color: #fff;
}
.card-overlay.navy { background: linear-gradient(to top, rgba(26,39,68,0.88) 0%, rgba(26,39,68,0.4) 100%); }
.card-overlay.terracotta { background: linear-gradient(to top, rgba(193,99,42,0.88) 0%, rgba(193,99,42,0.4) 100%); }
.card-overlay.brown { background: linear-gradient(to top, rgba(61,43,31,0.88) 0%, rgba(61,43,31,0.4) 100%); }
.card-overlay.gold { background: linear-gradient(to top, rgba(201,146,42,0.88) 0%, rgba(201,146,42,0.4) 100%); }
.card-icon { font-size: 2rem; margin-bottom: 8px; }
.card-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }

/* ===== TIMELINE ===== */
.timeline-section { background: var(--color-navy); color: #fff; }
.timeline-section .section-title { color: #fff; }
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--color-gold);
  transform: translateX(50%);
}
.timeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
  align-items: flex-start;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-date {
  flex: 1;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 700;
  padding-top: 4px;
}
.timeline-item:nth-child(odd) .timeline-date { text-align: right; }
.timeline-dot {
  width: 16px; height: 16px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.timeline-content { flex: 1; }
.timeline-content h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-gold-light);
}
.timeline-content p { opacity: 0.85; font-size: 0.95rem; }

/* ===== PHOTO GALLERY ===== */
.gallery-section { background: var(--color-parchment); }
.gallery-track-wrap { overflow: hidden; }
.gallery-track {
  display: flex;
  gap: 20px;
  animation: scrollGallery 30s linear infinite;
  width: max-content;
}
.gallery-track:hover { animation-play-state: paused; }
.gallery-item {
  width: 320px; height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  background: var(--color-navy);
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-brown) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold);
  font-size: 2rem;
}
@keyframes scrollGallery {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== MEMBERSHIP FORM ===== */
.membership-section { background: var(--color-ivory); }
.form-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}
.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0d8cc;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--color-ivory);
  direction: rtl;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-area {
  border: 2px dashed var(--color-gold);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--color-parchment);
}
.upload-area:hover { background: rgba(201,146,42,0.08); }
.upload-icon { font-size: 2.5rem; color: var(--color-gold); margin-bottom: 8px; }
.children-section { margin-top: 24px; }
.child-item {
  background: var(--color-parchment);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e0d8cc;
}

/* ===== DONATIONS ===== */
.donations-section { background: var(--color-parchment); }
.donation-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.donation-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.donation-card:hover, .donation-card.active {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.donation-icon { font-size: 2.5rem; margin-bottom: 16px; }
.donation-card h3 { font-family: var(--font-serif); color: var(--color-navy); margin-bottom: 8px; }
.donation-card p { font-size: 0.9rem; color: #666; }
.amount-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.amount-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--color-gold);
  background: transparent;
  color: var(--color-gold);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.amount-btn:hover, .amount-btn.active {
  background: var(--color-gold);
  color: #fff;
}
.paypal-btn {
  background: #0070ba;
  color: #fff;
  border-radius: 50px;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.paypal-btn:hover { background: #003d7a; transform: translateY(-2px); }

/* ===== CERTIFICATE ===== */
.certificate {
  background: linear-gradient(135deg, var(--color-parchment) 0%, #ede8dc 100%);
  border: 3px solid var(--color-gold);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.certificate::before {
  content: '✡';
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 80px;
  color: var(--color-gold);
  opacity: 0.08;
}
.certificate-title { font-family: var(--font-serif); font-size: 1.8rem; color: var(--color-navy); margin-bottom: 8px; }
.certificate-subtitle { color: var(--color-gold); font-style: italic; margin-bottom: 32px; }
.certificate-name { font-family: var(--font-serif); font-size: 2rem; color: var(--color-brown-dark); margin: 16px 0; }
.certificate-text { line-height: 1.9; color: #444; margin-bottom: 24px; }
.certificate-seal {
  width: 80px; height: 80px;
  background: var(--color-gold);
  border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  color: #fff;
}

/* ===== FOOTER ===== */
#site-footer {
  background: var(--color-brown-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.95rem; line-height: 1.8; margin-top: 12px; opacity: 0.8; }
.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--color-gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--color-gold); }
.footer-contact p { font-size: 0.95rem; margin-bottom: 10px; opacity: 0.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donation-types { grid-template-columns: 1fr 1fr; }
  #main-nav ul { gap: 0; }
  #main-nav a { padding: 8px 10px; font-size: 0.85rem; }
}
@media (max-width: 900px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .site-logo-name { font-size: 1rem; }
  .site-logo-sub { font-size: 0.65rem; }
  .site-logo-star { width: 34px; height: 34px; }
  #main-nav { display: none; position: fixed; inset: 72px 0 0 0; background: var(--color-navy); padding: 32px 24px; z-index: 999; overflow-y: auto; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 8px; align-items: stretch; }
  #main-nav a { padding: 14px 18px; font-size: 1rem; border-radius: 8px; display: block; }
  .hamburger { display: inline-flex; }
  .lang-switcher { margin-inline-start: auto; }
}
.admin-bar #main-nav { inset: 104px 0 0 0; }
@media screen and (max-width: 782px) { .admin-bar #main-nav { inset: 118px 0 0 0; } }

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .donation-types { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-desc { font-size: 0.95rem; }
  .gallery-item { width: 240px; height: 170px; }
  .page-article { padding: 40px 20px 60px; }
  .page-title { font-size: clamp(1.6rem, 6vw, 2.3rem); }
}

/* === PAGE CONTENT (page.php / single.php) === */
.page-main {
  padding-top: 72px;
  min-height: 60vh;
  background: var(--color-ivory);
}
.page-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  box-sizing: border-box;
}
.page-header { text-align: center; margin-bottom: 48px; }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--color-navy);
  margin: 0 0 16px;
  line-height: 1.2;
}
.page-content {
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--color-text);
}
.page-content h2 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-gold);
  display: inline-block;
}
.page-content h3 {
  font-family: var(--font-serif);
  color: var(--color-brown-dark);
  font-size: 1.25rem;
  margin: 28px 0 12px;
}
.page-content p { margin: 0 0 18px; }
.page-content ul, .page-content ol { margin: 0 0 20px; padding-inline-start: 24px; }
.page-content ul li, .page-content ol li { margin-bottom: 8px; line-height: 1.8; }
.page-content ul ul, .page-content ol ul { margin-top: 8px; }
.page-content .page-intro { background: var(--color-parchment); padding: 24px 28px; border-inline-start: 4px solid var(--color-gold); border-radius: 10px; margin-bottom: 36px; }
.page-content .page-intro .lead { font-size: 1.15rem; font-weight: 500; color: var(--color-brown-dark); margin: 0; line-height: 1.7; }
.page-content a { color: var(--color-gold); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--color-terracotta); }
.page-content em { color: var(--color-brown); font-style: italic; }
.page-content strong { color: var(--color-navy); }

/* === POSTS ARCHIVE === */
.archive-main { padding: 72px 0 80px; background: var(--color-parchment); }
.archive-container { padding: 48px 24px; }
.archive-description { max-width: 700px; margin: 0 auto 20px; text-align: center; color: var(--color-brown); font-size: 1.05rem; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.post-card-thumb {
  aspect-ratio: 16 / 10;
  background: var(--color-navy);
  overflow: hidden;
  position: relative;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-brown) 100%); }
.post-card-thumb-fallback svg { width: 64px; height: 64px; opacity: 0.8; }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-date { font-size: 0.8rem; color: var(--color-gold); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.post-card-title { font-family: var(--font-serif); color: var(--color-navy); font-size: 1.25rem; line-height: 1.3; margin: 0; }
.post-card-excerpt { color: var(--color-text); font-size: 0.95rem; line-height: 1.7; opacity: 0.85; flex: 1; }
.post-card-excerpt p { margin: 0; }
.post-card-more { color: var(--color-gold); font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
.post-card-link:hover .post-card-more { color: var(--color-terracotta); }

.post-header { text-align: center; margin-bottom: 40px; }
.post-meta { color: var(--color-brown); font-size: 0.9rem; }
.post-meta .post-cat a { color: var(--color-gold); }
.post-thumb { max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-thumb img { width: 100%; height: auto; display: block; }
.post-content { /* inherits page-content */ }
.pagination-wrap { display: flex; justify-content: center; margin-top: 48px; }
.pagination-wrap .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination-wrap .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--color-navy); font-weight: 600; text-decoration: none; border: 1px solid #e0d8cc; }
.pagination-wrap .page-numbers.current, .pagination-wrap .page-numbers:hover { background: var(--color-gold); color: #fff; border-color: var(--color-gold); }
.no-posts { text-align: center; color: var(--color-brown); font-size: 1.1rem; padding: 60px 0; }

/* === TIMELINE MOBILE === */
@media (max-width: 768px) {
  .timeline { max-width: 100%; padding: 0; margin: 0; position: relative; }
  .timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    inset-inline-start: 16px;
    inset-inline-end: auto;
    right: auto; left: auto;
    width: 2px;
    background: var(--color-gold);
    transform: none;
    opacity: 0.6;
  }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    display: block;
    position: relative;
    flex-direction: initial;
    gap: 0;
    margin-bottom: 36px;
    padding: 0;
    padding-inline-start: 44px;
  }
  .timeline-item .timeline-dot,
  .timeline-item:nth-child(odd) .timeline-dot {
    position: absolute;
    inset-inline-start: 9px;
    top: 8px;
    margin: 0;
    width: 16px;
    height: 16px;
    border: 3px solid var(--color-navy);
    box-shadow: 0 0 0 2px var(--color-gold);
    background: var(--color-gold);
    z-index: 2;
  }
  .timeline-item .timeline-date,
  .timeline-item:nth-child(odd) .timeline-date {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-gold);
    text-align: start;
    padding: 0;
    margin: 0 0 6px;
    line-height: 1.2;
    width: auto;
    flex: none;
  }
  .timeline-item .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .timeline-content h3 {
    font-size: 1.05rem;
    color: var(--color-gold-light);
    margin-bottom: 8px;
    line-height: 1.3;
  }
  .timeline-content p {
    font-size: 0.92rem;
    line-height: 1.7;
    opacity: 0.88;
    margin: 0;
  }
}

/* === CTA SECTION === */
.cta-section { background: var(--color-navy); text-align: center; color: #fff; }
.cta-section .section-title { color: #fff; }
.cta-star { display: flex; justify-content: center; margin-bottom: 16px; color: var(--color-gold); }
.cta-star .lj-star { width: 56px; height: 56px; }
.cta-desc { max-width: 600px; margin: 0 auto 40px; opacity: 0.88; font-size: 1.05rem; line-height: 1.8; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === FOOTER LOGO === */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo-star { display: inline-flex; width: 36px; height: 36px; color: var(--color-gold); flex-shrink: 0; }
.footer-logo-star svg { width: 100%; height: 100%; display: block; }
.footer-logo-text { display: flex; flex-direction: column; gap: 2px; }
.footer-logo-name { font-family: var(--font-serif); color: var(--color-gold); font-size: 1.15rem; font-weight: 700; }
.footer-logo-sub { font-family: var(--font-body); font-size: 0.72rem; color: rgba(255,255,255,0.65); font-style: italic; }
.footer-brand-tag { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 4px 0; line-height: 1.6; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: var(--color-gold); }

/* === RTL / LTR ADJUSTMENTS === */
html[lang^="en"] body, html[lang^="pt"] body { direction: ltr; text-align: left; }
html[lang^="en"] .form-group input,
html[lang^="en"] .form-group select,
html[lang^="en"] .form-group textarea,
html[lang^="pt"] .form-group input,
html[lang^="pt"] .form-group select,
html[lang^="pt"] .form-group textarea { direction: ltr; }


/* === HEADER CART ICON === */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: rgba(255,255,255,0.9);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.header-cart:hover { color: var(--color-gold); border-color: var(--color-gold); background: rgba(201,146,42,0.12); }
.header-cart-icon { width: 20px; height: 20px; display: block; }
.header-cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--color-gold);
  color: #fff;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Grid layout on large footers */
@media (min-width: 1025px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
