/*
Theme Name: AasTek LLC
Theme URI: https://aastekllc.com/
Author: AasTek LLC
Description: A clean WordPress theme for AasTek LLC managed IT services, with a purpose-built front page and consistent page styling.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: aastek
*/

:root {
  --at-bg: #f7faf8;
  --at-paper: #ffffff;
  --at-ink: #1f2d28;
  --at-muted: #5d6d67;
  --at-line: #dce8e2;
  --at-band: #edf6f2;
  --at-teal: #27786f;
  --at-teal-dark: #185d55;
  --at-gold: #d6a847;
  --at-error: #a33b2c;
  --at-shadow: 0 18px 42px rgba(31, 45, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--at-ink);
  font-family: Outfit, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.admin-bar .at-site-header {
  top: 32px;
}

a {
  color: var(--at-teal);
}

img {
  max-width: 100%;
  height: auto;
}

.at-wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.at-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--at-line);
}

.at-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.at-brand {
  color: var(--at-ink);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.at-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.at-nav a {
  color: var(--at-muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
}

.at-nav a:hover,
.at-nav a:focus {
  color: var(--at-teal);
}

.at-button,
.at-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.at-button--primary,
.at-form button {
  background: var(--at-teal);
  color: #fff;
}

.at-button--primary:hover,
.at-form button:hover {
  background: var(--at-teal-dark);
  color: #fff;
}

.at-button--secondary {
  background: #fff;
  border-color: var(--at-line);
  color: var(--at-ink);
}

.at-button--secondary:hover {
  border-color: var(--at-teal);
  color: var(--at-teal);
}

.at-kicker {
  margin: 0 0 12px;
  color: var(--at-teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.at-front-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(247, 250, 248, 0.97), rgba(239, 247, 243, 0.9)),
    url("https://images.unsplash.com/photo-1769002240965-7cc4b129d81a?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.at-front-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  min-height: min(760px, calc(100svh - 68px));
  padding: clamp(38px, 6vw, 72px) 0;
}

.at-front-hero h1 {
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.at-front-hero h2 {
  margin: 16px 0 0;
  color: var(--at-teal);
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  line-height: 1.2;
}

.at-front-hero__copy > p:not(.at-kicker) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--at-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
}

.at-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.at-hero-form-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 48, 44, 0.12);
  border-radius: 8px;
  box-shadow: var(--at-shadow);
}

.at-hero-form-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.at-hero-form-card > p {
  margin: 0 0 16px;
  color: var(--at-muted);
}

.at-section {
  padding: 72px 0;
  scroll-margin-top: 92px;
}

.at-band {
  background: var(--at-band);
}

.at-section-heading {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.at-section h2,
.at-page-title {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.at-section-heading p,
.at-copy p {
  color: var(--at-muted);
}

.at-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.at-card {
  min-height: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(31, 45, 40, 0.06);
}

.at-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: #edf7f4;
  border-radius: 8px;
  color: var(--at-teal);
  font-weight: 800;
}

.at-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.25;
}

.at-card p {
  margin: 0;
  color: var(--at-muted);
}

.at-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: start;
}

.at-copy {
  font-size: 1.08rem;
}

.at-copy p {
  margin: 0;
}

.at-copy p + p {
  margin-top: 16px;
}

.at-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.at-values li {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  font-weight: 750;
}

.at-pill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.at-pill-grid span {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.at-form {
  display: grid;
  gap: 10px;
}

.at-form--full {
  gap: 12px;
}

.at-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.at-form label {
  display: grid;
  gap: 6px;
  color: var(--at-ink);
  font-size: 0.94rem;
  font-weight: 800;
}

.at-form input,
.at-form textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  background: #fff;
  color: var(--at-ink);
  font: inherit;
}

.at-form textarea {
  resize: vertical;
}

.at-form input:focus,
.at-form textarea:focus {
  border-color: var(--at-teal);
  outline: 3px solid rgba(39, 120, 111, 0.18);
}

.at-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--at-teal);
  font-size: 0.95rem;
  font-weight: 800;
}

.at-form-status[data-error="true"] {
  color: var(--at-error);
}

.at-footer {
  padding: 30px 0;
  background: #1d2522;
  color: #fff;
}

.at-footer .at-wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.at-footer span {
  color: #cfd7d2;
}

.at-page-main {
  padding: 68px 0;
}

.at-page-shell {
  max-width: 860px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  box-shadow: var(--at-shadow);
}

.at-page-content {
  margin-top: 22px;
  color: var(--at-muted);
}

.at-page-content h2,
.at-page-content h3 {
  color: var(--at-ink);
  line-height: 1.2;
}

.at-chat-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  border: 0;
  border-radius: 8px;
  background: var(--at-teal);
  color: #fff;
  padding: 14px 18px;
  font: 800 1rem Outfit, system-ui, sans-serif;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.at-chat {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 61;
  width: min(360px, calc(100vw - 40px));
  max-height: calc(100vh - 112px);
  padding: 18px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--at-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.at-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.at-chat__head button {
  border: 0;
  background: transparent;
  color: var(--at-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.at-chat p {
  margin: 8px 0 12px;
  color: var(--at-muted);
}

.at-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1020px) {
  .at-front-hero__inner,
  .at-split {
    grid-template-columns: 1fr;
  }

  .at-front-hero__inner {
    min-height: auto;
    padding: 46px 0 54px;
  }

  .at-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .at-pill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }

  .at-section {
    padding: 56px 0;
    scroll-margin-top: 20px;
  }

  body.admin-bar .at-site-header {
    top: 46px;
  }

  .at-site-header {
    position: relative;
  }

  .at-site-header__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 14px 0;
  }

  .at-brand {
    font-size: 1.05rem;
  }

  .at-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .at-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    background: #f7faf8;
    border: 1px solid var(--at-line);
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
  }

  .at-site-header .at-button {
    display: none;
  }

  .at-front-hero__inner {
    padding: 42px 0 50px;
  }

  .at-front-hero h1 {
    font-size: clamp(2.35rem, 13vw, 4rem);
  }

  .at-section h2,
  .at-page-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .at-card-grid,
  .at-pill-grid,
  .at-values,
  .at-form-row {
    grid-template-columns: 1fr;
  }

  .at-button,
  .at-form button {
    width: 100%;
  }

  .at-chat-button,
  .at-chat {
    display: none;
  }
}

body.theme-pop {
  --brand-green: #24867a;
  --deep-ink: #14231f;
  --soft-mint: #eef8f4;
  --pop-cyan: #19c7f3;
  --pop-lime: #c8f43d;
  --pop-coral: #ff6b5f;
  --warm-white: #fbfaf5;
  --at-bg: var(--soft-mint);
  --at-ink: var(--deep-ink);
  --at-muted: #536761;
  --at-line: rgba(20, 35, 31, .12);
  --at-band: #ffffff;
  background: var(--soft-mint);
  color: var(--deep-ink);
}
body.theme-pop .at-site-header {
  background: rgba(251, 250, 245, .96);
  border-bottom-color: rgba(25, 199, 243, .28);
  box-shadow: 0 10px 28px rgba(25, 199, 243, .10);
}
body.theme-pop .at-brand__mark,
body.theme-pop .at-button--primary {
  background: var(--brand-green);
  color: #ffffff;
}
body.theme-pop .at-nav a {
  color: var(--deep-ink);
}
body.theme-pop .at-nav a::after {
  background: var(--pop-cyan);
}
body.theme-pop .at-nav a:hover,
body.theme-pop .at-nav a:focus-visible {
  color: var(--brand-green);
}
body.theme-pop a:focus-visible,
body.theme-pop button:focus-visible,
body.theme-pop input:focus-visible,
body.theme-pop textarea:focus-visible,
body.theme-pop select:focus-visible {
  outline: 3px solid rgba(25, 199, 243, .45);
  outline-offset: 3px;
}
body.theme-pop .at-front-hero {
  background-image: linear-gradient(120deg, rgba(251, 250, 245, .98), rgba(238, 248, 244, .9)), url("https://images.unsplash.com/photo-1769002240965-7cc4b129d81a?auto=format&fit=crop&w=1800&q=80");
  background-color: var(--soft-mint);
}
body.theme-pop .at-kicker,
body.theme-pop .at-values span,
body.theme-pop .at-card .at-card__icon {
  background: var(--pop-lime);
  color: var(--deep-ink);
}
body.theme-pop .at-button--secondary {
  background: var(--warm-white);
  border-color: rgba(25, 199, 243, .45);
  color: var(--deep-ink);
}
body.theme-pop .at-button--secondary:hover,
body.theme-pop .at-button--secondary:focus-visible {
  border-color: var(--pop-cyan);
  box-shadow: 0 10px 24px rgba(25, 199, 243, .16);
}
body.theme-pop .at-hero-form-card,
body.theme-pop .at-card,
body.theme-pop .at-form--full {
  background: var(--warm-white);
  border-color: rgba(20, 35, 31, .10);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(25, 199, 243, .11);
}
body.theme-pop .at-hero-form-card,
body.theme-pop .at-form--full {
  border-top: 4px solid var(--pop-cyan);
}
body.theme-pop .at-section.at-band {
  background: var(--warm-white);
}
body.theme-pop .at-pill-grid span::before {
  background: var(--pop-cyan);
  box-shadow: 0 0 0 4px rgba(25, 199, 243, .12);
}
body.theme-pop .at-form label span,
body.theme-pop .at-required,
body.theme-pop abbr.required {
  color: var(--pop-coral);
}
body.theme-pop input,
body.theme-pop textarea,
body.theme-pop select {
  border-color: rgba(20, 35, 31, .16);
  background: #ffffff;
  color: var(--deep-ink);
}
body.theme-pop input:focus,
body.theme-pop textarea:focus,
body.theme-pop select:focus {
  border-color: var(--pop-cyan);
  box-shadow: 0 0 0 3px rgba(25, 199, 243, .14);
}
body.theme-pop .at-footer {
  background: var(--deep-ink);
  color: var(--warm-white);
}
