/* Miss Universe Romania 2021 - replică în HTML/CSS pur */
:root {
  --gold: #c2a876;
  --link: #b7966e;
  --text: #666;
  --head: #333;
  --line: #e2e2e2;
  --dark: #222;
  --header-h: 102px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.8em;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { opacity: .8; }
h1, h2, h3, h4, h5, h6 { color: var(--head); line-height: 1.3em; margin: 0 0 10px; font-weight: 500; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.container.narrow { max-width: 1080px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; position: relative; }
.logo img { height: 66px; width: auto; }
.main-nav ul { display: flex; gap: 22px; }
.main-nav a {
  display: block; padding: 8px 0;
  font-size: 13px; text-transform: uppercase; color: rgba(0,0,0,.6);
  letter-spacing: 0;
}
.main-nav a:hover { color: rgba(0,0,0,.7); opacity: .7; }
.main-nav li.current a { color: var(--gold); }
.nav-toggle, .nav-burger { display: none; }

main { padding-top: var(--header-h); min-height: calc(100vh - 60px); }

/* ---------- Banner ---------- */
.banner img { width: 100%; height: auto; }

/* ---------- Common blocks ---------- */
.page-title { font-size: 30px; padding-top: 50px; margin-bottom: 25px; }
.bar-title {
  display: inline-block;
  margin: 0 0 30px;
  padding-left: 12px;
  border-left: 5px solid var(--gold);
  font-size: 16px; font-weight: 700; color: #000; text-transform: uppercase; line-height: 1.2em;
}
.section-title {
  text-align: center; font-size: 30px; font-weight: 700; color: #333;
  margin: 40px 0 30px;
}
.button {
  display: inline-block; padding: .3em 1em; font-size: 20px; color: var(--gold);
  border: 2px solid var(--gold); border-radius: 3px; line-height: 1.7em;
  transition: all .2s;
}
.button:hover { background: rgba(0,0,0,.05); opacity: 1; padding: .3em 1em; }
.btn-wrap { margin: 20px 0 60px; }

/* ---------- Home: two columns ---------- */
.two-col { display: flex; gap: 5.5%; padding: 55px 0 70px; align-items: flex-start; }
.col-main { flex: 0 0 64.25%; max-width: 64.25%; }
.col-side { flex: 1; }

.post { display: flex; gap: 4%; align-items: flex-start; margin-bottom: 60px; }
.post-thumb { flex: 0 0 36%; max-width: 36%; display: block; }
.post-thumb img { width: 100%; }
.post-body { flex: 1; min-width: 0; }
.post-title { font-size: 18px; font-weight: 500; line-height: 1.3em; margin-bottom: 8px; }
.post-title a { color: #333; }
.post-meta { font-size: 11px; line-height: 1.7em; color: #666; margin-bottom: 10px; }
.post-meta a { color: #666; }
.post-excerpt { font-size: 11px; color: #666; margin: 0; }
.pagination { margin-top: 10px; }
.pagination a { color: var(--gold); }

.social-widget p { text-align: center; font-size: 12px; margin-bottom: 8px; }
.social-icons { display: flex; justify-content: center; gap: 12px; }
.social-icons a {
  display: flex; width: 50px; height: 50px; align-items: center; justify-content: center;
  border-radius: 50%; color: #fff;
}
.social-icons a:hover { opacity: .85; }
.social-icons svg { width: 26px; height: 26px; fill: #fff; }
.social-icons .fb { background: #3b5998; }
.social-icons .ig { background: #e4405f; }
.social-icons .yt { background: #e02a20; }

/* ---------- Event ---------- */
.event .intro { text-align: center; padding: 60px 0 10px; }
.event .intro h2 { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.event .intro h2 a { font-size: 18px; font-weight: 700; }
.event .intro p { font-size: 15px; }
.gallery { display: grid; gap: 30px 2.75%; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 10px; font-size: 18px; font-weight: 500; color: var(--head); line-height: 1.3em; }
.g-girls, .g-logos { grid-template-columns: repeat(4, 1fr); }
.g-logos { margin-bottom: 40px; align-items: start; }
.g-logos img { aspect-ratio: 400 / 284; object-fit: contain; }
.g-girls img { aspect-ratio: 400 / 516; object-fit: cover; }
.follow-links { display: flex; justify-content: center; gap: 24px; padding: 10px 0 60px; }

/* ---------- Partners ---------- */
.partners h1 { font-size: 30px; font-weight: 500; padding-top: 55px; line-height: 1.4em; }
.partners h1 strong { font-weight: 700; }
.partners h2 { font-size: 26px; margin-top: 20px; }
.partners .figure { margin: 30px 0; }
.partners .figure img { margin: 0 auto; }

/* ---------- Rows (About / Title holder) ---------- */
.row { display: flex; gap: 5.5%; align-items: flex-start; margin-bottom: 30px; }
.row.r-1-3 > :first-child { flex: 0 0 29.67%; }
.row.r-1-3 > :last-child { flex: 1; }
.row.r-3-5 > :first-child { flex: 0 0 57.6%; }
.row.r-3-5 > :last-child { flex: 1; }
.row.r-1-2 > * { flex: 1; min-width: 0; }
.text p.small { font-size: 13px; }
.meet { text-align: center; font-size: 18px; margin: 10px 0 30px; width: 57.6%; }
.sign { text-align: right; margin-top: 30px; }
.prev-2020 .text { align-self: center; padding-top: 40px; }

.g-prev { grid-template-columns: repeat(6, 1fr); margin-bottom: 70px; gap: 25px 2%; }
.g-prev figcaption { font-size: 13px; font-weight: 400; line-height: 1.5em; }

/* ---------- Contact ---------- */
.contact .page-title { padding-top: 40px; }
.contact h4 { font-size: 16px; line-height: 1.5em; }
.contact-form { margin: 25px 0 70px; }
.contact-form p { margin-bottom: 14px; }
.contact-form label { position: absolute; left: -9999px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 16px; border: 0; background: #eee; color: #999;
  font: inherit; font-size: 14px; border-radius: 0;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--gold); background: #f5f5f5; color: #333; }
.contact-form .submit { text-align: right; }
.contact-form button {
  font: inherit; font-size: 20px; color: var(--gold); background: transparent; cursor: pointer;
  border: 2px solid var(--gold); border-radius: 3px; padding: .3em 1em; line-height: 1.7em;
}
.contact-form button:hover { background: rgba(0,0,0,.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #666; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; padding: 15px 0; }
.footer-info { margin: 0; font-size: 12px; color: #666; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: block; width: 24px; height: 24px; position: relative; color: #666; font-size: 0; }
.footer-social a::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat;
}
.footer-social a:hover { color: var(--gold); opacity: 1; }
.footer-social .fb { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.5 21v-8h2.7l.4-3.2h-3.1V7.8c0-.9.3-1.5 1.6-1.5h1.7V3.4c-.3 0-1.3-.1-2.4-.1-2.4 0-4 1.500-4 4.100v2.400H7.700V13h2.700v8h3.100z'/%3E%3C/svg%3E"); }
.footer-social .ig { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7.300A4.700 4.700 0 1 0 12 16.700 4.700 4.700 0 0 0 12 7.300zm0 7.700a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm5-7.900a1.100 1.100 0 1 1-2.200 0 1.100 1.100 0 0 1 2.200 0zM21 8.500c-.1-1.400-.4-2.600-1.400-3.600S17.400 3.600 16 3.500C14.500 3.400 9.500 3.400 8 3.500 6.600 3.600 5.400 3.900 4.400 4.900S3.100 7.100 3 8.500C2.900 10 2.900 14 3 15.500c.1 1.400.4 2.600 1.400 3.600s2.200 1.300 3.600 1.400c1.500.1 6.500.1 8 0 1.400-.1 2.600-.4 3.600-1.400s1.300-2.200 1.400-3.600c.1-1.500.1-5.500 0-7z'/%3E%3C/svg%3E"); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .container { width: 90%; }
  .logo img { height: 52px; }

  .nav-burger {
    display: block; width: 30px; height: 24px; cursor: pointer; position: relative; order: 3;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 3px; background: var(--gold);
  }
  .nav-burger span { top: 10px; }
  .nav-burger span::before { top: -8px; }
  .nav-burger span::after { top: 8px; }
  .main-nav {
    display: none; position: absolute; top: 100%; right: 0; left: 0; margin-top: 0;
    background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 4px 8px rgba(0,0,0,.1);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 12px 5%; border-bottom: 1px solid #eee; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .site-header { }
  .header-inner { justify-content: space-between; }
  .header-inner .logo { order: 1; }

  .two-col { flex-direction: column; gap: 20px; }
  .col-main, .col-side { flex: none; max-width: 100%; width: 100%; }
  .g-girls, .g-logos { grid-template-columns: repeat(3, 1fr); }
  .g-prev { grid-template-columns: repeat(3, 1fr); }
  .row { flex-direction: column; gap: 20px; }
  .row.r-1-3 > :first-child, .row.r-3-5 > :first-child { flex: none; width: 100%; }
  .meet { width: 100%; }
  .row.r-3-5 > :last-child { order: -1; }
  .row.r-3-5 { flex-direction: column-reverse; }
}

@media (max-width: 600px) {
  .post { flex-direction: column; }
  .post-thumb { flex: none; max-width: 100%; width: 100%; }
  .g-girls, .g-logos { grid-template-columns: repeat(2, 1fr); }
  .g-prev { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .page-title { font-size: 24px; }
  .section-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
