/* ===== ALPD — Design system ===== */
:root {
  --green: #1a6b3c;
  --green2: #228b52;
  --gold: #c8952a;
  --gold2: #e4aa38;
  --cream: #faf7f2;
  --dark: #0f1f14;
  --grey: #5a6660;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 31, 20, 0.10);
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; color: var(--grey); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.kicker.center { display: block; text-align: center; }
.lead { font-size: 1.1rem; color: var(--dark); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(15,31,20,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-mark {
  font-weight: 800; font-size: 1.5rem; color: var(--green);
  letter-spacing: 0.5px;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-weight: 600; color: var(--dark); font-size: 0.95rem; position: relative; padding: 6px 0; }
.nav-link.active, .nav-link:hover { color: var(--green); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold);
}
.lang-switch {
  border: 1.5px solid var(--green); color: var(--green); font-weight: 700;
  font-size: 0.82rem; padding: 5px 11px; border-radius: 20px;
}
.lang-switch:hover { background: var(--green); color: var(--white); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--dark);
}
.icon-menu {
  display: block; width: 24px; height: 24px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18M3 12h18M3 18h18" stroke="black" stroke-width="2" fill="none"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18M3 12h18M3 18h18" stroke="black" stroke-width="2" fill="none"/></svg>') center / contain no-repeat;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 20px 24px; transform: translateX(100%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav .nav-link { width: 100%; padding: 14px 0; border-bottom: 1px solid #eee; }
  .lang-switch { margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
  background-size: cover; background-position: center;
  color: var(--white); padding: 120px 0 90px;
  min-height: 70vh; display: flex; align-items: center;
}
.hero-inner { max-width: 680px; }
.hero h1 { color: var(--white); }
.hero-subtitle { color: #e9efe9; font-size: 1.1rem; margin-bottom: 26px; }
.hero-subtitle-dark { color: var(--grey); max-width: 640px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem; transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold2); color: var(--dark); }
.btn-green { background: var(--green); color: var(--white); border: none; cursor: pointer; }
.btn-light { background: var(--white); color: var(--green); }

/* ===== Stats ===== */
.stats-bar { background: var(--dark); padding: 36px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.stat-number { color: var(--gold2); font-size: 1.9rem; font-weight: 800; }
.stat-label { color: #cfd9d3; font-size: 0.85rem; margin-top: 4px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark p { color: #c9d3cc; }
h2.light { color: var(--white); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.col-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .col-img img { height: 240px; order: -1; }
}

.link-arrow { font-weight: 700; color: var(--green); }
.link-arrow:hover { color: var(--gold); }

/* ===== Sector cards ===== */
.sector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px;
}
.sector-grid-lg { margin-top: 0; }
.sector-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); border: 1px solid #eee;
  transition: transform .2s ease;
}
.sector-card:hover { transform: translateY(-4px); }
.sector-icon {
  width: 50px; height: 50px; border-radius: 12px; background: rgba(26,107,60,0.1);
  color: var(--green); padding: 11px; margin-bottom: 14px;
}
.sector-icon svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }

/* ===== Values ===== */
.values-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 30px;
}
.value-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 18px;
  border: 1px solid #eee; text-align: center;
}
.value-card h3 { color: var(--green); font-size: 1.02rem; }
.value-card p { font-size: 0.88rem; }
@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }

/* ===== Partner strip (home) ===== */
.partner-strip {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px;
}
.partner-chip {
  background: var(--cream); border: 1px solid #e8e1d2; border-radius: 30px;
  padding: 10px 20px; font-weight: 700; font-size: 0.88rem; color: var(--dark);
}

/* ===== Partner table (page) ===== */
.partner-table { display: flex; flex-direction: column; gap: 10px; }
.partner-row {
  display: grid; grid-template-columns: 1.2fr 0.9fr 2fr; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius); background: var(--cream);
  align-items: center;
}
.partner-name { font-weight: 800; color: var(--green); }
.partner-period { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.partner-domain { color: var(--grey); font-size: 0.92rem; }
@media (max-width: 760px) {
  .partner-row { grid-template-columns: 1fr; gap: 4px; }
}
.note-box {
  margin-top: 28px; padding: 18px 22px; background: rgba(200,149,42,0.1);
  border-left: 4px solid var(--gold); border-radius: 8px; color: var(--dark); font-size: 0.95rem;
}

/* ===== Press cards ===== */
.press-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 30px;
}
.press-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid #eee; display: flex; flex-direction: column;
}
.press-card-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.press-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-card-body { padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.press-source {
  text-transform: uppercase; letter-spacing: .04em; font-size: 0.75rem; font-weight: 800;
  color: var(--gold);
}
.press-card h3 { font-size: 1.05rem; color: var(--dark); margin: 0; }
.press-card p { font-size: 0.92rem; color: var(--grey); margin: 0; }
.press-link { font-weight: 700; color: var(--green); font-size: 0.9rem; margin-top: 4px; }
.press-link:hover { color: var(--gold); }
@media (max-width: 760px) { .press-grid { grid-template-columns: 1fr; } }

/* ===== Timeline ===== */
.timeline { margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.timeline-year { color: var(--gold2); font-weight: 800; font-size: 1.05rem; }
.timeline-text { color: #dbe5de; }
@media (max-width: 560px) { .timeline-item { grid-template-columns: 80px 1fr; } }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.gallery-item {
  position: relative; border: none; padding: 0; cursor: pointer; border-radius: 10px;
  overflow: hidden; aspect-ratio: 4/3; background: #eee;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff; font-size: 0.78rem; text-align: left; opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(10,16,12,0.94);
  z-index: 1000; align-items: center; justify-content: center; flex-direction: column;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; border-radius: 8px; }
.lightbox p { color: #eee; margin-top: 14px; text-align: center; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px; background: none; border: none;
  color: #fff; width: 34px; height: 34px; cursor: pointer;
}

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--green), var(--green2)); padding: 60px 0; }
.cta-band-inner { text-align: center; color: var(--white); }
.cta-band-inner h2 { color: var(--white); }
.cta-band-inner p { color: #e3efe5; max-width: 560px; margin: 0 auto 24px; }

/* ===== Page hero (sub-pages) ===== */
.page-hero { padding: 110px 0 50px; background: var(--cream); }

/* ===== Contact ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-weight: 700; font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 8px;
  border: 1.5px solid #ddd; font-weight: 400; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.contact-info { display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.contact-info-item { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.contact-info-item svg { width: 26px; height: 26px; color: var(--green); flex-shrink: 0; }
.alert-success {
  background: rgba(26,107,60,0.1); border-left: 4px solid var(--green); padding: 14px 18px;
  border-radius: 8px; margin-bottom: 18px; color: var(--green); font-weight: 600;
}

/* ===== Footer ===== */
.site-footer { background: var(--dark); color: #cfd9d3; padding: 50px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-brand p { color: #a9b6ae; max-width: 260px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: var(--gold2); }
.footer-contact p { margin: 0 0 6px; color: #a9b6ae; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; font-size: 0.8rem; color: #7e8c83; text-align: center; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===== Admin (shared minimal styling, see admin.css overrides) ===== */
.skip-link { position: absolute; left: -999px; }
