/* JuHen Rental — juhenrental.lv */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-wdth-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 {
  --black: #111111;
  --black-2: #181818;
  --line: #2a2a2a;
  --red: #971a1f;          /* zīmola sarkanais no logo — pogu fons, akcenti */
  --red-hover: #ad2026;
  --red-text: #d23b35;     /* sarkanais tekstam uz tumša fona (kontrasts ≥ 3:1 lieliem burtiem) */
  --white: #ffffff;
  --grey: #a9a9a9;

  --gutter: clamp(16px, 4vw, 56px);
  --font: "Archivo", "Arial Narrow", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, ol, figure { margin: 0; }

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--white); color: var(--black); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

.accent { color: var(--red-text); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  position: relative; z-index: 2;
}
.brand { display: inline-block; text-decoration: none; }
.brand img { height: clamp(40px, 4.4vw, 58px); width: auto; }
.site-header__loc {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--grey); white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr;
}
.hero__text {
  padding: 8px var(--gutter) 28px;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); flex: none; }

.hero__title {
  margin-top: 10px;
  font-weight: 800;
  font-stretch: 72%;
  text-transform: uppercase;
  font-size: clamp(2.3rem, 11.2vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.01em;
}
.hero__title .line { display: block; white-space: nowrap; }
.line--accent { color: var(--red-text); }

.hero__lead {
  margin-top: 14px;
  max-width: 32em;
  font-size: clamp(.94rem, .6vw + .75rem, 1.1rem);
  line-height: 1.5;
  color: #d6d6d6;
}


/* ---------- Buttons ---------- */
.actions {
  margin-top: 18px;
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
}
.btn {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 50px; padding: 8px 18px;
  text-decoration: none;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn__meta { font-size: .78rem; font-weight: 500; letter-spacing: .06em; opacity: .85; text-transform: none; }
.btn--primary { background: var(--red); color: var(--white); min-height: 56px; }
.btn--primary:hover { background: var(--red-hover); }
.btn--secondary { border-color: var(--white); color: var(--white); }
.btn--secondary:hover { background: var(--white); color: var(--black); }
.btn--ghost { border-color: var(--line); color: var(--grey); }
.btn--ghost:hover { border-color: var(--grey); color: var(--white); }
.btn:active { transform: translateY(1px); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Photo ---------- */
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--black-2);
  aspect-ratio: 680 / 446;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* ---------- Services ---------- */
.services {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; gap: 16px;
}
.services__title, .contact__title {
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--grey);
}
.services__list { list-style: none; padding: 0; }
.services__list li {
  display: grid; grid-template-columns: 2.5rem 1fr; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.services__list li:first-child { border-top: 1px solid var(--line); }
.services__num { font-size: .8rem; font-weight: 600; color: var(--red-text); letter-spacing: .08em; }
.services__name {
  font-weight: 700; font-stretch: 80%; text-transform: uppercase;
  font-size: clamp(1.15rem, 2.6vw, 2.2rem); line-height: 1.1;
}

/* ---------- Contact band ---------- */
.contact {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  background: var(--black-2);
  display: grid; gap: 16px;
}
.contact__title {
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  font-weight: 800; font-stretch: 72%; letter-spacing: -.005em; line-height: .95;
  color: var(--white);
}
.contact__lines { display: grid; gap: 8px; justify-items: start; }
.contact__big {
  font-weight: 700; font-stretch: 85%;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  text-decoration: none; line-height: 1.15;
  border-bottom: 2px solid var(--red);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact__big:hover { border-color: var(--white); }
.contact__links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.contact__links a { color: var(--grey); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact__links a:hover { color: var(--white); text-decoration-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  display: grid; gap: 12px;
  font-size: .85rem; color: var(--grey);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__name { color: var(--white); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.site-footer__copy { font-size: .8rem; }

/* ---------- Mobile quick bar ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
  background: rgba(17, 17, 17, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s var(--ease);
}
.quickbar[hidden] { display: none; }
.quickbar.is-visible { transform: none; }
.quickbar__btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem;
  border: 1px solid var(--white);
}
.quickbar__btn--primary { background: var(--red); border-color: var(--red); }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn--primary { grid-column: 1 / -1; }
  .services__list li { grid-template-columns: 4rem 1fr; padding: 16px 0; }
  .site-footer { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .quickbar { display: none !important; }

  .site-header {
    position: absolute; top: 0; left: 0; right: 0;
    padding-top: 30px;
  }
  .site-header__loc {
    /* atrašanās vieta virs fotogrāfijas — ar fonu labākai lasāmībai */
    background: var(--black); color: var(--white); padding: 8px 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  }
  .hero__text {
    padding: 128px var(--gutter) 72px;
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero__title { font-size: clamp(3.6rem, 6.3vw, 7.4rem); }
  .actions { display: flex; flex-wrap: wrap; }
  .btn { white-space: nowrap; }
  .actions .btn--primary { grid-column: auto; }
  .btn { padding: 10px 22px; min-height: 54px; font-size: .9rem; }
  .btn--primary { min-height: 58px; }
  .hero__media { align-self: center; margin-top: 56px; }

  .services { grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: 0; }
  .services { padding-top: 64px; padding-bottom: 80px; }
  .services__title { padding-top: 24px; }
  .services__list { grid-column: 2; }
  .services { grid-template-columns: 1fr 2.2fr; }

  .contact { grid-template-columns: 1fr auto; align-items: end; }
  .contact__lines { justify-items: end; text-align: right; }
}

@media (min-width: 1440px) {
  .hero__text { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .9s var(--ease) forwards;
    animation-delay: var(--d, 0ms);
  }
  .hero__media img {
    opacity: 0;
    transform: scale(1.05);
    animation: photo 1.6s var(--ease) .15s forwards;
  }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes photo { to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .quickbar, .skip { display: none !important; }
}

/* Vieta mobilajai saziņas joslai lapas beigās */
@media (max-width: 959px) {
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* Telefons: WhatsApp un e-pasts blakus, lai pirmajā ekrānā ietilptu vairāk */
@media (min-width: 360px) and (max-width: 599px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .actions .btn--primary { grid-column: 1 / -1; }
  .btn--secondary, .btn--ghost { font-stretch: 85%; letter-spacing: .02em; padding: 8px 12px; text-align: center; align-items: center; }
}
