/* Aluminium-led homepage. Keep the existing navigation and its white top fade. */
.aw-home-hero.aw-video-hero {
  color: #fff;
  background: #203326;
}
.aw-home-hero.aw-video-hero .aw-hero-inner {
  min-height: clamp(720px, 56.25vw, 960px);
  padding-top: calc(var(--aw-header-height, var(--aw-header-fallback, 89px)) + clamp(64px, 6vw, 96px));
  padding-bottom: clamp(88px, 8vw, 128px);
}
.aw-home-hero.aw-video-hero .aw-video-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  background: #203326 url('../video/v31/aluminium-poster.jpg') center / cover no-repeat;
}
.aw-video-hero .aw-video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 24, 16, .78) 0%, rgba(9, 24, 16, .68) 48%, rgba(9, 24, 16, .28) 100%);
}
.aw-video-hero .aw-video-background video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
}
.aw-video-hero .aw-video-background.is-video-active video { opacity: 1; }
.aw-home-hero.aw-video-hero .aw-hero-copy {
  width: min(calc(100% - 2 * var(--aw-fluid-gutter, 32px)), 1000px);
  max-width: 1000px;
}
.aw-home-hero.aw-video-hero .aw-hero-copy::before { display: none; }
.aw-home-hero.aw-video-hero .aw-hero-title {
  max-width: 100%;
  color: #fff;
  font-size: clamp(3rem, 4.3vw, 4.25rem);
  line-height: 1.08;
  text-wrap: balance;
}
.aw-home-hero.aw-video-hero .aw-hero-title br { display: block; }
.aw-home-hero.aw-video-hero .aw-hero-description {
  max-width: 720px;
  color: #fff;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
}
.aw-home-hero.aw-video-hero .aw-hero-copy .aw-eyebrow,
.aw-home-hero.aw-video-hero .aw-hero-note,
.aw-home-hero.aw-video-hero .aw-hero-note a,
.aw-home-hero.aw-video-hero .aw-hero-scroll a { color: #fff; }
.aw-home-hero.aw-video-hero .aw-button-light .wp-block-button__link {
  color: #203326;
  background: #fff;
  border-color: #fff;
}
.aw-home-hero.aw-video-hero .aw-button-light .wp-block-button__link:hover {
  color: #203326;
  background: #e9eee7;
  border-color: #e9eee7;
}
.aw-home-hero.aw-video-hero .aw-button-ghost .wp-block-button__link {
  color: #fff;
  background: rgba(9, 24, 16, .12);
  border-color: rgba(255, 255, 255, .88);
}
.aw-home-hero.aw-video-hero .aw-button-ghost .wp-block-button__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: #fff;
}
.aw-home-hero.aw-video-hero a:focus-visible { outline-color: #ffb16a; }

/* Product photographs retain their full shape on a consistent white surface. */
.aw-foil-grid.aw-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(18px, 2vw, 28px);
}
.aw-foil-grid .aw-product-image,
.aw-foil-grid .aw-product-image a { background: #fff; }
.aw-foil-grid .aw-product-card .aw-product-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  padding: clamp(12px, 1.5vw, 24px);
  object-fit: contain;
  object-position: center;
  background: #fff;
}

/* Independent foil image avoids the older paper-print background overrides. */
.home .aw-custom-section.aw-aluminium-custom { min-height: 0; padding-bottom: clamp(40px, 5.6vw, 80px); }
.aw-aluminium-custom .aw-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  min-height: 0;
  padding-bottom: 0;
}
.aw-aluminium-custom .aw-custom-copy {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding-bottom: 0;
}
.aw-aluminium-custom .aw-custom-copy::before { display: none; }
.aw-aluminium-custom .aw-aluminium-custom-background {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  margin: 0;
}
.aw-aluminium-custom-background picture { display: block; }
.aw-aluminium-custom .aw-aluminium-custom-background img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
  border-radius: 3px;
}

@media (max-width: 1099px) {
  .aw-home-hero.aw-video-hero .aw-hero-inner {
    min-height: 700px;
    padding-top: calc(var(--aw-header-height, var(--aw-header-fallback, 89px)) + 64px);
    padding-bottom: 80px;
  }
  .aw-home-hero.aw-video-hero .aw-hero-copy {
    width: calc(100% - 2 * var(--aw-fluid-gutter, 32px));
    max-width: 900px;
    margin-inline: var(--aw-fluid-gutter, 32px);
  }
  .aw-home-hero.aw-video-hero .aw-hero-title { font-size: clamp(2.5rem, 5.2vw, 3.75rem); }
  .aw-video-hero .aw-video-background::after {
    background: linear-gradient(180deg, rgba(9, 24, 16, .72) 0%, rgba(9, 24, 16, .68) 72%, rgba(9, 24, 16, .38) 100%);
  }
  .home .aw-aluminium-custom .aw-custom-layout { min-height: 0; padding-bottom: 0; }
}
@media (max-width: 899px) {
  .aw-foil-grid.aw-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-aluminium-custom .aw-custom-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .aw-aluminium-custom .aw-custom-copy { grid-column: 1; grid-row: 1; max-width: none; }
  .aw-aluminium-custom .aw-aluminium-custom-background { grid-column: 1; grid-row: 2; }
}
@media (max-width: 599px) {
  .aw-home-hero.aw-video-hero .aw-hero-inner {
    min-height: 640px;
    padding-top: calc(var(--aw-header-height, var(--aw-header-fallback, 77px)) + 56px);
    padding-bottom: 64px;
  }
  .aw-home-hero.aw-video-hero .aw-hero-title {
    font-size: clamp(2rem, 8.2vw, 2.75rem);
    line-height: 1.12;
  }
  .aw-home-hero.aw-video-hero .aw-hero-description { font-size: 1rem; }
  .aw-home-hero.aw-video-hero .aw-hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .aw-home-hero.aw-video-hero .aw-hero-buttons .wp-block-button { display: flex; align-self: stretch; min-width: 0; margin-block: 0; }
  .aw-home-hero.aw-video-hero .aw-hero-buttons .wp-block-button__link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    width: 100%;
    padding-inline: 10px;
    white-space: normal;
  }
  .aw-foil-grid.aw-product-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home .aw-custom-section.aw-aluminium-custom { padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-video-hero .aw-video-background.is-video-active video { opacity: 0; }
}

/* Editorial resources: three distinct topics, one keyboard stop per card. */
.aw-editorial-guides .aw-guide-grid { gap: clamp(20px, 3vw, 44px); }
.aw-editorial-guides .aw-guide-card {
  position: relative;
  padding: 28px 0 12px;
  border-top: 1px solid #aab7a8;
  min-width: 0;
}
.aw-editorial-guides .aw-guide-card h3 {
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
  padding-right: 30px;
  hyphens: none;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.aw-editorial-guides .aw-guide-card h3 a { text-decoration: none; }
.aw-editorial-guides .aw-guide-card h3 a::after { content: ''; position: absolute; inset: 0; }
.aw-editorial-guides .aw-guide-arrow { position: absolute; right: 0; top: 58px; font-size: 1.5rem; font-weight: 400; }
.aw-editorial-guides .aw-guide-card > p:not(.aw-card-kicker) { margin: auto 0 0; max-width: 42ch; }
.aw-editorial-guides .aw-guide-card:has(a:focus-visible) { outline: 3px solid #294631; outline-offset: 8px; }
.aw-editorial-guides .aw-guide-card a:focus-visible { outline: none; }
.aw-aluminium-custom .aw-custom-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid #c9d0c7;
  color: #52614f;
  font-size: .9375rem;
  line-height: 1.75;
}
.aw-aluminium-custom .aw-custom-note strong { color: #29392c; margin-right: .35em; }
@media (hover: hover) {
  .aw-editorial-guides .aw-guide-card:hover { border-color: #9a4c18; }
  .aw-editorial-guides .aw-guide-card:hover h3 a { color: #884517; text-decoration: underline; text-underline-offset: .2em; }
}
@media (max-width: 767px) {
  .aw-editorial-guides .aw-guide-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .aw-editorial-guides .aw-guide-card { padding-top: 24px; }
  .aw-editorial-guides .aw-guide-arrow { top: 54px; }
  .aw-editorial-guides .aw-guide-card h3 { font-size: 1.5rem; }
  .aw-editorial-guides .aw-guide-card > p:not(.aw-card-kicker) { margin: 0; }
}

.aw-editorial-guides .aw-guide-card h3 .aw-language-badge { font-size: .6875rem; line-height: 1.4; white-space: nowrap; vertical-align: middle; }

/* v34: approved illustrated guides; one meaningful link per card. */
.aw-illustrated-guides .aw-guide-card { padding-top: 0; border-top: 0; }
.aw-illustrated-guides .aw-guide-image { display: block; margin: 0 0 24px; width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 3px; }
.aw-illustrated-guides .aw-guide-image img { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; }
.aw-illustrated-guides .aw-guide-image--diagram img { object-fit: contain; }
.aw-illustrated-guides .aw-guide-card h3 { padding-right: 0; }
.aw-illustrated-guides .aw-guide-card h3 a { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.aw-illustrated-guides .aw-guide-arrow { position: static; flex: none; line-height: 1.25; }
@media (max-width:767px) {
 .aw-illustrated-guides .aw-guide-grid { gap: 40px; }
 .aw-illustrated-guides .aw-guide-image { margin-bottom: 20px; }
}

/* v34: user-approved restoration of original v29 background and surface values. */
body.home { background: #263722; }
body.home::before { background: linear-gradient(rgba(20,35,18,0.12), rgba(20,35,18,0.12)), url('../images/site-atmosphere-v5.webp') center / cover no-repeat; }
.home .aw-home-main > .wp-block-post-content > .aw-home-section { margin: 28px auto 0; border: 1px solid rgba(255,255,255,0.45); border-radius: 6px; }
.home :is(.aw-priority-section,.aw-custom-section,.aw-process-section,.aw-faq-section) { background: rgba(251,250,247,0.96); }
.home :is(.aw-category-section,.aw-buying-section,.aw-guide-section) { background: rgba(233,239,228,0.95); }
.home .aw-final-cta { background: rgba(16,32,18,0.65); border-color: rgba(255,255,255,0.25); }
.home .aw-site-footer { background: rgba(237,242,232,0.97); border: 1px solid rgba(255,255,255,0.45); border-radius: 6px; }
@media(max-width:781px) {
 body.home::before { background-position: center, right center; }
 .home .aw-home-main > .wp-block-post-content > .aw-home-section { margin-top:18px; border-radius:4px; }
 .home .aw-site-footer { margin-top:18px; border-radius:4px; }
}
