@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f5f5f5;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: #4CAF50;
}

p {
    text-align: justify;
}

.quote-section {
    background-color: #d3d3d3;
    padding: 15px 10%;
}

.quote {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote p {
    font-style: italic;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
}

.quote cite {
    align-self: flex-end;
    font-weight: normal;
    font-size: 16px;
    text-align: right;
}

/* HERO */

.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: var(--hero-image) center/cover no-repeat;

    filter: blur(6px);
    will-change: transform;
    transform: scale(1.1) translateY(var(--parallax-offset, 0));
    z-index: 1;
}

/* pages whose hero photo is already blurred on disk skip the live blur filter (slow on phones) */
.hero.hero--preblurred::before {
    filter: none;
}

.overlay {
    position: relative;
    z-index: 2;

    max-width: 700px;
    text-align: center;
    color: white;
}

.overlay h1 {
    font-size: 68px;
    margin-bottom: 15px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.45);
}

.overlay p {
    text-shadow: 0 6px 18px rgba(0,0,0,0.55), 0 2px 6px rgba(0,0,0,0.45);
}

/* SECTIONS */

.fade-section {
    padding: 80px 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* CONTENT */

.content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.content.reverse {
    flex-direction: row-reverse;
}

.text {
    flex: 1;
}

.text h2 {
    margin-bottom: 15px;
}

.section-readmore {
    display: inline-block;
    margin-top: 18px;
    color: #f7941d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.section-readmore:hover {
    border-bottom-color: #f7941d;
}

.text h2 a.section-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

.text h2 a.section-title-link:hover {
    color: #f7941d;
}

.section-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.image {
    flex: 1;
    flex-shrink: 0;
    position: relative;
}

.image-container {
    width: 45vw;
    height: 28vw;
    overflow: hidden;
    border-radius: 10px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
    animation: floatImage 4s ease-in-out infinite;
    transform: translateX(-5vw);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-reverse .image-container {
    animation: floatImageReverse 4s ease-in-out infinite;
    transform: translateX(5vw);
}

/* ANIMATIONS */

.image-container + .image-container {
    margin-top: 24px;
}

@keyframes floatImage {
    0% {
        transform: translateX(15%) translateY(0);
    }
    50% {
        transform: translateX(15%) translateY(-10px);
    }
    100% {
        transform: translateX(15%) translateY(0);
    }
}

@keyframes floatImageReverse {
    0% {
        transform: translateX(-15%) translateY(0);
    }
    50% {
        transform: translateX(-15%) translateY(-10px);
    }
    100% {
        transform: translateX(-15%) translateY(0);
    }
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

/* MOBILE */

@media (max-width: 768px) {

    .content,
    .content.reverse {
        flex-direction: column;
    }

    .text h2 {
        margin-top: 10px;
    }

    .image-container {
        width: 92%;
        max-width: 500px;
        height: 380px;
        transform: none;
        animation: none;   /* the floating animation also shifts the box
                               15% sideways, which pushed part of it out
                               of this centered mobile frame */
        margin: 0 auto;
    }

    .overlay h1 {
        font-size: 42px;
    }

    .overlay {
        padding: 0 20px;
    }
}

/* ===== HEADER / NAV ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: linear-gradient(90deg, #f5a623 0%, #f7941d 100%);
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
}

.site-header nav {
    max-width: 1200px;
    height: 64px;
    padding: 0 1.5rem;
}

.site-header .logo {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .5px;
}

.site-header .nav-menu {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    margin: 0 auto;
}

.site-header .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: opacity .25s, transform .25s;
}

.site-header .nav-menu a:hover {
    opacity: .8;
    transform: translateY(-1px);
}

.pirkt-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: #fff;
    color: #f7941d;
    padding: .45rem 1.1rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform .25s, box-shadow .25s;
}

.pirkt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.pirkt-btn svg {
    color: #f7941d;
}

/* ===== HAMBURGER (hidden on desktop) ===== */
.nav-toggle { display: none; }          /* the checkbox itself is never shown */
.nav-burger { display: none; }          /* burger icon hidden on desktop */

/* ===== QUOTE REFINEMENT ===== */
.quote-section {
    background-color: #e0ded9;
}

.quote {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    color: #444;
}

.quote span {
    font-size: 18px;
    text-align: center;
}

/* Hero sits behind the fixed header */
.hero {
    margin-top: 0;
}

/* ===== MOBILE HEADER (hamburger) ===== */
@media (max-width: 768px) {
    .site-header nav {
        flex-wrap: nowrap;
        height: 52px;
        padding: 0 .9rem;
        gap: .6rem;
        align-items: center;
        justify-content: space-between;
    }
    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        margin-left: auto;
        order: 2;
    }
    .nav-burger span {
        display: block;
        height: 3px;
        width: 26px;
        background: #fff;
        border-radius: 3px;
        transition: transform .3s, opacity .3s;
    }
    .pirkt-btn { order: 3; }
    .logo { order: 1; }
    .site-header .nav-menu {
        order: 4;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 0;
        background: linear-gradient(90deg, #f5a623 0%, #f7941d 100%);
        box-shadow: 0 8px 16px rgba(0,0,0,0.18);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .site-header .nav-menu li { width: 100%; text-align: center; }
    .site-header .nav-menu a {
        display: block;
        padding: .85rem 0;
        border-top: 1px solid rgba(255,255,255,0.25);
        font-size: 1rem;
    }
    #nav-toggle:checked ~ .nav-menu { max-height: 340px; }
    #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
    #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ===== SMALL PHONE: shrink logo & pirkt so the bar stays short ===== */
@media (max-width: 600px) {
    .site-header nav { height: 48px; }
    .site-header .nav-menu { top: 48px; }
    .site-header .logo img { height: 30px; }
    .pirkt-btn img { width: 96px !important; margin-top: -18px !important; margin-bottom: -12px !important; }
    .nav-burger { width: 26px; height: 26px; }
    .nav-burger span { width: 22px; }
}

/* === PIRKT BUTTON SVG OVERRIDE === */
.site-header, .site-header nav { overflow: visible; }
.pirkt-btn {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    gap: 0;
    position: relative;
    z-index: 11;
    line-height: 0;
    align-self: flex-start;
}
.pirkt-btn:hover {
    box-shadow: none;
    transform: translateY(-2px);
}
.pirkt-btn img {
    display: block;
    width: 150px;
    height: auto;
    margin-top: -32px;
    margin-bottom: -20px;
    filter: drop-shadow(0 5px 9px rgba(0,0,0,0.18));
}

/* === SCROLL FADE + HOVER ZOOM === */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}
.image-container {
    overflow: hidden;
}
.image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.image-container:hover img {
    transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
    .fade-section { opacity: 1; transform: none; transition: none; }
    .image-container:hover img { transform: none; }
}

/* === LOGO IMAGE === */
.site-header .logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
}
.site-header .logo img {
    display: block;
    height: 42px;
    width: auto;
}


/* Section images bleed off screen edge */
.image-container { transform: translateX(-9vw); }
.image-reverse .image-container { transform: translateX(9vw); }
@keyframes floatImage {
  0%   { transform: translateX(32%) translateY(0); }
  50%  { transform: translateX(32%) translateY(-10px); }
  100% { transform: translateX(32%) translateY(0); }
}
@keyframes floatImageReverse {
  0%   { transform: translateX(-32%) translateY(0); }
  50%  { transform: translateX(-32%) translateY(-10px); }
  100% { transform: translateX(-32%) translateY(0); }
}

/* prevent horizontal scroll from off-screen image bleed */
html, body {
  overflow-x: clip;
  max-width: 100%;
}


/* ===== Site Footer ===== */
.site-footer {
  background: linear-gradient(90deg, #f5a623 0%, #f7941d 100%);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  margin-top: 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 3vw 2.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-brand { align-items: flex-start; text-align: left; }
.footer-heading {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 1.2rem;
  color: #fff;
}
.footer-brand .footer-heading { font-size: 1.35rem; }
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 0 1.1rem;
  max-width: 34ch;
}
.footer-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.6rem;
}
.footer-requisites {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.01em;
}
.footer-contact { gap: 1.1rem; }
.footer-email, .footer-phone {
  font-size: 0.9rem;
  line-height: 1.65;
  white-space: nowrap;
}
.site-footer .footer-email, .site-footer .footer-phone {
  color: rgba(255,255,255,0.92);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.site-footer a:hover,
.site-footer .footer-nav a:hover,
.site-footer .footer-social a:hover {
  color: #fff;
  opacity: 0.8;
  transform: translateY(-1px);
}
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 1.2rem 2rem;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
}
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.5rem 1.5rem 2rem;
  }
  .footer-brand { align-items: center; text-align: center; }
  .footer-tagline { max-width: 100%; }
}
/* Pirmais prototips section image: show full product, centered (portrait photo in landscape frame) */
.image-container img[src$="prototips.jpg"] {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f5;
}

/* Bumbas izmēra pārdomāšana section: transparent circle graphic with manually-added overlay text, no card effects */
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) {
  position: relative;
  justify-content: center;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
}
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text {
  position: absolute;
  inset: 20% 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-3deg);
  pointer-events: auto;
  z-index: 2;
}
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text h2 {
  display: none;
}
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text p {
  font-family: 'Kalam', cursive;
  font-weight: 700;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0;
}
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image {
  flex: 0 1 auto;
  width: 100%;
  max-width: 950px;
}
.content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image-container {
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 385;
  overflow: visible;
  border-radius: 0;
  filter: none;
  animation: none;
  transform: none;
  background: transparent;
}
.image-container img[src$="rudens-bumbas-izmera-aplis.webp"] {
  object-fit: contain;
}
.image-container:hover img[src$="rudens-bumbas-izmera-aplis.webp"] {
  transform: none;
}
/* Rudens bumbas pamatnes skice section: shift crop upward within the frame */
.image-container img[src$="rudens-bumbas-pamatnes-skice.webp"] {
  object-position: center top;
}

.image-container img[src$="sigulda_tuvplana_zelta_rudens_bumba.webp"] {
  height: 100%;
  object-fit: cover;
  object-position: center 78%;
}

/* Plastalīnu skice section: the clay model sits in the upper part of the
   photo — shift the crop up so it's centered in the frame instead of the
   table surface below it. */
.image-container img[src$="rudens_bumbas_plastalinu_uzmetums.webp"] {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Moodboard section: show the whole moodboard collage rather than a tight
   cover-crop, so more of it is visible/legible within the frame. */
.image-container img[src$="moodboard.jpg"] {
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #f5f5f5;
}


/* Gaujas tilts vēsture section: the source photo has a thin white line along
   its top edge — crop it out with a slight zoom and a downward-shifted crop */
.image-container img[src$="gaujas_tilts_vesture.webp"] {
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.08);
}

/* Siguldas Vagoniņš vēsture section: restore a centred cover crop for this
   image specifically, instead of the top-aligned crop that was cutting off
   the bottom of the photo */
.image-container img[src$="siguldas_vagonins_vesture.webp"] {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== LAYERED IMAGE + HANDWRITTEN ANNOTATION (e.g. Gutmanala carvings) =====
   Used when a section sets an optional "image2" (a second, smaller photo that
   overlaps the main one) and/or "annotation" (a short handwritten-style note
   with an arrow pointing at the image) in its frontmatter. */

/* Handwriting font: Kalam (proper Latvian ā, ē, ī, ū, ķ, ļ, ņ, š, ž glyphs). */

.image-stack:has(.image-container--layered) {
    position: relative;
    width: 45vw;
    height: 28vw;
    animation: gutmanalaFloatStack 4s ease-in-out infinite;
}

@keyframes gutmanalaFloatStack {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.image-overlay.image-container {
    position: static;
    width: 100%;
    height: 100%;
    margin: 0;
    animation: none;
    transform: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    filter: none;
    z-index: 2;
}

.image-overlay.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,0.28));
    border-radius: 0;
}

.image-stack .image-container--layered {
    position: absolute;
    top: -28%;
    left: -22%;
    width: 45%;
    height: 45%;
    margin: 0;
    animation: none;
    transform: none;
    background: transparent;
    padding: 0;
    overflow: hidden;
    border-radius: 0 20px 0 0;
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
    filter: none;
    z-index: 1;
}

.image-stack .image-container--layered img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 20px 0 0;
}

.image-annotation {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    max-width: 100%;
    font-family: 'Kalam', cursive;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: #333;
}

.image-annotation--reverse .image-annotation__arrow {
    order: -1;
}

.image-annotation:not(.image-annotation--reverse) .image-annotation__arrow {
    transform: scaleX(-1);
}

.image-annotation__arrow {
    flex-shrink: 0;
    width: 92px;
    height: auto;
}

.image-annotation p {
    margin: 0;
    text-align: left;
    font-family: 'Kalam', cursive;
}

@media (max-width: 768px) {
    .image-stack:has(.image-container--layered) {
        width: 60vw;
        height: 50vw;
    }

    .image-annotation {
        max-width: none;
        margin-top: 18px;
    }

    .image-annotation__arrow {
        width: 64px;
    }
}

/* ===== SIMPLE TITLE / LEGAL PAGES (privacy policy, terms) ===== */
.simple-title {
    padding: 150px 1.5rem 2.5rem;
    text-align: center;
}

.simple-title h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.75rem;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
    color: #333;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.page-content h2 {
    margin: 2.5rem 0 1.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
}

.page-content h2:first-of-type {
    margin-top: 0;
}

.page-content p {
    margin-bottom: 1.1rem;
    line-height: 1.75;
}

.design-registration {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

.design-registration__images {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.design-registration__images img {
    width: 50%;
    height: auto;
    display: block;
    border-radius: 10px;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
}

@media (max-width: 768px) {
    .design-registration__images {
        flex-direction: column;
    }

    .design-registration__images img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .simple-title {
        padding: 110px 1.25rem 2rem;
    }
    .simple-title h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .simple-title {
        padding: 96px 1rem 1.75rem;
    }
}


/* ===== Gūtmaņala section (Par Siguldu page): show the cliff photo
   bigger and without cropping the sides — its aspect ratio is wider
   than the default 45vw x 28vw frame, so it was losing ~10% off
   each edge. */
.image-container:has(img[src$="gutmanala_sigulda_zelta_rudens.webp"]) {
  width: 52vw;
  height: 29vw;
}
@media (max-width: 768px) {
  .image-container:has(img[src$="gutmanala_sigulda_zelta_rudens.webp"]) {
    height: 240px;
  }
}

/* ===== Gūtmaņala senie raksti section: back layer (wall photo)
   uses the same frame style as other sections' images (10px
   rounded corners, standard drop-shadow, full size), positioned
   so part of its frame bleeds off the edge. Front/overlay layer
   (carving closeup) has a transparent background, so it needs no
   frame at all — just its size/position, using the standard
   contain + drop-shadow rendering from the base rule. */
.image-stack .image-container--layered:has(img[src$="gutmanala_senie_raksti.webp"]) {
  top: 0;
  left: -32%;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
}

.image-stack .image-container--layered:has(img[src$="gutmanala_senie_raksti.webp"]) img {
  border-radius: 10px;
}

.image-overlay.image-container:has(img[src$="gutmanalas_senais_raksts.webp"]) {
  position: absolute;
  right: 0;
  bottom: -7%;
  width: 95%;
  height: 90%;
}

/* Annotation: bridge the cursive note + arrow across into the
   image instead of sitting inline in the text column, and tilt
   the handwritten note to match the reference layout. */
.text {
  position: relative;
}

.content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-annotation {
  position: static;
  left: auto;
  margin-top: 30px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  transform: rotate(-4deg);
  transform-origin: left center;
}

.content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-annotation p {
  transform: none;
}

/* Arrow reaches out past the left edge of the text column, toward the photos */
.content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-annotation__arrow {
  order: -1;
  width: 140px;
  height: auto;
  margin: 0 0 0 -80px;
  transform: rotate(-6deg);
}

@media (max-width: 768px) {
  .content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-annotation {
    transform: none;
  }
  .content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-annotation__arrow {
    width: 92px;
    margin: 0;
    transform: none;
  }
}

/* Second (overlay) photo sits a little lower on the main photo */
.content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-overlay.image-container {
  transform: translateY(36px);
}

@media (max-width: 768px) {
  .content:has(img[src$="gutmanala_senie_raksti.webp"]) .image-overlay.image-container {
    transform: none;
  }
}


/* ===================== ORDER / CHECKOUT PAGE ===================== */

.order-page {
    padding: 130px 6% 100px;
}

.order-page__inner {
    display: flex;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
    flex-wrap: wrap;
}

/* Phone only: show the Pirkt (buy) details above the product images */
@media (max-width: 768px) {
  .order-page__details {
    order: -1;
  }
}

.order-page__gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1 1 380px;
    max-width: 580px;
}

.order-page__gallery .image-container {
    position: relative;
    width: 40vw;
    max-width: 620px;
    min-width: 280px;
    height: 40vw;
    max-height: 620px;
    min-height: 280px;
    animation: floatImageReverse 4s ease-in-out infinite;
}

.order-page__gallery .image-container:hover {
    cursor: none;
}

.order-page__gallery img[src$="siguldas_rudens_bumbas_suvenirs.webp"],
.order-page__gallery img[src$="zelta_rudens_siguldas_suvenirs.webp"] {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.magnify-lens {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 0 20px rgba(255,255,255,0.35);
    background-repeat: no-repeat;
    background-color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 5;
    top: 0;
    left: 0;
}

.order-page__gallery .image-container:hover .magnify-lens {
    opacity: 1;
}

.order-page__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    margin: 0 0 10px;
}

@media (max-width: 900px) {
    .order-page__gallery .image-container {
        width: 60vw;
        height: 60vw;
    }
}

.order-page__details {
    flex: 1 1 380px;
    min-width: 300px;
}

.order-page__details .order-page__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 12px;
}

/* Product name under the "Pirkt" title: plain body text, not a heading style */
.order-page__product-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #555;
    margin: 0 0 16px;
}

.order-page__desc {
    color: #555;
    margin-bottom: 28px;
    line-height: 1.6;
}

.order-form__row {
    margin-bottom: 16px;
}

.order-form__row--split {
    display: flex;
    gap: 14px;
}

.order-form__row--split > div {
    flex: 1;
}

.order-form label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 6px;
    color: #333;
}

.order-form input[type="text"],
.order-form input[type="email"],
.order-form input[type="tel"],
.order-form input[type="number"],
.order-form select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.order-form input:focus,
.order-form select:focus {
    outline: none;
    border-color: #f7941d;
    box-shadow: 0 0 0 3px rgba(247,148,29,0.15);
}

.order-form hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 22px 0;
}

.order-form__summary {
    background: #faf7f2;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 22px 0;
}

.order-form__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    color: #555;
}

.order-form__summary-total {
    font-weight: 700;
    font-size: 1.15rem;
    color: #222;
    border-top: 1px solid #e6ded2;
    margin-top: 6px;
    padding-top: 10px;
}

.order-form__row--checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.order-form__row--checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.order-form__submit {
    width: 100%;
    background: #f7941d;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 16px rgba(247,148,29,0.35);
}

.order-form__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(247,148,29,0.45);
}

.order-form__note {
    font-size: 0.82rem;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

@media (max-width: 640px) {
    .order-page__inner { flex-direction: column; gap: 30px; }
    .order-form__row--split { flex-direction: column; gap: 16px; }
}

/* ===================== WITHDRAWAL FORM (Atteikuma tiesības) ===================== */

.withdraw-form {
    max-width: 520px;
    margin: 0 auto 40px;
    background: #faf7f2;
    border-radius: 14px;
    padding: 30px 28px;
}

.withdraw-form .order-form__row { margin-bottom: 16px; }
.withdraw-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: #333; }
.withdraw-form input[type="text"],
.withdraw-form input[type="email"],
.withdraw-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}
.withdraw-form textarea { min-height: 90px; resize: vertical; }


/* Footer navigation: split into two columns (first 5 links, then the rest) */
.footer-nav ul{display:grid;grid-template-rows:repeat(5,auto);grid-auto-flow:column;grid-auto-columns:minmax(130px,max-content);column-gap:28px;justify-content:center;justify-items:center;}

@media (max-width: 600px) {
  .footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}


/* ===== CUSTOM SCROLLBAR (site-wide) ===== */
html {
  scrollbar-width: thin;
  scrollbar-color: #f7941d #eee;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  background-clip: content-box;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 7px,
    #a3a3a3 7px,
    #a3a3a3 9px
  );
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f5a623, #f7941d);
  border-radius: 7px;
  min-height: 40px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f7941d, #e07f0a);
}


/* ==== Floating chat assistant button ==== */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 116px;
  height: 116px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.35)) drop-shadow(0 0 14px rgba(0,0,0,0.18));
  animation: chatWidgetBreathe 3.4s ease-in-out infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.chat-widget-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-image: var(--chat-icon);
  background-repeat: no-repeat;
  background-size: 198px 189px;
  background-position: 0px 14px;
  pointer-events: none;
}

.chat-widget:hover,
.chat-widget:focus-visible {
  animation-play-state: paused;
  transform: scale(1.08);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.45)) drop-shadow(0 0 18px rgba(0,0,0,0.22));
}

@keyframes chatWidgetBreathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

.chat-widget.bounce {
  animation: chatWidgetBounce 0.7s cubic-bezier(.45, 0, .15, 1);
}

@keyframes chatWidgetBounce {
  0%   { transform: scale(1, 1) translateY(0); }
  12%  { transform: scale(1.22, 0.76) translateY(3px); }
  32%  { transform: scale(0.8, 1.24) translateY(-32px); }
  50%  { transform: scale(0.9, 1.14) translateY(-12px); }
  64%  { transform: scale(1.2, 0.82) translateY(0); }
  80%  { transform: scale(0.95, 1.06) translateY(-4px); }
  100% { transform: scale(1, 1) translateY(0); }
}

@media (max-width: 600px) {
  .chat-widget {
    width: 92px;
    height: 92px;
    right: 16px;
    bottom: 16px;
  }

  .chat-widget-icon {
    background-size: 157px 149px;
    background-position: 0px 10px;
  }

  .order-page {
    padding-bottom: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-widget {
    animation: none;
  }
}


/* ==== Floating chat panel ==== */
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 152px;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: min(480px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: #faf7f2;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  overflow: hidden;
  z-index: 998;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel.chat-panel-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chat-panel-header {
  background: #f7941d;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  flex-shrink: 0;
}

.chat-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.chat-panel-close:hover {
  background: rgba(255,255,255,0.2);
}

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 180px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.chat-message-bot {
  align-self: flex-start;
  background: #eee;
  color: #333;
  border-bottom-left-radius: 4px;
}

.chat-message-user {
  align-self: flex-end;
  background: #f7941d;
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* ---- Chat bubbles: soft fade-in / rise, and the typing indicator ---- */
.chat-message {
  transform-origin: bottom left;
  animation: chatBubbleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.chat-message-user { transform-origin: bottom right; }
@keyframes chatBubbleIn {
  0%   { opacity: 0; transform: translateY(12px) scale(0.92); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 12px 16px;
}
.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9a27a;
  opacity: 0.5;
  animation: chatTypingDot 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; background: #f7941d; }
}
.chat-typing.chat-typing-out {
  animation: chatTypingOut 0.2s ease-in forwards;
}
@keyframes chatTypingOut {
  to { opacity: 0; transform: translateY(6px) scale(0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-message, .chat-typing span, .chat-typing.chat-typing-out { animation: none; }
}

.chat-panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e6ded2;
  background: #fff;
  flex-shrink: 0;
}

.chat-panel-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.chat-panel-input:focus {
  border-color: #f7941d;
}

.chat-panel-send {
  background: #f7941d;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel-send:hover {
  background: #e07f0a;
}

@media (max-width: 600px) {
  .chat-panel {
    right: 16px;
    bottom: 120px;
    width: calc(100vw - 32px);
  }
}
/* ---- Dizainparauga reģistrācijas apliecība: attēlu galerija ---- */
.cert-gallery {
    display: grid;
    gap: 16px;
    margin: 1.5rem 0 2.5rem;
}
.cert-gallery--two { grid-template-columns: repeat(2, 1fr); }
.cert-gallery--three { grid-template-columns: repeat(3, 1fr); }
.cert-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    background: #fff;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.25));
}
@media (max-width: 640px) {
    .cert-gallery--two,
    .cert-gallery--three { grid-template-columns: 1fr; }
}
/* ==== Chat widget: inline SVG leaf (JS-driven blinking, talking, grow-on-click) ==== */
.chat-widget-icon { position: relative; overflow: hidden; background-image: none; }
.chat-widget-icon svg.chat-leaf { position: absolute; left: 0; top: 14px; width: 198px; height: 189px; display: block; }
@media (max-width: 600px) { .chat-widget-icon svg.chat-leaf { top: 10px; width: 157px; height: 149px; } }
.chat-leaf [data-part="character"] { transform-box: view-box; transform-origin: 90px 90px; animation: leafGreetLean 2.4s ease-in-out 2s 1 both; }
@keyframes leafGreetLean { 0% { transform: rotate(0deg); } 12% { transform: rotate(-10deg); } 75% { transform: rotate(-10deg); } 100% { transform: rotate(0deg); } }
.chat-leaf [data-part="eyes"] { transform-box: fill-box; transform-origin: center; transition: transform 0.07s ease-in-out; }
.chat-leaf.is-blinking [data-part="eyes"] { transform: scaleY(0.08); }
.chat-leaf [data-part="mouthClosed"], .chat-leaf [data-part="mouthOpen"] { transform-box: fill-box; transform-origin: center; transition: opacity 0.08s ease, transform 0.08s ease; }
.chat-leaf [data-part="mouthOpen"] { opacity: 0; transform: scaleY(0.15); }
/* Greeting: mouth opens slowly while the leaf leans in and waves (same timing as leafGreetLean) */
.chat-leaf [data-part="mouthClosed"] { animation: leafGreetMouthClosed 2.4s ease-in-out 2s 1 backwards; }
.chat-leaf [data-part="mouthOpen"] { animation: leafGreetMouthOpen 2.4s ease-in-out 2s 1 backwards; }
@keyframes leafGreetMouthClosed { 0%, 12% { opacity: 1; transform: scaleY(1); } 28% { opacity: 0; transform: scaleY(0.15); } 72% { opacity: 0; transform: scaleY(0.15); } 88%, 100% { opacity: 1; transform: scaleY(1); } }
@keyframes leafGreetMouthOpen { 0%, 12% { opacity: 0; transform: scaleY(0.15); } 20% { opacity: 1; transform: scaleY(1.15); } 28% { opacity: 1; transform: scaleY(1); } 72% { opacity: 1; transform: scaleY(1); } 80% { opacity: 1; transform: scaleY(1.15); } 88%, 100% { opacity: 0; transform: scaleY(0.15); } }
/* Click: bounce with a happy open mouth */
.chat-widget.bounce .chat-leaf [data-part="mouthOpen"] { opacity: 1; transform: scaleY(1); }
.chat-widget.bounce .chat-leaf [data-part="mouthClosed"] { opacity: 0; transform: scaleY(0.15); }
.chat-leaf.is-talking [data-part="mouthOpen"] { opacity: 1; transform: scaleY(1); }
.chat-leaf.is-talking [data-part="mouthClosed"] { opacity: 0; transform: scaleY(0.15); }
.chat-widget.grow, .chat-widget.grow:hover, .chat-widget.grow:focus-visible { animation: chatWidgetGrow 1s ease-in-out 1; animation-play-state: running; }
@keyframes chatWidgetGrow { 0% { transform: scale(1); } 20% { transform: scale(1.3); } 80% { transform: scale(1.3); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .chat-widget.grow, .chat-widget.bounce, .chat-leaf [data-part="character"], .chat-leaf [data-part="mouthClosed"], .chat-leaf [data-part="mouthOpen"] { animation: none; } }

/* ==== Chat leaf: happy face while answering (eyes more closed, wider smile) ==== */
.chat-leaf.is-happy [data-part="eyes"] { transform: scaleY(0.45); }
.chat-leaf.is-happy.is-blinking [data-part="eyes"] { transform: scaleY(0.08); }
.chat-leaf.is-happy [data-part="mouthClosed"] { opacity: 1; transform: scale(1.35, 1.3); }
.chat-leaf.is-happy [data-part="mouthOpen"] { transform: scale(1.3, 0.15); }
.chat-leaf.is-happy.is-talking [data-part="mouthOpen"] { opacity: 1; transform: scale(1.3, 1.1); }
.chat-leaf.is-happy.is-talking [data-part="mouthClosed"] { opacity: 0; transform: scale(1.35, 0.15); }


/* ==== Pirkt: price ==== */
.order-page__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 18px; }
.order-page__price-amount { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 700; color: #e07f0a; line-height: 1.1; }
.order-page__price-note { font-size: .9rem; color: #555; }
.order-form__total { margin: 10px 0 0; font-size: 1rem; color: #333; }
.order-form__total span { font-weight: 600; }


/* ==== Language switch (LV | EN) ==== */
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: .85rem; color: rgba(255,255,255,.75); letter-spacing: .5px; }
.lang-switch a { color: rgba(255,255,255,.75); text-decoration: none; padding: .2rem .15rem; transition: color .2s; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { color: #fff; border-bottom: 2px solid #fff; }
@media (max-width: 768px) {
  .lang-switch { order: 2; margin-left: auto; margin-right: .4rem; font-size: .8rem; }
  .nav-burger { margin-left: 0; }
}

/* 3-language switcher (LV | EN | DE): keep the header row compact on small phones */
@media (max-width: 600px) {
  .lang-switch { gap: .2rem; margin-right: .25rem; font-size: .72rem; letter-spacing: 0; }
  .lang-switch a { padding: .2rem .05rem; }
}
@media (max-width: 380px) {
  .lang-switch { font-size: .66rem; margin-right: .15rem; }
}


/* ===== PHONE PERFORMANCE + CENTERED SECTION IMAGES (2026-09-22) =====
   On phones the floating/offset section images (process page etc.) were
   pushed 9vw/32% sideways and off the screen by later desktop rules, and the
   infinite float animation combined with drop-shadow filters made scrolling
   very slow. Keep them static, centered and cheap to draw. */
@media (max-width: 768px) {
  .image-container:not(.image-container--layered),
  .image-reverse .image-container:not(.image-container--layered),
  .content .image-container:not(.image-container--layered) {
    transform: none !important;
    animation: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .image-stack:has(.image-container--layered) {
    animation: none !important;
    margin-left: auto;
    margin-right: auto;
  }
  .chat-widget {
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
  }
}


/* ===== PHONE LAYOUT FIXES (2026-09-22) ===== */
@media (max-width: 768px) {
  /* Par Siguldu: the Gūtmaņala photo had its own 52vw frame, so it came out
     smaller than the other three -- use the same frame as the rest on phones */
  .image-container:has(img[src$="gutmanala_sigulda_zelta_rudens.webp"]) {
    width: 92%;
    max-width: 500px;
    height: 380px;
  }

  /* Process page, "Sākotnēji rudens bumbas diametrs...": the hand-drawn oval
     is stretched to wrap the whole paragraph with a small gap instead of
     sitting as a small oval behind a much taller text block */
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) {
    display: grid;
    grid-template-columns: 100%;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0 0 0 calc(50% - 50vw);
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text,
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image {
    grid-area: 1 / 1;
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px 34px;
    transform: rotate(-2deg);
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .text p {
    font-size: 14px;
    line-height: 1.35;
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    align-self: stretch;
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image-stack {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image-container {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    aspect-ratio: auto;
    margin: 0 !important;
  }
  .content:has(img[src$="rudens-bumbas-izmera-aplis.webp"]) .image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
  }
}


/* ===== Pirkt: temporary notice while online-bank payment is being set up (2026-09-22) ===== */
.order-notice {
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-left: 4px solid #f7941d;
  border-radius: 10px;
  background: #fff7ec;
  color: #3a2a14;
  font-size: 0.95rem;
  line-height: 1.55;
}
.order-notice__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #c96a00;
}
.order-notice__text { margin: 0 0 10px; }
.order-notice__cta {
  display: inline-block;
  font-weight: 600;
  color: #c96a00;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-notice__cta:hover { color: #f7941d; }


/* ===== 2026-09-22 FAIL-SAFE REVEAL =====================================
   The scroll-in fade used to hide every .fade-section (opacity:0) straight
   from the CSS, so if the JS reveal never ran on a phone the whole section --
   including its photos -- stayed invisible and looked like the images had not
   loaded. Now the sections are visible by default; they are only hidden while
   <html> carries .js-fade, which main.js adds only once it is actually able to
   drive the reveal. ===================================================== */
.fade-section { opacity: 1; transform: none; }
html.js-fade .fade-section { opacity: 0; transform: translateY(40px); }
html.js-fade .fade-section.show { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-fade .fade-section { opacity: 1; transform: none; }
}

/* ===== PHONE: no scroll-reveal at all (2026-09-22) =====================
   On phones the sections (and therefore their photos) are always visible.
   The scroll-in fade is a desktop nicety; on a phone it was the single
   point of failure that could leave the Tapšanas process / Par Siguldu
   photos invisible, which reads as "the images do not load". ========== */
@media (max-width: 768px) {
  html.js-fade .fade-section,
  html.js-fade .fade-section.show,
  .fade-section,
  .fade-section.show {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}


/* iPhone (iOS Safari) fix, 24.09.2026: filter:drop-shadow together with overflow:hidden + border-radius
   can make the photo inside .image-container render blank on iPhone. Use box-shadow there instead. */
@supports (-webkit-touch-callout: none) {
  .image-container { filter: none !important; box-shadow: 0 15px 30px rgba(0,0,0,0.25); isolation: isolate; }
  .image-container.image-container--layered { box-shadow: none; }
}