/* AGLASHAY global visual system v1
   Editorial classicism: mineral patina, graphite, porcelain, muted signal red. */

:root {
  --agl-porcelain: #f4f1ec;
  --agl-white: #ffffff;
  --agl-graphite: #1d1e20;
  --agl-mineral: #6f8f8a;
  --agl-mineral-light: #dce9e5;
  --agl-petrol: #335b58;
  --agl-signal: #c43d56;
  --agl-focus: #456f69;
  --agl-glass-border: rgba(207, 226, 221, .78);
}

/* Global frosted header. Kept light for readable black branding on every page. */
#agn-shared-bar {
  outline: none !important;
  background-color: rgba(111, 143, 138, .16) !important;
  background-image: linear-gradient(118deg, rgba(255, 255, 255, .64), rgba(111, 143, 138, .18)) !important;
  border: 1px solid var(--agl-glass-border) !important;
  box-shadow: 0 14px 38px rgba(33, 43, 41, .10), inset 0 1px 0 rgba(255, 255, 255, .84) !important;
  -webkit-backdrop-filter: blur(16px) saturate(118%);
  backdrop-filter: blur(16px) saturate(118%);
  transition: background .32s ease, border-color .32s ease, box-shadow .32s ease, transform .32s cubic-bezier(.22, .72, .2, 1) !important;
}

#agn-shared-bar::before,
#agn-shared-bar::after {
  background: transparent !important;
  box-shadow: none !important;
}

/* Open menu continues the same material instead of becoming a white card. */
#agn-shared-bar .agn-drawer {
  position: relative;
  overflow: hidden !important;
  box-sizing: border-box !important;
  background: linear-gradient(145deg, rgba(245, 249, 248, .78), rgba(208, 226, 221, .54)) !important;
  border: 1px solid rgba(219, 234, 230, .90) !important;
  box-shadow: 0 24px 64px rgba(33, 43, 41, .15), inset 0 1px 0 rgba(255, 255, 255, .90) !important;
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  backdrop-filter: blur(20px) saturate(125%);
  transform-origin: top right;
  transition: opacity .34s ease, transform .40s cubic-bezier(.22, .72, .2, 1) !important;
}

#agn-shared-bar .agn-drawer a {
  border-radius: 10px;
  transition: color .22s ease, background-color .22s ease, transform .25s cubic-bezier(.22, .72, .2, 1) !important;
}

#agn-shared-bar .agn-drawer a:hover,
#agn-shared-bar .agn-drawer a:focus-visible {
  color: var(--agl-petrol) !important;
  background: rgba(255, 255, 255, .38);
  transform: translateX(4px);
}

/* Muted red remains a signal, while secondary actions move to mineral tones. */
.agp-button:not(.agp-secondary),
button.primary,
a.primary {
  background-color: var(--agl-signal) !important;
  border-color: var(--agl-signal) !important;
}

.agp-secondary,
button.about-course,
a.about-course {
  color: var(--agl-petrol) !important;
  border-color: rgba(51, 91, 88, .46) !important;
}

button.about-course:hover,
a.about-course:hover,
.agp-secondary:hover {
  color: var(--agl-focus) !important;
  border-color: var(--agl-mineral) !important;
  background-color: rgba(220, 233, 229, .44) !important;
}

/* Tilda elements that carry the former brand red inline receive the softer signal tone. */
.t-btn[style*="#ed0033"],
.t-btn[style*="#ED0033"],
[style*="background-color:#ed0033"],
[style*="background-color: #ed0033"] {
  background-color: var(--agl-signal) !important;
  border-color: var(--agl-signal) !important;
}

[style*="border-color:#ed0033"],
[style*="border-color: #ed0033"] {
  border-color: var(--agl-mineral) !important;
}

/* Quiet mineral interaction layer. Information never depends on colour alone. */
input:focus,
select:focus,
textarea:focus {
  border-color: var(--agl-mineral) !important;
  box-shadow: 0 0 0 3px rgba(111, 143, 138, .14) !important;
  outline: none !important;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--agl-focus) !important;
  outline-offset: 3px;
}

::selection {
  color: var(--agl-graphite);
  background: var(--agl-mineral-light);
}

@media (max-width: 700px) {
  #agn-shared-bar {
    background-color: rgba(111, 143, 138, .18) !important;
    background-image: linear-gradient(125deg, rgba(255, 255, 255, .70), rgba(111, 143, 138, .20)) !important;
    -webkit-backdrop-filter: blur(14px) saturate(112%);
    backdrop-filter: blur(14px) saturate(112%);
  }

  #agn-shared-bar .agn-drawer {
    background: linear-gradient(155deg, rgba(247, 250, 249, .86), rgba(211, 228, 223, .64)) !important;
    -webkit-backdrop-filter: blur(16px) saturate(116%);
    backdrop-filter: blur(16px) saturate(116%);
  }
}

@media (prefers-reduced-motion: reduce) {
  #agn-shared-bar,
  #agn-shared-bar .agn-drawer,
  #agn-shared-bar .agn-drawer a {
    transition: none !important;
  }
}
