/* ============================================
   MBCN — Morocco Britain Competency Network
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #C1272D;
  --green: #006233;
  --cream: #FAF7F2;
  --dark: #1A1208;
  --mid: #4A3F2F;
  --light: #EDE8DF;
  --white: #FFFFFF;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.1; }
.section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.section-label::before {
  content: ''; display: inline-block; width: 18px; height: 1.5px;
  background: var(--red);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  color: var(--dark); letter-spacing: -1px; margin-bottom: 20px;
}

/* ── NAVIGATION ── */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 18, 8, 0.08);
  height: 68px;
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; height: 100%;
}
.nav-logo {
  font-family: var(--serif); font-size: 24px; font-weight: 700;
  color: var(--dark); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 75px; width: auto; }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--mid);
  letter-spacing: 0.2px; transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--dark); }
.nav-cta {
  background: var(--dark); color: #fff !important;
  padding: 9px 22px; border-radius: 3px;
  font-size: 13px; font-weight: 500;
  transition: background .2s, transform .15s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red) !important; transform: translateY(-1px); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 999; flex-direction: column;
  padding: 40px 32px; gap: 4px; border-top: 1px solid var(--light);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 28px; font-weight: 700;
  color: var(--dark); padding: 14px 0;
  border-bottom: 1px solid var(--light); transition: color .2s;
}
.mobile-menu a:hover { color: var(--red); }
.mobile-cta-link {
  margin-top: 24px; background: var(--dark); color: #fff !important;
  text-align: center; border-radius: 3px; padding: 16px;
  font-family: var(--sans) !important; font-size: 14px !important;
  font-weight: 500 !important; border-bottom: none !important;
}

/* ── BUTTONS ── */
.btn-dark {
  display: inline-block; background: var(--dark); color: #fff;
  padding: 13px 30px; border-radius: 3px;
  font-size: 13px; font-weight: 500; letter-spacing: .4px;
  transition: background .2s, transform .15s;
}
.btn-dark:hover { background: var(--red); transform: translateY(-2px); }
.btn-red {
  display: inline-block; background: var(--red); color: #fff;
  padding: 13px 30px; border-radius: 3px;
  font-size: 13px; font-weight: 500; letter-spacing: .4px;
  transition: background .2s, transform .15s;
}
.btn-red:hover { background: #a01f24; transform: translateY(-2px); }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--dark); color: var(--dark);
  padding: 12px 28px; border-radius: 3px;
  font-size: 13px; font-weight: 500;
  transition: all .2s;
}
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.btn-white {
  display: inline-block; background: #fff; color: var(--green);
  padding: 13px 30px; border-radius: 3px;
  font-size: 13px; font-weight: 600;
  transition: all .2s;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 64px 0 0;
}
.footer-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 60px;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-brand { font-family: var(--serif); font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-brand span { color: var(--red); }
.footer-tagline { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer-desc { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.4); line-height: 1.75; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.7);
  transition: all .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.footer-col-title {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul a {
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5);
  transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.footer-col ul a::before { content: ''; width: 0; height: 1px; background: var(--red); transition: width .2s; flex-shrink: 0; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul a:hover::before { width: 10px; }
.footer-newsletter { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 4px; padding: 20px 24px; margin-top: 24px; }
.footer-newsletter-label { font-size: 11px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.newsletter-row { display: flex; }
.newsletter-input {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-right: none; border-radius: 3px 0 0 3px;
  padding: 9px 14px; font-size: 13px; color: #fff;
  font-family: var(--sans); outline: none; transition: border-color .2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-input:focus { border-color: rgba(255,255,255,.3); }
.newsletter-btn {
  background: var(--red); color: #fff; border: none;
  padding: 9px 16px; border-radius: 0 3px 3px 0;
  font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: var(--sans); white-space: nowrap; transition: background .2s;
}
.newsletter-btn:hover { background: #a01f24; }
.footer-divider { height: 1px; background: rgba(255,255,255,.07); }
.footer-bottom {
  max-width: 1440px; margin: 0 auto; padding: 24px 60px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,.2); }
.footer-flags { font-size: 20px; display: flex; gap: 6px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 11px; color: rgba(255,255,255,.2); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .7s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 32px; }
  .footer-inner, .footer-bottom { padding-left: 32px; padding-right: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner, .footer-bottom { padding-left: 24px; padding-right: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
