/*
Theme Name: Aviot
Theme URI: https://aviot.ca
Author: Aviot Industries Inc.
Description: Custom block theme for aviot.ca. Built per AA-WEB-008 (site architecture, copy deck, design tokens) and AVT-BRD-001 (brand & posture standard). Ink/paper/brass palette, Source Serif 4 + Inter.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Tested up to: 6.7
License: Proprietary
Text Domain: aviot

This is a block theme. Styling lives primarily in theme.json; this file
carries only what theme.json cannot express (custom component classes
used inside patterns, print rules, and small resets).
*/

.wp-block-heading {
  hyphens: auto;
  overflow-wrap: break-word;
}

.aviot-kicker {
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brass);
  margin-bottom: var(--wp--preset--spacing--20);
}

.aviot-rule {
  width: 56px;
  height: 3px;
  background: var(--wp--preset--color--brass);
  margin: var(--wp--preset--spacing--30) 0;
}

.aviot-pillar,
.aviot-card {
  background: var(--wp--preset--color--surface);
  border-top: 3px solid var(--wp--preset--color--brass);
  padding: var(--wp--preset--spacing--40);
}

.aviot-service {
  border-top: 1px solid rgba(18, 35, 58, 0.12);
  padding: var(--wp--preset--spacing--30) 0;
}

.aviot-service:last-child {
  border-bottom: 1px solid rgba(18, 35, 58, 0.12);
}

.aviot-on-ink {
  color: var(--wp--preset--color--paper);
}

.aviot-on-ink-muted {
  color: rgba(245, 242, 236, 0.78);
}

.aviot-office-list p::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 2px;
  background: var(--wp--preset--color--brass);
  margin-right: var(--wp--preset--spacing--20);
  vertical-align: middle;
}

/* ==========================================================================
   Round 2 — visual enrichment (corridor map, textures, set-pieces, motion)
   ========================================================================== */

/* -- textures: near-imperceptible, decorative only, aria-hidden in markup -- */
.aviot-texture-host {
  position: relative;
  isolation: isolate;
}
.aviot-texture-host > .aviot-texture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}
.aviot-texture-host > * {
  position: relative;
  z-index: 1;
}
.aviot-texture--contour {
  background-image: url('assets/img/texture-contour.svg');
  background-size: 480px 320px;
  opacity: 0.05;
}
.aviot-texture--grain {
  background-image: url('assets/img/texture-paper-grain.svg');
  background-size: 200px 200px;
  opacity: 0.035;
}

/* -- corridor map: signature device, ink hero background -- */
.aviot-corridor-host {
  position: relative;
  overflow: hidden;
}
.aviot-corridor-host > .aviot-corridor-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.aviot-corridor-host > .aviot-corridor-content {
  position: relative;
  z-index: 1;
}

/* -- typographic set-pieces -- */
.aviot-display-line {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 49px);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.aviot-display-numeral {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 168px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--wp--preset--color--brass);
  text-stroke: 1.5px var(--wp--preset--color--brass);
}

/* -- pull-quotes: existing sentences, elevated between brass hairline rules -- */
.aviot-pullquote {
  border-top: 1px solid var(--wp--preset--color--brass);
  border-bottom: 1px solid var(--wp--preset--color--brass);
  padding: var(--wp--preset--spacing--30) 0;
  margin: var(--wp--preset--spacing--40) 0;
  font-family: var(--wp--preset--font-family--serif);
  font-size: clamp(22px, 3.2vw, 31px);
  font-weight: 600;
  line-height: 1.35;
}
.aviot-pullquote--ink {
  border-top-color: var(--wp--preset--color--brass);
  border-bottom-color: var(--wp--preset--color--brass);
  color: var(--wp--preset--color--surface);
}

/* -- brass section numerals -- */
.aviot-section-head {
  display: flex;
  align-items: baseline;
  gap: var(--wp--preset--spacing--20);
  margin-bottom: var(--wp--preset--spacing--20);
}
.aviot-section-numeral {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 700;
  font-size: 25px;
  color: transparent;
  -webkit-text-stroke: 1px var(--wp--preset--color--brass);
  text-stroke: 1px var(--wp--preset--color--brass);
  min-width: 2.2ch;
}

/* -- bordered cards with engraved numerals (evolves .aviot-pillar) -- */
.aviot-card-numbered {
  position: relative;
  background: var(--wp--preset--color--surface);
  border: 1px solid rgba(18, 35, 58, 0.14);
  border-top: 3px solid var(--wp--preset--color--brass);
  padding: var(--wp--preset--spacing--40);
  overflow: hidden;
}
.aviot-card-numbered .aviot-card-numeral {
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(154, 123, 79, 0.35);
  text-stroke: 1px rgba(154, 123, 79, 0.35);
  pointer-events: none;
}
.aviot-card-numbered .wp-block-heading {
  position: relative;
  max-width: 80%;
}

/* -- line icons: consistent 1.5px stroke family -- */
.aviot-icon {
  width: 40px;
  height: 40px;
  stroke: var(--wp--preset--color--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* -- footer coordinates -- */
.aviot-coordinates {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--wp--preset--color--brass);
  margin-bottom: 4px;
}

/* -- hover underline-grow -- */
.aviot-link-grow {
  position: relative;
  text-decoration: none;
  display: inline-block;
}
.aviot-link-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease-out;
}
.aviot-link-grow:hover::after,
.aviot-link-grow:focus-visible::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .aviot-link-grow::after {
    transition: none;
  }
}

/* -- motion: fade-and-rise on section entry, JS-driven, CSS-gated -- */
.js-reveal-active .aviot-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
}
.js-reveal-active .aviot-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal-active .aviot-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
