:root {
  --dark: #333;
  --light: #fff;
  --accent: #5e3d26;
  --soft: #a87b56;
  --gray: #f4f4f4;
}
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--light);
  color: var(--dark);
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.hero {
  background: url('hero.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  color: white;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.section {
  padding: 60px 20px;
}

.section.alt {
  background: var(--gray);
}

h2 {
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.img-rounded {
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

ul {
  list-style: none;
  margin-top: 15px;
}

ul li::before {
  content: "✔ ";
  color: var(--accent);
  margin-right: 8px;
}

.price-table {
  background: var(--gray);
  padding: 20px;
  border-radius: 10px;
}

.price-table div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.price-table div:last-child {
  border-bottom: none;
}

.price-table small {
  color: #666;
  font-size: 0.85em;
  display: block;
}

footer {
  background: var(--dark);
  color: #ccc;
  text-align: center;
  padding: 40px 10px;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

/* Kopīga izvēlne un sākumlapas saites esošajā lapas stilā. */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: rgba(65, 40, 24, 0.65);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #000;
}

.hero {
  min-height: 480px;
}

.hero .overlay {
  padding-top: 100px;
}

.site-nav,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 0;
}

.nav-links {
  padding: 0;
}

.menu-toggle {
  display: none;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a[aria-current="page"] {
  background: #f4e9df;
  color: var(--accent);
  border-color: #f4e9df;
}

.site-nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.service-links > a {
  display: flex;
  flex-direction: column;
  padding: 25px;
  background: var(--gray);
  border-radius: 10px;
  color: var(--dark);
  text-decoration: none;
}

.service-links h3,
.service-links span {
  color: var(--accent);
}

.service-links h3 {
  margin-bottom: 10px;
}

.service-links span {
  margin-top: auto;
  padding-top: 20px;
}

.service-links > a:hover span {
  text-decoration: underline;
}

#kontakti a,
#pakalpojumi p a {
  color: var(--accent);
}

@media (max-width: 700px) {
  .hero {
    min-height: 540px;
  }

  .hero .overlay {
    padding-top: 80px;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    gap: 0;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 12px 5% 16px;
    background: rgba(48, 29, 18, 0.97);
    border-bottom: 1px solid #000;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
  }

  .js .site-nav.is-open .nav-links {
    display: flex;
  }

  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
  }

  .menu-toggle-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 16px;
  }

  .menu-toggle-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .service-links {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .price-table div {
    flex-wrap: wrap;
    gap: 5px 15px;
  }
}

.dyson-content p + p {
  margin-top: 14px;
}

.dyson-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.dyson-categories h3 {
  color: var(--accent);
  margin-bottom: 12px;
}

.dyson-content ul {
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .dyson-categories {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a {
    transition: none;
  }
}

/* Kompaktas, katram pakalpojumam atbilstošas titulbildes. */
.hero.hero-inner {
  height: 380px;
  min-height: 380px;
}

.hero-coffee {
  background-image: url('kafijasautomati.jpeg');
  background-position: center 45%;
}

.hero-robots {
  background-image: url('images/robotu-hero.webp');
}

.hero-dyson {
  background-image: url('images/dyson-hero.webp');
}

.hero-inner .overlay {
  background: rgba(0, 0, 0, 0.48);
}

.hero-inner .hero-content {
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .hero.hero-inner {
    height: 400px;
    min-height: 400px;
  }

  .hero-dyson {
    background-position: 80% center;
  }

  .hero-robots {
    background-position: 65% center;
  }

  .hero-inner .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-inner .hero-content p {
    font-size: 0.95rem;
  }
}
