/*
Theme Name: Apollonia
Theme URI: https://apollonia.ly
Author: Apollonia
Author URI: https://apollonia.ly
Description: Custom B2B WordPress theme for Apollonia — for aluminium gadgets. Built for distributors, wholesalers and commercial buyers in Libya. RTL-first, Arabic-first.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: apollonia
Tags: custom-background, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root{
  --apo-red: #E4032E;
  --apo-red-dark: #B4021F;
  --apo-red-tint: #FDECEF;
  --apo-black: #0D0D0D;
  --apo-black-soft: #1A1A1A;
  --apo-white: #FFFFFF;
  --apo-off-white: #F6F5F3;
  --apo-gray-100: #F0EFEC;
  --apo-gray-300: #D8D6D2;
  --apo-gray-500: #8A8886;
  --apo-gray-700: #4A4846;
  --apo-text: #17181A;
  --apo-text-muted: #6B6B6B;

  --apo-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;

  --apo-radius-sm: 8px;
  --apo-radius-lg: 14px;
  --apo-container: 1240px;

  --apo-shadow-sm: 0 1px 2px rgba(13,13,13,.06), 0 1px 1px rgba(13,13,13,.04);
  --apo-shadow-md: 0 12px 28px rgba(13,13,13,.10);

  --apo-ease: cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--apo-white);
  color: var(--apo-text);
  font-family: var(--apo-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; height: auto; display: block; }
svg{ display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p, figure{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4{
  font-weight: 800;
  line-height: 1.28;
  color: var(--apo-black);
}
h1{ font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; line-height: 1.22; }
h2{ font-size: clamp(1.55rem, 1.3rem + 1.1vw, 2.25rem); }
h3{ font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

/* Quiet section kicker — a small label, not a badge. Used sparingly. */
.apo-eyebrow{
  display: block;
  font-weight: 700;
  font-size: .85rem;
  color: var(--apo-text-muted);
  margin-bottom: .6rem;
}

.apo-lede{
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--apo-text-muted);
  max-width: 60ch;
}

:focus-visible{
  outline: 3px solid var(--apo-red);
  outline-offset: 2px;
}

/* skip link */
.apo-skip-link{
  position: absolute;
  inset-inline-start: -999px;
  top: auto;
  background: var(--apo-black);
  color: var(--apo-white);
  padding: .9em 1.4em;
  z-index: 10000;
  font-weight: 700;
}
.apo-skip-link:focus{
  inset-inline-start: 1rem;
  top: 1rem;
}

/* =========================================================
   3. LAYOUT
   ========================================================= */
.apo-container{
  width: 100%;
  max-width: var(--apo-container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 782px){
  .apo-container{ padding-inline: 2rem; }
}

.apo-section{ padding-block: clamp(3rem, 2.2rem + 3.5vw, 5.5rem); }
.apo-section--tight{ padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.apo-section--black{ background: var(--apo-black); color: var(--apo-white); }
.apo-section--black h2, .apo-section--black h3{ color: var(--apo-white); }
.apo-section--off{ background: var(--apo-off-white); }

.apo-grid{ display: grid; gap: 1.5rem; }
.apo-grid--2{ grid-template-columns: 1fr; }
.apo-grid--3{ grid-template-columns: 1fr; }
.apo-grid--4{ grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px){
  .apo-grid--2{ grid-template-columns: repeat(2, 1fr); }
  .apo-grid--3{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px){
  .apo-grid--3{ grid-template-columns: repeat(3, 1fr); }
  .apo-grid--4{ grid-template-columns: repeat(4, 1fr); }
}

.apo-section-head{
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.apo-section-head--center{ margin-inline: auto; text-align: center; }

/* =========================================================
   4. BUTTONS
   ========================================================= */
.apo-btn{
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2; /* was inheriting the body's 1.7, which puffed every button
    out well beyond its padding box — most visible in the header, where a
    58px-tall button next to a 30px logo read as misaligned even though both
    were correctly flex-centered */
  padding: .9em 1.6em;
  border: 1.5px solid transparent;
  border-radius: var(--apo-radius-sm);
  transition: transform .15s var(--apo-ease), background-color .15s var(--apo-ease), color .15s var(--apo-ease), border-color .15s var(--apo-ease);
  white-space: nowrap;
}
.apo-btn svg{ width: 1.05em; height: 1.05em; flex: none; }
/* Primary (red) button — text/icon color is declared explicitly on every
   state (not left to inherit) so a solid white stays guaranteed against the
   red fill in every case, including visited links. The icon has no color of
   its own (fill="currentColor"): it always matches this declared text color. */
.apo-btn--primary{ background: var(--apo-red); border-color: var(--apo-red); color: var(--apo-white); }
.apo-btn--primary:link,
.apo-btn--primary:visited{ color: var(--apo-white); }
.apo-btn--primary svg{ color: var(--apo-white); }
.apo-btn--primary:hover,
.apo-btn--primary:focus-visible{ background: var(--apo-red-dark); border-color: var(--apo-red-dark); color: var(--apo-white); }
.apo-btn--dark{ background: var(--apo-black); color: var(--apo-white); }
.apo-btn--dark:hover{ background: var(--apo-black-soft); }
.apo-btn--outline{ background: transparent; color: var(--apo-black); border-color: var(--apo-gray-300); }
.apo-btn--outline:hover{ border-color: var(--apo-black); }
.apo-btn--outline-white{ background: transparent; color: var(--apo-white); border-color: rgba(255,255,255,.5); }
.apo-btn--outline-white:hover{ border-color: var(--apo-white); background: rgba(255,255,255,.08); }
.apo-btn--white{ background: var(--apo-white); color: var(--apo-black); }
.apo-btn--white:hover{ background: var(--apo-off-white); }
.apo-btn--block{ width: 100%; justify-content: center; }
.apo-btn--sm{ padding: .6em 1.1em; font-size: .88rem; }

/* =========================================================
   5. HEADER
   ========================================================= */
.apo-header{
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--apo-gray-300);
}
.apo-header__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: .7rem;
}
@media (min-width: 1180px){ .apo-header__bar{ padding-block: .9rem; } }
.apo-header__logo{ flex: none; }
/* the source asset is trimmed to its real content, so these heights render
   the full wordmark at true size. 42px measured against the 42px-tall CTA
   button and the nav text made the logo the single heaviest element in the
   bar — the wordmark's own weight already gives it presence at a more
   moderate size, so it reads as balanced rather than dominant. */
.apo-header__logo img{ height: 24px; width: auto; }
@media (min-width: 640px){ .apo-header__logo img{ height: 27px; } }
@media (min-width: 1180px){ .apo-header__logo img{ height: 30px; } }

.apo-nav{ display: none; }
@media (min-width: 1180px){
  .apo-nav{ display: block; }
  .apo-nav ul{ display: flex; align-items: center; gap: 1.4rem; }
  .apo-nav a{
    font-weight: 600;
    font-size: .92rem;
    line-height: 1.2; /* same inherited-1.7 issue as buttons — kept nav text
      taller than it needed to be, next to the same 1.4-line-height fix
      already applied to form fields elsewhere */
    color: var(--apo-black);
    position: relative;
    padding-block: .4rem;
    transition: color .15s var(--apo-ease);
  }
  .apo-nav a::after{
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--apo-red);
    transition: width .2s var(--apo-ease);
  }
  .apo-nav a:hover,
  .apo-nav .current-menu-item a,
  .apo-nav .current_page_item a{ color: var(--apo-red); }
  .apo-nav a:hover::after,
  .apo-nav .current-menu-item a::after,
  .apo-nav .current_page_item a::after{ width: 100%; }
}

.apo-header__actions{ display: flex; align-items: center; gap: .9rem; }
.apo-header__actions .apo-btn{ display: none; }
@media (min-width: 640px){ .apo-header__actions .apo-btn{ display: inline-flex; } }

.apo-nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--apo-black);
  color: var(--apo-white);
  border: 0;
  border-radius: var(--apo-radius-sm);
}
@media (min-width: 1180px){ .apo-nav-toggle{ display: none; } }
.apo-nav-toggle svg{ width: 20px; height: 20px; }

.apo-mobile-nav{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--apo-black);
  color: var(--apo-white);
  padding: 1.5rem;
  overflow-y: auto;
}
.apo-mobile-nav.is-open{ display: block; }
.apo-mobile-nav__top{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.apo-mobile-nav__top img{ height: 28px; }
.apo-mobile-nav__close{
  width: 42px; height: 42px;
  border: 0; border-radius: var(--apo-radius-sm);
  background: rgba(255,255,255,.1); color: var(--apo-white);
  display: inline-flex; align-items: center; justify-content: center;
}
.apo-mobile-nav ul li{ border-bottom: 1px solid rgba(255,255,255,.12); }
.apo-mobile-nav ul li a{
  display: block;
  padding: 1.05rem .25rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.apo-mobile-nav__cta{ margin-top: 2rem; display: grid; gap: .75rem; }

/* =========================================================
   6. HERO — photography-led, one clear message
   ========================================================= */
.apo-hero{
  position: relative;
  min-height: clamp(440px, 62vh, 660px);
  display: flex;
  align-items: center;
  color: var(--apo-white);
  overflow: hidden;
}
.apo-hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.apo-hero__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* in a wide hero box, width is the dominant cover constraint, so only the
     vertical offset actually crops anything — 5% keeps the peak's tip and
     the open sky around it in frame instead of sliding down into the panel */
  object-position: center 5%;
}
.apo-hero__media::after{
  content: "";
  position: absolute;
  inset: 0;
  /* the strong zone now covers the full text column (roughly the right 48%
     of the hero, matching .apo-hero__inner's max-width + container padding)
     instead of tapering off halfway through it — the paragraph was sitting
     in a mid-opacity zone that didn't give it reliable contrast */
  background: linear-gradient(to left, rgba(8,14,22,.86) 0%, rgba(8,14,22,.78) 48%, rgba(8,14,22,.32) 68%, rgba(8,14,22,.04) 90%);
}
.apo-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 31rem;
  padding-block: 3rem;
}
.apo-hero h1{ color: var(--apo-white); margin-bottom: 1rem; }
.apo-hero h1 .accent{ color: var(--apo-red); }
.apo-hero p{ color: rgba(255,255,255,.86); margin-bottom: 2rem; font-size: 1.05rem; }
.apo-hero__actions{ display: flex; flex-wrap: wrap; gap: 1rem; }

/* =========================================================
   7. CARDS
   ========================================================= */
.apo-card{
  background: var(--apo-white);
  border: 1px solid var(--apo-gray-300);
  border-radius: var(--apo-radius-sm);
  overflow: hidden;
  transition: box-shadow .2s var(--apo-ease), transform .2s var(--apo-ease), border-color .2s var(--apo-ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.apo-card:hover{ box-shadow: var(--apo-shadow-md); transform: translateY(-3px); border-color: var(--apo-gray-300); }

.apo-card__media{
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--apo-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.apo-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--apo-ease); }
.apo-card:hover .apo-card__media img{ transform: scale(1.04); }
.apo-card__media .apo-card__mark{ width: 28%; opacity: .35; }

.apo-card__body{ padding: 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.apo-card__cat{ font-size: .78rem; font-weight: 700; color: var(--apo-red); }
.apo-card__body h3{ font-size: 1.1rem; }
.apo-card__body p{ color: var(--apo-text-muted); font-size: .93rem; flex: 1; }
.apo-card__foot{ margin-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* category grid — a designed icon-on-material system standing in for real
   product photography (none exists yet per category); the first term is
   presented as a wide "lead" card so the grid has a clear entry point
   instead of a uniform wall of identical boxes. */
.apo-cat-grid{ display: grid; gap: 1.25rem; }
@media (min-width: 640px){ .apo-cat-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px){ .apo-cat-grid{ grid-template-columns: repeat(3, 1fr); } }

.apo-cat-card{
  display: flex;
  flex-direction: column;
  border-radius: var(--apo-radius-lg);
  background: var(--apo-white);
  border: 1px solid var(--apo-gray-300);
  overflow: hidden;
  transition: border-color .2s var(--apo-ease), box-shadow .2s var(--apo-ease), transform .2s var(--apo-ease);
}
.apo-cat-card:hover{ border-color: var(--apo-black); box-shadow: var(--apo-shadow-md); transform: translateY(-3px); }

.apo-cat-card__panel{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, var(--apo-off-white) 0%, var(--apo-gray-100) 55%, var(--apo-gray-300) 100%);
  overflow: hidden;
}
.apo-cat-card__index{
  position: absolute;
  top: .9rem;
  inset-inline-start: 1.1rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--apo-gray-500);
}
.apo-cat-card__icon{
  width: 32%;
  color: var(--apo-black);
  opacity: .8;
  transition: transform .35s var(--apo-ease), color .2s var(--apo-ease);
}
.apo-cat-card__icon svg{ width: 100%; height: 100%; }
.apo-cat-card:hover .apo-cat-card__icon{ transform: scale(1.08) translateY(-2px); color: var(--apo-red); }

.apo-cat-card__label{ padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.apo-cat-card__label h3{ color: var(--apo-black); font-size: 1.05rem; }
/* English trade term — a quiet, secondary line under the Arabic title, not
   a translation exercise. Regional aluminium buyers commonly search and
   think in a mix of both languages, so this helps scanning either way. */
.apo-cat-card__en{
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--apo-text-muted);
  letter-spacing: .01em;
}
.apo-cat-card__meta{
  margin-top: auto;
  padding-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--apo-text-muted);
}
.apo-cat-card__arrow{ width: 16px; height: 16px; flex: none; color: var(--apo-red); transition: transform .2s var(--apo-ease); }
.apo-cat-card__arrow svg{ width: 100%; height: 100%; transform: scaleX(-1); }
.apo-cat-card:hover .apo-cat-card__arrow{ transform: translateX(-4px); }

/* lead card — a wide, dark spotlight for the first category, distinct from
   the grid of vertical cards that follows it */
.apo-cat-card--lead{
  grid-column: 1 / -1;
  flex-direction: row;
  background: var(--apo-black);
  border-color: var(--apo-black);
}
.apo-cat-card--lead .apo-cat-card__panel{
  aspect-ratio: auto;
  width: 40%;
  flex: none;
  background: linear-gradient(155deg, #1c1c1c 0%, #0d0d0d 75%);
}
.apo-cat-card--lead .apo-cat-card__icon{ width: 38%; color: var(--apo-white); opacity: .9; }
.apo-cat-card--lead:hover .apo-cat-card__icon{ color: var(--apo-red); }
.apo-cat-card--lead .apo-cat-card__index{ color: rgba(255,255,255,.5); }
.apo-cat-card--lead .apo-cat-card__label{ justify-content: center; padding: 1.75rem 2rem; }
.apo-cat-card--lead .apo-cat-card__label h3{ color: var(--apo-white); font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); }
.apo-cat-card--lead .apo-cat-card__en{ color: rgba(255,255,255,.6); }
.apo-cat-card--lead .apo-cat-card__meta{ color: rgba(255,255,255,.8); padding-top: 1rem; }
.apo-cat-card--lead:hover{ border-color: var(--apo-red); }
@media (max-width: 639px){
  .apo-cat-card--lead{ flex-direction: column; }
  .apo-cat-card--lead .apo-cat-card__panel{ width: 100%; aspect-ratio: 16 / 9; }
}

/* =========================================================
   8. BENEFIT LIST (Why Apollonia) — an editorial statement + a
   plain list, not a row of identical icon cards
   ========================================================= */
.apo-benefits__intro{ max-width: 26rem; }
.apo-benefit-list{ display: grid; gap: 0; }
.apo-benefit-item{
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding-block: 1.15rem;
  border-top: 1px solid var(--apo-gray-300);
}
.apo-benefit-item:last-child{ border-bottom: 1px solid var(--apo-gray-300); }
.apo-benefit-item__mark{
  flex: none;
  width: 20px;
  margin-top: .25rem;
  color: var(--apo-red);
}
.apo-benefit-item__mark svg{ width: 18px; height: 18px; }
.apo-benefit-item h3{ font-size: 1.05rem; margin-bottom: .25rem; }
.apo-benefit-item p{ color: var(--apo-text-muted); font-size: .94rem; margin: 0; }

/* legacy icon+text row — still used on the quote-page steps and the
   contact-page info rows */
.apo-feature{ display: flex; gap: 1rem; align-items: flex-start; }
.apo-feature__icon{
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--apo-off-white);
  color: var(--apo-red);
  border-radius: var(--apo-radius-sm);
}
.apo-feature__icon svg{ width: 20px; height: 20px; }
.apo-feature h3{ font-size: 1.02rem; margin-bottom: .25rem; }
.apo-feature p{ color: var(--apo-text-muted); font-size: .93rem; margin: 0; }

/* =========================================================
   9. CTA BANNER — one clear closing moment per page, not repeated
   ========================================================= */
.apo-cta-banner{
  background: var(--apo-red);
  color: var(--apo-white);
  border-radius: var(--apo-radius-lg);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.apo-cta-banner h2{ color: var(--apo-white); margin-bottom: .4rem; }
.apo-cta-banner p{ color: rgba(255,255,255,.85); margin: 0; }
.apo-cta-banner__text{ max-width: 32rem; }
.apo-cta-banner__actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* split panel (distribution / quote) — contrast comes from the dark/light
   pairing itself, no added ornament */
.apo-split{
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--apo-radius-lg);
  overflow: hidden;
}
@media (min-width: 860px){ .apo-split{ grid-template-columns: 1fr 1fr; } }
.apo-split__panel{ padding: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.apo-split__panel--dark{ background: var(--apo-black); color: var(--apo-white); }
.apo-split__panel--dark h2, .apo-split__panel--dark h3{ color: var(--apo-white); }
.apo-split__panel--dark p{ color: rgba(255,255,255,.78); }
.apo-split__panel--off{ background: var(--apo-off-white); }
.apo-split__panel ul{ display: grid; gap: .9rem; margin-top: 1.25rem; }
.apo-split__panel ul li{ display: flex; gap: .7rem; align-items: flex-start; }
.apo-split__panel ul li svg{ flex: none; width: 20px; height: 20px; color: var(--apo-red); margin-top: .2rem; }

/* =========================================================
   10. FORMS
   ========================================================= */
.apo-form{ display: grid; gap: 1.1rem; }
.apo-form__row{ display: grid; gap: 1.1rem; }
@media (min-width: 640px){ .apo-form__row--2{ grid-template-columns: 1fr 1fr; } }
.apo-field label{
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--apo-black);
}
.apo-field .required{ color: var(--apo-red); }
.apo-field input,
.apo-field select,
.apo-field textarea{
  width: 100%;
  padding: .6em 1em;
  line-height: 1.4;
  border: 1.5px solid var(--apo-gray-300);
  border-radius: var(--apo-radius-sm);
  background: var(--apo-white);
  color: var(--apo-text);
  transition: border-color .15s var(--apo-ease), box-shadow .15s var(--apo-ease);
}
.apo-field input:focus,
.apo-field select:focus,
.apo-field textarea:focus{
  border-color: var(--apo-red);
  box-shadow: 0 0 0 4px var(--apo-red-tint);
  outline: none;
}
.apo-field textarea{ min-height: 110px; padding-block: .75em; resize: vertical; }
.apo-form-card{
  background: var(--apo-white);
  border: 1px solid var(--apo-gray-300);
  border-radius: var(--apo-radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  box-shadow: var(--apo-shadow-sm);
}
.apo-honeypot{ position: absolute; inset-inline-start: -9999px; }
.apo-notice{
  padding: 1rem 1.25rem;
  border-radius: var(--apo-radius-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.apo-notice--success{ background: #E9F7EE; color: #1E7A3D; border: 1px solid #BFE7CC; }
.apo-notice--error{ background: #FDECEF; color: var(--apo-red-dark); border: 1px solid #F6C4CE; }

/* =========================================================
   10b. WHATSAPP CALLOUT — the primary, most visible contact
   action on conversion-oriented pages (contact, quote, product,
   distribution). Styled with the brand's own black/red language
   rather than WhatsApp's green, so it reads as an Apollonia
   component, not a bolted-on chat widget.
   ========================================================= */
.apo-whatsapp-card{
  background: var(--apo-black);
  color: var(--apo-white);
  border-radius: var(--apo-radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.apo-whatsapp-card__head{ display: flex; align-items: center; gap: .9rem; }
.apo-whatsapp-card__icon{
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--apo-red);
  display: flex; align-items: center; justify-content: center;
}
.apo-whatsapp-card__icon svg{ width: 22px; height: 22px; }
.apo-whatsapp-card h3{ color: var(--apo-white); font-size: 1.05rem; margin-bottom: .2rem; }
.apo-whatsapp-card p{ color: rgba(255,255,255,.72); font-size: .92rem; }
.apo-whatsapp-card .apo-btn{ width: 100%; justify-content: center; }
.apo-whatsapp-card__note{ color: rgba(255,255,255,.58); font-size: .85rem; text-align: center; }
.apo-whatsapp-card__note a{ color: var(--apo-white); text-decoration: underline; }

/* subtle secondary text-link — keeps a form/alternate path one tap away
   next to a primary WhatsApp button without competing visually */
.apo-text-link{
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 700;
  font-size: .9rem;
  color: var(--apo-text-muted);
  transition: color .15s var(--apo-ease);
}
.apo-text-link svg{ width: 15px; height: 15px; }
.apo-text-link:hover{ color: var(--apo-red); }
.apo-text-link--white{ color: rgba(255,255,255,.75); }
.apo-text-link--white:hover{ color: var(--apo-white); }

/* =========================================================
   11. FOOTER
   ========================================================= */
.apo-footer{ background: #000000; color: var(--apo-white); }
.apo-footer__top{ padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.apo-footer__grid{
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){ .apo-footer__grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.apo-footer__logo img{ height: 34px; margin-bottom: 1rem; }
.apo-footer p{ color: rgba(255,255,255,.65); font-size: .92rem; }
.apo-footer h4{ color: var(--apo-white); font-size: .92rem; margin-bottom: 1.1rem; }
.apo-footer ul{ display: grid; gap: .7rem; }
.apo-footer ul a{ color: rgba(255,255,255,.7); font-size: .94rem; transition: color .15s; }
.apo-footer ul a:hover{ color: var(--apo-white); }
.apo-footer address{ font-style: normal; }
/* WhatsApp gets a quiet color/weight accent in the footer's link list — not
   a full button — so priority reads through without breaking the calm,
   uniform look of the rest of the list. */
.apo-footer__whatsapp{ color: var(--apo-red) !important; font-weight: 700; }
.apo-footer__whatsapp:hover{ color: var(--apo-white) !important; }
.apo-footer__whatsapp svg{ width: 15px; height: 15px; display: inline-block; vertical-align: -2px; margin-inline-end: .35em; }
.apo-footer .apo-social{ display: flex; gap: .6rem; margin-top: 1.2rem; }
.apo-social a{
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border-radius: var(--apo-radius-sm);
}
.apo-social a:hover{ background: var(--apo-red); }
.apo-social svg{ width: 18px; height: 18px; }
.apo-footer__bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.apo-footer__bottom a:hover{ color: var(--apo-white); }

/* placeholder marker for unfilled company data */
.apo-placeholder{
  color: var(--apo-red-dark);
  background: var(--apo-red-tint);
  border: 1px dashed var(--apo-red);
  border-radius: 4px;
  padding: .1em .5em;
  font-size: .85em;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   12. PAGE HEADER (interior pages) — calm, light, no theatrics
   ========================================================= */
.apo-page-head{
  background: var(--apo-off-white);
  border-bottom: 1px solid var(--apo-gray-300);
  padding-block: clamp(2rem, 1.6rem + 2vw, 3rem);
}
.apo-page-head__inner{ max-width: 44rem; }
.apo-page-head h1{ margin-bottom: .5rem; }
.apo-page-head p{ color: var(--apo-text-muted); }
.apo-breadcrumb{ font-size: .85rem; color: var(--apo-text-muted); margin-bottom: .9rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.apo-breadcrumb a:hover{ color: var(--apo-red); }
.apo-breadcrumb span[aria-hidden]{ opacity: .5; }

/* =========================================================
   13. CONTENT (blog / editor content)
   ========================================================= */
.apo-prose{ max-width: 72ch; }
.apo-prose > * + *{ margin-top: 1.25em; }
.apo-prose h2{ margin-top: 1.8em; }
.apo-prose h3{ margin-top: 1.5em; }
.apo-prose ul, .apo-prose ol{ padding-inline-start: 1.4em; list-style: revert; }
.apo-prose a{ color: var(--apo-red); text-decoration: underline; }
.apo-prose img{ border-radius: var(--apo-radius-sm); }
.apo-prose blockquote{
  border-inline-start: 3px solid var(--apo-red);
  padding-inline-start: 1.2em;
  color: var(--apo-text-muted);
  font-size: 1.05em;
}

.apo-post-card{ display: flex; flex-direction: column; gap: .85rem; }
.apo-post-card__media{ aspect-ratio: 16/10; border-radius: var(--apo-radius-sm); overflow: hidden; background: var(--apo-off-white); }
.apo-post-card__media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--apo-ease); }
.apo-post-card:hover .apo-post-card__media img{ transform: scale(1.04); }
.apo-post-card__meta{ font-size: .8rem; font-weight: 700; color: var(--apo-text-muted); }
.apo-post-card h3{ font-size: 1.1rem; }
.apo-post-card h3 a:hover{ color: var(--apo-red); }

/* pagination */
.apo-pagination{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.apo-pagination a, .apo-pagination span{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: .5rem;
  border: 1.5px solid var(--apo-gray-300); border-radius: var(--apo-radius-sm);
  font-weight: 700; font-size: .9rem;
}
.apo-pagination a:hover{ border-color: var(--apo-red); color: var(--apo-red); }
.apo-pagination .current{ background: var(--apo-black); color: var(--apo-white); border-color: var(--apo-black); }

/* empty state */
.apo-empty{
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1.5px dashed var(--apo-gray-300);
  border-radius: var(--apo-radius-lg);
  color: var(--apo-text-muted);
}
.apo-empty h3{ margin-bottom: .5rem; color: var(--apo-black); }

/* 404 */
.apo-404{ text-align: center; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.apo-404__mark{ width: 80px; margin-inline: auto 1.5rem; opacity: .5; }
.apo-404 h1{ font-size: clamp(3rem, 2rem + 4vw, 5rem); color: var(--apo-black); margin-bottom: .5rem; }

/* utility */
.apo-visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.apo-mt-lg{ margin-top: 2.5rem; }
.apo-mt-sm{ margin-top: .9rem; }
.apo-flow-tight > * + *{ margin-top: .5rem; }
