/*
 Theme Name:   FOXCO Astra
 Description:  Astra child theme for FOXCO Technology Paint
 Author:       Cong ty Son Thinh Vuong
 Template:     astra
 Version:      1.4.1
 Text Domain:  foxco-astra
*/

:root {
  --alx-ink: #10201b;
  --alx-muted: #5b7069;
  --alx-green: #00664c;
  --alx-green-2: #0b8a62;
  --alx-deep: #062d25;
  --alx-red: #e60012;
  --alx-gold: #f7bd3b;
  --alx-cream: #f7f3eb;
  --alx-mist: #edf7f3;
  --alx-line: rgba(16, 32, 27, .11);
  --alx-white: #fff;
  --alx-shadow: 0 18px 48px rgba(6, 45, 37, .14);
  --alx-radius: 8px;
  --alx-font: "Inter", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--alx-ink);
  font-family: var(--alx-font);
  background: var(--alx-white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--alx-green);
  text-decoration: none;
}

a:hover {
  color: var(--alx-red);
}

.dashicons {
  width: 1em;
  height: 1em;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -.12em;
}

body.alx-homepage #content.site-content,
body.ak-homepage #content.site-content {
  padding: 0 !important;
  overflow-x: hidden;
}

body.alx-homepage #content .ast-container,
body.ak-homepage #content .ast-container,
body.alx-homepage #primary,
body.ak-homepage #primary {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.alx-homepage #secondary,
body.ak-homepage #secondary {
  display: none !important;
}

#masthead,
.ast-primary-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--alx-line) !important;
}

.ast-primary-header-bar {
  min-height: 72px;
}

.site-branding {
  min-width: 260px;
}

.site-title,
.site-description {
  margin: 0 !important;
}

.site-title a {
  color: var(--alx-deep) !important;
  font-weight: 900;
  letter-spacing: .02em;
}

.main-header-menu .menu-link,
.main-header-menu > .menu-item > .menu-link {
  color: var(--alx-ink) !important;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link {
  color: var(--alx-red) !important;
}

.ast-builder-menu-1 .menu-item > .menu-link {
  padding-left: 18px;
  padding-right: 18px;
}

.ast-mobile-header-wrap .menu-toggle,
.ast-mobile-header-wrap .ast-mobile-menu-trigger-minimal {
  color: var(--alx-deep) !important;
}

.ast-mobile-header-wrap .main-header-menu {
  background: #ffffff !important;
}

.alx-home {
  background: var(--alx-white);
  color: var(--alx-ink);
}

.alx-wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.alx-hero {
  position: relative;
  min-height: 720px;
  isolation: isolate;
  overflow: hidden;
  background: var(--alx-deep);
}

.alx-hero__media,
.alx-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.alx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.96) contrast(1.04);
}

.alx-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 45, 37, .94) 0%, rgba(0, 102, 76, .82) 46%, rgba(6, 45, 37, .48) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .1) 0%, rgba(0, 0, 0, .52) 100%);
}

.alx-hero__grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  gap: 54px;
  align-items: center;
  padding: 86px 0 58px;
}

.alx-eyebrow,
.alx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid rgba(247, 189, 59, .45);
  border-radius: 999px;
  background: rgba(247, 189, 59, .12);
  color: var(--alx-gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alx-hero h1 {
  max-width: 720px;
  margin: 24px 0 22px;
  color: #fff;
  font-size: clamp(2.8rem, 5.7vw, 5.45rem);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 900;
}

.alx-title-main,
.alx-title-sub {
  display: block;
}

.alx-hero__copy p {
  max-width: 630px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}

.alx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.alx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 24px;
  border-radius: var(--alx-radius);
  font-weight: 900;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.alx-btn:hover {
  transform: translateY(-2px);
}

.alx-btn--primary {
  background: var(--alx-gold);
  color: #111 !important;
  box-shadow: 0 16px 34px rgba(247, 189, 59, .28);
}

.alx-btn--primary:hover {
  background: #ffd56c;
  color: #111 !important;
}

.alx-btn--ghost {
  border: 1px solid rgba(255, 255, 255, .46);
  color: #fff !important;
  background: rgba(255, 255, 255, .08);
}

.alx-btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
  color: #fff !important;
}

.alx-hero__showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}

.alx-product-window {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .62);
}

.alx-product-window img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.alx-product-window--large {
  grid-column: 1 / -1;
}

.alx-product-window--large img {
  aspect-ratio: 16 / 8;
}

.alx-proof {
  background: rgba(6, 45, 37, .92);
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.alx-proof__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.alx-proof__item {
  min-height: 104px;
  padding: 22px 18px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
}

.alx-proof__item:last-child {
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.alx-proof__item .dashicons {
  color: var(--alx-gold);
  font-size: 1.32rem;
}

.alx-proof__item strong {
  font-size: .98rem;
}

.alx-proof__item small {
  color: rgba(255, 255, 255, .68);
  line-height: 1.45;
}

.alx-section {
  padding: 92px 0;
}

.alx-section--light {
  background:
    linear-gradient(180deg, #fff 0%, var(--alx-mist) 100%);
}

.alx-section--story {
  background: var(--alx-cream);
}

.alx-section--dark {
  background:
    radial-gradient(circle at 12% 15%, rgba(247, 189, 59, .12), transparent 28%),
    linear-gradient(135deg, var(--alx-deep), #074a3b);
  color: #fff;
}

.alx-section--gallery {
  background: #fff;
}

.alx-section--dealer {
  background:
    linear-gradient(90deg, rgba(6, 45, 37, .94), rgba(0, 102, 76, .86)),
    var(--alx-deep);
  color: #fff;
}

.alx-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.alx-heading--inverse {
  color: #fff;
}

.alx-heading .alx-kicker,
.alx-story-copy .alx-kicker,
.alx-dealer .alx-kicker {
  background: rgba(0, 102, 76, .08);
  border-color: rgba(0, 102, 76, .18);
  color: var(--alx-green);
}

.alx-heading--inverse .alx-kicker,
.alx-dealer .alx-kicker {
  background: rgba(247, 189, 59, .12);
  border-color: rgba(247, 189, 59, .36);
  color: var(--alx-gold);
}

.alx-heading h2,
.alx-story-copy h2,
.alx-dealer h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 900;
}

.alx-heading p,
.alx-story-copy p,
.alx-dealer p {
  margin: 0;
  color: var(--alx-muted);
  font-size: 1.06rem;
  line-height: 1.74;
}

.alx-heading--inverse p,
.alx-dealer p {
  color: rgba(255, 255, 255, .78);
}

.alx-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.alx-card {
  background: #fff;
  border: 1px solid var(--alx-line);
  border-radius: var(--alx-radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(6, 45, 37, .08);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.alx-card__image {
  display: block;
  background: var(--alx-mist);
  overflow: hidden;
}

.alx-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.alx-card:hover .alx-card__image img {
  transform: scale(1.04);
}

.alx-card__body {
  padding: 24px;
  display: grid;
  gap: 13px;
  flex: 1;
}

.alx-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--alx-green);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.alx-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--alx-ink);
}

.alx-card p {
  margin: 0;
  color: var(--alx-muted);
  line-height: 1.62;
}

.alx-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--alx-red);
  font-weight: 900;
}

.alx-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 58px;
  align-items: center;
}

.alx-story-media {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--alx-shadow);
  background: #fff;
}

.alx-story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.alx-checklist {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.alx-checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--alx-ink);
  line-height: 1.62;
}

.alx-checklist .dashicons {
  margin-top: 3px;
  color: var(--alx-green);
  font-size: 1.12rem;
}

.alx-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.alx-step {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--alx-radius);
  background: rgba(255, 255, 255, .08);
}

.alx-step span {
  display: block;
  margin-bottom: 36px;
  color: var(--alx-gold);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}

.alx-step h3 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.18rem;
  font-weight: 900;
}

.alx-step p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  line-height: 1.6;
}

.alx-gallery {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}

.alx-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--alx-radius);
  min-height: 360px;
  background: var(--alx-mist);
}

.alx-gallery__wide {
  min-height: 520px;
}

.alx-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.alx-gallery figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  background: rgba(255, 255, 255, .92);
  border-radius: 8px;
  color: var(--alx-ink);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.alx-dealer {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 48px;
  align-items: center;
}

.alx-dealer img {
  width: 100%;
  border-radius: var(--alx-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .24);
}

.alx-dealer .alx-btn {
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .alx-hero__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .alx-hero__showcase {
    max-width: 760px;
  }

  .alx-proof__grid,
  .alx-products,
  .alx-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alx-split,
  .alx-dealer {
    grid-template-columns: 1fr;
  }

  .alx-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .alx-gallery__wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .alx-wrap {
    width: min(100% - 28px, 1180px);
  }

  .ast-primary-header-bar {
    min-height: 62px;
  }

  .site-branding {
    min-width: 180px;
  }

  .alx-hero {
    min-height: auto;
  }

  .alx-hero__grid {
    min-height: auto;
    padding: 56px 0 42px;
  }

  .alx-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    font-size: clamp(2.08rem, 10vw, 3.05rem);
    line-height: 1.02;
  }

  .alx-actions,
  .alx-btn {
    width: 100%;
  }

  .alx-hero__showcase,
  .alx-proof__grid,
  .alx-products,
  .alx-process,
  .alx-gallery {
    grid-template-columns: 1fr;
  }

  .alx-hero__showcase {
    width: 100%;
    max-width: 100%;
  }

  .alx-product-window img,
  .alx-product-window--large img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
  }

  .alx-product-window--large {
    grid-column: auto;
  }

  .alx-section {
    padding: 64px 0;
  }

  .alx-proof__item {
    border-right: 1px solid rgba(255, 255, 255, .1);
  }

  .alx-gallery figure,
  .alx-gallery__wide {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  body.alx-homepage .alx-hero h1 {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(1.85rem, 8.3vw, 2.35rem) !important;
    line-height: 1.08 !important;
  }

  body.alx-homepage .alx-hero__copy,
  body.alx-homepage .alx-hero__copy p {
    max-width: 100%;
    min-width: 0;
  }

  body.alx-homepage .alx-title-sub {
    font-size: .78em;
    line-height: 1.12;
  }
}
