/* ============================================
   YANCCE – Global styles (header, footer, nav)
   ============================================ */

:root {
  /* YANCCE logo theme: vibrant green, lighter green, medium blue */
  --color-primary: #4CAF50;
  --color-primary-light: #66BB6A;
  --color-primary-dark: #388E3C;
  --color-primary-darker: #1e4d21;
  --color-accent: #8BC34A;
  --color-blue: #2196F3;
  --color-bg: #fafafa;
  --color-bg-alt: #e8f5e9;
  --color-surface: #ffffff;
  --color-text: #1b2e1c;
  --color-text-muted: #4a5f4a;
  --color-border: rgba(76, 175, 80, 0.15);
  /* Dark hero (Climate Curve–style) */
  --hero-bg: #1a3d1c;
  --hero-text: #ffffff;
  --hero-text-muted: rgba(255, 255, 255, 0.85);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(76, 175, 80, 0.1);
  --shadow-hover: 0 12px 40px rgba(76, 175, 80, 0.15);
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 769px) {
  .logo-img {
    height: 40px;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-primary);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: var(--transition);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  word-break: keep-all;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.nav-list a.active {
  font-weight: 600;
}

/* ----- Footer ----- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

/* Climate Curve–style 4-column footer */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

.footer-brand {
  text-align: left;
}

.footer-brand-col {
  text-align: left;
}

.footer-nav h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-nav-list li {
  margin-bottom: 0.4rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-nav-list a:hover {
  text-decoration: underline;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
  color: #fff;
}

.footer-tagline {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
}

.footer-social {
  margin-top: 0.75rem;
}

.footer-social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}

.footer-social-list a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-social-list a:hover {
  text-decoration: underline;
}

.footer-contact h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-contact-list li {
  margin-bottom: 0.35rem;
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-contact-list a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.75;
  margin: 0;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand,
  .footer-brand-col,
  .footer-nav,
  .footer-contact,
  .footer-newsletter {
    text-align: center;
  }
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--hero-text);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* ----- Page wrapper (min height for footer at bottom) ----- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 52px;
}

main {
  flex: 1;
}

/* ----- Page banner (all pages) – with background images ----- */
.page-banner {
  position: relative;
  color: #fff;
  padding: calc(3rem + 1in) 0;
  text-align: center;
  background-color: var(--color-primary-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* No overlay – image shows sharp. Text has dark background for readability. */
.page-banner .container {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
}

.page-banner-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.page-banner-sub {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.98;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Banner images – home uses gradient only (no image) */
.page-banner--home {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-accent) 100%);
}
.page-banner--about {
  background-image: url('../images/banners/banner-2.png');
}
.page-banner--thematic {
  background-image: url('../images/banners/banner-1.png');
}
.page-banner--activities {
  background-image: url('../images/banners/banner-2.png');
}
.page-banner--team {
  background-image: url('../images/banners/banner-1.png');
}
.page-banner--contact {
  background-image: url('../images/banners/banner-2.png');
}

/* ----- Section title (shared) ----- */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
  text-align: center;
}

/* ----- Responsive: nav ----- */
@media (max-width: 600px) {
  .header-name {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-name {
    font-size: 0.8rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list a {
    padding: 0.85rem 1rem;
  }
}
