"use strict";

/*
 * AluminiumGlass
 * Public Website
 * Global CSS
 */

:root {
  --ag-primary: #111827;
  --ag-primary-hover: #1f2937;

  --ag-text: #18202a;
  --ag-muted: #667085;

  --ag-border: #e4e7ec;
  --ag-border-dark: #d0d5dd;

  --ag-bg: #f7f8fa;
  --ag-white: #ffffff;

  --ag-success: #087443;
  --ag-danger: #b42318;
  --ag-warning: #b54708;

  --ag-radius-sm: 7px;
  --ag-radius: 10px;
  --ag-radius-lg: 14px;

  --ag-container: 1200px;

  --ag-header-height: 70px;

  --ag-shadow-sm:
    0 1px 3px rgba(16, 24, 40, .08);

  --ag-shadow:
    0 4px 12px rgba(16, 24, 40, .08);

  --ag-transition:
    180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.5;

  color: var(--ag-text);
  background: var(--ag-bg);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

img {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  top: -100px;
  left: 15px;

  z-index: 99999;

  padding: 10px 15px;

  background: var(--ag-primary);
  color: var(--ag-white);

  border-radius: var(--ag-radius-sm);

  font-weight: 700;

  transition: top var(--ag-transition);
}

.skip-link:focus {
  top: 15px;
}

:focus-visible {
  outline: 3px solid rgba(17, 24, 39, .25);
  outline-offset: 2px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.ag-container {
  width: 100%;
  max-width: var(--ag-container);

  margin-left: auto;
  margin-right: auto;

  padding-left: 20px;
  padding-right: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 1000;

  width: 100%;

  background: var(--ag-white);
  border-bottom: 1px solid var(--ag-border);
}

.site-header.is-sticky {
  position: sticky;
  top: 0;

  box-shadow: var(--ag-shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: var(--ag-container);

  min-height: var(--ag-header-height);

  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  gap: 25px;
}


/* Brand */

.brand,
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  flex-shrink: 0;

  font-weight: 800;
}

.brand-mark,
.site-brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: var(--ag-primary);
  color: var(--ag-white);

  font-size: 14px;
  font-weight: 800;
}

.brand-name,
.site-brand-name {
  font-size: 17px;
  font-weight: 800;
}


/* Navigation */

.main-nav,
.site-nav {
  display: flex;
  align-items: center;

  gap: 22px;

  flex: 1;
}

.main-nav a,
.site-nav a {
  color: #475467;

  font-size: 14px;
  font-weight: 600;

  transition: color var(--ag-transition);
}

.main-nav a:hover,
.site-nav a:hover,
.main-nav a.active,
.site-nav a.active {
  color: var(--ag-primary);
}


/* Header Actions */

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.ag-btn {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 9px 16px;

  border: 1px solid transparent;
  border-radius: var(--ag-radius);

  font-weight: 700;
  font-size: 14px;

  transition:
    background var(--ag-transition),
    border-color var(--ag-transition),
    color var(--ag-transition),
    transform var(--ag-transition);
}

.ag-btn:hover {
  transform: translateY(-1px);
}

.ag-btn:active {
  transform: translateY(0);
}

.ag-btn-primary {
  background: var(--ag-primary);
  color: var(--ag-white);
}

.ag-btn-primary:hover {
  background: var(--ag-primary-hover);
}

.ag-btn-secondary {
  background: var(--ag-white);
  color: var(--ag-text);
  border-color: var(--ag-border-dark);
}

.ag-btn-secondary:hover {
  background: #f9fafb;
}

.ag-btn-danger {
  background: var(--ag-danger);
  color: var(--ag-white);
}

.ag-btn-success {
  background: var(--ag-success);
  color: var(--ag-white);
}

.ag-btn-sm {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}

.ag-btn-lg {
  min-height: 48px;
  padding: 11px 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.ag-card {
  background: var(--ag-white);

  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-lg);

  box-shadow: var(--ag-shadow-sm);
}

.ag-card-body {
  padding: 20px;
}


/* =========================================================
   FORMS
   ========================================================= */

.ag-form-group {
  margin-bottom: 18px;
}

.ag-label {
  display: block;

  margin-bottom: 7px;

  font-size: 14px;
  font-weight: 700;
}

.ag-input,
.ag-select,
.ag-textarea {
  width: 100%;

  border: 1px solid var(--ag-border-dark);
  border-radius: var(--ag-radius);

  background: var(--ag-white);

  color: var(--ag-text);

  padding: 11px 13px;

  outline: none;

  transition:
    border-color var(--ag-transition),
    box-shadow var(--ag-transition);
}

.ag-input,
.ag-select {
  min-height: 44px;
}

.ag-textarea {
  min-height: 120px;
  resize: vertical;
}

.ag-input:focus,
.ag-select:focus,
.ag-textarea:focus {
  border-color: var(--ag-primary);

  box-shadow:
    0 0 0 3px rgba(17, 24, 39, .08);
}


/* =========================================================
   BADGES
   ========================================================= */

.ag-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.ag-badge-success {
  background: #ecfdf3;
  color: var(--ag-success);
}

.ag-badge-warning {
  background: #fffaeb;
  color: var(--ag-warning);
}

.ag-badge-danger {
  background: #fef3f2;
  color: var(--ag-danger);
}

.ag-badge-neutral {
  background: #f2f4f7;
  color: #475467;
}


/* =========================================================
   ALERTS
   ========================================================= */

.ag-alert {
  padding: 13px 15px;

  border-radius: var(--ag-radius);

  border: 1px solid var(--ag-border);

  font-size: 14px;
}

.ag-alert-success {
  background: #ecfdf3;
  color: #05603a;
  border-color: #abefc6;
}

.ag-alert-warning {
  background: #fffaeb;
  color: #93370d;
  border-color: #fedf89;
}

.ag-alert-danger {
  background: #fef3f2;
  color: #912018;
  border-color: #fecdca;
}


/* =========================================================
   STATES
   ========================================================= */

.ag-loading,
.ag-empty,
.ag-error {
  padding: 45px 20px;

  text-align: center;

  background: var(--ag-white);

  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-lg);
}

.ag-loader {
  width: 32px;
  height: 32px;

  margin: 0 auto 14px;

  border: 3px solid #e5e7eb;
  border-top-color: var(--ag-primary);

  border-radius: 50%;

  animation: ag-spin .8s linear infinite;
}

@keyframes ag-spin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #111827;
  color: var(--ag-white);

  padding: 50px 20px 20px;
}

.footer-inner {
  width: 100%;
  max-width: var(--ag-container);

  margin: auto;

  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);

  gap: 35px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-column h3 {
  margin-bottom: 8px;

  font-size: 15px;
}

.footer-column a {
  color: #b8c0cc;

  font-size: 14px;

  transition: color var(--ag-transition);
}

.footer-column a:hover {
  color: #fff;
}

.footer-description {
  color: #b8c0cc;

  line-height: 1.7;
}

.footer-bottom {
  max-width: var(--ag-container);

  margin: 35px auto 0;
  padding-top: 18px;

  border-top: 1px solid #293241;

  color: #98a2b3;

  font-size: 13px;
}


/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-bottom-nav {
  display: none;
}


/* =========================================================
   UTILITY
   ========================================================= */

.hidden {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--ag-muted);
}

.text-success {
  color: var(--ag-success);
}

.text-danger {
  color: var(--ag-danger);
}

.text-warning {
  color: var(--ag-warning);
}

.w-100 {
  width: 100%;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .main-nav,
  .site-nav {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

}


@media (max-width: 600px) {

  body {
    padding-bottom: 62px;
  }

  .ag-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header-inner {
    min-height: 62px;
    padding: 0 15px;
  }

  .brand-name,
  .site-brand-name {
    font-size: 15px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 9999;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    min-height: 62px;

    background: #fff;

    border-top: 1px solid var(--ag-border);

    box-shadow:
      0 -3px 12px rgba(16, 24, 40, .08);
  }

  .mobile-bottom-nav a {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    color: #667085;

    font-size: 11px;
    font-weight: 600;
  }

  .mobile-bottom-nav a.active {
    color: var(--ag-primary);
  }

  .mobile-bottom-nav .nav-icon {
    font-size: 18px;
    line-height: 1;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

}