/* ALRSKA INC — slate blue + coral accent, card-forward layout */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;700&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #0f172a;
  --slate: #1e3a5f;
  --slate-deep: #152a45;
  --mist: #e8eef5;
  --paper: #f6f8fb;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--slate);
}

.alrs-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Header (CSS-only mobile menu) —— */
.alrs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(21, 42, 69, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alrs-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.alrs-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.alrs-logo img {
  height: 36px;
  width: auto;
}

.alrs-nav-toggle {
  display: none;
}

.alrs-nav-toggle-label {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.alrs-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.alrs-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

.alrs-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.alrs-nav a:hover,
.alrs-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--accent);
}

@media (max-width: 820px) {
  .alrs-nav-toggle-label {
    display: block;
  }

  .alrs-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate-deep);
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .alrs-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .alrs-nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .alrs-nav-toggle:checked ~ .alrs-nav {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
}

/* —— Hero: pure CSS autoplay + radio manual (:has override) —— */
.alrs-hero {
  position: relative;
  min-height: min(88vh, 860px);
  margin-top: 58px;
  overflow: hidden;
  background: var(--slate-deep);
}

.alrs-hero__slides {
  position: absolute;
  inset: 0;
}

.alrs-hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  animation: alrsHeroFade 12s infinite;
}

.alrs-hero__slide:nth-child(1) {
  animation-delay: 0s;
}
.alrs-hero__slide:nth-child(2) {
  animation-delay: 4s;
}
.alrs-hero__slide:nth-child(3) {
  animation-delay: 8s;
}

@keyframes alrsHeroFade {
  0% {
    opacity: 0;
    z-index: 0;
  }
  2% {
    opacity: 1;
    z-index: 2;
  }
  30% {
    opacity: 1;
    z-index: 2;
  }
  34% {
    opacity: 0;
    z-index: 0;
  }
  100% {
    opacity: 0;
    z-index: 0;
  }
}

.alrs-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alrs-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 58, 95, 0.45) 45%, rgba(15, 23, 42, 0.55) 100%);
  pointer-events: none;
}

.alrs-hero__panels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.alrs-hero__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(5rem, 12vw, 7rem);
  padding-left: clamp(1.25rem, 5vw, 4rem);
  color: var(--white);
  max-width: 760px;
  opacity: 0;
  z-index: 0;
  animation: alrsHeroFade 12s infinite;
}

.alrs-hero__panel:nth-child(1) {
  animation-delay: 0s;
}
.alrs-hero__panel:nth-child(2) {
  animation-delay: 4s;
}
.alrs-hero__panel:nth-child(3) {
  animation-delay: 8s;
}

.alrs-hero__panel-k {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.65rem;
  color: var(--accent-soft);
}

.alrs-hero__panel h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.alrs-hero__panel p {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  opacity: 0.92;
  max-width: 46ch;
}

.alrs-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.alrs-hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  animation: alrsDotPulse 12s infinite;
  border: 0;
  padding: 0;
  display: block;
}

.alrs-hero__dot:nth-of-type(1) {
  animation-delay: 0s;
}
.alrs-hero__dot:nth-of-type(2) {
  animation-delay: 4s;
}
.alrs-hero__dot:nth-of-type(3) {
  animation-delay: 8s;
}

@keyframes alrsDotPulse {
  0%,
  1% {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1);
  }
  2%,
  30% {
    background: var(--accent);
    transform: scale(1.25);
  }
  34%,
  100% {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1);
  }
}

/* Manual selection: stop motion, pin slide + dot */
.alrs-hero:has(#alrs-h1:checked) .alrs-hero__slide {
  animation: none !important;
  opacity: 0 !important;
}
/* Keep slide z-index ≤ shade (3) so gradient + copy + dots stay on top */
.alrs-hero:has(#alrs-h1:checked) .alrs-hero__slide:nth-child(1) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h2:checked) .alrs-hero__slide {
  animation: none !important;
  opacity: 0 !important;
}
.alrs-hero:has(#alrs-h2:checked) .alrs-hero__slide:nth-child(2) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h3:checked) .alrs-hero__slide {
  animation: none !important;
  opacity: 0 !important;
}
.alrs-hero:has(#alrs-h3:checked) .alrs-hero__slide:nth-child(3) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h1:checked) .alrs-hero__panel {
  animation: none !important;
  opacity: 0 !important;
}
.alrs-hero:has(#alrs-h1:checked) .alrs-hero__panel:nth-child(1) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h2:checked) .alrs-hero__panel {
  animation: none !important;
  opacity: 0 !important;
}
.alrs-hero:has(#alrs-h2:checked) .alrs-hero__panel:nth-child(2) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h3:checked) .alrs-hero__panel {
  animation: none !important;
  opacity: 0 !important;
}
.alrs-hero:has(#alrs-h3:checked) .alrs-hero__panel:nth-child(3) {
  opacity: 1 !important;
  z-index: 2 !important;
}

.alrs-hero:has(#alrs-h1:checked) .alrs-hero__dot,
.alrs-hero:has(#alrs-h2:checked) .alrs-hero__dot,
.alrs-hero:has(#alrs-h3:checked) .alrs-hero__dot {
  animation: none !important;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1);
}

.alrs-hero:has(#alrs-h1:checked) .alrs-hero__dot[for="alrs-h1"],
.alrs-hero:has(#alrs-h2:checked) .alrs-hero__dot[for="alrs-h2"],
.alrs-hero:has(#alrs-h3:checked) .alrs-hero__dot[for="alrs-h3"] {
  background: var(--accent);
  transform: scale(1.28);
}

/* —— Sections —— */
.alrs-wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.alrs-section {
  padding: clamp(3.25rem, 6vw, 5rem) 0;
}

.alrs-k {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: 0.75;
  margin: 0 0 0.5rem;
}

.alrs-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  margin: 0 0 1.5rem;
  color: var(--slate-deep);
  font-weight: 700;
}

/* Products: fixed 4-col, equal cards */
.alrs-products {
  background: var(--white);
}

.alrs-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.alrs-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.alrs-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.alrs-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
}

.alrs-card__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.alrs-card__body p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.78;
}

@media (max-width: 1024px) {
  .alrs-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .alrs-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* About strip on home */
.alrs-about-home {
  background: linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.alrs-about-home__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.alrs-about-home__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.1);
}

.alrs-about-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.alrs-about-home__text p {
  margin: 0 0 1rem;
  opacity: 0.88;
}

.alrs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  background: var(--slate);
  color: var(--white) !important;
  margin-top: 0.5rem;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.15s;
}

.alrs-btn:hover {
  background: var(--slate-deep);
  transform: translateY(-1px);
}

.alrs-btn--ghost {
  background: transparent;
  color: var(--slate) !important;
  border-color: rgba(30, 58, 95, 0.25);
}

@media (max-width: 900px) {
  .alrs-about-home__grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.alrs-testimonials {
  background: var(--white);
}

.alrs-testimonial-banner {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
}

.alrs-testimonial-banner img {
  width: 100%;
  height: min(220px, 28vw);
  object-fit: cover;
  display: block;
}

.alrs-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.alrs-review {
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
}

.alrs-review__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.alrs-review__head img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(30, 58, 95, 0.12);
}

.alrs-review__name {
  font-weight: 700;
}
.alrs-review__role {
  font-size: 0.88rem;
  opacity: 0.7;
}

.alrs-stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.alrs-review__text {
  margin: 0;
  opacity: 0.82;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .alrs-reviews {
    grid-template-columns: 1fr;
  }
}

/* Message split */
.alrs-message {
  background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.alrs-message .alrs-h2,
.alrs-message .alrs-k {
  text-align: center;
}

.alrs-split {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 1.15rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

.alrs-split__pic {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
  min-height: 280px;
}

.alrs-split__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alrs-form {
  border-radius: var(--radius);
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.alrs-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.alrs-field {
  display: grid;
  gap: 0.35rem;
}

.alrs-field span {
  font-size: 0.88rem;
  opacity: 0.75;
}

.alrs-field input,
.alrs-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(30, 58, 95, 0.18);
  padding: 0.8rem 0.95rem;
  font: inherit;
  background: var(--paper);
}

.alrs-field textarea {
  resize: vertical;
  min-height: 140px;
}

.alrs-form__hint {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.alrs-form button[type="submit"] {
  cursor: pointer;
  border: none;
  font: inherit;
}

@media (max-width: 900px) {
  .alrs-split {
    grid-template-columns: 1fr;
  }

  .alrs-form__row {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.alrs-footer {
  padding-top: 2.75rem;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
  background: var(--slate-deep);
  color: rgba(255, 255, 255, 0.88);
}

.alrs-footer a {
  color: rgba(255, 255, 255, 0.9);
}

.alrs-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.alrs-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.alrs-footer__logo img {
  height: 34px;
}

.alrs-footer__desc {
  margin: 0 0 1rem;
  opacity: 0.78;
  font-size: 0.95rem;
}

.alrs-social {
  display: flex;
  gap: 0.55rem;
}

.alrs-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}

.alrs-social a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.alrs-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.alrs-footer__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  color: var(--white);
}

.alrs-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  opacity: 0.85;
}

.alrs-footer__bottom {
  padding: 1rem;
  text-align: center;
  font-size: 0.88rem;
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .alrs-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Contact page */
.alrs-page-hero {
  margin-top: 58px;
  min-height: 280px;
  position: relative;
}

.alrs-page-hero img {
  width: 100%;
  height: min(42vh, 380px);
  object-fit: cover;
}

.alrs-page-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.65), rgba(30, 58, 95, 0.35));
}

.alrs-page-hero__title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0;
  text-align: center;
  width: 90%;
}

.alrs-contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.alrs-contact-split__pic {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.1);
}

.alrs-contact-split__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.alrs-contact-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: var(--shadow);
}

.alrs-contact-card h2 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
}

.alrs-contact-card > p:first-of-type {
  margin: 0 0 1.25rem;
  opacity: 0.85;
}

.alrs-contact-card .alrs-btn {
  margin-top: 1.25rem;
}

.alrs-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.alrs-contact-list li strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}

@media (max-width: 820px) {
  .alrs-contact-split {
    grid-template-columns: 1fr;
  }
}

/* About page */
.alrs-about-page .alrs-wrap {
  padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
}

.alrs-about-stack figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 58, 95, 0.1);
}

.alrs-about-stack figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.alrs-about-stack .alrs-prose {
  max-width: 70ch;
  margin: 0 auto 2rem;
}

.alrs-about-stack .alrs-prose p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  opacity: 0.88;
}
