
:root {
  color-scheme: dark;
  --background: #0b0d10;
  --surface: #171a20;
  --text: #f5f5f3;
  --muted: #bdc3cb;
  --accent: #ffbe24;
  --accent-hover: #ffd35b;
  --border: rgba(255,255,255,.13);
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* PAMATA NAVIGACIJA */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: #111;
}
.skip-link:focus { top: 12px; }

.demo-notice {
  padding: 7px 15px;
  background: var(--accent);
  color: #171717;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
}

.site-header {
  position: relative;
  z-index: 30;
  background: #0c0e11;
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.brand strong { color: var(--accent); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-size: 24px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 700;
}
.nav-links a:hover { color: var(--accent); }

.nav-links .nav-cta {
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}
.nav-links .nav-cta:hover {
  background: var(--accent-hover);
  color: #111;
}
.menu-toggle { display: none; }

/* HERO */

.hero {
  isolation: isolate;
  background:
    linear-gradient(
      to bottom,
      transparent 59%,
      #0b0d10 100%
    ),
    linear-gradient(
      90deg,
      rgba(7,9,12,.96) 0%,
      rgba(7,9,12,.84) 34%,
      rgba(7,9,12,.43) 74%
    ),
    url("assets/hero-garage.jpg") center / cover no-repeat;
}

.hero-content {
  display: flex;
  align-items: center;
  min-height: 650px;
  padding-block: 90px;
}
.hero-copy { max-width: 750px; }

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-block;
  border: 1px solid rgba(255,190,36,.45);
  padding: 7px 11px;
  background: rgba(0,0,0,.3);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(43px,6vw,82px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.065em;
}
.hero h1 span {
  color: var(--accent);
  font-style: italic;
}
.hero-lead {
  max-width: 530px;
  color: #e1e3e5;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* POGAS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  color: #fff;
  background: rgba(10,10,10,.38);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }

/* HERO PAKALPOJUMI */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 45px;
  margin-top: 52px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stat-item strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}
.stat-item span {
  color: #b8bdc4;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* KOPĪGIE SADAĻU STILI */

.section {
  padding: 110px 0;
  scroll-margin-top: 25px;
}
.section-heading { margin-bottom: 38px; }
.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(31px,4vw,51px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.05em;
}
.section-heading p,
.about-copy p,
.contact-copy p { color: var(--muted); }

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
}
.section-heading-row > div { max-width: 660px; }

.ghost-link {
  flex-shrink: 0;
  padding: 12px 20px;
  border: 1px solid #606975;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.ghost-link:hover { border-color: var(--accent); }

/* ATSEVIŠĶI FONI AR MAIGU IZGAIŠANU */

.services-section,
.about-section,
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--background);
}

/* Katrai fotogrāfijai savs tumšuma līmenis */

.services-section {
  --photo: url("assets/services-background.jpg");
  --photo-opacity: .53;
  --photo-brightness: .39;
}

.about-section {
  --photo: url("assets/about-background.jpg");
  --photo-opacity: .39;
  --photo-brightness: .40;
}

.contact-section {
  --photo: url("assets/contact-background.jpg");
  --photo-opacity: .45;
  --photo-brightness: .43;
}

.services-section::before,
.about-section::before,
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: var(--photo) center / cover no-repeat;
  opacity: var(--photo-opacity);

  filter:
    brightness(var(--photo-brightness))
    saturate(.6)
    contrast(1.08);

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 75%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 20%,
    #000 75%,
    transparent 100%
  );
}

.services-section > .container,
.about-section > .container,
.contact-section > .container {
  position: relative;
  z-index: 1;
}

/* PAKALPOJUMU KARTĪTES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.service-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px;
  overflow: hidden;
  background: #17191c;
  transition:
    border-color .25s ease,
    transform .25s ease;
}

.service-card:hover,
.service-card:focus-within {
  border-color: rgba(255,190,36,.78);
  transform: translateY(-4px);
}

/* Visa kartīte ir viena klikšķināma poga */

.service-open {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: 430px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.service-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    rgba(5,7,10,.04) 0%,
    rgba(5,7,10,.25) 37%,
    rgba(5,7,10,.87) 72%,
    rgba(5,7,10,.99) 100%
  );
}

.service-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #30343a;
  background-position: center;
  background-size: cover;
  transition: transform .5s ease;
}

.service-image-1 {
  background-image: url("assets/suspension-service.jpg");
}
.service-image-2 {
  background-image: url("assets/brake-service.jpg");
}
.service-image-3 {
  background-image: url("assets/oil-service.jpg");
}

.service-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 100%;
  padding: 30px 27px;
}

.service-title {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px #0009;
}

.service-summary {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #e8ebef;
}

.service-more {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.service-open:hover .service-more,
.service-open:focus-visible .service-more {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* PAR MUMS */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.about-photo {
  min-height: 450px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg,#1119,transparent),
    url("assets/about-garage.jpg") center / cover no-repeat;
  box-shadow: 0 20px 55px #0006;
}
.about-copy { max-width: 570px; }
.about-copy > p:not(.eyebrow) { line-height: 1.85; }

.feature-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  color: #ecedef;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

/* KONTAKTI */

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 52px;
  padding: 55px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;

  background: linear-gradient(
    110deg,
    rgba(18,21,26,.96),
    rgba(18,21,26,.94)
  );

  box-shadow: 0 18px 60px #0005;
}
.contact-copy p {
  max-width: 540px;
  line-height: 1.8;
}
.contact-box {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101215;
}
.contact-box p {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  color: #d1d5da;
}
.contact-box strong { color: white; }
.btn-full { width: 100%; margin-top: 24px; }

.site-footer {
  padding: 28px 0;
  background: #090b0d;
  border-top: 1px solid var(--border);
}
.footer-wrap { text-align: center; }
.footer-wrap p {
  margin: 0;
  font-size: 12px;
  color: #9ca2ac;
}

/* JAUNAIS PAKALPOJUMU LODZIŅŠ */

.service-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(84vh, 740px);
  max-height: min(84dvh, 740px);
  padding: 0;
  border: 1px solid rgba(255,190,36,.4);
  border-radius: 17px;
  background: #15191f;
  color: white;
  box-shadow: 0 24px 90px #000c;
  overflow: auto;
}
.service-dialog::backdrop {
  background: rgba(0,0,0,.82);
}
.dialog-panel { padding: 30px; }
.dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-top .eyebrow { margin-top: 5px; }

.dialog-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #22272e;
  color: #fff;
  cursor: pointer;
}
.dialog-close:hover { border-color: var(--accent); }

.service-dialog h2 {
  margin: 4px 0 15px;
  font-size: clamp(26px,5vw,34px);
  line-height: 1.2;
}
.service-dialog p {
  color: #d5d9df;
  font-size: 15px;
}
.dialog-list {
  padding-left: 22px;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.7;
}
.dialog-list li { margin-block: 9px; }
.dialog-list li::marker { color: var(--accent); }

.service-dialog .dialog-note {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--border);
  color: #aeb6c0;
  font-size: 12px;
}
.dialog-done { margin-top: 8px; }

/* PLANŠETE */

@media (max-width: 950px) {
  .nav-links { gap: 18px; }
  .about-grid { gap: 35px; }
  .hero-content { min-height: 570px; }
  .contact-panel { gap: 25px; padding: 35px; }
}

/* TELEFONS */

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 32px),var(--container));
  }
  .nav-wrap { min-height: 68px; }

  .menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: #101216;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 30px #0006;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 8px; }
  .nav-links .nav-cta {
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    background-position: center, center, 60% center;
  }
  .hero-content {
    min-height: 590px;
    padding-block: 72px;
  }
  .hero h1 { font-size: clamp(39px,8vw,58px); }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 22px; }
  .section { padding: 82px 0; }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
  .service-open { min-height: 380px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-photo { min-height: 340px; }
  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand { font-size: 15px; }
  .hero-content { min-height: 570px; }
  .hero h1 { font-size: clamp(36px,9vw,47px); }
  .hero-actions { gap: 10px; }
  .btn { padding: 13px 18px; }
  .hero-stats { gap: 16px; margin-top: 38px; }
  .stat-item strong { font-size: 19px; }
  .stat-item span { font-size: 9px; }
  .service-open { min-height: 360px; }
  .service-body { padding: 25px 23px; }
  .service-title { font-size: 21px; }
  .contact-panel { padding: 24px 18px; }
  .contact-box { padding: 20px; }
  .dialog-panel { padding: 23px; }
}

/* SAMAZINĀTĀS KUSTĪBAS */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .service-image { transition: none; }
  .service-card:hover { transform: none; }
}
