/*
Theme Name: Brilliani
Theme URI: https://brilliani.ro
Author: Brilliani
Author URI: https://devion.ro
Description: Classic WordPress theme boilerplate with legacy Menus in the dashboard.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brilliani
*/

/* Basic reset and layout */

body {
  font-family: 'Josefin Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  font-family: 'Playfair Display', ui-serif, Georgia, 'Times New Roman', Times, serif;
}

/* Footer link underline effect */
.footer-menu a,
.link-underline {
  position: relative;
  text-decoration: none;
}

.footer-menu a::after,
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width .2s ease;
}

.footer-menu a:hover::after,
.link-underline:hover::after {
  width: 100%;
}

/* Footer headings: stronger hierarchy */
.footer-heading {
  font-size: 1.0625rem;
  /* ~17px */
  line-height: 1.3;
  color: #111;
  /* fallback if CSS variables missing */
  color: hsl(var(--foreground));
  letter-spacing: .02em;
  text-transform: none;
  /* rely on content, not forced uppercase */
  margin-bottom: .75rem;
}

/* Footer links: subtler than headings */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li+li {
  margin-top: .5rem;
}

.footer-menu a {
  color: hsl(var(--muted-foreground));
  font-size: .9375rem;
  /* ~15px */
}

/* Mobile menu overrides */
.menu--mobile {
  display: flex;
  flex-direction: column;
  gap: 0 !important;
  list-style: none;
  padding: 0;
}

.menu--mobile>li {
  display: block;
  margin-bottom: 0 !important;
}

/* Desktop menu */
.desktop-primary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-primary>li {
  position: relative;
  padding-bottom: .35rem;
}

.desktop-primary>li>a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  position: relative;
  padding: .25rem 0;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.desktop-primary>li>a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.2rem;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width .2s ease;
}

.desktop-primary>li:hover>a::after,
.desktop-primary>li>a:focus-visible::after {
  width: 100%;
}

.desktop-primary>li.menu-item-has-children>a .dropdown-icon {
  display: inline-flex;
  align-items: center;
  transition: transform .2s ease;
}

.desktop-primary>li.menu-item-has-children:hover>a .dropdown-icon,
.desktop-primary>li.menu-item-has-children:focus-within>a .dropdown-icon {
  transform: rotate(180deg);
}

.desktop-primary>li.menu-item-has-children>ul {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 220px;
  padding: .75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: .75rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.25);
  z-index: 40;
}

.desktop-primary>li.menu-item-has-children:hover>ul,
.desktop-primary>li.menu-item-has-children:focus-within>ul,
.desktop-primary>li.menu-item-has-children.is-open>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-primary>li.menu-item-has-children>ul>li {
  margin: 0;
}

.desktop-primary>li.menu-item-has-children>ul>li>a {
  display: block;
  padding: .45rem .75rem;
  border-radius: .5rem;
  font-size: .9375rem;
  color: hsl(var(--foreground));
  position: relative;
  transition: background .15s ease;
}

.desktop-primary>li.menu-item-has-children>ul>li>a::after {
  content: "";
  position: absolute;
  left: .75rem;
  bottom: .25rem;
  width: 0;
  height: 2px;
  background: hsl(var(--primary));
  transition: width .2s ease;
}

.desktop-primary>li.menu-item-has-children>ul>li>a:hover::after,
.desktop-primary>li.menu-item-has-children>ul>li>a:focus-visible::after {
  width: calc(100% - 1.5rem);
}

.desktop-primary>li.menu-item-has-children>ul>li>a:hover,
.desktop-primary>li.menu-item-has-children>ul>li>a:focus-visible {
  background: hsl(var(--secondary)/0.35);
}

.desktop-primary>li.menu-item-has-children>ul>li.menu-item-has-children {
  position: relative;
}

.desktop-primary>li.menu-item-has-children>ul>li.menu-item-has-children>ul {
  position: absolute;
  top: -.75rem;
  left: calc(100% + .5rem);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  min-width: 200px;
  padding: .75rem;
  border-radius: .75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.25);
}

.desktop-primary>li.menu-item-has-children>ul>li.menu-item-has-children:hover>ul,
.desktop-primary>li.menu-item-has-children>ul>li.menu-item-has-children:focus-within>ul,
.desktop-primary>li.menu-item-has-children>ul>li.menu-item-has-children.is-open>ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.list-fix {
  margin-block: 80px;
}

.list-fix ul {
  padding-left: 15px;
  list-style: disc;
  margin-block: 12px;
}

.wp-block-columns ul {
  padding-left: 15px;
  list-style: disc;
  margin-block: 12px;
}

.wp-block-columns ul li {
  padding-block: 4px;
  color: #65758b !important;
}

.list-fix ul li {
  padding-block: 4px;
}

.page-template-template-pricing table a {
  min-height: fit-content;
  padding: 8px 12px;
  white-space: pre;
}



@media only screen and (max-width: 600px) {
  .page-id-8 #hero {
    padding-top: 30px !important;
  }

  .page-template-template-about .wp-block-media-text__content {
    padding-bottom: 35px !important;
  }
}

.page-template-template-offers table .btn {
  min-height: fit-content;
  padding: 8px 12px;
  white-space: pre;
}

.page-template-template-service-detail table .btn-primary {
  min-height: fit-content;
  padding: 8px 12px;
  white-space: pre;
}

.page-template-page-templates p {
  color: #65758b !important;
}

.p-24 {
  padding: 24px;
}

.art-img {
  margin: 0 auto !important;
}

p {
  margin-bottom: 12px;
}

.wp-block-list li {
  padding-block: 12px;
}

/* Blog listing template */
.blog-list {
  padding: 4rem 0;
  background: hsl(var(--background));
}

.blog-list__container {
  width: min(1100px, 90vw);
  margin-inline: auto;
}

.blog-list__header {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-list__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin: 0;
  color: hsl(var(--foreground));
}

.blog-list__subtitle {
  margin: 0.75rem auto 0;
  max-width: 650px;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}

.blog-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: 0 10px 30px hsl(var(--border) / 0.15);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px hsl(var(--border) / 0.2);
}

.blog-card__image {
  display: block;
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__placeholder {
  padding: 3rem 1rem;
  text-align: center;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.blog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card__date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}

.blog-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.blog-card__title a {
  text-decoration: none;
  color: inherit;
}

.blog-card__excerpt {
  margin: 0;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
}

.blog-card__read {
  margin-top: auto;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-card__read:hover {
  opacity: 0.8;
}

.blog-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  padding: 0 0.75rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  background: hsl(var(--card));
  font-weight: 500;
}

.blog-pagination .page-numbers.current {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}

.blog-list__empty {
  text-align: center;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 640px) {
  .blog-card__body {
    gap: 0.6rem;
  }

  .blog-card__title {
    font-size: 1rem;
  }
}

/* Candidate cards pattern */
.candidacy {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 0;
}

.candidacy__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.candidacy-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 10px 30px hsl(var(--border)/0.15);
}

.candidacy-card--good {
  border-color: hsl(var(--success)/0.35);
}

.candidacy-card--warn {
  border-color: hsl(var(--warning)/0.35);
}

.candidacy-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.candidacy-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.candidacy-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.candidacy-card__icon--good {
  background: hsl(var(--success)/0.15);
  color: hsl(var(--success));
}

.candidacy-card__icon--warn {
  background: hsl(var(--warning)/0.18);
  color: hsl(var(--warning));
}

.candidacy-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.candidacy-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.candidacy-card__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.candidacy-card__list li span {
  color: currentColor;
  font-size: 1.1rem;
  line-height: 1;
  position: relative;
  top: 0.15rem;
}

.candidacy-card__list li p {
  margin: 0;
}

.candidacy-card__note {
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.candidacy-card__note--good {
  background: hsl(var(--secondary));
}

.candidacy-card__note--warn {
  background: hsl(var(--warning)/0.12);
}

.candidacy-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
}

.candidacy-card__badge--good {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.candidacy-card__badge--warn {
  background: hsl(var(--warning));
  color: #fff;
}

.candidacy-card__note p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.candidacy-cta {
  border-radius: 24px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 12px 30px hsl(var(--border)/0.12);
}

.candidacy-cta__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.candidacy-cta__text {
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.candidacy-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.candidacy-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.candidacy-cta__button--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 25px hsl(var(--primary)/0.25);
}

.candidacy-cta__button--primary:hover {
  transform: translateY(-2px);
}

.candidacy-cta__button--outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}

.candidacy-cta__button--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsl(var(--border)/0.25);
}

@media (min-width: 768px) {
  .candidacy__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .candidacy-cta__actions {
    flex-direction: row;
    justify-content: center;
  }

  .candidacy-cta__button {
    min-width: 220px;
  }
}


.device-offers {
  padding: 40px 0;
}

.offers-section-title {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.2;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

.offer-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.offer-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  border-color: rgba(0, 0, 0, .12);
}

.offer-card-inner {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.offer-title {
  margin: 0 0 10px;
  font-size: 20px;
}

.offer-prices {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.offer-prices li {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
}

.offer-desc {
  margin: 10px 0 18px;
  line-height: 1.5;
  opacity: .9;
}

.offer-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-phone {
  font-weight: 600;
}

.offer-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  background: #111;
  color: #fff;
}

.offer-card:hover .offer-btn {
  filter: brightness(1.05);
}

.mt-12 {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.center-margin {
  margin: 0 auto !important;
}

@media only screen and (max-width: 600px) {
  .page-template-default #servicii {
      padding-top: 30px!important;
  }
}