/* ====== RND Touggourt — Design System ====== */

:root {
  --color-teal-dark: #1B4D4B;
  --color-teal: #2A6B67;
  --color-teal-light: #3D8A85;
  --color-silver: #C8C8C8;
  --color-silver-light: #E8E8E8;
  --color-red: #D21034;
  --color-red-dark: #A80D29;
  --color-white: #FFFFFF;
  --color-cream: #F5F3EF;
  --color-text: #1A1A1A;
  --color-text-muted: #5A5A5A;

  --font-body: 'Cairo', sans-serif;
  --font-heading: 'Amiri', serif;

  --header-height: 72px;
  --container-max: 1200px;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --transition: 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section--light {
  background: var(--color-cream);
}

.section--dark {
  background: var(--color-teal-dark);
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* ====== Header ====== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(27, 77, 75, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 200, 200, 0.15);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(27, 77, 75, 0.98);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header__logo {
  width: 48px;
  height: auto;
}

.header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-white);
}

.header__brand-sub {
  font-size: 0.75rem;
  color: var(--color-silver);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__actions .btn--primary {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  font-size: 0.8rem;
  padding-inline: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(210, 16, 52, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
}

.btn--silver {
  background: linear-gradient(135deg, var(--color-silver-light), var(--color-silver));
  color: var(--color-teal-dark);
}

.btn--silver:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ====== Hero ====== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--color-teal-dark);
  color: var(--color-white);
  overflow: hidden;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(200, 200, 200, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(200, 200, 200, 0.2) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%23C8C8C8' stroke-width='0.5' opacity='0.4'%3E%3Cpath d='M0 30 Q15 15 30 30 T60 30'/%3E%3Cpath d='M0 45 Q15 30 30 45 T60 45'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__border {
  position: absolute;
  inset: 1.5rem;
  border: 1px solid rgba(200, 200, 200, 0.25);
  border-radius: 4px;
  pointer-events: none;
}

.hero__corner {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 80px;
  height: 80px;
  border-top: 2px solid var(--color-silver);
  border-right: 2px solid var(--color-silver);
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 4rem;
}

.hero__content {
  order: 2;
}

.hero__party {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-silver);
  margin-bottom: 0.5rem;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero__role {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero__vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.hero__vote-text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-silver-light);
}

.hero__vote-number {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #F0F0F0 0%, #C8C8C8 40%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero__vote-list {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--color-silver-light);
}

.hero__date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(200, 200, 200, 0.3);
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.hero__date-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image-wrap {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__image {
  max-height: 75vh;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
}

/* ====== About ====== */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--color-teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.about-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--color-teal);
}

.about-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.about-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ====== Priorities ====== */

.priorities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.priority-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 200, 200, 0.15);
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}

.priority-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.priority-card__pillar {
  width: 48px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(180deg, var(--color-silver-light), var(--color-silver));
  border-radius: 4px 4px 0 0;
  position: relative;
}

.priority-card__pillar::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 8px;
  background: var(--color-silver);
  border-radius: 2px;
}

.priority-card__icon {
  width: 32px;
  height: 32px;
  margin: -52px auto 1.5rem;
  position: relative;
  z-index: 1;
  color: var(--color-teal-dark);
}

.priority-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.priority-card__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ====== Program ====== */

.program__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.program__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.program__item:hover {
  transform: translateX(-4px);
}

.program__item-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-teal);
  margin-top: 2px;
}

.program__item-text {
  font-size: 0.95rem;
}

.program__flag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.program__flag img {
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(27, 77, 75, 0.2));
}

.program__flag-caption {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-teal-dark);
  text-align: center;
}

/* ====== Election ====== */

.election__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.election-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.election-card--highlight {
  background: var(--color-teal-dark);
  color: var(--color-white);
  grid-column: span 1;
}

.election-card__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.election-card--highlight .election-card__label {
  color: rgba(255, 255, 255, 0.7);
}

.election-card__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.election-card__value--big {
  font-size: 3rem;
  background: linear-gradient(180deg, #F0F0F0, #C8C8C8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.election__cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-teal-dark), var(--color-teal));
  border-radius: var(--radius);
  color: var(--color-white);
}

.election__cta-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
}

/* ====== Party ====== */

.party__content {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.party__logo {
  width: 80px;
  margin: 0 auto 1.5rem;
}

.party__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.party__text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.party__slogan {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-teal);
  margin-bottom: 2rem;
}

/* ====== Contact ====== */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 200, 200, 0.15);
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-silver-light);
}

.contact-card__title {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-card__link {
  color: var(--color-silver);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-card__link:hover {
  color: var(--color-white);
}

.contact-card__text {
  color: var(--color-silver);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.contact-card__placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ====== Footer ====== */

.footer {
  background: #143836;
  color: rgba(255, 255, 255, 0.8);
  padding-block: 3rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__logo {
  width: 40px;
}

.footer__brand-name {
  font-weight: 700;
  color: var(--color-white);
}

.footer__brand-sub {
  font-size: 0.85rem;
  color: var(--color-silver);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  justify-content: flex-end;
}

.footer__bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

.footer__disclaimer {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ====== Sticky CTA (Mobile) ====== */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--color-teal-dark);
  border-top: 1px solid rgba(200, 200, 200, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-cta .btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.35;
  white-space: normal;
}

/* ====== Animations ====== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Responsive ====== */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .hero__image-wrap {
    order: 1;
  }

  .hero__vote {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .priorities__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }

  .program__grid {
    grid-template-columns: 1fr;
  }

  .election__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand,
  .footer__social {
    justify-content: center;
  }

  .contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header,
  .header--scrolled {
    background: var(--color-teal-dark);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__list,
  .nav__actions .btn--primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    background: var(--color-teal-dark);
    transform: translateX(100%);
    transition: transform var(--transition);
    gap: 2rem;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav__link {
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav__actions {
    flex-direction: column;
    width: 100%;
  }

  .nav__actions .btn {
    width: 100%;
  }

  .nav__actions .btn--primary {
    display: inline-flex;
    max-width: none;
    width: 100%;
    font-size: 0.9rem;
  }

  .hero__image {
    max-height: 50vh;
  }

  .hero__border,
  .hero__corner {
    display: none;
  }

  .election__grid {
    grid-template-columns: 1fr 1fr;
  }


  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .section {
    padding-block: 3.5rem;
  }
}

@media (max-width: 480px) {
  .hero__vote {
    flex-direction: column;
    gap: 0.25rem;
  }

  .election__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
