/* ==========================================================================
   Á CHÂU ELECTRIC — BRAND DESIGN SYSTEM
   08 · PHASE 4 INNER PAGES (§18)
   Page hero · breadcrumbs · hub grids · chips · related links ·
   solution blocks · contact page + form architecture · responsive
   Rendered by inc/achau-page-render.php through page-templates/ae-content.php.
   ========================================================================== */

/* 18. PAGE SCOPE — the inner-page equivalent of `.ae-home`
   ========================================================================== */
.ae-page {
  font-family: var(--ae-font);
  font-size: var(--ae-fs-body);
  line-height: var(--ae-lh-body);
  background-color: var(--ae-dark);
  color: var(--ae-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ae-page *,
.ae-page *::before,
.ae-page *::after {
  box-sizing: border-box;
}
.ae-page h1,
.ae-page h2,
.ae-page h3,
.ae-page h4,
.ae-page p,
.ae-page ul,
.ae-page ol,
.ae-page figure,
.ae-page blockquote {
  margin: 0 0 var(--ae-space-4);
  padding: 0;
}
.ae-page ul,
.ae-page ol {
  list-style: none;
}
.ae-page img,
.ae-page svg {
  max-width: 100%;
  height: auto;
}
.ae-page section {
  margin: 0;
}
.ae-page .ae-section h2 {
  font-family: var(--ae-font);
  font-size: var(--ae-fs-h2);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ae-white);
}
.ae-page .ae-section h1 {
  font-family: var(--ae-font);
  color: var(--ae-white);
}
.ae-page .ae-section p:last-child,
.ae-page .ae-section ul:last-child,
.ae-page .ae-section ol:last-child {
  margin-bottom: 0;
}
.ae-page a {
  color: var(--ae-white);
}
.ae-page a:focus-visible,
.ae-page button:focus-visible,
.ae-page summary:focus-visible,
.ae-page input:focus-visible,
.ae-page textarea:focus-visible {
  outline: 3px solid var(--ae-gold);
  outline-offset: 2px;
  border-radius: var(--ae-radius-sm);
}
.ae-page [id] {
  scroll-margin-top: calc(var(--ae-header-h) + 18px);
}
/* Flatsome prints container/card styles for `.content-area`; keep the brand grid */
.ae-page .content-area,
.ae-page .ae-container {
  padding-inline: var(--ae-gutter);
}

/* 18.1 PAGE HERO
   ========================================================================== */
.ae-page-hero {
  padding: clamp(28px, 3.4vw, var(--ae-space-7)) 0 clamp(32px, 4vw, var(--ae-space-8));
  background-color: var(--ae-dark);
  border-bottom: 1px solid var(--ae-line);
}
.ae-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(760px 320px at 10% 0%, rgba(4, 76, 252, 0.16), transparent 62%),
    linear-gradient(rgba(248, 248, 248, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 248, 248, 0.03) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  pointer-events: none;
}
.ae-page-hero > .ae-container {
  position: relative;
}
.ae-page-hero__title {
  margin-bottom: var(--ae-space-4);
}
.ae-page-hero__title--upper {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.ae-page-hero__ctas {
  margin-top: var(--ae-space-5);
}
.ae-page-hero__meta {
  margin-top: var(--ae-space-4);
  font-size: var(--ae-fs-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-text-dim);
}

/* 18.2 BREADCRUMBS (never shown on the homepage)
   ========================================================================== */
.ae-breadcrumb {
  margin-bottom: var(--ae-space-5);
}
.ae-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ae-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--ae-fs-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ae-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--ae-space-2);
  color: var(--ae-text-dim);
}
.ae-breadcrumb li:not(:last-child)::after {
  content: '›';
  color: var(--ae-gray-1);
}
.ae-breadcrumb a {
  color: var(--ae-text-muted);
  text-decoration: none;
}
.ae-breadcrumb a:hover,
.ae-breadcrumb a:focus-visible {
  color: var(--ae-gold);
}
.ae-breadcrumb [aria-current='page'] {
  color: var(--ae-white);
  font-weight: 600;
}

/* 19. LAYOUT BLOCKS
   ========================================================================== */
.ae-page-grid {
  display: grid;
  gap: var(--ae-space-5);
  align-items: start;
}
.ae-page .ae-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}
.ae-page-list {
  display: grid;
  gap: var(--ae-space-4) var(--ae-space-6);
}
.ae-page-list.ae-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}
.ae-page-list.ae-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ae-page-list.ae-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 19.1 CHIPS — short technical labels, optionally linking
   ========================================================================== */
.ae-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ae-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-chips li {
  margin: 0;
}
.ae-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px var(--ae-space-4);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius-sm);
  background: var(--ae-dark-2);
  font-size: var(--ae-fs-caption);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ae-text-muted);
}
.ae-chip--link {
  color: var(--ae-white);
  text-decoration: none;
  transition: border-color var(--ae-transition), color var(--ae-transition), background-color var(--ae-transition);
}
.ae-chip--link:hover,
.ae-chip--link:focus-visible {
  border-color: var(--ae-gold);
  background: var(--ae-dark-3);
  color: var(--ae-gold);
}

/* 19.2 RELATED / LINK LISTS — the contextual internal linking block
   ========================================================================== */
.ae-related__col {
  padding: var(--ae-space-5);
  background: var(--ae-dark-2);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
}
.ae-related__col .ae-h4 {
  padding-bottom: var(--ae-space-3);
  margin-bottom: var(--ae-space-4);
  border-bottom: 1px solid var(--ae-line);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.ae-link-list {
  display: grid;
  gap: var(--ae-space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-link-list li {
  margin: 0;
}
.ae-link-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--ae-space-2);
  min-height: 32px;
  color: var(--ae-text-muted);
  text-decoration: none;
  font-size: var(--ae-fs-small);
}
.ae-link-list a::before {
  content: '';
  width: 8px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--ae-orange);
}
.ae-link-list a:hover,
.ae-link-list a:focus-visible {
  color: var(--ae-gold);
}

/* 19.3 SOLUTION BLOCKS (hub /giai-phap/)
   ========================================================================== */
.ae-solution__col {
  padding: var(--ae-space-5);
  background: var(--ae-dark-2);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
}
.ae-solution__col .ae-h4 {
  font-size: 0.8125rem;
  letter-spacing: var(--ae-ls-wide);
  text-transform: uppercase;
  color: var(--ae-gold);
  margin-bottom: var(--ae-space-3);
}
.ae-solution__actions {
  margin-top: var(--ae-space-5);
}

/* 19.4 PAGE CONTENT (generic fallback + editor content)
   ========================================================================== */
.ae-page-content ul,
.ae-page-content ol {
  padding-left: var(--ae-space-5);
  list-style: disc;
}
.ae-page-content ol {
  list-style: decimal;
}
.ae-page-content img {
  border-radius: var(--ae-radius);
}

/* 19.5 CONTACT PAGE + FORM ARCHITECTURE (Phase 4: structure only, SMTP pending)
   ========================================================================== */
.ae-contact-page__col {
  padding: var(--ae-space-5);
  background: var(--ae-dark-2);
  border: 1px solid var(--ae-line);
  border-radius: var(--ae-radius);
}
.ae-contact-page__col .ae-contact {
  margin-bottom: var(--ae-space-4);
}
.ae-form {
  display: grid;
  gap: var(--ae-space-5);
}
.ae-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ae-space-4);
}
.ae-field {
  display: grid;
  gap: 6px;
  margin: 0;
}
.ae-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ae-gray-2);
}
.ae-field__req {
  color: var(--ae-orange);
}
.ae-field input,
.ae-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px var(--ae-space-4);
  background: var(--ae-dark);
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius-sm);
  color: var(--ae-white);
  font-family: var(--ae-font);
  font-size: var(--ae-fs-small);
}
.ae-field textarea {
  min-height: 120px;
  resize: vertical;
}
.ae-field input::placeholder,
.ae-field textarea::placeholder {
  color: var(--ae-gray-1);
}
.ae-field input:disabled,
.ae-field textarea:disabled {
  opacity: 0.6;
}
.ae-field__hint {
  font-size: var(--ae-fs-caption);
  color: var(--ae-text-dim);
}
/* the textarea field spans both columns on wide screens */
.ae-form__grid .ae-field:last-child {
  grid-column: 1 / -1;
}
.ae-form__actions {
  align-items: center;
}
.ae-form__actions .ae-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}
.ae-form__status {
  margin: 0;
  padding: var(--ae-space-4) var(--ae-space-5);
  border-left: 2px solid var(--ae-gold);
  background: var(--ae-dark-3);
  border-radius: 0 var(--ae-radius) var(--ae-radius) 0;
  font-size: var(--ae-fs-small);
  color: var(--ae-text-muted);
}
.ae-form__status strong {
  color: var(--ae-gold);
  letter-spacing: 0.04em;
}

/* 20.1 OPTIONAL WP-NATIVE MENU (only rendered when a menu is assigned to
   `achau_primary` in Appearance → Menus; the Phase 4 config navigation is used
   otherwise). Keeps the same visual language as `.ae-nav__panel`.
   ========================================================================== */
.ae-nav .menu-item-has-children {
  position: relative;
}
.ae-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: calc(var(--ae-z-header) + 1);
  min-width: 260px;
  display: none;
  padding: var(--ae-space-3);
  margin: 0;
  list-style: none;
  background: var(--ae-dark-1);
  border: 1px solid var(--ae-line-strong);
  border-radius: var(--ae-radius);
  box-shadow: var(--ae-shadow-3);
}
.ae-nav .menu-item-has-children:hover > .sub-menu,
.ae-nav .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}
.ae-nav .sub-menu a {
  display: block;
  padding: 8px var(--ae-space-3);
  color: var(--ae-text-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}
.ae-nav .sub-menu a:hover,
.ae-nav .sub-menu a:focus-visible {
  color: var(--ae-gold);
  background: var(--ae-dark-3);
}
.ae-nav > li.current-menu-item > a,
.ae-nav > li.current-menu-ancestor > a {
  color: var(--ae-white);
}
.ae-nav > li.current-menu-item > a::after,
.ae-nav > li.current-menu-ancestor > a::after {
  opacity: 1;
}

/* 21. RESPONSIVE — inner pages (360 · 390 · 414 · 768 · 1024 · 1366 · 1440 · 1920)
   ========================================================================== */
@media (max-width: 1023px) {
  .ae-page-grid.ae-grid--3,
  .ae-page-grid.ae-grid--4,
  .ae-page-grid.ae-grid--5,
  .ae-page-list.ae-grid--2,
  .ae-page-list.ae-grid--3,
  .ae-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ae-page-hero__title {
    font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.4rem);
  }
}

@media (max-width: 767px) {
  .ae-page-grid,
  .ae-page-grid.ae-grid--2,
  .ae-page-grid.ae-grid--3,
  .ae-page-grid.ae-grid--4,
  .ae-page-grid.ae-grid--5,
  .ae-page-list.ae-grid--2,
  .ae-page-list.ae-grid--3,
  .ae-form__grid,
  .ae-related {
    grid-template-columns: minmax(0, 1fr);
  }
  .ae-page-hero {
    padding: clamp(20px, 6vw, var(--ae-space-6)) 0 var(--ae-space-6);
  }
  .ae-page-hero__meta {
    font-size: 0.6875rem;
  }
  .ae-related__col,
  .ae-solution__col,
  .ae-contact-page__col {
    padding: var(--ae-space-4);
  }
  .ae-chip {
    width: 100%;
    justify-content: flex-start;
  }
  .ae-chips li {
    width: 100%;
  }
  .ae-timeline {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .ae-page .ae-section h2 {
    font-size: 1.3825rem;
  }
  .ae-page-hero__title {
    font-size: 1.5rem;
    line-height: 1.18;
  }
  .ae-breadcrumb ol {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }
  .ae-page .ae-btn,
  .ae-page .ae-btn-row .ae-btn {
    width: 100%;
  }
  .ae-page .ae-link-list a {
    min-height: 40px;
  }
  .ae-form__actions .ae-btn {
    width: 100%;
  }
}


