/*
Theme Name: Asia Core Group
Theme URI: https://hamedalrasni.com
Author: HaMeD Al-Rasni
Author URI: https://hamedalrasni.com
Description: A premium custom WordPress theme built for Asia Core Group.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: asia-core-group
Tags: custom-theme, responsive, business, rtl-language-support
*/

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  /* Brand — deep institutional slate, replaces flat navy */
  --brand-900: #0f172a;
  --brand-800: #1e293b;
  --brand-700: #334155;

  /* Accent — warm copper/amber, replaces bright yellow */
  --accent-600: #b45309;
  --accent-500: #d97706;
  --accent-400: #f59e0b;
  --accent-300: #fbbf24;

  /* Neutrals — warm greyscale */
  --neutral-950: #0a0a0a;
  --neutral-900: #171717;
  --neutral-800: #262626;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;
  --neutral-50: #fafafa;

  /* Surfaces */
  --surface-100: #f8f6f2;
  --surface-200: #edeae4;
  --surface-800: #1c1f25;
  --surface-900: #12151a;

  /* Functional */
  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-inverted: var(--neutral-50);
  --link: var(--accent-600);
  --link-hover: var(--accent-500);
  --focus: var(--accent-400);
  --success: #166534;
  --warning: #a16207;
  --error: #991b1b;

  /* Dynamic product colors (fallbacks) */
  --product-dominant: var(--accent-600);
  --product-secondary: var(--accent-400);
  --product-light: var(--surface-200);
  --product-dark: var(--brand-900);
  --product-btn-bg: var(--product-dominant);
  --product-btn-text: var(--text-inverted);

  /* Typography */
  --font-arabic: "Cairo", system-ui, sans-serif;
  --font-latin: "Sora", "Inter", system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.62vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.1rem + 1.37vw, 2rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 2.25vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 3.25vw, 3.75rem);
  --text-4xl: clamp(2.75rem, 2rem + 4.5vw, 5rem);
  --text-5xl: clamp(3.5rem, 2.5rem + 6vw, 6.5rem);

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;
  --space-13: 10rem;

  /* Layout */
  --container-sm: 720px;
  --container-md: 960px;
  --container-lg: 1200px;
  --container-xl: 1400px;
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --grid-gap: clamp(1rem, 2vw, 1.5rem);
  --grid-row-gap: clamp(1.5rem, 3vw, 2.5rem);

  /* Header */
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* Motion */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
}

/* ============================================================
   2. RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-arabic);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--surface-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: start;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding-inline-start: 1.5rem;
}

img,
embed,
iframe,
object,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* ============================================================
   3. BASE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); font-weight: 700; line-height: var(--leading-tight); letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; }

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  letter-spacing: 0;
  line-height: var(--leading-snug);
}

/* ============================================================
   4. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--xl { max-width: var(--container-xl); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  row-gap: var(--grid-row-gap);
}

.section {
  padding-block: var(--space-11);
}

.section--tight {
  padding-block: var(--space-8);
}

.section--hero {
  padding-block: var(--space-13);
}

/* ============================================================
   5. COMPONENTS
   ============================================================ */

/* Buttons */
.acg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-arabic);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.acg-button--primary {
  background-color: var(--accent-600);
  color: var(--surface-100);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.acg-button--primary:hover {
  background-color: var(--accent-500);
  color: var(--surface-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(180, 83, 9, 0.25);
}

.acg-button--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--neutral-300);
}

.acg-button--secondary:hover {
  border-color: var(--accent-500);
  color: var(--accent-600);
  transform: translateY(-2px);
}

.acg-button--text {
  background: transparent;
  color: var(--accent-600);
  padding-inline: 0;
}

.acg-button--text::after {
  content: "→";
  display: inline-block;
  transition: transform var(--duration-fast) ease;
}

[dir="rtl"] .acg-button--text::after { content: "←"; }

.acg-button--text:hover::after {
  transform: translateX(4px);
}

[dir="rtl"] .acg-button--text:hover::after {
  transform: translateX(-4px);
}

.acg-button--product {
  background-color: var(--product-btn-bg, var(--product-dominant));
  color: var(--product-btn-text);
}

.acg-button--product:hover {
  filter: brightness(1.1);
}

/* Cards */
.acg-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--surface-800);
  color: var(--text-inverted);
  border-radius: 0;
}

.acg-category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.acg-category-card:hover .acg-category-card__image {
  transform: scale(1.04);
}

.acg-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.4) 45%, rgba(15, 23, 42, 0) 100%);
}

.acg-category-card__title {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
}

.acg-category-card__line {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-400);
  transition: width 400ms var(--ease-out);
}

.acg-category-card:hover .acg-category-card__line {
  width: 100%;
}

.acg-product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 2px;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}

.acg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.acg-product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.acg-product-card__link:hover {
  color: inherit;
}

.acg-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow: hidden;
}

.acg-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease-out);
}

.acg-product-card:hover .acg-product-card__media img {
  transform: scale(1.03);
}

.acg-product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.acg-product-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.acg-product-card__title a {
  color: var(--text-primary);
}

.acg-product-card__title a:hover {
  color: var(--accent-600);
}

.acg-product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Section Header */
.acg-section-header {
  margin-block-end: var(--space-8);
  max-width: var(--container-md);
}

.acg-section-header--center {
  text-align: center;
  margin-inline: auto;
}

.acg-section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-600);
  margin-block-end: var(--space-3);
}

[dir="rtl"] .acg-section-header__eyebrow {
  letter-spacing: 0;
}

.acg-section-header__eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background-color: currentColor;
}

.acg-section-header__title {
  margin-block-end: var(--space-4);
}

.acg-section-header__lede {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Forms */
.acg-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.acg-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

[dir="rtl"] .acg-label {
  letter-spacing: 0;
}

.acg-input,
.acg-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-300);
  border-radius: 2px;
  font-size: var(--text-base);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.acg-input:focus,
.acg-textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.acg-textarea {
  min-height: 160px;
  resize: vertical;
}

.acg-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23525' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1rem;
  padding-inline-start: var(--space-4);
  cursor: pointer;
}

[dir="rtl"] .acg-select {
  background-position: right 1rem center;
}

.acg-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-block-end: var(--space-5);
}

@media (min-width: 640px) {
  .acg-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-form-wrap {
  max-width: var(--container-lg);
  margin-inline: auto;
  margin-block-start: var(--space-10);
}

.acg-contact-form .acg-button {
  margin-block-start: var(--space-2);
}

.acg-notice {
  padding: var(--space-4) var(--space-5);
  margin-block-end: var(--space-6);
  border-radius: 2px;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.acg-notice--success {
  background-color: #dcfce7;
  color: var(--success);
  border-inline-start: 4px solid var(--success);
}

.acg-notice--error {
  background-color: #fee2e2;
  color: var(--error);
  border-inline-start: 4px solid var(--error);
}

.acg-notice--error ul {
  margin-block-start: var(--space-2);
  margin-block-end: 0;
}

/* ============================================================
   6. BLOCKS
   ============================================================ */

/* Header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  color: var(--text-inverted);
  transition: background-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, color var(--duration-normal) ease;
}

.site-header.is-scrolled {
  background-color: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(16px) saturate(1.8);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: inherit;
  text-decoration: none;
}

.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: block;
    flex: 1;
  }

  .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
  }

  .main-navigation a {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    padding-block: var(--space-2);
  }

  .main-navigation a::after {
    content: "";
    position: absolute;
    inset-block-end: -4px;
    inset-inline-start: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-500);
    transition: width 250ms var(--ease-out);
  }

  .main-navigation a:hover::after,
  .main-navigation a[aria-current="page"]::after,
  .main-navigation .current-menu-item > a::after {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.site-header .container {
  overflow-x: hidden;
}

.acg-hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .acg-hidden-mobile {
    display: initial;
  }
}

.acg-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.acg-dark-toggle:hover {
  background-color: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--text-inverted);
}

.acg-dark-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Language Switcher */
.acg-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
}

.acg-lang-switcher a {
  color: inherit;
  opacity: 0.65;
}

.acg-lang-switcher a:hover,
.acg-lang-switcher a.is-current {
  opacity: 1;
  color: var(--accent-500);
}

.acg-lang-switcher__divider {
  opacity: 0.4;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: background-color var(--duration-fast) ease;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--duration-fast) var(--ease-out);
}

.mobile-menu-toggle span::before { inset-block-start: -7px; }
.mobile-menu-toggle span::after { inset-block-start: 7px; }

.mobile-menu-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-navigation {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  padding-block-start: calc(var(--header-height-mobile) + var(--space-8));
  padding-inline: var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out);
}

.mobile-navigation.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-navigation a {
  color: var(--text-inverted);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.mobile-navigation a:hover {
  color: var(--accent-300);
}

.mobile-navigation .acg-button {
  align-self: flex-start;
}

@media (min-width: 1024px) {
  .mobile-navigation {
    display: none;
  }
}

.mobile-navigation__close {
  position: absolute;
  inset-block-start: calc((var(--header-height-mobile) - 44px) / 2);
  inset-inline-end: var(--page-gutter);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-inverted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.mobile-navigation__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 1024px) {
  .mobile-overlay {
    display: none;
  }
}

/* Hero */
.acg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  overflow: hidden;
  padding-block-start: var(--header-height);
}

.acg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background: radial-gradient(ellipse at 20% 20%, rgba(180, 83, 9, 0.25) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(30, 41, 59, 0.6) 0%, transparent 50%), var(--surface-900);
}

.acg-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.acg-hero .container {
  position: relative;
  z-index: 1;
}

.acg-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .acg-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.acg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-300);
  margin-block-end: var(--space-5);
}

[dir="rtl"] .acg-hero__eyebrow {
  letter-spacing: 0;
}

.acg-hero__title {
  font-size: var(--text-5xl);
  color: var(--text-inverted);
  margin-block-end: var(--space-5);
}

.acg-hero__lede {
  font-size: var(--text-lg);
  color: rgba(250, 250, 250, 0.8);
  max-width: 540px;
  margin-block-end: var(--space-8);
}

.acg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.acg-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acg-hero__media img {
  max-height: 60vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.35));
  animation: acg-hero-float 6s ease-in-out infinite;
}

@keyframes acg-hero-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acg-hero__media img {
    animation: none;
  }
}

/* Credibility Bar */
.acg-credibility {
  background-color: var(--surface-900);
  color: var(--text-inverted);
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-8);
}

.acg-credibility__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .acg-credibility__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-credibility__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-inline-end: var(--space-6);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .acg-credibility__item {
  padding-inline-end: 0;
  padding-inline-start: var(--space-6);
  border-inline-end: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.acg-credibility__item:last-child {
  border-inline-end: none;
  border-inline-start: none;
}

.acg-credibility__value {
  font-family: var(--font-latin);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--accent-300);
}

.acg-credibility__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 250, 0.65);
}

[dir="rtl"] .acg-credibility__label {
  letter-spacing: 0;
}

/* Page Header */
.acg-page-header {
  background-color: var(--surface-900);
  color: var(--text-inverted);
  padding-block-start: calc(var(--header-height) + var(--space-12));
  padding-block-end: var(--space-10);
}

.acg-page-header__title {
  color: var(--text-inverted);
  font-size: var(--text-4xl);
}

.acg-page-header__lede {
  color: rgba(250, 250, 250, 0.75);
  font-size: var(--text-lg);
  max-width: 680px;
  margin-block-start: var(--space-4);
}

/* Footer */
.site-footer {
  background-color: var(--surface-900);
  color: rgba(250, 250, 250, 0.7);
  padding-block-start: var(--space-11);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-600), transparent);
}

.site-footer__newsletter {
  padding-block-end: var(--space-10);
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
  margin-block-end: var(--space-10);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block-end: var(--space-10);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand .site-title {
  color: var(--text-inverted);
  margin-block-end: var(--space-4);
}

.site-footer__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  max-width: 320px;
}

.site-footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverted);
  margin-block-end: var(--space-5);
}

[dir="rtl"] .site-footer__col-title {
  letter-spacing: 0;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a {
  color: rgba(250, 250, 250, 0.7);
}

.site-footer__links a:hover {
  color: var(--text-inverted);
}

.site-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(250, 250, 250, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ============================================================
   7. TEMPLATES
   ============================================================ */

/* Front Page */
.home .site-content {
  padding-block-start: 0;
}

.site-content {
  padding-block: var(--space-10);
}

.acg-featured-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-featured-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .acg-featured-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.acg-why-us {
  background-color: var(--surface-900);
  color: var(--text-inverted);
}

.acg-why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-why-us__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-why-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6);
  border-radius: 2px;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}

.acg-why-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-600);
  transform: translateY(-4px);
}

.acg-why-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-400);
  margin-block-end: var(--space-5);
}

.acg-why-card__title {
  font-size: var(--text-xl);
  color: var(--text-inverted);
  margin-block-end: var(--space-3);
}

.acg-why-card__text {
  font-size: var(--text-sm);
  color: rgba(250, 250, 250, 0.7);
  line-height: var(--leading-normal);
}

.acg-services-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-services-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-services-preview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-service-card {
  border-block-start: 2px solid var(--accent-600);
  padding-block-start: var(--space-5);
}

.acg-service-card__num {
  font-family: var(--font-latin);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent-600);
  line-height: 1;
  margin-block-end: var(--space-4);
}

.acg-service-card__title {
  font-size: var(--text-lg);
  margin-block-end: var(--space-3);
}

.acg-service-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.acg-clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .acg-clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-clients__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.acg-clients__grid img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition: filter var(--duration-fast) ease, transform var(--duration-fast) ease;
}

@media (hover: hover) {
  .acg-clients__grid img {
    filter: grayscale(100%);
    opacity: 0.7;
  }

  .acg-clients__grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
  }
}

.acg-cta {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: var(--text-inverted);
  text-align: center;
}

.acg-cta__title {
  color: var(--text-inverted);
  font-size: var(--text-3xl);
  margin-block-end: var(--space-6);
}

/* Products Hub / Archive */
.acg-sector-tree {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.acg-sector-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}

.acg-sector-card:hover {
  border-color: var(--accent-500);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.acg-sector-card[aria-expanded="true"] {
  border-color: var(--accent-600);
}

.acg-sector-card[aria-expanded="true"] .acg-sector-card__arrow {
  transform: rotate(90deg);
}

[dir="rtl"] .acg-sector-card[aria-expanded="true"] .acg-sector-card__arrow {
  transform: scaleX(-1) rotate(90deg);
}

.acg-sector-panel {
  padding: var(--space-6);
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-top: none;
  border-radius: 0 0 2px 2px;
}

.acg-sector-card__media {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.acg-sector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acg-sector-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.acg-sector-card__title {
  font-size: var(--text-xl);
  margin-block-end: var(--space-2);
}

.acg-sector-card__count {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

[dir="rtl"] .acg-sector-card__count {
  letter-spacing: 0;
}

.acg-sector-card__arrow {
  color: var(--accent-600);
  font-size: var(--text-xl);
}

[dir="rtl"] .acg-sector-card__arrow {
  transform: scaleX(-1);
}

@media (max-width: 767px) {
  .acg-sector-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .acg-sector-card__media {
    width: 100%;
    height: 180px;
  }
}

.acg-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  row-gap: var(--grid-row-gap);
}

@media (min-width: 640px) {
  .acg-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .acg-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Single Product Page */
.product-chromatic-scope {
  --product-dominant: var(--accent-600);
  --product-secondary: var(--accent-400);
  --product-light: var(--surface-200);
  --product-dark: var(--brand-900);
  --product-gradient: linear-gradient(145deg, var(--product-light) 0%, rgba(255, 255, 255, 0) 55%);
}

.single-product-page .site-content {
  padding-block-start: 0;
}

.single-product-page .site-header:not(.is-scrolled) {
  color: var(--text-primary);
}

.product-hero {
  position: relative;
  padding-block-start: calc(var(--header-height) + var(--space-12));
  padding-block-end: var(--space-12);
  background: radial-gradient(ellipse at 80% 20%, var(--product-dominant, transparent) 0%, transparent 50%), radial-gradient(ellipse at 20% 90%, var(--product-secondary, transparent) 0%, transparent 45%), var(--surface-100);
  transition: background 800ms var(--ease-out);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .product-hero__grid {
    grid-template-columns: 55% 1fr;
  }
}

.product-hero__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  padding: var(--space-8);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
  min-height: 420px;
}

.product-hero__figure::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: var(--product-dominant);
  filter: blur(60px);
  opacity: 0.22;
  z-index: -1;
  transition: background 800ms var(--ease-out);
}

.product-hero__image {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.product-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-hero__eyebrow {
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
}

[dir="rtl"] .product-hero__eyebrow {
  letter-spacing: 0;
}

.product-hero__title {
  font-size: var(--text-4xl);
  margin-block-end: var(--space-2);
}

.product-hero__intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-4);
}

.product-story {
  padding-block: var(--space-12);
}

.product-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .product-story__grid {
    grid-template-columns: 2fr 1fr;
  }
}

.product-story__main {
  font-size: var(--text-base);
  color: var(--text-primary);
}

.product-story__main h2,
.product-story__main h3 {
  margin-block-start: var(--space-8);
  margin-block-end: var(--space-4);
}

.product-story__main p {
  margin-block-end: var(--space-5);
}

.product-story__main ul,
.product-story__main ol {
  margin-block-end: var(--space-5);
}

.product-story__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.product-specs {
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
  border-radius: 2px;
}

.product-specs__title {
  font-size: var(--text-lg);
  margin-block-end: var(--space-5);
}

.product-specs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-specs__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block-end: var(--space-4);
  border-block-end: 1px solid var(--neutral-200);
  font-size: var(--text-sm);
}

.product-specs__item:last-child {
  border-block-end: none;
  padding-block-end: 0;
}

.product-specs__label {
  color: var(--text-secondary);
}

.product-specs__value {
  font-weight: 600;
  color: var(--text-primary);
}

.product-features {
  padding-block: var(--space-12);
  background-color: var(--surface-200);
}

.product-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .product-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-feature-card {
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: var(--space-6);
  border-radius: 2px;
  transition: border-color var(--duration-fast) ease;
}

.product-feature-card:hover {
  border-color: var(--product-dominant);
}

.product-feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--product-dominant);
  margin-block-end: var(--space-4);
}

.product-feature-card__title {
  font-size: var(--text-lg);
  margin-block-end: var(--space-3);
}

.product-feature-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.related-products {
  padding-block: var(--space-12);
}

/* Generic Page / Post */
.entry-header {
  margin-block-end: var(--space-8);
}

.entry-title {
  font-size: var(--text-4xl);
  margin-block-end: var(--space-4);
}

.entry-content {
  max-width: var(--container-md);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-block-start: var(--space-8);
  margin-block-end: var(--space-4);
}

.entry-content p {
  margin-block-end: var(--space-5);
}

.entry-content ul,
.entry-content ol {
  margin-block-end: var(--space-5);
}

.entry-content img {
  border-radius: 2px;
}

/* ============================================================
   8. UTILITIES
   ============================================================ */

.acg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.acg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.acg-reveal-group .acg-reveal:nth-child(2) { transition-delay: 80ms; }
.acg-reveal-group .acg-reveal:nth-child(3) { transition-delay: 160ms; }
.acg-reveal-group .acg-reveal:nth-child(4) { transition-delay: 240ms; }
.acg-reveal-group .acg-reveal:nth-child(5) { transition-delay: 320ms; }
.acg-reveal-group .acg-reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .acg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.acg-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;
}

.acg-text-center { text-align: center; }
.acg-text-start { text-align: start; }
.acg-text-end { text-align: end; }

.acg-stack-end { margin-block-start: auto; }

.acg-reveal-delay-1 { transition-delay: 120ms; }
.acg-reveal-delay-2 { transition-delay: 200ms; }
.acg-reveal-delay-3 { transition-delay: 280ms; }
.acg-reveal-delay-4 { transition-delay: 360ms; }

.acg-margin-bottom-xl { margin-block-end: var(--space-12); }

.acg-fallback-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

.acg-fallback-gradient--fixed {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
}

.acg-page-thumbnail {
  width: 100%;
  border-radius: 2px;
}

.acg-client-placeholder {
  width: 120px;
  height: 48px;
  background-color: var(--neutral-200);
  color: var(--neutral-500);
  font-size: var(--text-xs);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acg-cta-button-dark {
  color: var(--surface-900);
  border-color: var(--surface-900);
}

.acg-category-card__image {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-900));
}

/* ============================================================
   9. RTL HELPERS
   ============================================================ */

[dir="rtl"] body {
  word-spacing: 0.02em;
}

[dir="rtl"] .acg-section-header__eyebrow::after {
  order: -1;
}

/* ============================================================
   10. RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 1023px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .acg-hero__title,
  .acg-page-header__title,
  .entry-title,
  .product-hero__title {
    font-size: var(--text-3xl);
  }

  .acg-hero__lede,
  .acg-page-header__lede,
  .product-hero__intro {
    font-size: var(--text-base);
  }
}

@media (max-width: 767px) {
  .acg-credibility__grid {
    grid-template-columns: 1fr;
  }

  .acg-credibility__item {
    border-inline-end: none;
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
    padding-inline-end: 0;
    padding-block-end: var(--space-4);
  }

  [dir="rtl"] .acg-credibility__item {
    border-inline-start: none;
  }
}

/* ============================================================
   11. WORDPRESS DEFAULTS / COMPAT
   ============================================================ */

.alignwide {
  max-width: var(--container-xl);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-inline: calc(-50vw + 50%);
  max-width: none;
}

.wp-caption {
  max-width: 100%;
}

.gallery {
  display: grid;
  gap: var(--space-4);
}

/* ============================================================
   12. DARK MODE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --surface-100: #12151a;
    --surface-200: #1c1f25;
    --surface-800: #edeae4;
    --surface-900: #f8f6f2;

    --text-primary: var(--neutral-50);
    --text-secondary: var(--neutral-400);
    --text-inverted: var(--neutral-900);

    --link: var(--accent-400);
    --link-hover: var(--accent-300);
  }

  body {
    color-scheme: dark;
  }
}

.is-dark {
  --surface-100: #12151a;
  --surface-200: #1c1f25;
  --surface-800: #edeae4;
  --surface-900: #f8f6f2;

  --text-primary: var(--neutral-50);
  --text-secondary: var(--neutral-400);
  --text-inverted: var(--neutral-900);

  --link: var(--accent-400);
  --link-hover: var(--accent-300);

  color-scheme: dark;
}

/* Dark-mode component overrides for system preference. */
@media (prefers-color-scheme: dark) {
  .site-header.is-scrolled {
    background-color: rgba(18, 21, 26, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .acg-input,
  .acg-textarea,
  .acg-select {
    background-color: var(--surface-200);
    border-color: var(--neutral-700);
    color: var(--text-primary);
  }

  .acg-input:focus,
  .acg-textarea:focus,
  .acg-select:focus {
    border-color: var(--accent-400);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  }

  .product-specs,
  .product-features__item,
  .acg-sector-card,
  .acg-product-card,
  .acg-value-card,
  .acg-service-card,
  .acg-why-card,
  .client-card,
  .acg-card,
  .acg-notice {
    background-color: var(--surface-200);
  }

  .acg-page-header::before,
  .product-hero::before,
  .site-footer::before {
    opacity: 0.06;
  }

  .acg-timeline__list::before {
    background-color: var(--neutral-700);
  }

  .acg-timeline__dot {
    background-color: var(--surface-200);
    border-color: var(--accent-400);
  }

  .acg-map-card iframe {
    filter: invert(0.92) hue-rotate(180deg);
  }
}

/* Same overrides when the .is-dark class is toggled manually. */
.is-dark .site-header.is-scrolled {
  background-color: rgba(18, 21, 26, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.is-dark .acg-input,
.is-dark .acg-textarea,
.is-dark .acg-select {
  background-color: var(--surface-200);
  border-color: var(--neutral-700);
  color: var(--text-primary);
}

.is-dark .acg-input:focus,
.is-dark .acg-textarea:focus,
.is-dark .acg-select:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.is-dark .product-specs,
.is-dark .product-features__item,
.is-dark .acg-sector-card,
.is-dark .acg-product-card,
.is-dark .acg-value-card,
.is-dark .acg-service-card,
.is-dark .acg-why-card,
.is-dark .client-card,
.is-dark .acg-card,
.is-dark .acg-notice {
  background-color: var(--surface-200);
}

.is-dark .acg-page-header::before,
.is-dark .product-hero::before,
.is-dark .site-footer::before {
  opacity: 0.06;
}

.is-dark .acg-timeline__list::before {
  background-color: var(--neutral-700);
}

.is-dark .acg-timeline__dot {
  background-color: var(--surface-200);
  border-color: var(--accent-400);
}

.is-dark .acg-map-card iframe {
  filter: invert(0.92) hue-rotate(180deg);
}

/* ============================================================
   13. NOISE TEXTURE
   ============================================================ */

.site-footer::before,
.acg-hero__bg::before,
.product-hero::before,
.acg-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.acg-hero__bg,
.product-hero,
.acg-page-header {
  position: relative;
}

.site-footer {
  position: relative;
}

/* ============================================================
   14. BREADCRUMBS
   ============================================================ */

.acg-breadcrumbs {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding-block: var(--space-3) 0;
}

.acg-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.acg-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.acg-breadcrumbs__link {
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.acg-breadcrumbs__link:hover {
  color: var(--link);
}

.acg-breadcrumbs__current {
  color: var(--text-primary);
  font-weight: 500;
}

.acg-breadcrumbs__sep {
  opacity: 0.4;
}

/* ============================================================
   15. TIMELINE
   ============================================================ */

.acg-timeline {
  position: relative;
  max-width: var(--container-md);
  margin-inline: auto;
  padding-block-start: var(--space-6);
}

.acg-timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.acg-timeline__list::before {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  inset-block: 0;
  width: 2px;
  background-color: var(--neutral-300);
}

[dir="rtl"] .acg-timeline__list::before {
  inset-inline-start: auto;
  inset-inline-end: 12px;
}

.acg-timeline__item {
  position: relative;
  padding-inline-start: var(--space-8);
  padding-block-end: var(--space-8);
}

[dir="rtl"] .acg-timeline__item {
  padding-inline-start: 0;
  padding-inline-end: var(--space-8);
}

.acg-timeline__item:last-child {
  padding-block-end: 0;
}

.acg-timeline__dot {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--surface-100);
  border: 2px solid var(--accent-500);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.15);
}

[dir="rtl"] .acg-timeline__dot {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.acg-timeline__year {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-500);
  margin-block-end: var(--space-1);
}

.acg-timeline__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-block-end: var(--space-2);
}

.acg-timeline__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ============================================================
   16. NEWSLETTER
   ============================================================ */

.acg-newsletter {
  padding: var(--space-8);
  background-color: var(--surface-200);
  border-radius: 2px;
}

.acg-newsletter__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-block-end: var(--space-2);
}

.acg-newsletter__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-block-end: var(--space-5);
  line-height: var(--leading-normal);
}

.acg-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .acg-newsletter__form {
    flex-direction: row;
  }
}

.acg-newsletter__form .acg-input {
  flex: 1 1 auto;
}

/* ============================================================
   17. CONTACT MAP
   ============================================================ */

.acg-map-card {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: 2px;
  overflow: hidden;
  background-color: var(--surface-200);
}

.acg-map-card iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.acg-map-card--sidebar {
  margin-block-start: var(--space-6);
}

/* ============================================================
   18. LIGHTBOX
   ============================================================ */

.acg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background-color: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.acg-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.acg-lightbox__content {
  position: relative;
  max-width: var(--container-xl);
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acg-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.acg-lightbox__close {
  position: absolute;
  inset-block-start: var(--space-5);
  inset-inline-end: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-100);
  border: 1px solid var(--neutral-300);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.acg-lightbox__close:hover {
  background-color: var(--accent-500);
  color: var(--text-inverted);
  transform: rotate(90deg);
}

.product-hero__lightbox-trigger {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.product-hero__lightbox-trigger::after {
  content: "↗";
  position: absolute;
  inset-inline-end: var(--space-3);
  inset-block-end: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 246, 242, 0.9);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.product-hero__lightbox-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
}
