/* Palette AGM-TEC */
:root {
  --agm-orange: #ec6c2b;
  --agm-black: #000000;
  --agm-bg: #050505;
  --agm-surface: #111111;
  --agm-surface-soft: #181818;
  --agm-border-subtle: rgba(255, 255, 255, 0.06);
  --agm-text-main: #f5f5f5;
  --agm-text-muted: #b9b9b9;
  --agm-radius-lg: 16px;
  --agm-radius-md: 10px;
  --agm-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #222 0, #050505 52%, #000000 100%);
  color: var(--agm-text-main);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Top strip */

.top-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  margin: -0.5rem -0.25rem 1.2rem;
  background: linear-gradient(90deg, rgba(236, 108, 43, 0.16), rgba(0, 0, 0, 0.7));
  border-radius: 0 0 10px 10px;
  border-bottom: 1px solid rgba(236, 108, 43, 0.4);
  font-size: 0.8rem;
}

.top-strip-text {
  color: #ffe6d8;
}

.top-strip-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Header */

.agm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.agm-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.agm-logo {
  height: 44px;
}

.agm-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.agm-brand-name {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.agm-brand-tagline {
  font-size: 0.8rem;
  color: var(--agm-text-muted);
}

.agm-header-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.agm-header-contact .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--agm-border-subtle);
}

.pill-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(236, 108, 43, 0.1);
  color: var(--agm-orange);
  font-size: 0.7rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.3rem;
  align-items: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(236, 108, 43, 0.14);
  border: 1px solid rgba(236, 108, 43, 0.7);
  font-size: 0.8rem;
  color: #ffe0cf;
}

.hero-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--agm-orange);
  box-shadow: 0 0 0 6px rgba(236, 108, 43, 0.35);
}

.hero-title {
  font-size: clamp(2.1rem, 3vw + 1.2rem, 3rem);
  line-height: 1.08;
}

.hero-title span.accent {
  color: var(--agm-orange);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--agm-text-muted);
  max-width: 32rem;
}

.hero--landing {
  margin-bottom: 2.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.hero-badge {
  font-size: 0.78rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--agm-border-subtle);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0.4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: none;
  outline: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(120deg, #ff8b49, #ec6c2b);
  box-shadow: 0 15px 38px rgba(236, 108, 43, 0.6);
}

.btn-primary span.icon {
  font-size: 1.1rem;
}

.hero-cta-note {
  font-size: 0.8rem;
  color: var(--agm-text-muted);
}

.hero-metas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--agm-text-muted);
  margin-top: 0.4rem;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #5ef2b0;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 430px;
  background: radial-gradient(circle at top, #262626 0, #101010 52%, #050505 100%);
  border-radius: var(--agm-radius-lg);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--agm-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
}

.hero-card-badge {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(236, 108, 43, 0.7);
  color: #ffd9c5;
  font-size: 0.75rem;
}

.hero-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-card-title {
  font-size: 1.05rem;
}

.hero-card-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.1rem;
  font-size: 0.78rem;
  color: var(--agm-text-muted);
}

.hero-card-spec-label {
  color: var(--agm-text-muted);
}

.hero-card-spec-value {
  color: #ffffff;
}

.hero-card-footnote {
  font-size: 0.74rem;
  color: var(--agm-text-muted);
  margin-top: 0.3rem;
}

/* Hero gallery */

.hero-gallery {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
}

.hero-gallery::-webkit-scrollbar {
  height: 6px;
}

.hero-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.hero-slide {
  flex: 0 0 230px;
  max-width: 260px;
  border-radius: var(--agm-radius-md);
  overflow: hidden;
  background: #000;
  scroll-snap-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.hero-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Sections */

.section {
  margin-top: 3rem;
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--agm-orange);
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0;
}

.section-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--agm-radius-md);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--agm-border-subtle);
}

.card-title {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.card-body {
  font-size: 0.85rem;
  color: var(--agm-text-muted);
}

/* Product page layout */

.product-page {
  margin-top: 2rem;
}

.product-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.product-media {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
}

.product-media-main {
  border-radius: var(--agm-radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.product-media-main img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-media-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.product-thumb {
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--agm-radius-md);
  overflow: hidden;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid transparent;
  transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.product-thumb:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.product-thumb.is-active {
  border-color: var(--agm-orange);
  box-shadow: 0 12px 32px rgba(236, 108, 43, 0.6);
}

.product-main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.product-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.product-badge {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent);
}

.product-badge--secondary {
  color: var(--agm-text-muted);
}

.product-title {
  font-size: 2rem;
  margin: 0;
}

.product-intro {
  font-size: 0.95rem;
  color: var(--agm-text-muted);
  max-width: 32rem;
}

.product-bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--agm-text-muted);
}

.product-bullets li + li {
  margin-top: 0.2rem;
}

.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--agm-text-muted);
  max-width: 22rem;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  font-size: 0.8rem;
}

.product-meta-label {
  color: var(--agm-text-muted);
  margin-bottom: 0.1rem;
}

.product-meta-value {
  color: #ffffff;
}

/* Product pricing table */

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table-pricing {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.table-pricing th,
.table-pricing td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.table-pricing thead th {
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--agm-text-muted);
}

.table-pricing tbody tr:last-child th,
.table-pricing tbody tr:last-child td {
  border-bottom: none;
}

.table-pricing td:nth-last-child(2),
.table-pricing th:nth-last-child(2) {
  white-space: nowrap;
}

.table-pricing td:last-child {
  text-align: right;
}

.btn-table {
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
  box-shadow: 0 10px 26px rgba(236, 108, 43, 0.6);
  white-space: nowrap;
}

.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--agm-orange);
  text-decoration: underline;
}

.hero-secondary-link:hover {
  color: #ffd2b7;
}

/* Range cards */

.range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.range-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.range-card-title {
  font-size: 1rem;
}

.range-card-tag {
  font-size: 0.8rem;
  color: var(--agm-text-muted);
}

.range-card-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.82rem;
  color: var(--agm-text-muted);
}

.range-card-list li::before {
  content: "• ";
  color: var(--agm-orange);
}

/* Media gallery & video */

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.media-item {
  border-radius: var(--agm-radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.media-item img {
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: cover;
}

.video-embed {
  position: relative;
  border-radius: var(--agm-radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
}

.video-embed iframe {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  border: none;
}

.video-embed iframe {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.video-embed::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(236, 108, 43, 0.35);
  transform: translate(-50%, -50%);
  animation: pulse-play 1.6s infinite;
  pointer-events: none;
}

.video-embed::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--agm-orange);
  transform: translate(-50%, -50%);
  clip-path: polygon(36% 28%, 36% 72%, 74% 50%);
  pointer-events: none;
}

@keyframes pulse-play {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

/* Floating Google reviews */

.google-reviews-badge,
.agmtec-google-badge {
  position: fixed;
  left: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
}

.google-reviews-badge img,
.agmtec-google-badge img {
  width: 70px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Fake order toast */

.fake-order-toast {
  position: fixed;
  right: 0.8rem;
  bottom: 0.8rem;
  max-width: 260px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  font-size: 0.8rem;
  color: var(--agm-text-main);
  display: none;
  z-index: 50;
}

.fake-order-toast.show {
  display: block;
  animation: toast-in 0.4s ease-out;
}

.fake-order-heading {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.fake-order-meta {
  font-size: 0.74rem;
  color: var(--agm-text-muted);
  margin-top: 0.2rem;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 3.2rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  z-index: 45;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* Footer */

.agm-footer {
  border-top: 1px solid var(--agm-border-subtle);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.82rem;
  color: var(--agm-text-muted);
}

.agm-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

.agm-footer-heading {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--agm-text-main);
}

.agm-footer-contact p {
  margin: 0.1rem 0;
}

.agm-footer-note {
  margin-top: 0.9rem;
}

/* Nav */

.agm-nav {
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--agm-border-subtle);
}

.agm-nav ul {
  margin: 0;
  padding: 0 0 0.6rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.82rem;
}

.agm-nav a {
  color: var(--agm-text-muted);
}

.agm-nav a:hover {
  color: var(--agm-orange);
}

/* Cookies */

.cookie-banner {
  position: fixed;
  left: 0.8rem;
  bottom: 0.8rem;
  max-width: 320px;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  color: var(--agm-text-main);
  display: none;
  align-items: center;
  gap: 0.7rem;
  z-index: 60;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-button {
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--agm-orange);
  color: #ffffff;
  font-size: 0.78rem;
}

/* Responsive */

@media (max-width: 900px) {
  .top-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .agm-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .agm-header-contact {
    flex-wrap: wrap;
  }

  .section-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .range-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agm-nav ul {
    gap: 0.9rem;
  }
}

@media (max-width: 640px) {
  .page-inner {
    padding-inline: 1rem;
  }

  .section-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .google-reviews-badge img {
    width: 58px;
  }

  .fake-order-toast {
    left: 0.8rem;
    right: 0.8rem;
  }

  .cookie-banner {
    left: 0.6rem;
    right: 0.6rem;
    max-width: none;
  }
}

