/* Structural foundation for the public site. Workspace pages keep styles.css. */
:root {
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a,
summary,
input,
select,
textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(24, 24, 27, 0.12);
}

button,
summary {
  cursor: pointer;
}

textarea {
  min-height: 70px;
  resize: vertical;
}

:focus-visible {
  outline: 3px solid var(--aw-accent, #18181b);
  outline-offset: 4px;
}

#awMainContent {
  scroll-margin-top: 1rem;
}

/* The disclosure menu stays above page content without a fixed header. */
.aislewise-nav {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.aislewise-brand {
  display: flex;
  align-items: center;
}

.aislewise-mark {
  display: inline-grid;
  place-items: center;
}

.aislewise-nav-dropdown {
  position: relative;
  z-index: 1001;
  display: inline-flex;
  align-items: stretch;
}

.aislewise-nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 16px;
}

.aislewise-nav-dropdown-trigger {
  appearance: none;
  font: inherit;
}

.aislewise-nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.48rem;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-0.16rem) rotate(45deg);
}

.aislewise-nav-dropdown-menu {
  position: absolute;
  z-index: 1002;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.aislewise-nav-dropdown-trigger[aria-expanded="true"] + .aislewise-nav-dropdown-menu,
.aislewise-nav-dropdown.is-open .aislewise-nav-dropdown-menu {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.aislewise-nav-dropdown-menu a {
  display: block;
  text-decoration: none;
  white-space: nowrap;
}

/* Layout primitives used by guides, contact, and the four service previews. */
.blog-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.blog-card {
  display: grid;
  gap: 0.82rem;
  text-decoration: none;
}

.blog-card p,
.blog-card small {
  margin: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1rem;
  margin: 0;
  padding-bottom: clamp(40px, 5vw, 64px);
}

.contact-form,
.contact-aside {
  min-width: 0;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid var(--aw-line, #e4e4e7);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-aside {
  align-self: start;
  display: grid;
  gap: 0.85rem;
}

.contact-aside > span,
.service-offerings article > span {
  color: var(--aw-muted, #62626b);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-aside p {
  margin: 0;
  line-height: 1.58;
}

.service-offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--aw-line, #e4e4e7);
}

.service-offerings article {
  display: grid;
  align-content: start;
  gap: 0.72rem;
  min-width: 0;
  padding: clamp(20px, 2vw, 28px);
}

.service-offerings p {
  margin: 0;
  line-height: 1.56;
}

.service-cta {
  display: grid;
  gap: 0.85rem;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--aw-line, #e4e4e7);
  text-align: center;
}

.service-cta p {
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.58;
}

.service-cta .marketing-button {
  justify-self: center;
  margin-top: 0.35rem;
}

@media (max-width: 1050px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
