/*
Theme Name: AF5 — Izstrādes procesā
Theme URI: https://af5.lv/
Author: SIA AF5
Description: Pagaidu, pilnībā rediģējama AF5 mājaslapa izstrādes laikam.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: af5-under-construction
*/

:root {
  --af5-ink: var(--wp--preset--color--af5-ink, #101214);
  --af5-charcoal: var(--wp--preset--color--af5-charcoal, #191c1f);
  --af5-yellow: var(--wp--preset--color--af5-yellow, #ffcc27);
  --af5-paper: var(--wp--preset--color--af5-paper, #f4f4f1);
  --af5-line: #34383c;
  --af5-max: 1240px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; overflow-x: hidden; }
.wp-site-blocks { min-height: 100vh; padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.af5-page { min-height: 100vh; background: var(--af5-ink); }
.af5-page-fallback { display: flex; min-height: 100vh; flex-direction: column; justify-content: center; gap: 34px; padding: 40px 20px; }
.af5-page-fallback .wp-block-site-logo img { width: 142px; max-height: 54px; object-fit: contain; }
.af5-page-fallback .af5-title { max-width: 950px; }
.af5-page-fallback a { color: var(--af5-yellow); }
.af5-shell { width: min(var(--af5-max), calc(100% - 40px)); margin-inline: auto; }

.af5-header { min-height: 92px; border-bottom: 1px solid var(--af5-line); background: rgba(16, 18, 20, .96); }
.af5-header-row { min-height: 92px; }
.af5-header .wp-block-site-logo img { width: 142px; max-height: 54px; object-fit: contain; }
.af5-status { margin: 0; color: #b9bec1; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.af5-status::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: var(--af5-yellow); box-shadow: 0 0 0 5px rgba(255, 204, 39, .12); }

.af5-main-grid { display: grid !important; grid-template-columns: minmax(0, 1.22fr) minmax(360px, .78fr); min-height: calc(100vh - 92px); }
.af5-message {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(70px, 9vw, 132px) 8vw 48px max(20px, calc((100vw - var(--af5-max)) / 2));
  overflow: hidden;
}
.af5-message::after { content: ""; position: absolute; top: 0; right: -48px; width: 108px; height: 100%; background: var(--af5-yellow); transform: skewX(-6deg); }
.af5-message > * { position: relative; z-index: 1; }
.af5-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #c8ccce; font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.af5-eyebrow::before { content: ""; width: 30px; height: 3px; background: var(--af5-yellow); }
.af5-title { max-width: 880px; margin: 0; font-size: clamp(4rem, 8.6vw, 8.6rem) !important; line-height: .84 !important; letter-spacing: -.075em; text-transform: uppercase; }
.af5-title strong { display: block; color: var(--af5-yellow); font-weight: inherit; }
.af5-intro { max-width: 590px; margin: 38px 0 0; color: #c8ccce; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.6; }
.af5-small-mark { margin: 60px 0 0; color: #858b8e; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.af5-details {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(64px, 8vw, 110px) max(20px, calc((100vw - var(--af5-max)) / 2)) 48px 72px;
  background: var(--af5-yellow);
  color: var(--af5-ink);
  overflow: hidden;
}
.af5-details::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(135deg, transparent 0 46%, #000 46% 48%, transparent 48% 100%); background-size: 42px 42px; pointer-events: none; }
.af5-details > * { position: relative; z-index: 1; }
.af5-details-heading { margin: 0 0 32px; padding-top: 18px; border-top: 3px solid var(--af5-ink); font-size: .78rem !important; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.af5-company-name { margin: 0 0 30px; font-size: clamp(2.3rem, 4vw, 4.4rem) !important; line-height: .9 !important; letter-spacing: -.055em; text-transform: uppercase; }
.af5-info-list { border-top: 1px solid rgba(16, 18, 20, .35); }
.af5-info-row { display: grid !important; grid-template-columns: 118px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(16, 18, 20, .35); }
.af5-info-label, .af5-info-value { margin: 0; }
.af5-info-label { font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.af5-info-value { font-weight: 700; overflow-wrap: anywhere; }
.af5-info-value a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.af5-footer-note { margin: 44px 0 0; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .af5-main-grid { grid-template-columns: 1fr; min-height: 0; }
  .af5-message { min-height: 620px; padding: 82px 52px 50px 20px; }
  .af5-message::after { right: -67px; width: 105px; }
  .af5-details { min-height: 620px; padding: 72px 20px 44px; }
}

@media (max-width: 600px) {
  .af5-shell { width: min(var(--af5-max), calc(100% - 30px)); }
  .af5-header, .af5-header-row { min-height: 74px; }
  .af5-header .wp-block-site-logo img { width: 112px; }
  .af5-status { max-width: 135px; text-align: right; font-size: .66rem; line-height: 1.3; }
  .af5-message { min-height: calc(100svh - 74px); padding: 68px 42px 42px 15px; }
  .af5-title { font-size: clamp(2.9rem, 14vw, 4.3rem) !important; overflow-wrap: normal; word-break: normal; }
  .af5-intro { margin-top: 28px; font-size: 1rem; }
  .af5-small-mark { margin-top: 48px; }
  .af5-details { min-height: auto; padding: 62px 15px 40px; }
  .af5-company-name { font-size: 2.65rem !important; }
  .af5-info-row { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .af5-info-label { color: rgba(16, 18, 20, .7); }
}

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