:root {
  --ags-color-primary: #12324f;
  --ags-color-secondary: #0f766e;
  --ags-color-accent: #f59e0b;
  --ags-color-ink: #16202a;
  --ags-color-muted: #64748b;
  --ags-color-surface: #f7faf8;
  --ags-color-line: #dbe5e1;
  --ags-radius: 8px;
  --ags-shadow: 0 18px 60px rgba(18, 50, 79, .12);
  --ags-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ags-color-ink);
  background: #fff;
  font-family: var(--ags-font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--ags-color-secondary);
}

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

.ags-container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.ags-narrow {
  width: min(100% - 40px, 880px);
}

.screen-reader-text,
.ags-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.ags-skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: var(--ags-radius);
  background: #fff;
  box-shadow: var(--ags-shadow);
}

.ags-site-header,
.ags-elementor-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(219, 229, 225, .9);
  backdrop-filter: blur(14px);
}

.ags-topbar {
  background: var(--ags-color-primary);
  color: #eef7f5;
  font-size: 13px;
}

.ags-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ags-topbar__links {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.ags-site-header__inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.ags-branding__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ags-branding__mark,
.ags-branding__logo img {
  width: 170px;
  max-height: 52px;
  object-fit: contain;
}

.ags-branding__text {
  display: none;
}

.ags-primary-nav {
  justify-self: end;
}

.ags-primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ags-primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--ags-radius);
  color: var(--ags-color-ink);
  font-size: 15px;
  font-weight: 700;
}

.ags-primary-nav .current-menu-item > a,
.ags-primary-nav a:hover {
  background: var(--ags-color-surface);
  color: var(--ags-color-primary);
}

.ags-button,
.ags-header-cta,
.ags-search-form__submit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--ags-radius);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.ags-button:hover,
.ags-header-cta:hover,
.ags-search-form__submit:hover {
  transform: translateY(-1px);
}

.ags-button--primary,
.ags-header-cta,
.ags-search-form__submit {
  background: var(--ags-color-secondary);
  color: #fff;
  box-shadow: 0 10px 26px rgba(15, 118, 110, .22);
}

.ags-button--primary:hover,
.ags-header-cta:hover,
.ags-search-form__submit:hover {
  background: #0b5f59;
  color: #fff;
}

.ags-button--ghost {
  background: rgba(255, 255, 255, .9);
  color: var(--ags-color-primary);
  border-color: rgba(18, 50, 79, .16);
}

.ags-button--ghost:hover {
  background: #fff;
}

.ags-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ags-color-line);
  border-radius: var(--ags-radius);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.ags-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ags-color-primary);
  border-radius: 999px;
}

.ags-site-main {
  min-height: 52vh;
}

.ags-page-content__header,
.ags-archive-header,
.ags-article__header,
.ags-error-page__inner {
  padding: 72px 0 30px;
}

.ags-page-content__header h1,
.ags-archive-header h1,
.ags-article__header h1,
.ags-error-page h1 {
  max-width: 850px;
  margin: 0;
  color: var(--ags-color-primary);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.04;
}

.ags-article {
  padding: 60px 0;
}

.ags-article__meta,
.ags-post-card__meta {
  display: flex;
  gap: 12px;
  color: var(--ags-color-muted);
  font-size: 14px;
  font-weight: 700;
}

.ags-article__media {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--ags-radius);
}

.ags-article__content,
.ags-rich-text {
  max-width: 820px;
}

.ags-article__content a,
.ags-rich-text a {
  color: var(--ags-color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ags-archive-shell {
  padding: 50px 0 80px;
}

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

.ags-post-card {
  overflow: hidden;
  border: 1px solid var(--ags-color-line);
  border-radius: var(--ags-radius);
  background: #fff;
}

.ags-post-card__media {
  min-height: 210px;
  display: grid;
  place-items: center;
  background: var(--ags-color-primary);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.ags-post-card__media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.ags-post-card__body {
  padding: 20px;
}

.ags-post-card h2 {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.2;
}

.ags-text-link {
  color: var(--ags-color-secondary);
  font-weight: 800;
}

.ags-site-footer {
  background: var(--ags-color-primary);
  color: #dce9e7;
}

.ags-site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 48px;
  padding: 58px 0;
}

.ags-site-footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
}

.ags-site-footer p {
  color: #c6d8d4;
}

.ags-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ags-site-footer li + li,
.ags-site-footer__contact p {
  margin-top: 10px;
}

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

.ags-site-footer .ags-branding__mark {
  filter: brightness(0) invert(1);
}

.ags-site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  font-size: 14px;
}

.ags-site-footer__bottom p {
  margin: 0;
}

.ags-search-form {
  display: flex;
  max-width: 560px;
  gap: 10px;
}

.ags-search-form label {
  flex: 1;
}

.ags-search-form__field,
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ags-color-line);
  border-radius: var(--ags-radius);
  padding: 12px 14px;
  background: #fff;
  color: var(--ags-color-ink);
}

.wpcf7 textarea {
  min-height: 130px;
  resize: vertical;
}

.ags-error-page {
  background: var(--ags-color-surface);
}

.ags-error-page__inner {
  min-height: 60vh;
}

.ags-error-page__actions {
  display: flex;
  gap: 12px;
  margin: 28px 0;
}

@media (max-width: 1120px) {
  .ags-site-header__inner {
    grid-template-columns: auto auto;
  }

  .ags-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .ags-primary-nav,
  .ags-header-cta {
    display: none;
  }

  .ags-primary-nav.is-open {
    display: block;
    grid-column: 1 / -1;
    justify-self: stretch;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 12px 0 18px;
  }

  .ags-primary-nav.is-open ul {
    display: grid;
    gap: 4px;
  }

  .ags-primary-nav.is-open a {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .ags-container,
  .ags-narrow {
    width: min(100% - 28px, 1180px);
  }

  .ags-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
    gap: 6px;
  }

  .ags-topbar__links {
    flex-wrap: wrap;
    white-space: normal;
  }

  .ags-branding__mark,
  .ags-branding__logo img {
    width: 144px;
  }

  .ags-site-header__inner {
    min-height: 70px;
  }

  .ags-post-grid,
  .ags-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .ags-site-footer__grid {
    gap: 24px;
    padding: 42px 0;
  }

  .ags-search-form,
  .ags-error-page__actions {
    flex-direction: column;
  }
}
