html { scroll-behavior: smooth; }

:root {
  --bg:     #0c0c10;
  --bg2:    #15151c;
  --bg3:    #1c1c26;
  --orange: #FF6B00;
  --gold:   #C8A84B;
  --white:  #FFFFFF;
  --text:   #DDDCE8;
  --muted:  #6A697A;
  --border: rgba(255,255,255,0.07);
  --ob:     rgba(255,107,0,0.22);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Raleway',sans-serif; background:var(--bg); color:var(--text); overflow-x:hidden; }
:focus-visible { outline:2px solid var(--orange); outline-offset:2px; }
#about, #achievements, #events, #gallery, #contact { scroll-margin-top:6rem; }

/* ── NAV (transparent → opaque on scroll) ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:999;
  padding:1rem 3rem;
  display:flex; align-items:center; justify-content:space-between;
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background .3s, border-color .3s;
}
#navbar.scrolled { background:rgba(12,12,16,0.97); border-bottom-color:var(--border); }
.nav-logo { display:flex; align-items:center; gap:.65rem; text-decoration:none; }
.nav-name { font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--white); }
.nav-name span { color:var(--orange); font-style:italic; }
.nav-links { display:flex; gap:2.5rem; list-style:none; }

.nav-links a {
  color:rgba(255,255,255,0.65); text-decoration:none;
  font-size:.76rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  position:relative; transition:color .2s;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0;
  width:0; height:1px; background:var(--orange); transition:width .3s;
}
.nav-links a:hover { color:var(--white); }
.nav-links a:hover::after { width:100%; }

/* ── HAMBURGER ── */
.hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; cursor:pointer; z-index:1000;
  padding:4px;
}
.hamburger span {
  display:block; width:24px; height:2px;
  background:var(--white); border-radius:1px;
  transition:transform .3s, opacity .3s;
}
.menu-open .hamburger span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.menu-open .hamburger span:nth-child(2) { opacity:0; }
.menu-open .hamburger span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position:fixed; inset:0; z-index:997;
  background:rgba(12,12,16,0.98);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2.5rem;
  opacity:0; pointer-events:none;
  transition:opacity .35s ease;
}
.menu-open .mobile-menu { opacity:1; pointer-events:auto; }
.mobile-menu a {
  color:rgba(255,255,255,0.65); text-decoration:none;
  font-size:1.05rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  transition:color .2s;
}
.mobile-menu a:hover { color:var(--white); }

/* ── HERO / PAGE HERO (sub-pages) ── */
.page-hero, .article-hero {
  padding:10rem 2rem 4rem;
  background:linear-gradient(135deg,var(--bg),var(--bg2));
  border-bottom:1px solid var(--border);
  text-align:center;
}
.page-hero .eyebrow, .article-hero .eyebrow { display:flex; align-items:center; gap:.8rem; margin-bottom:.7rem; justify-content:center; }
.page-hero .eyebrow::before, .article-hero .eyebrow::before { content:''; width:26px; height:1px; background:var(--orange); flex-shrink:0; }
.page-hero .ey-txt, .article-hero .ey-txt { font-size:.67rem; font-weight:700; letter-spacing:.32em; text-transform:uppercase; color:var(--orange); }
.page-hero h1, .article-hero h1 { font-family:'Playfair Display',serif; font-size:clamp(2.4rem,5vw,3.8rem); font-weight:800; line-height:1.05; color:var(--white); margin-top:.5rem; }
.page-hero h1 em, .article-hero h1 em { color:var(--orange); font-style:italic; }
.page-hero .hero-sub, .article-hero .hero-sub { font-size:.85rem; color:var(--muted); font-weight:300; margin-top:1rem; max-width:500px; margin-left:auto; margin-right:auto; }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { transform:translateY(-14px); } to { transform:translateY(0); } }
@keyframes fadeUp { from { transform:translateY(24px); } to { transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes sBlink { 0%,100%{opacity:.9} 50%{opacity:.15} }

.fonts-ready .page-hero .eyebrow,
.fonts-ready .article-hero .eyebrow { animation:fadeDown .7s ease both; }
.fonts-ready .page-hero h1,
.fonts-ready .article-hero h1 { animation:fadeUp .9s ease .15s both; }
.fonts-ready .page-hero .hero-sub,
.fonts-ready .article-hero .hero-sub { animation:fadeUp .9s ease .3s both; }

/* ── SHARED ── */
.section { padding:7rem 2rem; }
.wrap    { max-width:1140px; margin:0 auto; }
.content-wrap { max-width:1140px; margin:0 auto; padding:4rem 2rem 6rem; }
.eyebrow { display:flex; align-items:center; gap:.8rem; margin-bottom:.7rem; }
.eyebrow::before { content:''; width:26px; height:1px; background:var(--orange); flex-shrink:0; }
.ey-txt  { font-size:.67rem; font-weight:700; letter-spacing:.32em; text-transform:uppercase; color:var(--orange); }
.s-head  { font-family:'Playfair Display',serif; font-size:clamp(2.4rem,5vw,3.8rem); font-weight:800; line-height:1.05; color:var(--white); }
.s-head em { color:var(--orange); font-style:italic; }
.desc { font-size:1rem; font-weight:300; line-height:1.9; color:var(--muted); margin-bottom:1.25rem; }
.desc:last-child { margin-bottom:0; }

.reveal  { opacity:0; transform:translateY(26px); transition:opacity .75s ease,transform .75s ease; }
.reveal.on { opacity:1; transform:translateY(0); }
.d1 { transition-delay:.12s; } .d2 { transition-delay:.24s; } .d3 { transition-delay:.36s; }

/* ── SHARED CARDS (underline hover effect) ── */
.card {
  background:var(--bg2); border:1px solid var(--border);
  position:relative; overflow:hidden;
  padding:1.6rem;
  transition:border-color .3s, transform .3s;
}
.card:hover { transform:translateY(-4px); border-color:var(--ob); }
.card::after {
  content:''; position:absolute; bottom:0; left:0;
  width:0; height:2px;
  background:linear-gradient(90deg,var(--orange),var(--gold));
  transition:width .4s ease;
}
.card:hover::after { width:100%; }

/* ── SHARED 2-COLUMN GRID ── */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; margin-top:3rem; }

/* ── ARTICLE BODY (articles + privacy page) ── */
.article-body {
  max-width:760px; margin:0 auto; padding:4rem 2rem 6rem;
}
.article-body p {
  font-size:1rem; font-weight:300; line-height:1.9; color:var(--muted); margin-bottom:1.25rem;
}
.article-body p strong { color:var(--text); font-weight:600; }
.article-body h2 {
  font-family:'Playfair Display',serif; font-size:1.5rem; font-weight:700; color:var(--white); margin-top:2.5rem; margin-bottom:.8rem;
}
.article-body h3 {
  font-family:'Playfair Display',serif; font-size:1.15rem; font-weight:700; color:var(--white); margin-top:2rem; margin-bottom:.5rem;
}
.article-body ul {
  list-style:none; padding:0; margin:0 0 1.25rem 0;
}
.article-body ul li {
  font-size:1rem; font-weight:300; line-height:1.9; color:var(--muted);
  padding-left:1.5rem; position:relative;
}
.article-body ul li::before {
  content:'\2014'; position:absolute; left:0; color:var(--orange);
}
.article-body a { color:var(--orange); text-decoration:none; }
.article-body a:hover { text-decoration:underline; }

/* ── HIGHLIGHT BOX (articles) ── */
.article-body .highlight-box {
  background:var(--bg2); border:1px solid var(--border); border-left:3px solid var(--orange);
  padding:1.5rem 2rem; margin:1.5rem 0; border-radius:0 4px 4px 0;
}
.article-body .highlight-box p { margin-bottom:0; }
.highlight-gold { border-left-color:var(--gold) !important; }

/* ── GALLERY ITEM BASE (shared by index and galeria page) ── */
.gi { position:relative; overflow:hidden; cursor:pointer; }
.gi-img { width:100%; padding-bottom:68%; position:relative; overflow:hidden; }
.gi-fill {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center; flex-direction:column; gap:.55rem;
  transition:transform .45s ease;
}
.gi:hover .gi-fill { transform:scale(1.05); }
.gi-ico { font-size:1.8rem; opacity:.25; }
.gi-lbl { font-size:.62rem; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.12); font-weight:600; }
.gi-ov {
  position:absolute; inset:0;
  background:linear-gradient(to top,rgba(255,107,0,.75) 0%,transparent 55%);
  opacity:0; transition:opacity .32s;
  display:flex; align-items:flex-end; padding:.85rem 1rem;
}
.gi:hover .gi-ov { opacity:1; }
.gi-cap { font-size:.72rem; font-weight:700; letter-spacing:.08em; color:white; }

.gg { display:grid; grid-template-columns:repeat(12,1fr); gap:10px; }

/* ── BACK LINK ── */
.back-link {
  display:inline-flex; align-items:center; gap:.5rem; margin-top:2rem;
  color:var(--orange); text-decoration:none; font-size:.8rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  transition:opacity .2s;
}
.back-link:hover { opacity:.7; }

/* ── RELATED ARTICLES ── */
.related { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--border); }
.related h3 { font-family:'Playfair Display',serif; font-size:1.1rem; color:var(--white); margin-bottom:.8rem; }
.related a { display:block; color:var(--orange); text-decoration:none; font-size:.9rem; font-weight:600; margin-bottom:.4rem; transition:opacity .2s; }
.related a:hover { opacity:.7; }

/* ── TIMELINE (o-nas page) ── */
.tl-wrap { max-width:800px; margin:0 auto; padding:4rem 2rem 6rem; }
.tl { position:relative; }
.tl::before {
  content:''; position:absolute; left:10px; top:0; bottom:0;
  width:2px; background:linear-gradient(180deg,var(--orange),var(--gold),transparent);
}
.tl-item { position:relative; padding-left:3rem; padding-bottom:2.5rem; }
.tl-item:last-child { padding-bottom:0; }
.tl-dot {
  position:absolute; left:-2px; top:4px;
  width:24px; height:24px; border-radius:50%;
  background:var(--bg); border:2px solid var(--orange);
  display:flex; align-items:center; justify-content:center;
}
.tl-dot::after {
  content:''; width:10px; height:10px; border-radius:50%;
  background:var(--orange);
}
.tl-year {
  display:inline-block;
  font-family:'Playfair Display',serif; font-size:.85rem; font-weight:700;
  color:var(--gold); letter-spacing:.15em; text-transform:uppercase;
  margin-bottom:.25rem;
}
.tl-title {
  font-family:'Playfair Display',serif; font-size:1.2rem;
  color:var(--white); font-weight:700; margin-bottom:.35rem;
}
.tl-desc {
  font-size:.88rem; color:var(--muted); line-height:1.75; font-weight:300;
}
.tl-tag {
  display:inline-block; font-size:.58rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  color:var(--orange); border:1px solid var(--ob); padding:.18rem .65rem; margin-top:.5rem;
  background:rgba(255,107,0,.05);
}
.tl-link {
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.7rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gold); text-decoration:none; margin-top:.6rem;
  transition:opacity .2s;
}
.tl-link:hover { opacity:.7; }

/* ── LIGHTBOX (galeria + homepage) ── */
.lb {
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.92); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s;
  cursor:pointer;
}
.lb.active { opacity:1; visibility:visible; }
.lb-inner {
  position:relative; max-width:90vw; max-height:90vh;
  display:flex; flex-direction:column; align-items:center;
  cursor:default;
}
.lb-img-wrap {
  position:relative; display:flex; align-items:center; justify-content:center;
  min-width:200px; min-height:120px;
}
.lb-img-wrap img {
  max-width:90vw; max-height:80vh; width:auto; height:auto;
  border-radius:6px; box-shadow:0 8px 40px rgba(0,0,0,.6);
  display:block;
}
.lb-placeholder {
  display:flex; flex-direction:column; align-items:center; gap:1.5rem;
  padding:4rem 3rem; border-radius:12px; min-width:280px;
  background:linear-gradient(145deg,#1a1a24,#262638);
}
.lb-placeholder .gi-ico { font-size:3.5rem; opacity:.35; }
.lb-placeholder .gi-lbl { font-size:.82rem; letter-spacing:.2em; text-transform:uppercase; color:rgba(255,255,255,.15); font-weight:600; }
.lb-placeholder-txt { font-size:.75rem; color:rgba(255,255,255,.2); font-style:italic; }
.lb-close {
  position:absolute; top:-44px; right:0;
  background:none; border:none; color:rgba(255,255,255,.5);
  font-size:1.6rem; cursor:pointer; padding:.25rem; line-height:1;
  transition:color .2s;
}
.lb-close:hover { color:#fff; }
.lb-cap {
  margin-top:1rem; font-size:.78rem; color:rgba(255,255,255,.5);
  letter-spacing:.06em; text-align:center; font-weight:500;
}
.lb-prev, .lb-next {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(255,255,255,.06); border:none;
  color:rgba(255,255,255,.4); font-size:1.8rem; cursor:pointer;
  padding:.6rem .45rem; line-height:1; border-radius:4px;
  transition:background .2s,color .2s;
}
.lb-prev:hover, .lb-next:hover { background:rgba(255,255,255,.12); color:#fff; }
.lb-prev { left:-60px; }
.lb-next { right:-60px; }

/* ── FOOTER ── */
footer { background:#08080b; border-top:1px solid var(--border); padding:2rem 3rem; }
.footer-inner { max-width:1140px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; }
.f-brand { font-family:'Playfair Display',serif; font-size:1rem; color:var(--white); }
.f-brand span { color:var(--orange); font-style:italic; }
.f-copy { font-size:.73rem; color:var(--muted); }


/* ── RESPONSIVE ── */
@media(max-width:780px) {
  .hamburger { display:flex; }
  .nav-links { display:none; }
  nav { padding:1rem 1.5rem; }
}
@media(max-width:560px) {
  .section { padding:5rem 1.25rem; }
  .page-hero { padding:8rem 1.25rem 3rem; }
  .article-hero { padding:8rem 1.25rem 3rem; }
  .article-body { padding:2rem 1.25rem 4rem; }
  .content-wrap { padding:2rem 1.25rem 4rem; }
  .tl-wrap { padding:2rem 1.25rem 4rem; }
  .gi { grid-column:span 12 !important; grid-row:span 1 !important; }
}
@media(max-width:600px) {
  .lb-prev { left:4px; }
  .lb-next { right:4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}
