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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f8f5f0;
  color: #2b2b2b;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f8f5f0;
  border-bottom: 1px solid #ddd6cc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  text-decoration: none;
  color: #2b2b2b;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav a:hover {
  opacity: 0.6;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 8%;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

h1, h2 {
  font-size: 42px;
  margin-bottom: 35px;
  font-weight: 300;
  letter-spacing: 1px;
}

.section h1 {
  font-size: 48px;
}

p {
  font-size: 18px;
  line-height: 1.9;
}

.section-text {
  max-width: 800px;
  margin-bottom: 35px;
  line-height: 1.8;
}

.main-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
}

/* HERO */
.hero {
  min-height: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 25px;
}

.hero-content p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 20px;
}

.hero-button {
  display: inline-block;
  padding: 18px 42px;
  border: 1px solid #2b2b2b;
  color: #2b2b2b;
  text-decoration: none;
  transition: 0.3s;
}

.hero-button:hover {
  background: #2b2b2b;
  color: #f8f5f0;
}

/* PAKALPOJUMI */
.card-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 20px;
  row-gap: 8px;
  margin-top: 40px;
}

.card {
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.card:nth-child(1) {
  grid-column: 1 / 3;
}

.card:nth-child(2) {
  grid-column: 3 / 5;
}

.card:nth-child(3) {
  grid-column: 5 / 7;
}

.card:nth-child(4) {
  grid-column: 2 / 4;
  margin-top: -25px;
}

.card:nth-child(5) {
  grid-column: 4 / 6;
  margin-top: -25px;
}

.card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: translateY(-5px);
}

/* PORTFOLIO SĀKUMLAPĀ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 22px;
  row-gap: 22px;
  margin-top: 45px;
}

.portfolio-grid .portfolio-card:nth-child(1) {
  grid-column: 1 / 3;
}

.portfolio-grid .portfolio-card:nth-child(2) {
  grid-column: 3 / 5;
}

.portfolio-grid .portfolio-card:nth-child(3) {
  grid-column: 5 / 7;
}

.portfolio-grid .portfolio-card:nth-child(4) {
  grid-column: 2 / 4;
}

.portfolio-grid .portfolio-card:nth-child(5) {
  grid-column: 4 / 6;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: white;
  text-decoration: none;
}

.portfolio-card span {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
  text-align: center;
  padding: 20px;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card:hover span {
  opacity: 1;
}

/* GALERIJAS */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* DRUKAS GALERIJA */
.print-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
  align-items: start;
}

.print-gallery img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: white;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.print-gallery img:hover {
  transform: scale(1.03);
}


/* KONTAKTI */
.contact {
  text-align: center;
  border-top: 1px solid #ddd6cc;
}

.contact a {
  color: #2b2b2b;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

.contact p {
  margin-bottom: 8px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .card-grid,
  .portfolio-grid,
  .gallery,
  .print-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    grid-column: auto !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .card-grid,
  .portfolio-grid,
  .gallery,
  .print-gallery {
    grid-template-columns: 1fr;
  }

  h1, h2,
  .section h1 {
    font-size: 30px;
  }
}