/*
 * Vindrina Consulting – site styles.
 *
 * Mobile-first rules are not required, but every component MUST work from
 * 320px phone width up to wide desktop. Breakpoints:
 *   --bp-nav    860px  menu collapses to hamburger
 *   --bp-tablet 760px  stacked layouts, smaller paddings
 *   --bp-phone  480px  tightest spacing
 * (CSS custom properties can't be used inside @media, so the values are
 * repeated below. Keep them in sync.)
 */

:root {
  --plum: #611548;
  --plum-dark: #4a0f37;
  --blue: #0c6c9f;
  --tint: #fbf6f9;
  --text: #2b2230;
  --muted: #6e6573;
  --border: #eadfe6;
  --radius: 10px;
  --gutter: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 720px;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

main {
  flex: 1;
}

/* ---------- Top bar ---------- */

.top-bar {
  background: var(--plum);
  color: #fff;
  font-size: 0.875rem;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 28px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.92;
}

.top-bar__item:hover {
  opacity: 1;
  text-decoration: underline;
}

.top-bar__item img {
  display: block;
  width: auto;
  height: 15px;
}

.top-bar__item .top-bar__flag {
  height: 13px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35);
}

/* ---------- Main header ---------- */

.site-header {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  display: block;
  width: 220px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s;
}

.site-nav a:hover {
  background: rgb(97 21 72 / 0.07);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--blue);
}

.site-nav a.site-nav__login {
  margin-left: 8px;
  background: var(--plum);
  color: #fff;
}

.site-nav a.site-nav__login:hover {
  background: var(--plum-dark);
}

.site-nav a.site-nav__login.active::after {
  display: none;
}

/* Hamburger toggle: CSS-only checkbox, hidden on wide screens. */

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle__button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle__button:hover {
  background: rgb(97 21 72 / 0.07);
}

.nav-toggle:focus-visible + .nav-toggle__button {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--plum);
  transition: transform 0.2s, opacity 0.2s;
}

/* Bars are the 2nd–4th spans (the 1st is the sr-only label). */
.nav-toggle:checked + .nav-toggle__button .nav-toggle__bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle__button .nav-toggle__bar:nth-child(3) {
  opacity: 0;
}

.nav-toggle:checked + .nav-toggle__button .nav-toggle__bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .site-header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header__logo img {
    width: 180px;
  }

  .nav-toggle__button {
    display: flex;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav a.active {
    background: rgb(97 21 72 / 0.07);
  }

  .site-nav a.active::after {
    top: 10px;
    bottom: 10px;
    left: 0;
    right: auto;
    width: 3px;
    height: auto;
  }

  .site-nav a.site-nav__login {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ---------- Content ---------- */

h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.8rem);
  line-height: 1.2;
  color: var(--plum);
}

h3 {
  margin: 0 0 8px;
  color: var(--plum);
}

.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.15rem);
  color: var(--muted);
  max-width: 640px;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  padding: 56px 0 72px;
}

.hero {
  padding: 88px 0 96px;
  background: linear-gradient(135deg, #fff 0%, var(--tint) 60%, #eef5fa 100%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border: 2px solid var(--plum);
  border-radius: 8px;
  background: var(--plum);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--plum-dark);
  border-color: var(--plum-dark);
}

.btn--outline {
  background: transparent;
  color: var(--plum);
}

.btn--outline:hover {
  background: rgb(97 21 72 / 0.07);
  border-color: var(--plum);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
}

.contact-list img {
  width: 24px;
  border-radius: 2px;
}

.contact-list__icon {
  width: 24px;
  text-align: center;
  color: var(--plum);
}

/* ---------- Login ---------- */

.login-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgb(97 21 72 / 0.06);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form label {
  margin-top: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* 16px font prevents iOS from zooming in on focus. */
.form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}

.form input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form .btn {
  margin-top: 18px;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 0;
  background: var(--plum-dark);
  color: rgb(255 255 255 / 0.8);
  font-size: 0.875rem;
}

/* ---------- Tablet ---------- */

@media (max-width: 760px) {
  .top-bar__inner {
    justify-content: center;
    gap: 4px 20px;
  }

  .site-header {
    position: static;
  }

  .page {
    padding: 40px 0 56px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .cards {
    gap: 14px;
    margin-top: 24px;
  }
}

/* ---------- Phone ---------- */

@media (max-width: 480px) {
  .top-bar {
    font-size: 0.8rem;
  }

  .top-bar__inner {
    gap: 2px 16px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .site-header__logo img {
    width: 150px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .card {
    padding: 20px;
  }

  .login-card {
    padding: 24px 20px;
  }

  .page .login-card {
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

/* ---------- Forms: errors ---------- */

.form__error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdecee;
  color: #9b1c2c;
  font-size: 0.95rem;
}

/* ---------- Admin ---------- */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--tint);
}

.admin-bar p {
  margin: 0;
}

.admin-bar__email {
  font-weight: 600;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.badge {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--plum);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge--blue {
  background: var(--blue);
}

@media (max-width: 480px) {
  .admin-bar {
    padding: 16px;
  }

  .admin-bar .btn {
    flex: 1 1 100%;
  }
}
