/*
Theme Name: Astra Child — Lula
Theme URI: https://example.com/
Description: Child tema za premium landing i "Lula" stil.
Author: Lula
Template: astra
Version: 1.0.1
Text Domain: astra-child-lula
*/

:root{
  --bg: #0b0c0f;
  --panel: rgba(255,255,255,.04);
  --panel-2: rgba(255,255,255,.06);
  --text: rgba(255,255,255,.92);
  --text-2: rgba(255,255,255,.70);
  --muted: rgba(255,255,255,.55);
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.16);
  --accent: #b08d57; /* bronca/zlato */
  --accent-2: rgba(176,141,87,.35);
  /* absolute path to izbjegne relativne URL probleme kad se var koristi iz drugog CSS-a */
  --hero-image: url("/wp-content/themes/astra-child-lula/assets/img/hero section 4.webp");

  --radius: 18px;
  --radius-sm: 12px;

  --shadow: 0 12px 40px rgba(0,0,0,.45);
  --shadow-soft: 0 10px 28px rgba(0,0,0,.32);

  --container: 1200px;

  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 22px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 72px;
}

html, body { height: 100%; }
body,
body.ast-desktop,
body.page-template-template-landing{
  background: radial-gradient(1200px 700px at 70% 10%, rgba(176,141,87,.08), transparent 60%),
              radial-gradient(900px 600px at 20% 20%, rgba(255,255,255,.05), transparent 55%),
              var(--bg) !important;
  color: var(--text) !important;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  line-height: 1.6;
}

a{ color: inherit !important; text-decoration: none !important; }
a:hover{ color: var(--text) !important; }

h1,h2,h3,h4,
.page-template-template-landing h1,
.page-template-template-landing h2,
.page-template-template-landing h3,
.page-template-template-landing h4{
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif !important;
  letter-spacing: .2px;
  color: var(--text) !important;
}

p,
.page-template-template-landing p{ 
  color: var(--text-2) !important; 
}

/* ============================================================
   LULA MINI-BAR (Global Header)
   ============================================================ */

.lula-mini-bar{
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.35));
  backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(200, 154, 75, 0.15);
  overflow: visible;
  z-index: 9999;
}

.lula-mini-bar .lula-container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-4);
  overflow: visible;
}

.lula-mini-bar .trust-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  overflow: visible;
}

.lula-mini-bar .trust-row--top{
  margin-bottom: 8px;
}

.lula-mini-bar .trust-row--bottom{
  margin-top: 0;
}

@media (min-width: 769px) {
  .lula-mini-bar .lula-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  
  .lula-mini-bar .trust-row--top,
  .lula-mini-bar .trust-row--bottom {
    margin: 0;
    flex-wrap: nowrap;
  }

  .lula-mini-bar .trust-row--top {
    justify-content: flex-start;
  }

  .lula-mini-bar .trust-row--bottom {
    margin-left: 55px;
    gap: 0;
  }

  .lula-mini-bar .trust-row--bottom .trust-row-bottom__actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .lula-mini-bar .trust-row--bottom .trust-link--savjet {
    margin-left: 0 !important;
  }
}

.trust-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.trust-chip:hover{
  background: rgba(255,255,255,.10);
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}

.trust-social{
  padding: 6px 10px;
  color: var(--accent);
}

.trust-social svg{
  width: 18px;
  height: 18px;
  display: block;
}

/* ============================================================
   LANGUAGE SWITCHER (Mini-bar)
   - Flag height equals social icon height (18px)
   - Flag width ~1.5x social icon width (27px)
   - No JS: opens via :focus-within (works on mobile)
   ============================================================ */

.lula-lang-switcher{
  position: relative;
  padding: 0;
  z-index: 10000;
}

.lula-lang-switcher.trust-chip{
  background: transparent;
  border: 0;
  padding: 0;
}

.lula-lang-switcher.trust-chip:hover{
  background: transparent;
  border-color: transparent;
  transform: none;
}

.lula-lang-switcher::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.lula-lang-trigger{
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

/* 1) Ukloni plavi hover/active/focus "fill" i ring sa samog gumba/linka */
.lula-lang-trigger,
.lula-lang-trigger:active,
.lula-lang-trigger:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.lula-lang-trigger:hover{
  box-shadow: 0 0 0 2px rgba(176,141,87,.20);
  border-radius: 12px;
}

/* 3) Vrati "premium" fokus (samo kad je fokus tipkovnicom) */
.lula-lang-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(176,141,87,.35) !important; /* brončani ring */
  border-radius: 12px;
}

.lula-lang-switcher:focus-within{
  box-shadow: none;
}

.lula-lang-menu{
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  margin-top: 8px;
  transform: translateX(-50%);
  z-index: 10001;
  display: none;
  min-width: 170px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(18, 14, 11, .96);
  border: 1px solid rgba(200,154,75,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}

.lula-lang-switcher:focus-within .lula-lang-menu{
  display: block;
}

.lula-lang-switcher.is-open .lula-lang-menu{
  display: block;
}

.lula-lang-switcher:hover .lula-lang-menu,
.lula-lang-trigger:focus + .lula-lang-menu{
  display: block;
}

.lula-lang-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  white-space: nowrap;
}

.lula-lang-item:hover,
.lula-lang-item:focus{
  background: rgba(200,154,75,.10);
  color: rgba(255,255,255,.96);
  outline: none;
}

.lula-lang-label{
  font-size: 13px;
  letter-spacing: .2px;
}

.lula-lang-code{
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--accent);
  text-transform: uppercase;
}

.lula-flag{
  width: 34px;
  height: 24px;
  border-radius: 6px;
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  background-color: rgba(176,141,87,.20);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

/* 2) Ukloni plavi ring sa same zastavice (img/div) */
.lula-lang-trigger .lula-flag,
.lula-lang-trigger:hover .lula-flag,
.lula-lang-trigger:active .lula-flag,
.lula-lang-trigger:focus .lula-flag {
  background-color: rgba(176,141,87,.20) !important;
  outline: none !important;
}

/* Ako je zastavica <img> */
.lula-lang-trigger img.lula-flag{
  object-fit: cover;
  display: block;
}

/* Account dropdown (logout) - force bronze hover/focus instead of Astra blue */
#main .lula-mini-bar .kl-account-dropdown__action{
  background: transparent !important;
  color: var(--accent) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
}

#main .lula-mini-bar .kl-account-dropdown__action:hover,
#main .lula-mini-bar .kl-account-dropdown__action:focus,
#main .lula-mini-bar .kl-account-dropdown__action:active{
  background: rgba(200,154,75,.10) !important;
  color: rgba(255,255,255,.96) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

#main .lula-mini-bar .kl-account-dropdown__action:focus-visible{
  background: rgba(200,154,75,.10) !important;
  color: rgba(255,255,255,.96) !important;
  border-color: transparent !important;
  box-shadow: 0 0 0 2px rgba(176,141,87,.35) !important;
  outline: none !important;
}

/* Flag images */
.lula-flag--hr{
  background-image: url("/wp-content/themes/astra-child-lula/assets/img/flags/hr.png");
}

.lula-flag--de{
  background-image: url("/wp-content/themes/astra-child-lula/assets/img/flags/de.png");
}

.lula-flag--en{
  background-image: url("/wp-content/themes/astra-child-lula/assets/img/flags/en.png");
}

@media (max-width: 480px){
  .lula-lang-menu{
    min-width: 160px;
    right: 0;
  }
  .lula-lang-item{
    padding: 10px 10px;
  }
}

.trust-social:hover{
  background: rgba(176,141,87,.15);
  border-color: var(--accent);
  color: var(--accent);
}

.trust-link{
  color: var(--accent);
  font-weight: 600;
}

.trust-link:hover{
  background: rgba(176,141,87,.15);
  border-color: var(--accent);
}

/* Sakrij standardni Astra header elemnte (ne samo na landing) */
#ast-desktop-header .site-primary-header-wrap{
  display: none !important;
}

#ast-desktop-header .site-header-primary-section-left{
  display: none !important;
}

#ast-mobile-header .site-header-section-left{
  display: none !important;
}

/* Astra header wrapper prilagođen za mini-bar */
.ast-primary-header-bar{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
}

/* Mobilni toggle button pozicioniranje */
.ast-mobile-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ast-mobile-menu-trigger-minimal{
  display: none !important;
}

.ast-mobile-svg{
  width: 22px;
  height: 22px;
  display: block;
}

/* Responsive za mini-bar */
@media (max-width: 768px) {
  .lula-mini-bar .lula-container{
    width: calc(100% - 2*var(--s-1));
    padding: 0 var(--s-1);
    margin-inline: auto;
  }

  .lula-mini-bar .trust-row{
    gap: 8px;
  }

  .lula-mini-bar .trust-row--top,
  .lula-mini-bar .trust-row--bottom{
    flex-wrap: nowrap;
  }

  .lula-mini-bar .trust-row--top .lula-lang-switcher{
    margin-left: 8px;
  }

  .lula-mini-bar .trust-chip,
  .lula-mini-bar .trust-link--savjet{
    flex: 0 0 auto;
  }

  .lula-mini-bar .trust-social svg{
    width: 16px;
    height: 16px;
  }
}
small, .muted{ color: var(--muted) !important; }

.lula-container{
  width: min(var(--container), calc(100% - 2*var(--s-5)));
  margin-inline: auto;
}

.lula-section{ padding: var(--s-7) 0; }
@media (max-width: 780px){
  .lula-container{ width: calc(100% - 2*var(--s-4)); }
  .lula-section{ padding: var(--s-6) 0; }
}

/* Section title with lines */
.section-title{
  display:flex;
  align-items:center;
  gap: var(--s-4);
  margin: 0 0 var(--s-5);
  font-size: 34px;
  font-weight: 600;
}
.section-title span{ white-space: nowrap; }
.section-title::before,
.section-title::after{
  content:"";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  opacity: .9;
}
@media (max-width: 780px){
  .section-title{ font-size: 28px; }
  .section-title::before{ display:none; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  user-select:none;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn:active{ transform: translateY(0px); box-shadow: none; }

.btn-primary{
  background: linear-gradient(180deg, rgba(176,141,87,.95), rgba(176,141,87,.75));
  color: #0b0c0f;
  border-color: rgba(176,141,87,.75);
}
.btn-secondary{
  background: rgba(255,255,255,.04);
  color: var(--text);
}
.btn-secondary:hover{ border-color: rgba(176,141,87,.45); }

.btn-premium{
  padding: 14px 22px;
  min-height: 46px;
  font-size: 12px;
  letter-spacing: .09em;
  border-radius: 999px;
}

.btn-premium.btn-primary{
  background: linear-gradient(180deg, rgba(176,141,87,1) 0%, rgba(176,141,87,.74) 100%);
  border-color: rgba(176,141,87,.78);
  box-shadow:
    0 14px 38px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-premium.btn-primary:hover{
  background: linear-gradient(180deg, rgba(150,115,70,1) 0%, rgba(150,115,70,.74) 100%);
  box-shadow:
    0 18px 52px rgba(0,0,0,.45),
    0 0 0 1px rgba(176,141,87,.18),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.btn-premium.btn-secondary{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-color: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.btn-premium.btn-secondary:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  border-color: rgba(176,141,87,.40);
}

.btn-premium:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(176,141,87,.35), 0 14px 38px rgba(0,0,0,.38);
}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card-hover{
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.card-hover:hover{
  transform: translateY(-3px);
  border-color: rgba(176,141,87,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
}

/* Trust chips */
.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  justify-content:center;
}
.trust-chip{
  display:inline-flex;
  align-items:center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}
.trust-chip::before{
  content:"";
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23b08d57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.45));
  flex-shrink: 0;
  pointer-events: none;
}
.trust-social{
  min-width: 28px;
  justify-content:center;
  color: var(--text-2) !important;
  opacity: .85;
  transition: color .22s ease, opacity .22s ease;
}
.trust-social::before{
  content: none;
}
.trust-social svg{
  width: 19px;
  height: 19px;
  display:block;
  fill: currentColor;
  transition: inherit;
}
.trust-social:hover{
  color: var(--accent) !important;
  opacity: 1;
}
.trust-social:hover svg{ opacity: 1; }

.trust-link{
  color: var(--text-2) !important;
  opacity: .9;
  transition: color .22s ease, opacity .22s ease;
}
.trust-link:hover{
  color: var(--accent) !important;
  opacity: 1;
}

.lula-mini-bar .trust-link--savjet::before{
  content: none;
}

/* Vrati kvačicu za "Ručna izrada" tekst */
.lula-mini-bar .trust-chip--text::before{
  content: "";
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23b08d57' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.45));
  flex-shrink: 0;
  pointer-events: none;
}

/* Ukloni hover efekt sa "Ručna izrada" teksta - to je samo tekst, ne gumb */
.lula-mini-bar .trust-chip--text:hover{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: var(--text-2) !important;
  transform: none !important;
  cursor: default;
}

.lula-mini-bar .trust-link--savjet{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2) !important;
  opacity: .85;
  transition: color .22s ease, opacity .22s ease;
  white-space: nowrap;
}

.lula-mini-bar .trust-link--savjet:hover{
  background: transparent;
  border: 0;
  color: var(--accent) !important;
  opacity: 1;
  transform: none;
}

.lula-mini-bar .trust-link__icon{
  width: 19px;
  height: 19px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  transition: inherit;
}

.lula-mini-bar .trust-link--savjet:hover .trust-link__icon{
  opacity: 1;
}

.lula-mini-bar .trust-link__text{
  white-space: nowrap;
}

/* Form */
.lula-form input, .lula-form textarea{
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  font-family: inherit;
}
.lula-form input:focus, .lula-form textarea:focus{
  border-color: rgba(176,141,87,.45);
  box-shadow: 0 0 0 3px rgba(176,141,87,.08);
}
.lula-form label{
  display:block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.lula-form textarea{
  resize: vertical;
  min-height: 100px;
}

/* --- SEO headings styling for single pipe pages --- */
.single-pipe h2 {
  font-size: 1.15rem;      /* prilagodi po osjecaju (1.05–1.25) */
  font-weight: 400;
  margin-top: 2.2rem;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.single-pipe h1 {
  font-size: 1.8rem;       /* glavni naslov, ali ne "urlanje" */
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================================
   SINGLE PIPE - Typography (Story/Content)
   ============================================================ */

/* Story wrapper uses Playfair Display for all story text */
.single-pipe .lula-single__section--story .lula-single__content,
.single-pipe .lula-single__section--story .lula-single__content p,
.single-pipe .lula-single__section--story .lula-single__content li,
.single-pipe .lula-single__section--story .lula-single__content h1,
.single-pipe .lula-single__section--story .lula-single__content h2,
.single-pipe .lula-single__section--story .lula-single__content h3 {
  font-family: "Playfair Display", ui-serif, Georgia, "Times New Roman", serif;
}

/* Paragraph sizing for story text */
.single-pipe .lula-single__section--story .lula-single__content p,
.single-pipe .lula-single__section--story .lula-single__content li {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* H2 matches paragraph size and is not bold by default */
.single-pipe .lula-single__section--story .lula-single__content h2 {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: normal;
}

/* Bold only when explicitly marked */
.single-pipe .lula-single__section--story .lula-single__content h2 strong,
.single-pipe .lula-single__section--story .lula-single__content h2 b {
  font-weight: 700;
}

