/* CORE ACTIVE TECH — industrial dark theme (distinct from other output sites) */
:root {
  --bg: #12151c;
  --bg-elevated: #1a1f2a;
  --surface: #222836;
  --border: rgba(232, 234, 239, 0.08);
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #c97b46;
  --accent-soft: rgba(201, 123, 70, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 21, 28, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-logo img { height: 40px; width: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.88;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* Hero carousel */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  margin: 1rem auto 0;
  width: min(1160px, calc(100% - 2rem));
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel__slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(105deg, rgba(10, 12, 18, 0.82) 0%, rgba(10, 12, 18, 0.35) 48%, rgba(10, 12, 18, 0.75) 100%);
}

.hero__copy {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 52rem;
}

.hero__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: #0c0e12;
  border-color: var(--accent);
}

.btn--primary:hover { filter: brightness(1.06); text-decoration: none; }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.carousel__ui {
  position: absolute;
  z-index: 4;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.carousel__arrow:hover { background: rgba(201, 123, 70, 0.35); border-color: var(--accent); }

.carousel__dots {
  display: flex;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.carousel__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .hero { margin-inline: 1rem; min-height: 70vh; border-radius: var(--radius-md); }
  .carousel__ui { justify-content: space-between; }
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section__head--left { text-align: left; }

.section__head--tight { margin-bottom: 1rem; }

.section__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 56ch;
}

.section__head--left .section__lead { margin-left: 0; }

/* Product grid — fixed 4 columns, equal card height */
.grid-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.product-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1rem 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-card__title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.product-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid-products { grid-template-columns: 1fr; }
}

/* Intro split */
.intro-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.intro-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.intro-split__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.intro-split__card p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.intro-split__card p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
}

/* Testimonials */
.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  min-height: 100%;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.review-card__name { font-weight: 700; }
.review-card__role { font-size: 0.88rem; color: var(--muted); margin-top: 0.1rem; }

.review-card__stars {
  color: #e3a008;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}

.review-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .grid-testimonials { grid-template-columns: 1fr; }
}

/* Message split */
.message-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.15rem;
  align-items: stretch;
}

.message-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
}

.message-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.message-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.message-field {
  display: grid;
  gap: 0.35rem;
}

.message-field span {
  font-size: 0.88rem;
  color: var(--muted);
}

.message-field input,
.message-field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font: inherit;
  outline: none;
}

.message-field input:focus,
.message-field textarea:focus {
  border-color: var(--accent);
}

.message-field textarea { resize: vertical; min-height: 140px; }

.message-form__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .message-split { grid-template-columns: 1fr; }
  .message-split__media { min-height: 220px; order: -1; }
}

@media (max-width: 560px) {
  .message-form__row { grid-template-columns: 1fr; }
}

/* Contact page */
.page-banner {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-banner img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.contact-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-split__media img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.contact-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.contact-panel__intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-panel dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

.contact-panel dt {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-panel dd {
  margin: 0;
  color: var(--muted);
}

.contact-panel a { color: var(--accent); }

@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; }
  .page-banner img { height: 260px; }
}

/* About page */
.about-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.about-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.about-stack {
  display: grid;
  gap: 1.25rem;
}

.about-stack img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 360px;
}

.about-copy { margin-bottom: 1.5rem; }

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #0c0e14;
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr 1.1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.footer-brand img { height: 44px; width: auto; margin-bottom: 0.75rem; }

.footer-brand p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36ch;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.footer-social a:hover { border-color: var(--accent); text-decoration: none; }

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover { color: var(--accent); }

.footer-col li { color: var(--muted); font-size: 0.92rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}
