/*
Theme Name: Kivolex
Theme URI: https://kivolex.com
Description: Child theme for Astra
Author: Kivolex
Author URI: https://kivolex.com
Template: astra
Version: 1.0.0
*/

/* =====================================================
   KIVOLEX FOOTER – FULL WIDTH WIDGET AREA
   (stable layout via .kivolex-footer-grid class)
===================================================== */

/* Wrapper that you already output in footer */
.kivolex-footer-area{
  background: #2b4a85; /* primary blue */
  color: #ffffff;
  padding: 40px 0;
}

/* Links */
.kivolex-footer-area a{
  color:#ffffff;
  text-decoration:none;
  opacity:.92;
}
.kivolex-footer-area a:hover{
  opacity:1;
  text-decoration:underline;
}

/* Inner container (keeps Astra container width, full-width bg) */
.kivolex-footer-inner{
  width: 100%;
}

/* One widget wrapper */
.kivolex-footer-widget{
  width: 100%;
}

/* -----------------------------------------------------
   MAIN GRID ROW (3 columns)
   You added class: kivolex-footer-grid to Spectra container
----------------------------------------------------- */

.kivolex-footer-area .kivolex-footer-grid{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:48px;
}

/* Kill random margins inside footer so it looks tight */
.kivolex-footer-area .kivolex-footer-grid *{
  box-sizing:border-box;
}
.kivolex-footer-area .kivolex-footer-grid p,
.kivolex-footer-area .kivolex-footer-grid h1,
.kivolex-footer-area .kivolex-footer-grid h2,
.kivolex-footer-area .kivolex-footer-grid h3,
.kivolex-footer-area .kivolex-footer-grid h4,
.kivolex-footer-area .kivolex-footer-grid h5,
.kivolex-footer-area .kivolex-footer-grid h6{
  margin:0;
}

/* 3 columns sizing */
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(1){
  flex: 1 1 340px;
  max-width: 460px;
}
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(2){
  flex: 0 0 220px;
  max-width: 260px;
}
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(3){
  flex: 0 0 420px;
  max-width: 520px;
  text-align:right;
}

/* -----------------------------------------------------
   LEFT COLUMN: contacts (icon + text, compact)
----------------------------------------------------- */

/* Your contacts column contains multiple Spectra "icon block" + <p>.
   We'll make each "row" behave tighter by forcing normal line-height and spacing. */

.kivolex-footer-area .kivolex-footer-grid > *:nth-child(1){
  display:flex;
  flex-direction:column;
  gap:18px; /* space between contact rows */
}

/* make paragraphs readable */
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(1) p{
  font-size:18px;
  line-height:1.35;
  opacity:.95;
  text-align:left;
}

/* Spectra icon size + color (your orange) */
.kivolex-footer-area .wp-block-spectra-icon{
  line-height:1;
}
.kivolex-footer-area .wp-block-spectra-icon svg{
  width:22px;
  height:22px;
}

/* If some Spectra containers are adding weird top/bottom gaps */
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(1) .wp-block-spectra-container{
  padding:0 !important;
  margin:0 !important;
}

/* -----------------------------------------------------
   CENTER COLUMN: Quick links menu (widget_nav_menu)
----------------------------------------------------- */

.kivolex-footer-area .widget.widget_nav_menu{
  margin:0;
  text-align:left;
}

/* Title */
.kivolex-footer-area .widget.widget_nav_menu .widgettitle{
  margin:0 0 12px;
  font-size:18px;
  font-weight:700;
  color:#ffffff;
}

/* List reset + compact spacing */
.kivolex-footer-area .widget.widget_nav_menu ul.menu{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.kivolex-footer-area .widget.widget_nav_menu li{
  margin:0;
  padding:0;
}

/* Link style */
.kivolex-footer-area .widget.widget_nav_menu a{
  display:inline-block;
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.9;
}
.kivolex-footer-area .widget.widget_nav_menu a:hover{
  opacity:1;
}

/* -----------------------------------------------------
   RIGHT COLUMN: Logo + small subtitle
----------------------------------------------------- */

.kivolex-footer-area .kivolex-footer-grid > *:nth-child(3) figure{
  margin:0 0 10px;
}
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(3) img{
  max-width:360px;
  width:100%;
  height:auto;
  display:inline-block;
}

/* subtitle under logo: make it small + softer */
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(3) p{
  font-size:14px;
  line-height:1.35;
  opacity:.80;
  text-align: left;
}

/* Optional: if logo gets lost on blue, add soft glow */
.kivolex-footer-area .kivolex-footer-grid > *:nth-child(3) img{
  filter: drop-shadow(0 2px 12px rgba(255,255,255,.20));
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */

@media (max-width: 980px){
  .kivolex-footer-area{
    padding:32px 0;
  }
  .kivolex-footer-area .kivolex-footer-grid{
    flex-direction:column;
    gap:26px;
  }
  .kivolex-footer-area .kivolex-footer-grid > *:nth-child(1),
  .kivolex-footer-area .kivolex-footer-grid > *:nth-child(2),
  .kivolex-footer-area .kivolex-footer-grid > *:nth-child(3){
    max-width:100%;
    flex: 1 1 auto;
    text-align:left;
  }
  .kivolex-footer-area .widget.widget_nav_menu{
    text-align:left;
  }
}

@media (max-width: 544px){
  .kivolex-footer-area{
    padding:28px 0;
  }
  .kivolex-footer-area .kivolex-footer-grid{
    gap:22px;
  }
  .kivolex-footer-area .kivolex-footer-grid > *:nth-child(1) p{
    font-size:16px;
  }
  .kivolex-footer-area .kivolex-footer-grid > *:nth-child(3) img{
    max-width:300px;
  }
}

/* =====================================================
   COPYRIGHT BAR (Astra default site-info)
===================================================== */

.site-footer .site-info{
  background-color:#fff9e6; /* warm light */
  color:#4a4a4a;
  text-align:center;
  padding:18px 12px;
  font-size:14px;
}

/* =====================================================
   FOOTER – BRAND COLUMN (RIGHT)
===================================================== */

.kivolex-footer-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  max-width:520px;
}

/* логотип */
.kivolex-footer-brand img{
  max-width:360px;
  width:100%;
  height:auto;
  display:block;
}

/* tagline під лого */
.kivolex-footer-tagline{
  margin:6px 0 0;
  font-size:15px;
  line-height:1.4;
  color:rgba(255,255,255,.9);
}

/* список послуг */
.kivolex-footer-services{
  margin:2px 0 0;
  font-size:14px;
  line-height:1.5;
  color:rgba(255,255,255,.7);
  letter-spacing:.02em;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 980px){
  .kivolex-footer-brand{
    align-items:flex-start;
  }

  .kivolex-footer-brand img{
    max-width:280px;
  }
}
/* Footer hours – centered inside left column */
.kivolex-footer-hours{
  align-self: center;        /* ключовий момент */
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
/* =====================================================
   FOOTER PATCH: fix contact column spacing + lift brand
===================================================== */

/* 1) Make each contact row (icon block + text block) a tight row */
.kivolex-footer-area .kivolex-footer-contact > .wp-block-spectra-container{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  padding:0 !important;
  margin:0 !important;
}

/* In those rows, kill any internal spacing Spectra adds */
.kivolex-footer-area .kivolex-footer-contact > .wp-block-spectra-container > *{
  margin:0 !important;
  padding:0 !important;
}

/* The text blocks inside contact rows */
.kivolex-footer-area .kivolex-footer-contact p{
  margin:0 !important;
  padding:0 !important;
  text-align:left !important;
  font-size:18px;
  line-height:1.35;
  opacity:.95;
}

/* 2) Hours line: keep it centered & NOT affected by the flex rows above */
.kivolex-footer-area .kivolex-footer-contact .kivolex-footer-hours{
  display:block !important;
  align-self:center !important;
  text-align:center !important;
  margin-top:10px !important;
  font-size:14px !important;
  line-height:1.3 !important;
  color:rgba(255,255,255,.72) !important;
  white-space:nowrap;
}

/* 3) Lift the brand column a bit on desktop (instead of inline margin hacks) */
@media (min-width: 981px){
  .kivolex-footer-area .kivolex-footer-brand{
    margin-top:-28px !important;   /* adjust -20..-35 if needed */
    padding-top:0 !important;
  }
}

/* Mobile: don't lift */
@media (max-width: 980px){
  .kivolex-footer-area .kivolex-footer-brand{
    margin-top:0 !important;
  }
}

/* =====================================================
   COPYRIGHT BAR (BOTTOM FOOTER)
===================================================== */

.site-footer .site-info{
  background-color: #ffffff;   /* чисто білий */
  color: #4a4a4a;              /* спокійний темно-сірий */
  padding: 10px 12px;          /* МЕНША висота */
  font-size: 13px;             /* трохи дрібніше */
  line-height: 1.4;
  text-align: center;
}

/* прибрати зайві відступи від Astra */
.site-footer .site-info p{
  margin: 0;
}

/* =====================================================
   Astra Below Footer (Copyright bar) – make white + shorter
===================================================== */

.site-below-footer-wrap[data-section="section-below-footer-builder"]{
  background: #ffffff !important;     /* прибираємо "молочний" */
  background-image: none !important;
  min-height: 0 !important;          /* прибираємо 80px */
  padding: 8px 0 !important;         /* зменшуємо висоту */
  border: 0 !important;
}

/* інколи Astra фарбує ще inner/row – перекриваємо теж */
.site-below-footer-wrap[data-section="section-below-footer-builder"] .site-below-footer-inner-wrap,
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row-container{
  background: transparent !important;
}

/* сам текст */
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-footer-copyright{
  margin: 0 !important;
  padding: 0 !important;
  color: #4a4a4a !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* якщо там p – прибрати дефолтні марджини */
.site-below-footer-wrap[data-section="section-below-footer-builder"] p{
  margin: 0 !important;
}

/* Kivolex FAQ – Rank Math */
.kivolex-faq{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px 30px;
}

/* кожен пункт списку (якщо Rank Math рендерить li) */
.kivolex-faq li{
  list-style: none;
  margin: 0 0 14px 0;
}

/* якщо елементи не li, але є блоки – зробимо універсально */
.kivolex-faq > *{
  box-sizing: border-box;
}

/* КАРТКА */
.kivolex-faq li,
.kivolex-faq .rank-math-list-item,
.kivolex-faq .rank-math-answer{
  background: #ffffff;
  border: 1px solid rgba(43,74,133,.14);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  padding: 18px 18px 16px;
}

/* ПИТАННЯ */
.kivolex-faq__q,
.kivolex-faq .rank-math-question{
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #2b4a85;
  margin: 0 0 10px 0;
  font-size: clamp(22px, 2.2vw, 32px);
}

/* ВІДПОВІДЬ */
.kivolex-faq__a,
.kivolex-faq .rank-math-answer{
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #1f2a3a;
  line-height: 1.55;
  margin: 0;
  font-size: 16px;
}

/* щоб відповідь не “прилипала” і виглядало преміально */
.kivolex-faq__a p,
.kivolex-faq .rank-math-answer p{
  margin: 0;
}

/* Невеликий оранжевий акцент зліва */
.kivolex-faq li,
.kivolex-faq .rank-math-list-item{
  position: relative;
  overflow: hidden;
}
.kivolex-faq li::before,
.kivolex-faq .rank-math-list-item::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #f28c28;
  opacity: .95;
}

/* Мобілка: компактніше */
@media (max-width: 600px){
  .kivolex-faq{
    padding: 6px 12px 24px;
  }
  .kivolex-faq li,
  .kivolex-faq .rank-math-list-item{
    padding: 14px 14px 12px;
    border-radius: 14px;
  }
}

/* Kivolex FAQ accordion (Rank Math) */
#rank-math-faq.kivolex-faq .rank-math-list-item {
  border: 1px solid rgba(43, 74, 133, 0.15);
  border-left: 6px solid #f28c28;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  margin: 14px 0;
}

/* Question row */
#rank-math-faq.kivolex-faq .rank-math-question.kivolex-faq__q {
  margin: 0;
  cursor: pointer;
  position: relative;
  padding-right: 44px;
  line-height: 1.2;
}

/* Arrow */
#rank-math-faq.kivolex-faq .rank-math-question.kivolex-faq__q::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform .2s ease;
  opacity: .8;
}

/* Answer default: hidden */
#rank-math-faq.kivolex-faq .rank-math-answer.kivolex-faq__a {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(43, 74, 133, 0.12);
  border-radius: 12px;
  background: rgba(43, 74, 133, 0.04);
}

/* Open state */
#rank-math-faq.kivolex-faq .rank-math-list-item.is-open .rank-math-answer.kivolex-faq__a {
  display: block;
}

#rank-math-faq.kivolex-faq .rank-math-list-item.is-open .rank-math-question.kivolex-faq__q::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Optional: nicer focus outline */
#rank-math-faq.kivolex-faq .rank-math-question.kivolex-faq__q:focus {
  outline: 2px solid rgba(242, 140, 40, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}