/* =========================================================
   styles.css — Skropstas
   Secība:
   1) BODY / GLOBAL
   2) HEADER (logo + navigācija + valoda)
   3) HERO (fona bilde + overlay + teksts + poga)
   4) VIDUS DAĻAS (Pakalpojumi, Mans redzējums, Kontakti)
   5) FOOTER
   6) RESPONSIVE
   7) PIERAKSTS: KALENDĀRS
   8) LAIKI
   9) ANKETA (tikai anketa.php)
   10) CENAS (cenas.php)
   11) KONTAKTI (kontakti.php)
   12) PRIVĀTUMA POLITIKA (privatums.php)
   13) ADMIN LOGIN
   14) PORTFOLIO (portfolio.php)
   15) i18n HTML teksti (hero + kartītes)
========================================================= */


/* =========================
   1) BODY / GLOBAL
========================= */
*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  font-family: Arial, sans-serif;
  min-height: 100vh;

  /* Sticky footer */
  display: flex;
  flex-direction: column;

  background: #f4f1f2;
  color: #141414;
}

.site-main{ flex: 1; }
main{ flex: 1; } /* droši, ja kādā lapā main tagam nav class */

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Platāks konteiners (ja vajag) */
.container.wide{ max-width: 1400px; }

/* Universāla poga */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;

  background: linear-gradient(180deg, #f0b3c2 0%, #d99eaa 100%);
  color: #1a1a1a;

  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.20);
  filter: brightness(1.02);
}

/* Fokusam (pieejamība) */
a:focus-visible,
button:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(217,158,170,.30);
  border-radius: 12px;
}


/* =========================
   2) HEADER (logo + navigācija + valoda)
   - Desktop: dropdown ir absolute
   - Mobile: dropdown ir FIXED (neiznīcināms, netiek nogriezts)
========================= */

.site-header{
  background: #111;
  color: #fff;
  min-height: 110px;
  display: flex;
  align-items: center;

  position: relative;
  z-index: 9999; /* dropdown virs visa */
}

.header-inner{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;

  padding: 10px 0;
}

/* ✅ SVARĪGI: lai dropdown netiktu nogriezts (daži Android pārlūki) */
.site-header,
.header-inner{
  overflow: visible;
}

/* Logo */
.header-brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header-logo{
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  opacity: .95;
}

/* Navigācija */
.header-nav{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.nav-link{
  position: relative;
  display: inline-flex;
  align-items: center;

  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .4px;
  font-size: 14px;
  padding: 10px 2px;
  text-transform: uppercase;
}
.nav-link:hover{ color: #fff; }

/* Apakšsvītra (hover + active) */
.nav-link::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 2px;
  height: 2px;
  background: rgba(240,179,194,.95);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.nav-link:hover::after,
.nav-link.active::after{
  transform: scaleX(1);
}

/* CTA (Pieraksts) */
.nav-link.nav-cta{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(240,179,194,.14);
  border: 1px solid rgba(240,179,194,.25);
}
.nav-link.nav-cta:hover{
  background: rgba(240,179,194,.20);
  border-color: rgba(240,179,194,.35);
}
.nav-link.nav-cta::after{
  display: none;
}

/* =========================================================
   VALODAS IZVĒLE (CLICK dropdown)
   - Desktop: absolute
   - Mobile: fixed (neiznīcināms)
========================================================= */

.header-lang{
  position: relative;
  display: inline-flex;
  justify-content: flex-end;

  /* ✅ svarīgi: augsts z-index */
  z-index: 20000;

  /* ✅ lai netiek nogriezts */
  overflow: visible;
}

.lang-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .4px;
}
.lang-btn:hover{ border-color: rgba(255,255,255,.35); }
.chev{ opacity: .9; margin-left: 6px; }

/* Dropdown pēc noklusējuma paslēpts */
.header-lang .lang-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;

  min-width: 110px;
  background: #151515;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  overflow: hidden;
  display: none;

  /* ✅ virs citiem slāņiem */
  z-index: 20001;

  /* ✅ neliela ēna, lai izceļas */
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
}

/* Kad JS uzliek .open -> parādām izvēlni */
.header-lang.open .lang-menu{
  display: block;
}

.lang-item{
  display: block;
  padding: 10px 12px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 650;
}
.lang-item:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}

/* =========================================================
   RESPONSIVE — header
========================================================= */

/* Vidēja planšete / mazāks */
@media (max-width: 900px){
  .header-nav{
    gap: 18px;
    flex-wrap: wrap;
  }
  .header-logo{
    width: 74px;
    height: 74px;
  }
}

/* ✅ Mobilais header + “neiznīcināmais” dropdown */
@media (max-width: 720px){

  .site-header{ min-height: unset; }

  .header-inner{
    gap: 12px;
    padding: 10px 0 12px;

    /* 2 rindas:
       1) logo + valoda
       2) navigācija (scroll) */
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .header-logo{
    width: 62px;
    height: 62px;
  }

  .lang-btn{
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  /* Navigācija mobilajā ir scrollējama */
  .header-nav{
    grid-column: 1 / -1;
    justify-content: flex-start;

    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    gap: 10px;
    padding: 6px 2px 2px;
    scroll-behavior: smooth;

    /* ✅ lai dropdown vienmēr būtu virs navigācijas */
    position: relative;
    z-index: 1;
  }

  /* paslēp scrollbar (kur atbalsta) */
  .header-nav::-webkit-scrollbar{ height: 6px; }
  .header-nav::-webkit-scrollbar-track{ background: transparent; }
  .header-nav::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 999px; }

  .nav-link{
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: .35px;

    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
  }
  .nav-link:hover{
    border-color: rgba(255,255,255,.26);
  }
  .nav-link::after{ display: none; }

  .nav-link.active{
    border-color: rgba(240,179,194,.45);
    background: rgba(240,179,194,.12);
    color: #fff;
  }

  .nav-link.nav-cta{
    background: linear-gradient(180deg, rgba(240,179,194,.95) 0%, rgba(217,158,170,.90) 100%);
    border-color: rgba(0,0,0,.18);
    color: #111;
    font-weight: 900;
  }

  /* =========================================================
     ✅ NEIZNĪCINĀMAIS DROPDOWN:
     mobilajā pārliekam menu uz position: fixed
     - netiek nogriezts ar overflow
     - nav atkarīgs no header grid/scroll
  ========================================================= */
  .header-lang{
    position: relative;
    z-index: 30000;
  }

  .header-lang .lang-menu{
    position: fixed;

    /* ✅ novietojums: augšā pa labi zem header
       ja vajag – pielabo top vērtību (atkarīgs no header augstuma) */
    top: 84px;
    right: 12px;

    min-width: 120px;
    border-radius: 14px;

    z-index: 30001;
  }
}


/* =========================
   3) HERO
========================= */
.hero{
  position: relative;
  width: 100%;
  min-height: 520px;
  height: auto;
  overflow: hidden;
  background: #f4f1f2;
  padding: 40px 0;
}

/* Bilde kā fons */
.hero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* Overlay gradient, lai teksts salasās */
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(244,241,242,0.92) 0%,
    rgba(244,241,242,0.86) 38%,
    rgba(244,241,242,0.55) 58%,
    rgba(244,241,242,0.18) 74%,
    rgba(244,241,242,0.00) 100%
  );
  pointer-events: none;
}

/* Saturs virs bildes */
.hero__inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero__content{ max-width: 640px; }

.hero-title{
  margin: 0 0 14px;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -0.02em;
  color: #141414;
}

.hero-text{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(20,20,20,0.80);
  max-width: 62ch;
}


/* =========================
   4) VIDUS DAĻAS
========================= */
.section{ padding: 40px 0; }

/* Pakalpojumi */
.services{ background: #f4f1f2; }

/* Platās kartītes */
.service-card.wide{
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 28px 32px;
  background: rgba(255,255,255,.85);
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
}
.service-card.wide h4{
  font-size: 22px;
  margin: 0 0 14px;
}
.service-card.wide p{
  font-size: 15.5px;
  line-height: 1.75;
  margin: 0 0 14px;
  color: rgba(20,20,20,.82);
}

/* Izceltais pakalpojums */
.service-card.featured{
  background: rgba(255,255,255,.95);
  border-color: rgba(217,158,170,.45);
}

.services-cta{
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

/* Mans redzējums */
.vision{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  background: #f4f1f2;
  padding: 80px 0;
}

.vision-title{
  margin: 0 0 34px;
  font-size: 34px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(217,158,170,.95);
}

.vision-grid{
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.vision-card{
  flex: 1;
  max-width: 420px;
  padding: 26px 22px;
  border-radius: 18px;
  background: rgba(244,241,242,.55);
  border: 1px solid rgba(0,0,0,.05);
}

.vision-icon{
  font-size: 48px;
  line-height: 1;
  margin-bottom: 14px;
}

.vision-card h4{
  margin: 0 0 10px;
  font-size: 28px;
  color: #141414;
}

.vision-card p{
  margin: 0;
  line-height: 1.75;
  color: rgba(20,20,20,.78);
  font-size: 15px;
}

/* Akordeons */
.accordion{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.acc-item{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
.acc-item summary{ list-style: none; }
.acc-item summary::-webkit-details-marker{ display: none; }

.acc-title{
  cursor: pointer;
  padding: 22px 22px;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.acc-title::after{
  content: "+";
  font-size: 22px;
  font-weight: 900;
  color: rgba(217,158,170,.95);
}
.acc-item[open] .acc-title::after{ content: "−"; }

.acc-body{ padding: 0 22px 20px; }
.acc-body p{
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(20,20,20,.82);
}

/* Kontakti */
.contacts{
  background: #f4f1f2;
  padding: 80px 0;
}
.contacts-grid{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: center;
}
.contact-item{ flex: 1; }

.contact-icon{
  font-size: 36px;
  margin-bottom: 12px;
  color: rgba(217,158,170,.9);
}

.contact-text{
  font-size: 16px;
  color: rgba(20,20,20,.75);
  letter-spacing: .3px;
}

.contact-text a{
  color: inherit;
  text-decoration: none;
}
.contact-text a:hover{ color: #d99eaa; }

/* Sociālie tīkli */
.social-links{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 34px;
}
.social-links a{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.25);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  color: rgba(20,20,20,.75);

  transition: all .2s ease;
}
.social-icon{
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.social-links a:hover{
  border-color: #d99eaa;
  color: #d99eaa;
  transform: translateY(-2px);
}


/* =========================
   5) FOOTER
========================= */
.site-footer{
  background: #111;
  color: rgba(255,255,255,.75);
  padding: 26px 0;
  font-size: 14px;
}

.footer-inner{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.footer-left img{
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.footer-center{
  text-align: center;
  letter-spacing: .3px;
}

.footer-right a{
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .3px;
}
.footer-right a:hover{ color: #f0b3c2; }


/* =========================
   6) RESPONSIVE
========================= */

/* Vidēja planšete / mazāks */
@media (max-width: 900px){
  .header-nav{
    gap: 18px;
    flex-wrap: wrap;
  }
  .header-logo{
    width: 74px;
    height: 74px;
  }

  .hero::before{
    background: linear-gradient(
      180deg,
      rgba(244,241,242,0.92) 0%,
      rgba(244,241,242,0.78) 55%,
      rgba(244,241,242,0.20) 100%
    );
  }

  .contacts-grid{
    flex-direction: column;
    gap: 28px;
  }
}

/* ✅ Galvenais mobilais header labojums */
@media (max-width: 720px){
  .site-header{
    min-height: unset;
  }

  .header-inner{
    gap: 12px;
    padding: 10px 0 12px;

    /* 2 rindas:
       1) logo + valoda
       2) navigācija (scroll) */
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }

  .header-logo{
    width: 62px;
    height: 62px;
  }

  .lang-btn{
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  .header-nav{
    grid-column: 1 / -1;
    justify-content: flex-start;

    /* scrollējama poga-josla */
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;

    gap: 10px;
    padding: 6px 2px 2px;

    /* mazāk “lēkā” uz iOS */
    scroll-behavior: smooth;
  }

  /* paslēp scrollbar (kur atbalsta) */
  .header-nav::-webkit-scrollbar{ height: 6px; }
  .header-nav::-webkit-scrollbar-track{ background: transparent; }
  .header-nav::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.18); border-radius: 999px; }

  .nav-link{
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: .35px;

    /* pogas stils mobilajam */
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
  }

  .nav-link:hover{
    border-color: rgba(255,255,255,.26);
  }

  /* apakšsvītra uz mobilā nav vajadzīga (pogas izskatās tīrāk) */
  .nav-link::after{ display: none; }

  .nav-link.active{
    border-color: rgba(240,179,194,.45);
    background: rgba(240,179,194,.12);
    color: #fff;
  }

  .nav-link.nav-cta{
    background: linear-gradient(180deg, rgba(240,179,194,.95) 0%, rgba(217,158,170,.90) 100%);
    border-color: rgba(0,0,0,.18);
    color: #111;
    font-weight: 900;
  }
}

/* Citas adaptācijas */
@media (max-width: 980px){
  .vision-title{ font-size: 28px; }
  .vision-grid{ flex-direction: column; }
  .vision-card{ max-width: none; }

  .footer-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-left, .footer-right{ justify-self: center; }
}



/* =========================================================
   7) PIERAKSTS: KALENDĀRS (kalendar.php)
========================================================= */

/* =========================================================
   HERO (instrukcija)
========================================================= */

.page-kalendar .hero{
  min-height: 260px;
  padding: 28px 0;
}

/* vairāk elpas, lai 3 soļi izskatās kā instrukcija */
.page-kalendar .hero__content{
  max-width: 620px;
}

/* virsraksts – stingrs, premium */
.page-kalendar .hero-title{
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

/* profesionāls "guide card" rāmītis */
.page-kalendar .hero-text{
  margin-top: 10px;

  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
  color: rgba(20,20,20,.82);

  background: rgba(255,255,255,.78);
  border: 2px solid rgba(217,158,170,.40);
  border-radius: 18px;

  padding: 18px 22px;

  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  position: relative;

  /* strādā ar \n (un i18n.js to pārveidos uz <br>) */
  white-space: pre-line;
}

/* kreisā akcenta līnija – “luxury guide” sajūta */
.page-kalendar .hero-text::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: rgba(217,158,170,.85);
  opacity: .9;
}

/* lai teksts nenāk virsū akcentam */
.page-kalendar .hero-text{
  padding-left: 30px;
}

/* atstarpe starp soļiem */
.page-kalendar .hero-text br{
  display: block;
  margin-top: 10px;
}

/* numuri izskatās vienādi (1,2,3) */
.page-kalendar .hero-text{
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   KALENDĀRA BLOKS
========================================================= */

.calendar-full{
  background: #f4f1f2;
  padding-top: 18px;
}
.calendar-wide{ max-width: 1400px; }

/* Augšējā rinda */
.cal-top{
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cal-title{
  text-align: center;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .3px;
  color: rgba(20,20,20,.85);
}

.cal-nav{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.cal-nav:hover{
  border-color: rgba(217,158,170,.55);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
}

/* Mēnešu pogas */
.cal-months{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.cal-month-btn{
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(20,20,20,.75);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.cal-month-btn:hover{
  border-color: rgba(217,158,170,.55);
  transform: translateY(-1px);
}
.cal-month-btn.is-active{
  border-color: rgba(217,158,170,.75);
  background: rgba(240,179,194,.28);
  color: rgba(20,20,20,.88);
}

/* =========================================================
   KRITISKI: Galvai un režģim jābūt IDENTISKIEM
========================================================= */
.cal-head,
.cal-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

/* Nedēļas dienas */
.cal-head{
  color: rgba(20,20,20,.55);
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  text-align: center;
}
.cal-head > div{ text-align: center; }

/* =========================================================
   ŠŪNA (gan <a>, gan <div>)
========================================================= */
.cal-cell{
  min-height: 94px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;

  position: relative;
  padding: 12px;

  /* drošība: nekas neizlien ārā */
  overflow: hidden;

  /* rezervē vietu badge apakšā */
  padding-bottom: 34px;
}

/* kritiski: <a> lai ir block */
.cal-grid a.cal-cell{ display: block; }

/* Tukšās šūnas */
.cal-empty{
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Dienas cipars */
.cal-day-num{
  font-weight: 900;
  font-size: 20px;
  color: rgba(20,20,20,.85);
}

/* Aktīvās dienas */
.cal-day{
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.cal-day:hover{
  border-color: rgba(217,158,170,.55);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(0,0,0,.08);
}
.cal-day:focus-visible{
  outline: none;
  border-color: rgba(217,158,170,.95);
  box-shadow: 0 0 0 3px rgba(217,158,170,.22), 0 14px 26px rgba(0,0,0,.08);
}

/* Šodiena */
.cal-day.is-today{
  border-color: rgba(217,158,170,.85);
  background: rgba(240,179,194,.18);
}
.cal-day.is-today .cal-day-num{
  color: rgba(20,20,20,.92);
}

/* Disabled dienas (pagātne) */
.cal-day.is-disabled{
  opacity: 0.38;
  pointer-events: none;
  box-shadow: none;
  transform: none;
}
.cal-day.is-disabled .cal-day-num{
  text-decoration: line-through;
  color: rgba(20,20,20,.55);
}

/* Brīvdiena */
.cal-day.is-off{
  background: rgba(176,0,32,.10);
  border-color: rgba(176,0,32,.35);
  box-shadow: 0 10px 22px rgba(176,0,32,.08);
  pointer-events: none;
}
.cal-day.is-off .cal-day-num{
  color: rgba(176,0,32,.92);
}

/* Badge */
.cal-badge{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  text-align: center;

  background: rgba(176,0,32,.14);
  color: rgba(176,0,32,.92);
  border: 1px solid rgba(176,0,32,.25);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 20px);
}

/* =========================================================
   ADMIN OVERRIDE: admin kalendārā brīvdienai jābūt klikšķināmai
========================================================= */
.admin-kalendar .cal-day.is-off{
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

/* =========================================================
   RESPONSIVE — planšete
========================================================= */
@media (max-width: 980px){
  .cal-cell{
    min-height: 72px;
    padding: 10px;
    padding-bottom: 30px;
  }
  .cal-day-num{ font-size: 18px; }
  .cal-badge{
    font-size: 11px;
    padding: 5px 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
  }
  .cal-head,
  .cal-grid{ gap: 8px; }
}

/* =========================================================
   RESPONSIVE — telefons
========================================================= */
@media (max-width: 520px){

  .calendar-full .container{
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-kalendar .hero{
    min-height: 230px;
    padding: 22px 0;
  }

  .page-kalendar .hero__content{
    max-width: 92vw;
  }

  .page-kalendar .hero-title{
    font-size: 34px;
    margin-bottom: 12px;
  }

  .page-kalendar .hero-text{
    font-size: 14px;
    padding: 14px 16px;
    padding-left: 26px;
    border-radius: 14px;
    line-height: 1.65;
  }

  .page-kalendar .hero-text::before{
    left: 8px;
    top: 10px;
    bottom: 10px;
  }

  .page-kalendar .hero-text br{
    margin-top: 8px;
  }

  .cal-top{
    grid-template-columns: 40px 1fr 40px;
    gap: 8px;
    margin-bottom: 10px;
  }
  .cal-title{
    font-size: 18px;
    line-height: 1.2;
  }
  .cal-nav{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* mēneši — horizontāls scroll */
  .cal-months{
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 4px 2px 10px;
    margin-bottom: 10px;
  }
  .cal-months::-webkit-scrollbar{ height: 6px; }
  .cal-months::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.12);
    border-radius: 999px;
  }

  .cal-month-btn{
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 11px;
  }

  .cal-head,
  .cal-grid{
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
  }

  .cal-head{
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: .06em;
  }

  .cal-cell{
    min-height: 54px;
    padding: 8px;
    border-radius: 14px;
    padding-bottom: 26px;
  }

  .cal-day-num{
    font-size: 16px;
    line-height: 1;
  }

  .cal-badge{
    font-size: 10px;
    padding: 4px 7px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
  }
}




/* =========================================================
   8) LAIKI
========================================================= */
.times-top{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.back-link{
  color: rgba(20,20,20,.65);
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover{ color: rgba(217,158,170,.95); }

.times-title{
  margin: 0;
  font-size: 26px;
}

.times-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  max-width: 900px;
}

.time-btn{
  height: 54px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  color: rgba(20,20,20,.80);
}

.time-btn:hover{ border-color: rgba(217,158,170,.60); }

.time-btn.is-booked{
  background: rgba(220,80,80,.12);
  border-color: rgba(220,80,80,.35);
  color: rgba(150,30,30,.85);
  text-decoration: line-through;
  cursor: not-allowed;
}

@media (max-width: 980px){
  .times-grid{ grid-template-columns: 1fr; max-width: 420px; }
}


/* =========================================================
   9) ANKETA (TIKAI anketa.php)
========================================================= */
.page-anketa .section-anketa{
  padding: 40px 0 70px;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 110px);
  align-items: flex-start;
}

.page-anketa .anketa-container{
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-anketa .anketa-container .back-link{
  align-self: flex-start;
  margin: 0 0 6px;
}

.page-anketa .form-card{
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  padding: 26px 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 20px 55px rgba(0,0,0,0.12);
}

.page-anketa .form-card .times-title{
  margin: 0 0 10px;
  text-align: center;
  font-size: 28px;
}

.page-anketa .form-meta{
  margin: 0 0 18px;
  text-align: center;
  color: rgba(20,20,20,.65);
  font-weight: 600;
}

.page-anketa .form-row{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.page-anketa .form-row label{
  font-weight: 800;
  color: rgba(20,20,20,.75);
  font-size: 14px;
}

.page-anketa .form-row input,
.page-anketa .form-row select{
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  font-size: 15px;
  outline: none;
  background: #fff;
}

.page-anketa .form-row input:focus,
.page-anketa .form-row select:focus{
  border-color: rgba(217,158,170,.9);
  box-shadow: 0 0 0 3px rgba(217,158,170,.22);
}

.page-anketa .form-btn{
  width: 100%;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0b3c2, #d99eaa);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0,0,0,0.14);
}

.page-anketa .form-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.18);
}

.page-anketa .form-msg{
  text-align: center;
  font-weight: 800;
  margin-top: 12px;
}

@media (max-width: 600px){
  .page-anketa .form-card{
    padding: 20px 16px;
  }
  .page-anketa .form-card .times-title{
    font-size: 22px;
  }
}


/* =========================================================
   10) CENAS (cenas.php)
========================================================= */
.page-cenas .cenas-bg{
  background-color: #f7eeee;
  background-image: url("../images/5.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;

  padding: 80px 0 110px;
  min-height: 700px;
}

.page-cenas .cenas-title{
  margin: 0 0 18px;
  text-align: center;
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.page-cenas .cenas-card{
  max-width: 860px;
  margin: 0 auto;
  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(6px);

  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 18px;
}

.page-cenas .cenas-table{
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  overflow: hidden;
}

.page-cenas .cenas-table th,
.page-cenas .cenas-table td{
  padding: 20px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  font-size: 24px;
}

.page-cenas .cenas-table th{
  text-align: left;
  font-weight: 900;
  font-size: 26px;
}

.page-cenas .cenas-table th:last-child,
.page-cenas .cenas-table td:last-child{
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}

@media (max-width: 700px){
  .page-cenas .cenas-bg{
    padding: 60px 0 80px;
    min-height: 520px;
    background-position: center top;
  }

  .page-cenas .cenas-title{ font-size: 30px; }
  .page-cenas .cenas-card{ padding: 12px; }

  .page-cenas .cenas-table th,
  .page-cenas .cenas-table td{
    font-size: 18px;
    padding: 14px 12px;
  }

  .page-cenas .cenas-table th{ font-size: 20px; }
}


/* =========================================================
   11) KONTAKTI (kontakti.php)
========================================================= */
.page-kontakti .kontakti-bg{
  background-color: #f7eeee;
  background-image: url("../images/5.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;

  padding: 80px 0 110px;
  min-height: 700px;
}

.page-kontakti .kontakti-title{
  text-align: center;
  margin: 0 0 18px;
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.page-kontakti .kontakti-card{
  max-width: 520px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 24px 22px;
}

.page-kontakti .kontakti-row{
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.page-kontakti .kontakti-row:last-of-type{ border-bottom: none; }

.page-kontakti .kontakti-icon{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(232, 190, 190, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.page-kontakti .kontakti-text{ font-size: 18px; }

.page-kontakti .kontakti-social{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.page-kontakti .social-btn{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  color: #333;
  background: rgba(255,255,255,0.85);
}

@media (max-width: 700px){
  .page-kontakti .kontakti-bg{
    padding: 60px 0 80px;
    min-height: 520px;
  }
  .page-kontakti .kontakti-card{
    max-width: 92%;
    padding: 18px 16px;
  }
}


/* =========================================================
   12) PRIVĀTUMA POLITIKA (privatums.php)
========================================================= */
.page-privatums .privatums-bg{
  background-color: #f7eeee;
  background-image: url("../images/5.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;

  padding: 80px 0 110px;
  min-height: 700px;
}

.page-privatums .privatums-title{
  text-align: center;
  margin: 0 0 18px;
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

.page-privatums .privatums-card{
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  padding: 26px 24px;
}

.page-privatums .privatums-card h2{
  margin: 18px 0 10px;
  font-size: 20px;
}

.page-privatums .privatums-card p{
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 16px;
}

@media (max-width: 700px){
  .page-privatums .privatums-bg{
    padding: 60px 0 80px;
    min-height: 520px;
  }
  .page-privatums .privatums-card{
    max-width: 92%;
    padding: 18px 16px;
  }
}

/* =========================================================
   13 ADMIN LOGIN
========================================================= */

.admin-login-page{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5edef, #f0e4e7);
  padding: 40px 20px;
}

.admin-login-card{
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.06);
  animation: loginFade .35s ease;
}

@keyframes loginFade{
  from{ opacity:0; transform: translateY(8px); }
  to{ opacity:1; transform:none; }
}

.admin-login-card h1{
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  text-align: center;
}

.admin-login-subtitle{
  text-align: center;
  font-size: 13px;
  color: rgba(0,0,0,.55);
  margin-bottom: 26px;
}

.admin-login-field{
  margin-bottom: 18px;
}

.admin-login-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(0,0,0,.75);
}

.admin-login-input{
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 0 14px;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}

.admin-login-input:focus{
  outline: none;
  border-color: rgba(217,158,170,.9);
  box-shadow: 0 0 0 3px rgba(217,158,170,.18);
}

.admin-login-btn{
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #d99eaa, #c88997);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  margin-top: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.admin-login-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(217,158,170,.35);
}

.admin-login-error{
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #b00020;
}

.admin-login-links{
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

.admin-login-links a{
  color: rgba(0,0,0,.65);
  text-decoration: none;
  font-weight: 600;
}

.admin-login-links a:hover{
  text-decoration: underline;
}

/* =========================================================
   14) PORTFOLIO (portfolio.php)
========================================================= */

/* Tabs */
.pf-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:center;
  margin: 10px 0 22px;
}

.pf-tab{
  appearance:none;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
  color:#1a1a1a;
  font-weight:800;
  letter-spacing:.3px;
  padding: 11px 18px;
  border-radius: 999px;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  transition: 
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    filter .18s ease;
}

.pf-tab:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
}

.pf-tab.is-active{
  background: linear-gradient(180deg, #f0b3c2 0%, #d99eaa 100%);
  border-color: rgba(0,0,0,.14);
  box-shadow: 0 16px 40px rgba(217,158,170,.35);
}

/* Panels */
.pf-panel{
  display:none;
  margin: 4px 0 34px;
  animation: pfFade .25s ease;
}

.pf-panel.is-open{
  display:block;
}

@keyframes pfFade{
  from{ opacity:0; transform: translateY(4px); }
  to{ opacity:1; transform:none; }
}

/* Grid — desktop 3 kolonnas */
.pf-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}

/* Kartīte */
.pf-item{
  margin:0;
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 12px 30px rgba(0,0,0,.07);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pf-item:hover{
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(0,0,0,.12);
}

/* Bilde */
.pf-item img{
  display:block;
  width:100%;
  height: 320px;          /* LIELĀKAS bildes */
  object-fit:cover;
  cursor: zoom-in;
  transition: transform .35s ease;
}

.pf-item:hover img{
  transform: scale(1.04);
}

/* Caption */
.pf-item figcaption{
  padding: 10px 12px 12px;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}

/* =========================
   LIGHTBOX
========================= */

.pf-lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20000;
  backdrop-filter: blur(2px);
}

.pf-lightbox.is-open{
  display:flex;
  animation: pfLightboxFade .2s ease;
}

@keyframes pfLightboxFade{
  from{ opacity:0; }
  to{ opacity:1; }
}

.pf-lightbox-inner{
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  position: relative;
}

.pf-lightbox-img{
  display:block;
  width:100%;
  height:auto;
  max-height: 92vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  cursor: zoom-out;
}

/* Close poga */
.pf-lightbox-close{
  position:absolute;
  top:-10px;
  right:-10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  color:#fff;
  font-size: 22px;
  font-weight: 900;
  cursor:pointer;
  transition: background .15s ease, transform .15s ease;
}

.pf-lightbox-close:hover{
  background: rgba(0,0,0,.75);
  transform: scale(1.08);
}

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

/* Planšete → 2 kolonnas */
@media (max-width: 980px){
  .pf-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-item img{
    height: 300px;
  }
}

/* Telefons → 1 kolonna */
@media (max-width: 520px){
  .pf-tabs{
    justify-content:flex-start;
  }

  .pf-grid{
    grid-template-columns: 1fr;
  }

  .pf-item img{
    height: 260px;
  }
}

/* =========================
   15 i18n HTML teksti (hero + kartītes)
   - lai <p> rindkopas izskatās smuki
========================= */

/* HERO teksts */
.hero-text p{
  margin: 0 0 14px;
  line-height: 1.55;
}

.hero-text p:last-child{
  margin-bottom: 0;
}

/* VISION kartīšu teksts */
.vision-card p{
  margin: 0 0 10px;
  line-height: 1.5;
}

.vision-card p:last-child{
  margin-bottom: 0;
}




