/* =========================================================
   UniVet-style Header + Sidebars (Edugild)
   ========================================================= */

:root {
  --uv-maroon: #8B1538;
  --uv-maroon-dark: #6E0F2B;
  --uv-maroon-deep: #5C0C24;
  --uv-nav-text: #2B2B2B;
  --uv-muted: #6B7280;
  --uv-line: #E5E7EB;
  --uv-serif: 'Playfair Display', Georgia, serif;
}

/* Header shell */
.uv-header {
  position: relative;
  z-index: 200;
  background: #fff;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  overflow: visible;
}

.uv-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  animation: uvHeaderIn 0.35s ease;
}

.uv-header.is-sticky .uv-topbar {
  display: none;
}

.uv-header.is-sticky .uv-logo-shield {
  display: none;
}

.uv-header.is-sticky .uv-logo-inline {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.uv-header.is-sticky .uv-navbar-inner {
  padding-left: 0;
  min-height: 72px;
}

.uv-header.is-sticky .uv-navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes uvHeaderIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.uv-header-sticky {
  padding-top: var(--uv-header-offset, 120px);
}

.uv-wrap {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

@media (max-width: 990px) {
  .uv-wrap {
    width: 95%;
    max-width: 95%;
  }
}

/* Top maroon bar — centered contact strip */
.uv-topbar {
  background: var(--uv-maroon);
  color: #fff;
  min-height: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.uv-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  min-height: 40px;
  padding: 0;
  flex-wrap: nowrap;
}

@media (max-width: 990px) {
  .uv-topbar-inner {
    width: 95%;
    max-width: 95%;
  }
}

.uv-welcome,
.uv-top-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: #fff;
  padding: 10px 20px;
  position: relative;
  line-height: 1;
  text-decoration: none;
}

.uv-welcome .material-symbols-outlined,
.uv-top-contact .material-symbols-outlined {
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.uv-welcome:not(:last-child)::after,
.uv-top-contact:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.uv-top-contact:hover,
.uv-welcome:hover {
  color: #fff;
  opacity: 0.9;
}

.uv-toplinks {
  display: none;
}

@media (max-width: 1200px) {
  .uv-welcome,
  .uv-top-contact {
    padding: 10px 14px;
    font-size: 0.75rem;
  }
}

@media (max-width: 990px) {
  .uv-top-contact--address { display: none; }
}

@media (max-width: 700px) {
  .uv-top-contact--phone { display: none; }
}

/* Main white navbar */
.uv-navbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  overflow: visible;
  position: relative;
  z-index: 2;
}

.uv-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 78px;
  padding-left: 150px;
  overflow: visible;
}

/* Overlapping shield logo — spans topbar + navbar */
.uv-logo-shield {
  position: absolute;
  left: 0;
  top: -42px;
  z-index: 5;
  display: flex;
  width: 118px;
  text-decoration: none;
}

.uv-shield {
  width: 118px;
  background: var(--uv-maroon);
  color: #fff;
  text-align: center;
  padding: 14px 10px 28px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 50% 100%, 0 calc(100% - 22px));
  box-shadow: 0 10px 28px rgba(139, 21, 56, 0.35);
  transition: background 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 128px;
}

.uv-logo-shield:hover .uv-shield { background: var(--uv-maroon); }

.uv-shield-crest {
  width: 40px;
  height: 46px;
  margin-top: 2px;
  color: #fff;
}

.uv-shield-label {
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
  line-height: 1.2;
}

.uv-shield-name {
  font-family: var(--uv-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

/* Desktop menu — pipe-separated links (no red box) */
.uv-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-right: auto;
  flex-wrap: wrap;
  background: transparent;
  min-height: auto;
}

.uv-menu a {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--uv-maroon) !important;
  padding: 8px 12px;
  position: relative;
  line-height: 1;
  white-space: nowrap;
}

.uv-menu a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(139, 21, 56, 0.35);
}

.uv-menu a .chev { display: none; }

.uv-menu a:hover {
  color: var(--uv-maroon-dark) !important;
  background: transparent;
}

.uv-menu a.is-active {
  color: var(--uv-maroon) !important;
  font-weight: 700;
  background: transparent;
}

.uv-menu a.is-active::after {
  width: 1px;
  height: 14px;
  bottom: auto;
  top: 50%;
  left: auto;
  right: 0;
  transform: translateY(-50%);
  background: rgba(139, 21, 56, 0.35);
}

.uv-menu a:last-child.is-active::after,
.uv-menu a:last-child::after {
  display: none;
}

/* Actions: hamburger | apply */
.uv-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.uv-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #1f2937;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease;
  padding: 0;
}

.uv-icon-btn:hover {
  background: #f3f4f6;
  color: var(--uv-maroon);
}

.uv-divider {
  display: none;
}

.uv-hamburger {
  flex-direction: column;
  gap: 5px;
}

.uv-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
  margin: 0;
  transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.uv-hamburger span:nth-child(1),
.uv-hamburger span:nth-child(2),
.uv-hamburger span:nth-child(3) {
  width: 22px;
  margin-left: 0;
}

.uv-hamburger:hover span { background: var(--uv-maroon); }

.uv-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--uv-maroon);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(139, 21, 56, 0.28);
  transition: background 0.3s ease, transform 0.3s ease;
}

.uv-apply:hover {
  background: var(--uv-maroon-dark);
  transform: translateY(-2px);
}

.uv-apply .material-symbols-outlined { font-size: 18px; }

/* Overlay */
.uv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
  z-index: 300;
  border: none;
  padding: 0;
  cursor: pointer;
}

.uv-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ===== Info Sidebar (desktop hamburger) ===== */
.uv-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: #fff;
  z-index: 320;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
  padding: 28px 28px 40px;
}

.uv-sidebar.is-open { transform: translateX(0); }

.uv-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.uv-side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.uv-side-crest {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.uv-side-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.uv-side-brand-text small {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111;
}

.uv-side-brand-text strong {
  font-family: var(--uv-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.02em;
}

.uv-side-close {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--uv-maroon);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.uv-side-close:hover { background: var(--uv-maroon-dark); }
.uv-side-close .material-symbols-outlined { font-size: 22px; }

.uv-side-about {
  color: var(--uv-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.uv-side-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.uv-side-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.uv-side-title {
  font-family: var(--uv-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.uv-side-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uv-side-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--uv-muted);
  font-size: 0.925rem;
  line-height: 1.5;
}

.uv-side-contact .material-symbols-outlined {
  font-size: 20px;
  color: #374151;
  margin-top: 2px;
  flex-shrink: 0;
}

.uv-side-contact a { color: var(--uv-muted); }
.uv-side-contact a:hover { color: var(--uv-maroon); }

.uv-side-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.uv-side-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 700;
  transition: 0.25s ease;
}

.uv-side-social a:hover {
  border-color: var(--uv-maroon);
  color: var(--uv-maroon);
  background: #fff5f7;
}

/* ===== Mobile nav sidebar ===== */
.uv-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: #fff;
  z-index: 320;
  transform: translateX(105%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12);
  padding: 28px 24px 40px;
  display: none;
}

.uv-mobile-nav.is-open { transform: translateX(0); }

.uv-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.uv-mobile-links > li {
  border-bottom: 1px solid #eceff3;
  list-style: none;
}

.uv-mobile-links > li > a {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  text-align: left;
}

.uv-mobile-links > li > a.is-active {
  color: var(--uv-maroon);
}

.uv-mobile-links > li > a:hover {
  color: var(--uv-maroon);
}

/* Hide legacy header pieces if any remain */
.topbar,
.site-header { display: none !important; }

body.uv-lock { overflow: hidden; }

/* Responsive */
@media (max-width: 1280px) {
  .uv-menu a { font-size: 0.8125rem; padding: 8px 10px; }
}

@media (max-width: 1180px) {
  .uv-menu { display: none; }
  .uv-apply { display: none; }
  .uv-mobile-nav { display: block; }
  .uv-sidebar { display: none; }

  .uv-topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 6px 0;
  }

  .uv-welcome,
  .uv-top-contact {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .uv-navbar-inner {
    justify-content: space-between;
    padding-left: 0;
    min-height: 72px;
  }

  .uv-logo-shield {
    display: none;
  }

  .uv-logo-inline {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .uv-actions { margin-left: auto; }
}

.uv-logo-inline {
  display: none;
  text-decoration: none;
  color: inherit;
}

.uv-logo-inline .uv-side-crest { width: 40px; height: 40px; }
.uv-logo-inline small {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
}
.uv-logo-inline strong {
  display: block;
  font-family: var(--uv-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

@media (max-width: 600px) {
  .uv-top-contact--phone,
  .uv-top-contact--address { display: none; }
  .uv-welcome { font-size: 0.8rem; }
}
