/* PFV2 Footer Front CSS (v1.1.0) */
.pfv2-footer{
  font-family: inherit;
  background: var(--pfv2-bg, #1F1F1F);
  color: rgba(255,255,255,.86);
  border-top: 1px solid rgba(255,255,255,.06);
  width: 100%;
  --pfv2-pad: clamp(16px, 3vw, 64px);
  --pfv2-accent: var(--pfv2-accent, #CC1A1A);
  overflow-x: hidden;
}
.pfv2-footer, .pfv2-footer *{ box-sizing: border-box; }
.pfv2-footer a{ text-decoration: none; }

.pfv2-wrap{ width: 100%; padding-inline: var(--pfv2-pad); }

/* Titles */
.pfv2-title{
  margin: 0 0 10px;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 950;
  color: #fff;
  text-align: center !important;
  letter-spacing: .2px;
}
.pfv2-subtitle{
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.60);
  text-align: center !important;
}

/* Features */
.pfv2-features{
  position: relative;
  background: rgba(0,0,0,.08);
  margin-inline: calc(var(--pfv2-pad) * -1);
  padding: 28px var(--pfv2-pad) 22px;
}
.pfv2-features:after{
  content:"";
  position:absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.06);
}
.pfv2-features .pfv2-title{
  font-size: clamp(22px, 2vw, 30px) !important;
  margin-bottom: 12px !important;
}
.pfv2-features .pfv2-subtitle{ font-size: 14.5px !important; }

.pfv2-feat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.pfv2-feat{
  display:flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.pfv2-feat:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--pfv2-accent) 20%, transparent);
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 34px rgba(0,0,0,.26), 0 0 18px color-mix(in srgb, var(--pfv2-accent) 10%, transparent);
}
.pfv2-feat svg{
  width: 26px; height: 26px;
  fill: var(--pfv2-accent);
  flex: 0 0 auto;
  display:block;
}

.pfv2-feat-icon{
  width: 26px;
  height: 26px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  color: var(--pfv2-accent, #CC1A1A);
  flex: 0 0 auto;
}
.pfv2-feat-icon svg{
  width: 100% !important;
  height: 100% !important;
  fill: currentColor !important;
  display:block !important;
}
.pfv2-feat-icon img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display:block !important;
}
.pfv2-feat h5{
  margin: 0;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 950;
  color: #fff;
  line-height: 1.25;
}
.pfv2-feat p{
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,.68);
}

/* Main grid */
.pfv2-main{ padding: clamp(32px, 4vw, 56px) 0 22px; }
.pfv2-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 2.2vw, 34px);
  align-items: start;
}
@media (min-width: 1100px){
  .pfv2-brand{ grid-column: span 2; }
}
/* Brand */
.pfv2-brand{
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  text-align: start;
}
.pfv2-brand-head{
  display:flex !important;
  align-items:center !important;
  gap: 14px;
  flex-direction: row; /* RTL uses direction, not row-reverse */
  justify-content: flex-start;
}
.pfv2-logo{
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--pfv2-accent);
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height: 1 !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.30);
  flex: 0 0 auto;
}

.pfv2-logo.pfv2-logo--image{
  /* Keep the red square and contain any uploaded image without breaking layout */
  background: var(--pfv2-accent) !important;
  padding: 10px;
}
.pfv2-logo-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display:block !important;
}
.pfv2-logo span{ display:block !important; font-size: 24px; font-weight: 950; color:#fff; line-height:1 !important; transform: translateY(-1px); padding: 0 8px; white-space: nowrap; max-width: 52px; overflow: hidden; text-overflow: ellipsis; }
.pfv2-brand h3{ margin:0; font-size:20px; font-weight:950; color:#fff; }
.pfv2-brand small{ display:block; margin-top:4px; color:rgba(255,255,255,.62); font-size:13px; font-weight:600; }
.pfv2-brand p{ margin:14px 0 0; color:rgba(255,255,255,.68); font-size:14.5px; line-height:2.0; text-align:start; }

/* Center columns */
.pfv2-center-col{ display:grid !important; justify-items:center !important; }

/* Links */
.pfv2-links{ list-style:none; padding:0 !important; margin:0 !important; display:grid; gap:10px; justify-items:center !important; }
.pfv2-links a{
  width: min(360px, 100%) !important;
  margin-inline: auto !important;

  display:flex !important;
  flex-direction: row; /* RTL uses direction, not row-reverse */
  align-items:center !important;
  justify-content: flex-start !important;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255,255,255,.72);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
  text-align: start;
}
.pfv2-links a:before{
  content:"";
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  flex: 0 0 auto;
  transition: background .18s ease, transform .18s ease;
}
.pfv2-links a:hover{
  color:#fff;
  background: rgba(255,255,255,.06);
  border-color: color-mix(in srgb, var(--pfv2-accent) 18%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.22), 0 0 16px color-mix(in srgb, var(--pfv2-accent) 8%, transparent);
}
.pfv2-links a:hover:before{
  background: color-mix(in srgb, var(--pfv2-accent) 90%, transparent);
  transform: scale(1.15);
}

/* Contact */
.pfv2-contact{ list-style:none; padding:0 !important; margin:0 !important; display:grid; gap:12px; justify-items:center !important; }
.pfv2-pill{
  width: min(360px, 100%) !important;
  margin-inline: auto !important;

  display:flex !important;
  flex-direction: row; /* RTL uses direction, not row-reverse */
  align-items:center !important;
  justify-content: flex-start !important;
  gap: 12px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.08);
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  text-align: start;
}
.pfv2-pill:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: color-mix(in srgb, var(--pfv2-accent) 20%, transparent);
  box-shadow: 0 12px 26px rgba(0,0,0,.22), 0 0 16px color-mix(in srgb, var(--pfv2-accent) 10%, transparent);
}
.pfv2-pill svg{ width:20px; height:20px; fill:var(--pfv2-accent); flex:0 0 auto; opacity:.95; display:block !important; }
.pfv2-pill a, .pfv2-pill span{ color: rgba(255,255,255,.74); font-size:15px; line-height:1.7; word-break: break-word; text-align:start; }
.pfv2-pill a:hover{ color:#fff; }
.pfv2-pill a[href^="tel:"], .pfv2-pill a[href^="mailto:"]{ direction:ltr !important; unicode-bidi: plaintext !important; }

/* Newsletter */
.pfv2-news{
  padding: 16px 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.pfv2-form{
  display:flex !important;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: row; /* RTL uses direction, not row-reverse */
  justify-content: flex-start;
}
.pfv2-input{
  flex: 1 1 180px;
  min-width: 180px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px 12px;
  outline: none;
  color: #fff !important;
  caret-color: #fff !important;
}
.pfv2-input::placeholder{ color: rgba(255,255,255,.52); }
.pfv2-input:-webkit-autofill{ -webkit-text-fill-color: #fff !important; transition: background-color 9999s ease-in-out 0s; }

.pfv2-btn{
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 950;
  color: #fff;
  background: color-mix(in srgb, var(--pfv2-accent) 92%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.pfv2-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0,0,0,.28), 0 0 18px color-mix(in srgb, var(--pfv2-accent) 16%, transparent);
  filter: brightness(1.03);
}

/* Social td-icon-* */
.pfv2-social{
  display:flex !important;
  justify-content: center !important;
  align-items:center !important;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  width: min(360px, 100%) !important;
  margin-inline: auto !important;
}
.pfv2-social a{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.pfv2-social a:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.10);
  border-color: color-mix(in srgb, var(--pfv2-accent) 26%, transparent);
  box-shadow: 0 14px 34px rgba(0,0,0,.26), 0 0 20px color-mix(in srgb, var(--pfv2-accent) 14%, transparent);
}
.pfv2-social .pfv2-td-icon{
  font-size: 20px;
  line-height: 1;
  color: rgba(255,255,255,.78);
}
.pfv2-social a:hover .pfv2-td-icon{ color:#fff; }

/* Bottom */
.pfv2-bottom{
  position: relative;
  background: rgba(0,0,0,.10);
  margin-inline: calc(var(--pfv2-pad) * -1);
  padding: 16px var(--pfv2-pad) 18px;
}
.pfv2-bottom:before{
  content:"";
  position:absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: rgba(255,255,255,.06);
}
.pfv2-bottom-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  color: rgba(255,255,255,.62);
  font-size: 13.5px;
}
.pfv2-legal{ display:flex; gap: 14px; flex-wrap: wrap; flex-direction: row; }
.pfv2-legal a{ color: rgba(255,255,255,.62); }
.pfv2-legal a:hover{ color:#fff; }

@media (prefers-reduced-motion: reduce){
  .pfv2-feat, .pfv2-links a, .pfv2-pill, .pfv2-btn, .pfv2-social a{
    transition: none !important;
    transform: none !important;
  }
}
@media (max-width: 1100px){
  .pfv2-feat-grid{ grid-template-columns: 1fr; }
  .pfv2-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .pfv2-grid{ grid-template-columns: 1fr; }
  .pfv2-main{ padding: 28px 0 18px; }

  .pfv2-brand, .pfv2-news{ padding: 16px; }
  .pfv2-brand-head{ justify-content: center !important; text-align:center !important; }
  .pfv2-brand, .pfv2-brand p{ text-align: center !important; }

  .pfv2-links a, .pfv2-pill{ width: 100% !important; max-width: 520px !important; }
  .pfv2-social{ width: 100% !important; max-width: 520px !important; }

  .pfv2-bottom-inner{ justify-content: center; text-align: center; }
  .pfv2-legal{ justify-content: center; }
}

/* pfv2-dir-fix: enforce icon/text order correctly per dir */
.pfv2-footer[dir="rtl"] .pfv2-links a,
.pfv2-footer[dir="rtl"] .pfv2-pill{
  flex-direction: row !important;
}
.pfv2-footer[dir="ltr"] .pfv2-links a,
.pfv2-footer[dir="ltr"] .pfv2-pill{
  flex-direction: row !important;
}
.pfv2-footer[dir="ltr"] .pfv2-links a:before{
  /* keep bullet on the left in LTR */
  order: -1;
}

/* td-icon base (relies on theme-provided icon font + :before rules) */
.pfv2-td-icon{display:inline-block;font-size:20px;line-height:1;color:rgba(255,255,255,.78);}
.pfv2-td-icon:before{display:inline-block;font-size:20px;line-height:1;color:inherit;}
.pfv2-social a:hover .pfv2-td-icon{color:#fff;}


/* Logo image containment */
.pfv2-logo img{width:100%;height:100%;object-fit:contain;padding:10px;display:block;}
