/* =============================================
   MADC DESIGN TOKEN SYSTEM
   ============================================= */

/* --- TOKENS --- */
:root {
  --color-black:   #000000;
  --color-body1:   #5e5e5e;
  --color-body2:   #929292;
  --color-white:   #ffffff;
  --color-footer:  #888888;
  --color-banner:  #8f8f8f;
  --color-header:  #d9d9d9;

  --font-base: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --text-body2:   9px;
  --text-body1:   13px;
  --text-caption: 15px;
  --text-h3:      19px;
  --text-h2:      23px;

  --weight-light:   300;
  --weight-regular: 400;
  --weight-bold:    700;

  --max-width: 1200px;
  --header-h: 80px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  font-size: var(--text-body1);
  font-weight: var(--weight-light);
  color: var(--color-body1);
  background: var(--color-white);
}

/* --- TYPOGRAPHY --- */
h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 1.2;
}
h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  text-transform: capitalize;
  line-height: 1.3;
}
.caption {
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  color: var(--color-black);
  text-transform: capitalize;
}
p {
  font-size: var(--text-body1);
  font-weight: var(--weight-light);
  color: var(--color-body1);
  line-height: 1.6;
}
.meta {
  font-size: var(--text-body2);
  font-weight: var(--weight-light);
  color: var(--color-body2);
  line-height: 1.4;
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--color-header);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo img { height: 36px; }

/* --- NAV --- */
.nav-list {
  display: flex;
  flex-direction: row;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
  font-size: var(--text-caption);
  font-weight: var(--weight-bold);
  color: var(--color-black);
  cursor: pointer;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.nav-item > a {
  color: inherit;
  text-decoration: none;
}
.nav-item > span {
  color: var(--color-black);
}

/* --- DROPDOWN --- */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 260px;
  list-style: none;
  padding: 16px 0;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 999;
}
.dropdown li {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dropdown li a {
  display: block;
  padding: 8px 20px;
  font-size: var(--text-body1);
  font-weight: var(--weight-light);
  color: var(--color-body1);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown li a:hover { color: var(--color-black); }
.has-dropdown:hover .dropdown { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* --- BANNER --- */
.banner {
  margin-top: var(--header-h);
  width: 100%;
  height: 220px;
  background: var(--color-banner);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- MAIN --- */
main {
  background: var(--color-white);
  padding: 60px 0;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 10px 28px;
  font-family: var(--font-base);
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  background: var(--color-body1);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.btn:hover  { background: var(--color-black); }
.btn:active { opacity: 0.8; }

/* --- MODAL SHELL --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--color-white);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

/* --- FOOTER --- */
footer {
  background: var(--color-footer);
  color: var(--color-white);
  padding: 60px 0;
  min-height: 300px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col ul {
  list-style: none;
  margin-top: 10px;
  padding: 0;
}
.footer-col ul li { margin-bottom: 6px; }
.footer-col a {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--text-body2);
  font-weight: var(--weight-light);
  opacity: 0.8;
}
.footer-col a:hover { opacity: 1; }
.footer-label {
  color: var(--color-white);
  opacity: 0.5;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.social-icons { display: flex; gap: 16px; margin-top: 10px; }
.social-icons a { font-size: 18px; color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-links a {
  color: var(--color-white);
  font-size: var(--text-body2);
  opacity: 0.6;
  text-decoration: none;
}
.legal-links a:hover { opacity: 1; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --header-h: 60px; }
  .banner { height: 160px; }
  .nav-list { display: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
