/*
Theme Name: FTPBox
Theme URI: https://ftpbox.ro
Author: DOW MEDIA
Description: Tema custom pentru ftpBOX.ro
Version: 1.0
Text Domain: ftpbox
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: #10222a;
  font-family: "IBM Plex Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #0e4c5f; text-decoration: none; }
a:hover { color: #6fac33; }
::selection { background: #81c341; color: #0e4c5f; }

img { max-width: 100%; }

.fb-logo-header {
  display: block;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.fb-logo-footer {
  display: block;
  height: 38px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 22px;
}

/* stari hover convertite din design (style-hover) */
.fb-navlink:hover { border-bottom-color: rgba(13,15,15,0.35) !important; }
.fb-btn-header:hover { background: #093946 !important; color: #ffffff !important; }
.fb-btn-green:hover { background: #6fac33 !important; color: #0e4c5f !important; }
.fb-btn-green-outline:hover { background: #6fac33 !important; border-color: #6fac33 !important; color: #0e4c5f !important; }
.fb-btn-dark:hover { background: #093946 !important; color: #ffffff !important; }
.fb-btn-outline:hover { border-color: #0e4c5f !important; color: #0e4c5f !important; }
.fb-btn-outline-onlight:hover { border-color: #0e4c5f !important; background: rgba(255,255,255,0.35) !important; color: #0e4c5f !important; }
.fb-usecase-card:hover { background: #fbfcfa !important; }
.fb-price-row:hover { background: #fbfcfa !important; }
.fb-footer-link:hover { color: #81c341 !important; }

/* ================= blog: grid de articole ================= */
.fb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.fb-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e7ebe6;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.fb-blog-card:hover {
  box-shadow: 0 14px 32px rgba(13,31,38,0.10);
  transform: translateY(-2px);
}
.fb-blog-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #eef1ed;
  overflow: hidden;
}
.fb-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-blog-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a969a;
}
.fb-blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fb-blog-card-date { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a969a; }
.fb-blog-card-title { font-family: Archivo, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; color: #0d1f26; margin: 0; }
.fb-blog-card:hover .fb-blog-card-title { color: #0e4c5f; }
.fb-blog-card-excerpt { font-size: 15px; line-height: 1.6; color: #6b7a80; margin: 0; flex: 1; }
.fb-blog-card-readmore { font-size: 14px; font-weight: 600; color: #0e4c5f; }

@media (max-width: 900px) {
  .fb-blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .fb-blog-grid { grid-template-columns: 1fr !important; }
}

.fb-pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e7ebe6;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  color: #0e4c5f;
  text-decoration: none;
}
.fb-pagination .page-numbers.current { background: #0e4c5f; border-color: #0e4c5f; color: #ffffff; }
.fb-pagination .page-numbers:hover:not(.current) { border-color: #0e4c5f; }
.fb-pagination .page-numbers.dots { border: 0; }

/* ================= blog: continutul articolului (pagina single) =================
   Folosim clasa .fb-post-content, NU "single" sau "single-post" - acele nume
   sunt deja folosite de WordPress ca si clase automate pe <body> si le-am
   evitat intentionat ca sa nu se suprapuna peste ele. */
.fb-post-content { font-size: 17px; line-height: 1.75; color: #3d4d53; }
.fb-post-content p { margin: 0 0 22px; }
.fb-post-content h2 { font-family: Archivo, sans-serif; font-weight: 600; font-size: 30px; line-height: 1.25; letter-spacing: -0.02em; color: #0d1f26; margin: 48px 0 18px; }
.fb-post-content h3 { font-family: Archivo, sans-serif; font-weight: 600; font-size: 23px; line-height: 1.3; letter-spacing: -0.015em; color: #0d1f26; margin: 36px 0 14px; }
.fb-post-content ul, .fb-post-content ol { margin: 0 0 22px; padding-left: 22px; }
.fb-post-content li { margin-bottom: 8px; }
.fb-post-content a { color: #0e4c5f; text-decoration: underline; }
.fb-post-content a:hover { color: #6fac33; }
.fb-post-content img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0 22px; display: block; }
.fb-post-content figure { margin: 0 0 22px; }
.fb-post-content figcaption { font-size: 13px; color: #8a969a; margin-top: 8px; }
.fb-post-content blockquote { margin: 28px 0; padding-left: 20px; border-left: 2px solid #81c341; font-size: 18px; line-height: 1.6; color: #4a5a60; font-style: italic; }

/* ================= meniu hamburger (butonul e ascuns pe desktop) ================= */
.fb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.fb-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0d0f0f;
  border-radius: 2px;
}

/* ================= submeniu (dropdown) in header ================= */
.fb-nav-item { position: relative; display: flex; align-items: center; }
.fb-nav-parent-row { display: flex; align-items: center; gap: 6px; }
.fb-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  line-height: 0;
}
.fb-dropdown-toggle svg { transition: transform .15s ease; }
.fb-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid #e7ebe6;
  box-shadow: 0 14px 28px rgba(13,31,38,0.14);
  padding: 8px;
  z-index: 60;
}
.fb-nav-has-dropdown:hover .fb-dropdown,
.fb-nav-has-dropdown:focus-within .fb-dropdown { display: flex; }
.fb-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #0d1f26;
  white-space: nowrap;
  border-radius: 3px;
}
.fb-dropdown-link:hover { background: #f4f7f2; color: #0e4c5f; }

/* ================= MOBIL / TABLETA ================= */

@media (max-width: 900px) {
  /* padding lateral mai mic pentru toate containerele de 1240px */
  .fb-container { padding-left: 20px !important; padding-right: 20px !important; }

  /* orice grid cu mai multe coloane devine o singura coloana */
  .fb-grid-stack { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* titluri mari, redimensionate */
  .fb-h1 { font-size: 34px !important; line-height: 1.15 !important; }
  .fb-h2 { font-size: 26px !important; }
}

@media (max-width: 860px) {
  /* header: logo + hamburger + buton, meniul principal devine dropdown */
  .fb-header-inner { grid-template-columns: auto auto !important; gap: 14px !important; }
  .fb-nav-toggle { display: flex !important; }

  .fb-nav {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: 0;
    background: #81c341 !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding: 8px 20px 18px !important;
    box-shadow: 0 14px 24px rgba(13,31,38,0.12);
  }
  .fb-nav.fb-nav-open { display: flex !important; }
  .fb-nav a {
    width: 100% !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(13,15,15,0.12) !important;
  }

  .fb-nav-item { flex-direction: column !important; align-items: flex-start !important; width: 100%; }
  .fb-nav-parent-row {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid rgba(13,15,15,0.12);
  }
  .fb-nav-parent-row .fb-navlink { border-bottom: 0 !important; width: auto !important; flex: 1; }
  .fb-dropdown-toggle { padding: 12px 6px !important; }
  .fb-nav-item.fb-dropdown-open .fb-dropdown-toggle svg { transform: rotate(180deg); }

  /* submeniul porneste inchis pe mobil, se deschide doar la apasarea sagetii */
  .fb-dropdown {
    display: none !important;
    position: static !important;
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 4px 0 4px 16px !important;
    width: 100%;
  }
  .fb-nav-item.fb-dropdown-open .fb-dropdown { display: flex !important; }
  .fb-dropdown-link { padding: 10px 0 !important; border-bottom: 0 !important; color: rgba(13,15,15,0.72) !important; }
}

@media (max-width: 480px) {
  .fb-btn-header {
    padding: 0 14px !important;
    font-size: 13px !important;
    height: 38px !important;
    gap: 6px !important;
  }
}

/* buton "Comanda online": pe mobil ramane doar iconita (cos), fara text -
   nu e suficient spatiu langa logo + hamburger */
.fb-btn-header-icon-mobile { display: none; }
@media (max-width: 860px) {
  .fb-btn-header-text { display: none !important; }
  .fb-btn-header-icon-desktop { display: none !important; }
  .fb-btn-header-icon-mobile { display: inline-flex !important; }
  .fb-btn-header {
    width: 42px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  /* badge-ul cu protocoalele suprapus pe imaginea din hero: pe mobil il punem sub imagine, nu suprapus */
  .fb-hero-badge {
    position: static !important;
    margin: 16px 0 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  /* tabelul de pachete: scroll orizontal in loc de coloane comprimate */
  .fb-price-table-wrap { overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .fb-price-grid-row { min-width: 640px !important; }
}
