/* ================================
   Media Square CMS - LIGHT THEME (Frontend)
   Theme-only: you will paste your HTML sections.
==================================== */

:root{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f0f3fb;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6eaf2;
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --radius: 18px;

  --primary: #355CFF;
  --primary-2: #6B7CFF;
  --primary-soft: rgba(53,92,255,.12);
  --success: #16a34a;
  --danger: #ef4444;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 700px at 20% -10%, rgba(53,92,255,.10), transparent 60%),
              radial-gradient(800px 650px at 90% 0%, rgba(107,124,255,.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

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

.container{
  width: min(1120px, calc(100% - 40px));
  margin-inline:auto;
}

.small{font-size:.92rem}
.muted{color:var(--muted)}
.lead{font-size:1.06rem; color:var(--muted); line-height:1.75}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(53,92,255,.22);
}
.btn:hover{transform: translateY(-1px)}
.btn--ghost{
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow:none;
}
.btn--sm{padding: 10px 14px; border-radius: 12px}
.btn--block{width:100%}

/* Topbar */
.topbar{
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display:flex;
  justify-content:center;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  backdrop-filter: blur(10px);
}
.topbar p{margin:0; color: var(--text)}
.topbar__link{
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

/* Header */
.header{
  position: sticky;
  top:0;
  z-index:20;
  background: rgba(245,247,251,.70);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}
.brand{display:flex; align-items:center; gap:10px}
.brand__logo{height: 44px; width:auto}

/* Nav */
.nav{display:flex; align-items:center; gap:10px}
.nav__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: var(--text);
  font-weight: 700;
  font-size: .98rem;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.nav__link:hover{
  background: var(--surface);
  border-color: var(--line);
}

/* Mobile toggle */
.nav__toggle{display:none}
.nav__burger{
  display:none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
}
.nav__burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 999px;
}

/* Dropdown */
.dropdown{position:relative}
.dropdown > summary{list-style:none; cursor:pointer}
.dropdown > summary::-webkit-details-marker{display:none}
.dropdown__menu{
  position:absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display:none;
}
.dropdown[open] .dropdown__menu{display:block}
.dropdown__menu a{
  display:flex;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
}
.dropdown__menu a:hover{background: var(--surface-2)}
@media (min-width: 861px){
  .dropdown:hover .dropdown__menu{display:block}
}

/* Page section helpers */
.section{padding: 70px 0}
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

/* Footer */
.footer{
  padding: 50px 0 22px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
}
.footer__grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items:start;
}
.footer__logo{height: 40px; width:auto; margin-bottom: 10px}
.footer h4{margin: 0 0 10px}
.footer a{display:block; padding: 8px 0; color: var(--muted); font-weight: 700}
.footer a:hover{color: var(--text)}
.footer__bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}

/* Responsive nav */
@media (max-width: 860px){
  .nav__burger{display:flex}
  .nav{
    position:absolute;
    top: 74px;
    right: 0;
    left: 0;
    margin-inline:auto;
    width: min(1120px, calc(100% - 40px));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
    box-shadow: var(--shadow);
  }
  .nav__toggle:checked ~ .nav{display:flex}
  .dropdown__menu{position:static; min-width:0; margin-top:6px; box-shadow:none}
}
@media (max-width: 680px){
  .footer__grid{grid-template-columns:1fr}
}
