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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: #f5f5f3;
  color: #1c1c1c;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= HEADER / NAV ================= */

.logo-svg {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
}

.main-nav {
  display: flex;
  gap: 7px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  justify-content: center;
}

.main-nav a {
  color: #222;
  text-decoration: none;
  transition: opacity 0.2s;
}

.main-nav a:hover {
  opacity: 0.5;
}

.tagline {
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* ================= HERO ================= */

.hero {
  width: 100%;
  height: 80vh;
  background-color: #f5f5f3;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 0;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 1.1s ease-in-out;
}

/* ================= HERO TEXT ================= */

.hero-text {
  max-width: 900px;
  margin: 20px auto 60px;
  text-align: center;
  padding: 0 20px;
}

.hero-text h1,
.hero-text p {
  margin: 0;
  padding: 0;
  color: #1a1a1a;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 1.25rem;
  line-height: 1.4;
}

/* ================= SECTIONS ================= */

section {
  padding: 50px 70px;
}

section h2 {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 32px;
  text-align: center;
}

section p {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
  font-size: 16px;
}

#services {
  padding-top: 30px;
}

/* ================= DESIGN TO PRODUCTION ================= */

#Design-to-Production .gallery {
  display: flex;
  flex-direction: column;
  gap: 140px;
  max-width: 980px;
  margin: 100px auto;
}

#Design-to-Production .gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#Design-to-Production .gallery img:hover {
  transform: scale(1.015);
  opacity: 0.98;
}

/* ================= PORTFOLIO ================= */

#portfolio .gallery {
  display: flex;
  flex-direction: column;
  gap: 140px;
  max-width: 980px;
  margin: 100px auto;
}

#portfolio .gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

#portfolio .gallery img:hover {
  transform: scale(1.015);
  opacity: 0.98;
}

/* ================= SHOP ================= */

#shop .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

#shop .gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.35s ease;
}

#shop .gallery img:hover {
  transform: scale(1.05);
}

#shop .price {
  margin-top: 12px;
  font-size: 16px;
  color: #555;
  text-align: center;
}

.shop-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.shop-image {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.active {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: transparent;
  max-width: 90%;
  max-height: 90%;
  display: block;
  border-radius: 8px;
}

.modal-content img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.modal-content img:hover {
  transform: scale(1.03);
}

.modal-content .main-image {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
}

/* ================= MODAL CONTROLS ================= */

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  z-index: 10002;
}

.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  opacity: 0.8;
}

.nav:hover {
  opacity: 1;
}

.prev {
  left: 40px;
}

.next {
  right: 40px;
}

/* ================= MINIATURKI W MODAL ================= */

.thumbs-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.thumbs-container .thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumbs-container .thumb:hover,
.thumbs-container .active-thumb {
  opacity: 1;
  transform: scale(1.05);
}

/* ================= PRODUCT / SHOP MODAL INFO ================= */

.modal-info {
  position: absolute;
  left: 42px;
  bottom: 42px;
  max-width: 440px;
  padding: 28px 32px;
  background: rgba(18, 18, 18, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  text-align: left;
  z-index: 10001;
}

.modal-info h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.modal-price {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #e5d3a1;
}

.modal-info p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  color: #e7e2da;
  text-align: left;
}

.modal-note {
  font-size: 12px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfc7bb !important;
}

.modal-contact {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px;
}

.modal-contact:hover {
  opacity: 0.6;
}

/* force white text in shop modal */
#modal-shop,
#modal-shop * {
  color: #fff;
}

#modal-shop .modal-price {
  color: #e5d3a1 !important;
}

#modal-shop .modal-note {
  color: #d8d8d8 !important;
}

#modal-shop .modal-contact {
  color: #fff !important;
  border-bottom: 1px solid #fff !important;
}

/* ================= ABOUT / CONTACT ================= */

#about p,
#contact p {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
}

/* ================= FOOTER ================= */

footer {
  padding: 60px 80px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

footer a {
  color: #1c1c1c;
  text-decoration: none;
}

footer a:hover {
  opacity: 0.6;
}

#footer {
  padding: 60px 24px;
  background: #f4f1ec;
  text-align: center;
  font-size: 14px;
  color: #333;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin: 28px 0;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

.footer-links a:hover {
  border-bottom-color: #000;
}

/* ================= SPLIT PREMIUM SEO PAGE ================= */

.split-page {
  background: #f7f5f1;
  color: #1c1c1c;
  min-height: 100vh;
}

.split-section {
  display: grid;
  grid-template-columns: 58% 42%;
  min-height: 100vh;
}

.split-image {
  height: 100vh;
  overflow: hidden;
}

.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 80px;
  max-width: 620px;
}

.split-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 42px;
}

.split-text .lead {
  font-size: 20px;
  line-height: 1.75;
  color: #222;
  margin-bottom: 26px;
}

.split-text p {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 22px;
}

.links {
  margin-top: 24px;
  font-size: 14px;
}

.links a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.35);
}

.links a:hover {
  border-bottom-color: #000;
}

.back {
  margin-top: 42px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #111;
  width: fit-content;
  padding-bottom: 6px;
}

.back:hover {
  opacity: 0.55;
}

/* ================= SEO SUBPAGES OLD SUPPORT ================= */

.seo-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 40px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
}

.seo-text {
  max-width: 520px;
}

.seo-text h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.1;
  margin: 0 0 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.seo-text p {
  font-size: 17px;
  line-height: 1.8;
  margin: 0 0 22px;
  color: #333;
  text-align: left;
}

.seo-image img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #222;
  padding-bottom: 5px;
}

.back-link:hover {
  opacity: 0.55;
}

/* ================= PREMIUM SEO PAGES OLD SUPPORT ================= */

.premium-page {
  background: #f7f5f1;
  color: #1f1f1f;
  min-height: 100vh;
}

.premium-hero {
  width: 100%;
  padding: 34px 34px 0;
  box-sizing: border-box;
}

.premium-hero img {
  width: 100%;
  height: 78vh;
  object-fit: cover;
  display: block;
}

.premium-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 90px 28px 120px;
  text-align: center;
}

.premium-kicker {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 28px;
}

.premium-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 42px;
  letter-spacing: -0.04em;
}

.premium-lead {
  font-size: 21px;
  line-height: 1.75;
  color: #222;
}

.premium-content p {
  font-size: 17px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 24px;
}

.premium-link {
  display: inline-block;
  margin-top: 38px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 6px;
}

.premium-link:hover {
  opacity: 0.55;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-image {
    height: 58vh;
  }

  .split-text {
    padding: 56px 24px 80px;
    max-width: none;
  }

  .split-text h1 {
    font-size: 36px;
  }

  .split-text .lead {
    font-size: 18px;
  }

  .split-text p {
    font-size: 16px;
  }

  .seo-page {
    grid-template-columns: 1fr;
    padding: 70px 22px;
    gap: 40px;
  }

  .seo-text {
    max-width: none;
  }

  .seo-text h1 {
    font-size: 36px;
  }

  .seo-text p {
    font-size: 16px;
  }

  .seo-image {
    order: -1;
  }

  .seo-image img {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-header .logo-svg,
  .site-header .logo {
    height: 60px;
  }

  .main-nav {
    flex-direction: row;
    gap: 16px;
    justify-content: center;
  }

  #portfolio .gallery,
  #shop .gallery {
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 50px auto;
  }

  .hero {
    height: auto;
    padding: 0;
  }

  .hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #services {
    padding-top: 32px;
  }

  .nav {
    font-size: 40px;
  }

  .thumbs-container .thumb {
    width: 50px;
    height: 35px;
  }

  section {
    padding: 80px 20px;
  }

  a[href^="#"] {
    display: none !important;
  }

  .modal-content {
    max-width: 92%;
  }

  .modal-content .main-image {
    max-height: 58vh;
  }

  .modal-info {
    position: static;
    max-width: none;
    margin-top: 18px;
    padding: 22px;
  }

  .modal-info h2 {
    font-size: 24px;
  }

  .premium-hero {
    padding: 18px 18px 0;
  }

  .premium-hero img {
    height: 58vh;
  }

  .premium-content {
    padding: 60px 22px 90px;
  }

  .premium-lead {
    font-size: 18px;
  }

  .premium-content p {
    font-size: 16px;
  }
}
