/*
Theme Name: Bulgarian Institute for Women's Health
Theme URI: https://example.com/
Author: Codex
Description: Landing page theme for Bulgarian Institute for Women's Health.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: biwh
*/

:root {
  --biwh-ink: #263052;
  --biwh-muted: #66709b;
  --biwh-lavender: #8f99cf;
  --biwh-lavender-soft: #eef0fb;
  --biwh-pink: #f72a98;
  --biwh-pink-soft: #f6c3df;
  --biwh-bg: #fff8fc;
  --biwh-white: #ffffff;
  --biwh-border: rgba(143, 153, 207, 0.28);
  --biwh-shadow: 0 22px 60px rgba(38, 48, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--biwh-ink);
  background: var(--biwh-bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 252, 0.92);
  border-bottom: 1px solid var(--biwh-border);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--biwh-border);
  border-radius: 999px;
  background: var(--biwh-white);
  color: var(--biwh-ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  display: none;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--biwh-border);
  border-radius: 8px;
  background: var(--biwh-white);
  box-shadow: 0 16px 34px rgba(38, 48, 82, 0.12);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  display: grid;
  gap: 6px;
}

.site-nav .sub-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px;
}

.site-nav a:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(143, 153, 207, 0.26);
}

.button--primary {
  background: var(--biwh-pink);
  border-color: var(--biwh-pink);
  color: var(--biwh-white);
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--biwh-pink);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 26px;
  color: var(--biwh-muted);
  font-size: 1.18rem;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  max-width: 820px;
}

.hero__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  color: var(--biwh-pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.hero__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.28;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero__links a:hover::after {
  opacity: 0.75;
  transform: scaleX(1);
}

.section {
  padding: 82px 0;
}

.section--white {
  background: var(--biwh-white);
}

.section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section__head p {
  margin: 0;
  color: var(--biwh-muted);
  font-size: 1.08rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.post-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--biwh-border);
  border-radius: 8px;
  background: var(--biwh-white);
  box-shadow: 0 16px 34px rgba(38, 48, 82, 0.08);
}

.info-card__mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--biwh-lavender-soft);
  color: var(--biwh-pink);
  font-weight: 900;
}

.info-card h3,
.post-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  line-height: 1.18;
}

.info-card p,
.post-card p {
  margin: 0;
  color: var(--biwh-muted);
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  padding: 18px 20px;
  border-left: 5px solid var(--biwh-pink);
  background: var(--biwh-lavender-soft);
  border-radius: 8px;
  font-weight: 700;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card a {
  text-decoration: none;
}

.post-card time {
  display: block;
  margin-bottom: 12px;
  color: var(--biwh-pink);
  font-size: 0.9rem;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--biwh-lavender);
  border-radius: 8px;
  color: var(--biwh-muted);
  background: var(--biwh-white);
}

.site-footer {
  padding: 72px 0 30px;
  color: var(--biwh-white);
  background: var(--biwh-ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  line-height: 1.15;
}

.site-footer p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list strong {
  color: var(--biwh-pink-soft);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--biwh-white);
  font: inherit;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.form-message {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(246, 195, 223, 0.18);
  color: var(--biwh-white);
}

.site-footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: 74px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 8px 0;
  }

  .brand img {
    width: 132px;
  }

  .site-nav {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__list {
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-nav li {
    flex: 0 0 auto;
  }

  .site-nav a {
    min-height: 38px;
    padding: 8px 13px;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  .site-nav .sub-menu {
    right: auto;
    left: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .info-grid,
  .activity-list,
  .posts-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .site-header__inner,
  .section__inner,
  .site-footer__inner {
    width: min(100% - 24px, 1120px);
  }

  .site-header__inner {
    width: calc(100% - 20px);
    gap: 8px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand img {
    width: 116px;
  }

  .site-nav__list {
    justify-content: flex-start;
  }

  .site-nav a {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 30px 0 44px;
  }

  .hero__links {
    gap: 8px 16px;
  }

  .hero__links a {
    font-size: 1.05rem;
  }

  .section {
    padding: 58px 0;
  }

  .info-card,
  .post-card {
    padding: 22px;
  }
}
