/*
 * automobile.am "coming soon" page: one stylesheet, no JavaScript.
 * Colours, the font and the "headlights on" sequence come from the design prototype (Milestone: design/prototype).
 * The final state is the plain style; keyframes only show how the lights come on, so reduced motion shows it lit at once.
 */

/* Google Sans, variable weight 400-700, SIL OFL 1.1 (fonts/OFL.txt). The browser loads only the subsets a page uses. */
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/google-sans-armenian-wght-normal.woff2") format("woff2-variations"),
    url("/assets/fonts/google-sans-armenian-wght-normal.woff2") format("woff2");
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/google-sans-cyrillic-wght-normal.woff2") format("woff2-variations"),
    url("/assets/fonts/google-sans-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Google Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/google-sans-latin-wght-normal.woff2") format("woff2-variations"),
    url("/assets/fonts/google-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #1e1e24;
  --lamp: #e5611b;
  --lamp-hover: #f07330;
  --glow: #ff8a4c; /* orange text on dark: 7.10:1 on ink */
  --night: #141418;
  --text: #f4f4f6;
  --text-soft: #c9c9d1;
  --text-muted: #a9a9b3;
  --line: #34343d;
  --line-strong: #6e6e7a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --pill: 9999px;
  --gutter: clamp(16px, 4vw, 48px);
}

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

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(120% 85% at 50% 22%, #1e1e24 0%, #17171c 55%, #141418 100%) var(--night);
  color: var(--text);
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
 * The page wrapper holds the header, the hero and the footer, so the light of the headlamps falls behind the header
 * too and is not cut at its edge. Lamp centre: below the header (~80 px) and the stage padding, 58 % down the face,
 * 36 % of the face width left and right of the centre (viewBox of the face).
 */
.page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  --face-w: min(520px, 80vw);
  --top-h: 80px;
  --stage-pad: clamp(16px, 5vh, 56px);
  --lamp-y: calc(var(--top-h) + var(--stage-pad) + var(--face-w) * 0.3167 * 0.58);
  --lamp-dx: calc(var(--face-w) * 0.36);
}

/* Header: wordmark and language switch; on very narrow screens the switch moves to a second row */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 20px var(--gutter);
}
.logo {
  display: block;
  border-radius: 6px;
}
.logo img {
  display: block;
  width: auto;
  height: clamp(20px, 3vw, 28px);
}
.langs {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--pill);
}
.langs a {
  display: block;
  padding: 5px 12px;
  border-radius: var(--pill);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
}
.langs a:hover {
  color: var(--text);
}
.langs a[aria-current="page"] {
  background: var(--text);
  color: var(--ink);
}

/* Hero: the car face lights up, light pools fall on the title */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
}
.hero-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-pool {
  position: absolute;
  top: 0;
  height: 100%;
  width: min(1000px, 140vw);
  background: radial-gradient(
    ellipse min(420px, 60vw) min(560px, 70vh) at 50% var(--lamp-y),
    rgb(255 176 120 / 0.2) 0%,
    rgb(229 97 27 / 0.09) 40%,
    rgb(229 97 27 / 0) 75%
  );
  transform-origin: 50% var(--lamp-y);
  animation: am-pool 1000ms var(--ease-out) 1150ms both;
}
.hero-pool-l {
  left: calc(50% - var(--lamp-dx));
  translate: -50% 0;
}
.hero-pool-r {
  left: calc(50% + var(--lamp-dx));
  translate: -50% 0;
}
.hero-floor {
  position: absolute;
  left: 50%;
  bottom: -10%;
  width: min(1400px, 160vw);
  height: 60%;
  translate: -50% 0;
  background: radial-gradient(ellipse 50% 45% at 50% 100%, rgb(229 97 27 / 0.12), rgb(229 97 27 / 0) 70%);
  animation: am-fade 1200ms var(--ease-out) 1400ms both;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--stage-pad) var(--gutter) clamp(40px, 7vh, 80px);
  text-align: center;
}
.face {
  display: block;
  width: var(--face-w);
  height: auto;
  overflow: visible;
}
.face-grille {
  fill: var(--lamp);
  animation: am-grille 420ms var(--ease-out) 300ms both;
}
.face-lamp {
  fill: none;
  stroke: var(--lamp);
  stroke-width: 14;
  animation: am-lamp 760ms linear 680ms both;
}
.face-glow {
  opacity: 0.9;
  animation: am-glow 760ms linear 680ms both;
}
.face-crescents {
  fill: #ffffff;
}
.face-crescent {
  animation: am-glint 380ms var(--ease-out) 1060ms both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: clamp(20px, 4vh, 36px) 0 0;
  padding: 6px 14px;
  border: 1px solid rgb(229 97 27 / 0.45);
  border-radius: var(--pill);
  color: var(--glow);
  font-size: 14px;
  font-weight: 500;
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 10px var(--lamp);
}
h1 {
  margin: 16px 0 0;
  font-size: clamp(30px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  animation: am-lit 900ms var(--ease-out) 1250ms both;
}
.tagline {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: clamp(17px, 2.2vw, 21px);
  animation: am-lit-sub 900ms var(--ease-out) 1400ms both;
}
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.services li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgb(30 30 36 / 0.6);
  font-size: 15px;
}

/* Contacts: the call button first, then the two official profiles */
.contact {
  width: 100%;
  max-width: 520px;
  margin-top: clamp(28px, 5vh, 44px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgb(30 30 36 / 0.72);
}
.contact-lead {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}
.call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 22px;
  border-radius: var(--pill);
  background: var(--lamp);
  color: var(--ink); /* 4.76:1 on the lamp orange */
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.call:hover {
  background: var(--lamp-hover);
}
.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 180ms var(--ease-out);
}
.social a:hover {
  border-color: var(--text);
}
.city {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 16px var(--gutter) 28px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* 404: the same look, smaller face, links to the three pages */
.notfound .face {
  width: min(300px, 64vw);
}
.notfound h1 {
  margin-top: 36px;
  font-size: clamp(26px, 4vw, 40px);
}
.notfound-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.notfound-langs a {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  text-decoration: none;
}
.notfound-langs a:hover {
  border-color: var(--text);
}
.notfound p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

@media (max-width: 420px) {
  .top {
    column-gap: 12px;
  }
  .logo img {
    height: 17px;
  }
  .langs a {
    padding: 5px 10px;
  }
  .social {
    grid-template-columns: 1fr;
  }
}

@keyframes am-pool {
  from {
    opacity: 0;
    transform: scaleY(0.55);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}
@keyframes am-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes am-grille {
  from {
    fill: #3a3a43;
  }
  to {
    fill: var(--lamp);
  }
}
@keyframes am-lamp {
  0% {
    stroke: #3a3a43;
  }
  14% {
    stroke: #ff9a5c;
  }
  34% {
    stroke: #6b3214;
  }
  58% {
    stroke: #ffb27e;
  }
  100% {
    stroke: var(--lamp);
  }
}
@keyframes am-glow {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.85;
  }
  34% {
    opacity: 0.18;
  }
  58% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
  }
}
@keyframes am-glint {
  from {
    opacity: 0;
    transform: translate(-6px, 5px);
  }
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}
/* The title is readable from the start (#8a8a94 on ink = 4.85:1) and "lit" by the pools */
@keyframes am-lit {
  from {
    color: #8a8a94;
  }
  to {
    color: var(--text);
  }
}
@keyframes am-lit-sub {
  from {
    color: #8a8a94;
  }
  to {
    color: var(--text-soft);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
