/* Custom overrides for Cartier Transilvania Astro site */

/* ═══════════════════════════════════════════════════
   FIX GLOBAL: OVERFLOW ORIZONTAL + SCALARE MOBILE
   ═══════════════════════════════════════════════════ */
html,
body {
  overflow-x: clip !important;
  max-width: 100vw !important;
}

/* Toate imaginile se scalează la lățimea containerului */
img {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Wrapper-ul principal nu depășește viewport-ul */
.body-wrapper,
.body-wrapper-page {
  overflow-x: clip !important;
  max-width: 100vw !important;
}

/* Container Bootstrap: nu depășește viewport-ul, dar păstrăm padding-ul Bootstrap original */
@media screen and (max-width: 576px) {
  .container,
  .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ascunde linia decorativă de sub header pe mobile */
@media screen and (max-width: 1200px) {
  .main-header:after {
    display: none !important;
    content: none !important;
    height: 0 !important;
    background: none !important;
  }
}

/* ── Fix dropdown z-index ── */
.main-header .main-header-inner .site-nav-header .site-navigation-wrapper .nav-dropdown.nav-open {
  z-index: 91 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Hide hardcoded dropdown arrow (jQuery adds its own) */
.has-dropdown .dropdown-arrow {
  display: none !important;
}

/* SVG inline în data-box-icon: moștenesc culoarea și se centrează corect */
.data-box .data-box-icon span svg {
  display: block;
  width: 36px;
  height: 36px;
  stroke: currentColor;
  fill: none;
}

/* Pagina contact: margin-top pentru navbar fix (nu are page-template-header) */
.page-contact .page-template-wrapper {
  margin-top: 95px;
}

/* Font-weight thin for big section titles */
.section-big-title .big-title,
.about-section .section-big-title .big-title,
.gallery-section .section-big-title .big-title,
.team-section .section-big-title .big-title {
  font-weight: 100 !important;
}

/* ═══════════════════════════════════════════════════
   FIX SCROLL HIJACKING — Homepage sections
   Problema: .section-big-title are position:absolute si
   captureaza touch events pe iOS/Android, scrolland
   independent fata de pagina.
   Fix: pointer-events:none + touch-action:none pe toate
   cele 3 sectiuni (about/gallery/team) si pe span-uri.
   ═══════════════════════════════════════════════════ */
.about-section .section-big-title,
.gallery-section .section-big-title,
.team-section .section-big-title {
  pointer-events: none !important;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.about-section .section-big-title span,
.gallery-section .section-big-title span,
.team-section .section-big-title span {
  pointer-events: none !important;
  touch-action: none !important;
}

/* Secțiunile container: overflow:hidden previne scroll intern */
.about-section,
.gallery-section,
.team-section {
  overflow: hidden !important;
}

/* ── min-width fix: only desktop ── */
@media screen and (min-width: 1201px) {
  .main-header .main-header-inner {
    min-width: 760px;
  }
}

/* ═══════════════════════════════════════════════════
   FIX SLIDER-TITLE DISPARE LA LĂȞIMI INTERMEDIARE
   Cauza: slider-title are position:absolute + left:50% +
   transform:translateX(-50%). La 769-1023px, textul
   "Probabil cel mai frumos" iese din body-wrapper
   (overflow:hidden) si dispare.
   Fix: aplicat DOAR la breakpoint-urile intermediare,
   nu global (ar strica desktop-ul).
   ═══════════════════════════════════════════════════ */
/* La 769-1023px: slider-title se incadreaza in viewport */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .slider-area .slider-content .slider-title {
    width: 80% !important;
    max-width: 80% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-align: center;
  }
  .slider-area .slider-content .slider-title span {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }
}

/* ===================================================
   MOST SEARCHED SECTION — Cele mai căutate
   Design fin, elegant, minimal
   =================================================== */
.most-searched-section {
  background: #fff;
  padding: 60px 0 70px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.most-searched-header {
  text-align: center;
  margin-bottom: 40px;
}

.most-searched-title {
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0;
}

.most-searched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
}

.most-searched-card {
  background: #fff;
  transition: background 0.25s ease;
}

.most-searched-card:hover {
  background: #f9fdf9;
}

.most-searched-card-inner {
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.most-searched-label {
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color, #00603a);
  margin-bottom: 16px;
}

.most-searched-count {
  font-family: Outfit, sans-serif;
  font-size: 3.8rem;
  font-weight: 200;
  line-height: 1;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.most-searched-unit {
  font-family: Outfit, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 24px;
}

.most-searched-cta a.atom-btn-simple {
  font-size: 0.7rem !important;
  padding: 8px 18px !important;
  letter-spacing: 0.12em;
}

/* Responsive — tablet */
@media screen and (max-width: 768px) {
  .most-searched-grid {
    max-width: 100%;
  }
  .most-searched-card-inner {
    padding: 28px 28px 24px;
  }
  .most-searched-count {
    font-size: 3rem;
  }
}

/* Responsive — telefon */
@media screen and (max-width: 576px) {
  .most-searched-section {
    padding: 45px 0 50px;
  }
  .most-searched-grid {
    grid-template-columns: 1fr;
    background: none;
    gap: 12px;
  }
  .most-searched-card {
    border: 1px solid rgba(0,0,0,0.08);
  }
  .most-searched-card-inner {
    padding: 24px 22px 20px;
  }
  .most-searched-count {
    font-size: 2.8rem;
  }
}

/* ===================================================
   BLOG LISTING PAGE
   =================================================== */

.page-blog .blog-listing-wrapper {
  padding: 60px 0;
}

.blog-card {
  margin-bottom: 30px;
  display: block;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 32px 60px 0 rgba(175, 180, 217, 0.5);
  background: #f6f7fc;
  transition: box-shadow 0.3s ease;
}

.blog-card-link:hover {
  box-shadow: 0 32px 60px 0 rgba(175, 180, 217, 0.8);
  color: inherit;
}

.blog-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-card-image-src {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.blog-card-link:hover .blog-card-image-src {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.blog-card-date,
.blog-card-author {
  font-size: 14px;
  color: rgb(99, 114, 130);
  font-weight: 400;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 16px;
  color: rgb(99, 114, 130);
  line-height: 1.6;
  margin-bottom: 15px;
}

.blog-card-btn {
  padding-top: 10px;
}

.blog-card-btn .atom-btn-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  color: #222;
  background: #fff;
  padding: 10px 30px;
  border: 2px solid #000;
  border-radius: 0;
  transition: all 0.3s ease;
}

.blog-card-btn .atom-btn-link:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ===================================================
   BLOG SINGLE ARTICLE PAGE
   =================================================== */

.page-blog-single .blog-single-wrapper {
  padding: 60px 0;
}

.blog-single-header {
  margin-bottom: 40px;
}

.blog-single-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: rgb(99, 114, 130);
}

.blog-single-meta .meta-date,
.blog-single-meta .meta-author {
  font-size: 14px;
  color: rgb(99, 114, 130);
}

.blog-single-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 20px;
}

.blog-single-featured-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 0;
}

.blog-single-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--body-text-color);
}

.blog-single-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-single-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-single-content p {
  margin-bottom: 20px;
}

.blog-single-content ul,
.blog-single-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.blog-single-content li {
  margin-bottom: 8px;
}

.blog-single-content strong {
  font-weight: 700;
  color: var(--primary-color);
}

.blog-single-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.blog-single-content a:hover {
  color: var(--secondary-color);
}

.blog-cta-section {
  background: var(--primary-color);
  padding: 60px 0;
  margin-top: 60px;
}

.blog-cta-section h3 {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 20px;
}

.blog-cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
}

.blog-single-tags {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.blog-single-tags .tag {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  border-radius: 3px;
}

/* ===================================================
   PAGINI LEGALE
   =================================================== */

.page-legal .page-template-wrapper {
  padding: 60px 0 80px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  color: #333;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-content h4 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  text-transform: uppercase;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--primary-color, #2d6a4f);
  text-decoration: underline;
}

.legal-content a:hover {
  opacity: 0.8;
}

/* ===================================================
   FAQ SECTION
   =================================================== */

.faq-section {
  background-color: #f9f7f4;
  padding: 80px 0;
}

.faq-header {
  margin-bottom: 50px;
}

.faq-header .section-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color, #00603a);
  margin-bottom: 10px;
}

.faq-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 100;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
}

.faq-accordion .accordion-item.faq-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-accordion .accordion-item.faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-accordion .faq-question {
  background-color: transparent;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 500;
  padding: 22px 0;
  padding-right: 40px;
  box-shadow: none;
  letter-spacing: 0.02em;
}

.faq-accordion .faq-question:not(.collapsed) {
  background-color: transparent;
  color: var(--primary-color, #00603a);
  box-shadow: none;
}

.faq-accordion .faq-question::after {
  filter: none;
  opacity: 0.5;
}

.faq-accordion .faq-question:not(.collapsed)::after {
  filter: none;
  opacity: 1;
}

.faq-accordion .faq-question:focus {
  box-shadow: none;
  outline: none;
}

.faq-accordion .accordion-body.faq-answer {
  background-color: transparent;
  color: #444444;
  font-size: 0.95rem;
  line-height: 1.75;
  padding: 0 40px 22px 0;
}

/* ===================================================
   PAGINA PROIECT — Consultantul tău text redus
   =================================================== */

.after-content-title.text-small span {
  font-size: 1.5rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

/* Separator elegant centrat */
.section-divider-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
}

.section-divider-centered::before {
  content: '';
  display: block;
  width: 35%;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Blog article: margin-top pentru navbar fixed */
.page-article .article-header-section {
  margin-top: 135px;
}

/* ===================================================
   RESPONSIVE — toate breakpoint-urile
   Bazat strict pe valorile din app.min.css
   Breakpoint-uri originale: 1200px, 768px, 576px, 350px
   Adăugăm intermediare: 1440px, 1024px pentru laptop/tabletă
   =================================================== */

/* ── PREVENT HORIZONTAL OVERFLOW pe orice ecran ── */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── DESKTOP MARE: 1440px+ ── */
/* Nicio modificare — tema arată perfect */

/* ── DESKTOP / LAPTOP MARE: max 1440px ── */
@media screen and (max-width: 1440px) {
  /* Titlul decorativ pe paginile interioare — scalare graduală */
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-big-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-big-title {
    font-size: 15rem;
    line-height: 160px;
  }
  /* Hero: text ușor mai sus la ecrane sub 1440px */
  .slider-area .slider-content .slider-title {
    top: 5%;
  }
  .slider-area .slider-content .slider-title span {
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
}

/* ── LAPTOP: max 1200px — burger menu activ ── */
/* app.min.css la 1200px: site-navigation dispare, burger apare */
@media screen and (max-width: 1200px) {
  /* Header: elimină min-width care cauzează overflow */
  .main-header .main-header-inner {
    min-width: unset !important;
  }
  .main-header {
    overflow: visible;
  }
  /* Burger panel: full width */
  .main-header .main-header-inner .nav-burger-panel {
    width: 100vw;
    left: 0;
    right: 0;
  }
  /* Titlul decorativ pagini interioare */
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-big-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-big-title {
    font-size: 11rem !important;
    line-height: 120px !important;
  }
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-title {
    font-size: 3rem;
    padding: 20px 0;
  }
  /* Section big titles */
  .section-big-title .big-title {
    font-size: 10rem !important;
  }
  .about-section .section-big-title,
  .gallery-section .section-big-title,
  .team-section .section-big-title {
    overflow: hidden;
  }
  /* Hero slider: text mai sus, departe de imaginea decorativă */
  .slider-area .slider-content .slider-title {
    top: 4%;
    width: 90%;
  }
  .slider-area .slider-content .slider-title span {
    font-size: 2.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  }
  .slider-area .slider-content .slider-overlay {
    top: 75%;
  }
}

/* ── TABLETĂ: max 1024px ── */
@media screen and (max-width: 1024px) {
  /* Hero */
  .slider-area {
    height: 520px;
  }
  .slider-area .slider-content .slider-title {
    top: 6%;
    width: 85%;
  }
  .slider-area .slider-content .slider-title span {
    font-size: 2rem;
  }
  .slider-area .slider-content .slider-overlay {
    top: 78%;
  }
  .slider-area .slider-content .slider-overlay .overlay-content .atom-btn-simple span {
    font-size: 0.85rem;
  }
  /* Titlul decorativ pagini interioare */
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-big-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-big-title {
    font-size: 8rem !important;
    line-height: 90px !important;
  }
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-title {
    font-size: 2.2rem;
    padding: 15px 0;
  }
  .page-project .page-template-header,
  .page-apartment .page-template-header {
    height: auto;
    min-height: 400px;
  }
  /* Section big titles */
  .section-big-title .big-title {
    font-size: 7rem !important;
  }
  /* Team section */
  .team-section .team-section-wrapper {
    flex-direction: column;
  }
  .team-section .team-section-wrapper .team-section-image {
    width: 100%;
    margin-bottom: 30px;
  }
  .team-section .team-section-wrapper .team-section-content {
    width: 100%;
  }
  /* Secțiuni interioare */
  .apartment-section-one .side-content {
    margin-bottom: 30px;
  }
  .apartment-section-one .section-content {
    padding-left: 0;
  }
  .apartment-section-two .apartment-section-two-wrapper {
    flex-direction: column;
  }
  .apartment-section-two .apartment-section-two-wrapper .section-two-image {
    width: 100%;
    margin-bottom: 20px;
  }
  .apartment-section-two .apartment-section-two-wrapper .section-two-content {
    width: 100%;
  }
  /* Wide image section */
  .wide-image-section .wide-image-section-wrapper .wide-image-section-content {
    max-width: 100% !important;
    padding: 40px 30px !important;
  }
  /* Contact */
  .page-contact .apartment-section-one {
    padding: 60px 0 100px !important;
  }
  .page-contact .apartment-section-one .side-content {
    padding-left: 40px;
  }
  /* Despre noi */
  .page-team .apartment-section-one .side-content {
    margin-bottom: 30px;
  }
  /* Galerie */
  .gallery-grid-layout {
    column-count: 2 !important;
  }
  /* FAQ */
  .after-content-title.text-small span {
    font-size: 1.2rem !important;
  }
}

/* ── TABLETĂ MIC / TELEFON MARE: max 768px ── */
/* Valorile din app.min.css la 768px */
@media screen and (max-width: 768px) {
  /* Slider: margin-top 135px (navbar înalt) */
  .slider-area {
    margin-top: 135px;
  }
  .slider-area .slider-content .slider-title {
    top: 10%;
  }
  .slider-area .slider-content .slider-title span {
    font-size: 1rem;
  }
  .slider-area .slider-content .slider-overlay {
    top: 85%;
  }
  .slider-area .slider-content .slider-overlay .overlay-content .atom-btn-simple span {
    color: #fff;
  }
  /* Section big titles */
  .about-section .section-big-title span {
    font-size: 1rem;
  }
  .about-section .section-big-title span.big-title {
    font-size: 5rem;
    line-height: 50px;
  }
  .about-section .about-section-content {
    padding: 0 60px 60px;
  }
  .about-section .about-section-image {
    right: 0;
  }
  .about-section .about-section-image .about-section-image-src {
    height: 450px;
  }
  .gallery-section {
    padding: 35px 0 0;
  }
  .gallery-section .section-big-title {
    gap: 15px;
    top: 0;
  }
  .gallery-section .section-big-title span {
    font-size: 1rem;
  }
  .gallery-section .section-big-title span.big-title {
    font-size: 5rem;
    line-height: 50px;
  }
  .gallery-section .gallery-section-content {
    padding: 60px;
    top: 0;
  }
  .gallery-section .gallery-section-image .gallery-section-image-src {
    height: 500px;
  }
  .team-section .section-big-title span {
    font-size: 1rem;
  }
  .team-section .section-big-title span.big-title {
    font-size: 5rem;
    line-height: 50px;
  }
  .team-section .team-section-wrapper {
    padding: 0;
  }
  .team-section .team-section-wrapper .team-section-content {
    max-width: 100%;
  }
  /* Footer */
  .footer-section {
    flex-direction: column;
  }
  .footer-section .footer-data .footer-menu ul {
    flex-direction: column;
    gap: 10px;
  }
  .footer-section .footer-data .footer-copyright {
    max-width: 100%;
  }
  .footer-section .footer-data .footer-copyright .copyright {
    text-align: center;
  }
  .footer-section .footer-gdpr .gdpr-links ul {
    justify-content: center;
  }
  /* Contact */
  .page-contact .apartment-section-one {
    padding: 40px 0 60px !important;
  }
  .page-contact .apartment-section-one .side-content {
    flex-direction: column-reverse;
    gap: 60px;
    padding: 60px 0 0;
  }
  .page-contact .apartment-section-one .side-content .side-data {
    display: none;
  }
  .page-contact .apartment-section-one .side-content .side-counter {
    text-align: center;
  }
  .page-contact .apartment-section-one .side-content .side-counter span {
    font-size: 5rem;
    line-height: 50px;
  }
  .page-contact .apartment-section-one .section-content .section-content-data {
    max-width: 100%;
  }
  .page-contact .apartment-section-one .section-content .section-content-data .content-data-message {
    max-width: 100%;
  }
  .page-contact .apartment-section-one .section-content .section-content-data .content-data-message span {
    font-size: 1.5rem;
  }
  /* Data boxes */
  .section-content-data .data-boxes-wrapper {
    flex-direction: column;
    gap: 15px;
  }
  .section-content-data .data-boxes-wrapper .data-box {
    width: 100%;
  }
  /* After content */
  .after-content-section .after-content-title span {
    font-size: 1.8rem !important;
  }
  /* Blog */
  .blog-card-image {
    height: 200px;
  }
  .blog-single-title {
    font-size: 1.8rem;
  }
  .blog-single-featured-image {
    height: 300px;
  }
  /* Burger menu list */
  .main-header .main-header-inner .nav-burger-panel .nav-burger-panel-inner .nav-burger-menu-list {
    flex-direction: column;
  }
}

/* ── TELEFON: max 576px ── */
/* Valorile exacte din app.min.css la 576px */
@media screen and (max-width: 576px) {
  /* Tipografie globală */
  .h1, h1 { font-size: 3rem; }
  .h2, h2 { font-size: 1.8rem; }
  .h3, h3 { font-size: 1.6rem; }
  .h4, h4 { font-size: 1.2rem; }
  .h5, h5 { font-size: 1.1rem; }
  .h6, h6 { font-size: 1rem; }
  p { font-size: .889rem; }

  /* Butoane */
  .atom-btn-simple:before { height: 50px; width: 50px; }
  .atom-btn-simple span { font-size: 1rem; }
  .atom-btn-simple i { height: 50px; width: 50px; }

  /* Header — layout exact ca originalul la 576px */
  /* main-header: flex row, space-between, 3 coloane */
  .main-header { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 15px 0 !important; }
  /* Coloana stânga: DOAR burger-ul */
  .main-header .main-header-inner { flex: 0 0 auto !important; min-width: unset !important; }
  .main-header .main-header-inner .site-nav-header { display: flex !important; }
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper { display: flex !important; align-items: center !important; }
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper .site-nav-options { padding: 0 !important; display: flex !important; align-items: center !important; }
  /* Ascunde EN si Cere oferta din site-nav-options pe mobile — EN apare prin language-mobile */
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper .site-nav-options .header-nav-language { display: none !important; }
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper .site-nav-options .header-nav-cta { display: none !important; }
  /* Burger vizibil */
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper .site-nav-options .header-nav-burger { height: 40px !important; margin: 0 !important; width: 60px !important; display: flex !important; }
  /* language-mobile (EN) apare langa burger */
  .main-header .main-header-inner .site-nav-header .site-navigation-wrapper .language-mobile { display: block !important; }
  .main-header .main-header-inner .site-nav-header .request-offer-panel-wrapper { width: 95% !important; }
  .main-header .main-header-inner .nav-burger-panel { top: 95px !important; }
  /* Coloana centru: logo simbol */
  .main-header .main-header-logo { flex: 0 0 auto !important; width: auto !important; }
  .main-header .main-header-logo .main-logo { height: 40px !important; }
  .main-header .main-header-logo .main-logo a { display: block !important; height: 100% !important; }
  .main-header .main-header-logo .main-logo a img { height: 100% !important; object-fit: contain !important; width: auto !important; }
  /* Coloana dreapta: logo text */
  .main-header .main-header-branding { flex: 1 1 auto !important; max-width: 40% !important; padding: 0 5px 0 0 !important; text-align: right !important; }
  .main-header .main-header-branding .menu-branding { gap: 0 !important; display: flex !important; align-items: center !important; justify-content: flex-end !important; }
  .main-header .main-header-branding .menu-branding .language { display: none !important; }
  .main-header .main-header-branding .menu-branding .desktop-branding { display: none !important; }
  .main-header .main-header-branding .menu-branding .mobile-branding { display: block !important; height: 30px !important; width: auto !important; }

  /* Slider */
  .slider-area { height: 420px; margin-top: 95px; }
  .slider-area .slider-content .slider-title { top: 10%; }
  .slider-area .slider-content .slider-title span { font-size: 1rem; }
  .slider-area .slider-content .slider-overlay { top: 85%; }

  /* About section */
  .about-section { padding: 160px 0 0; }
  .about-section .section-big-title { gap: 10px; }
  .about-section .about-section-content { padding: 0 15px 60px; }
  .about-section .about-section-content .about-btn { padding: 0; }
  .about-section .about-section-image .about-section-image-src { height: 350px; }

  /* Gallery section */
  .gallery-section .gallery-section-content { padding: 30px 15px; }
  .gallery-section .gallery-section-content .gallery-btn { padding: 0; }

  /* Team section — fix layout shift: position absolute -> relative pe mobile */
  .team-section { padding: 60px 0 0; }
  .team-section .section-big-title { position: relative !important; top: 0 !important; }
  .team-section .team-section-wrapper { padding: 0 !important; }
  .team-section .team-section-wrapper .team-section-image .team-section-image-src { height: 220px !important; object-fit: contain !important; }

  /* Page template header (pagini interioare) */
  .body-wrapper-page .page-template-header { margin-top: 95px; }

  /* Pagina proiect */
  .page-project .page-template-header { height: 650px; }
  .page-project .apartment-section-one { padding: 50px 0 0; }
  .page-project .apartment-section-one .section-content .section-content-data { padding: 0 0 30px; }
  .page-project .apartment-section-one .section-content .section-content-image img { height: 450px; width: 100%; }
  .page-project .apartment-section-one .section-content-data { padding: 30px 0; }
  .page-project .apartment-section-one .section-content-data-extra .content-data-extra-btn { align-items: flex-end; flex-direction: column; gap: 30px; }
  .page-project .apartment-section-two { padding: 10px 0; }
  .page-project .apartment-section-two .side-content .side-title h2 { font-size: 1rem; }
  .page-project .apartment-section-two .section-content-data .content-data-text { border: none; margin: 10px 0 0; padding: 0; }
  .page-project .apartment-section-two .section-content-data .content-data-text .data-box { padding: 0 15px; }
  .page-project .apartment-section-two .section-content-data .content-data-text .data-box:before { content: none; }
  .page-project .apartment-section-two .after-content { margin: 40px 0; padding: 30px 0 0; }
  .page-project .apartment-section-two .after-content .after-content-box .after-content-title { padding: 30px 0 60px; }
  .page-project .apartment-section-two .after-content .after-content-box .after-content-title span { font-size: 1.8rem; }
  .page-project .apartment-section-two .after-content .data-box-image img { height: auto; width: 100%; }
  .page-project .apartment-section-three .wide-image-section .wide-image-section-wrapper .wide-image-section-image .wide-image-section-image-src { height: 220px; }
  .page-project .apartment-section-three .wide-image-section .wide-image-section-wrapper .wide-image-section-content { padding: 40px 0; }
  .page-project .apartment-section-three .wide-image-section .wide-image-section-wrapper .wide-image-section-content .wide-image-btn { padding: 0; }

  /* Pagini apartamente */
  .page-apartment .apartment-section-three .wide-image-section { height: auto; min-height: 600px; padding-bottom: 60px; }
  .page-apartment .apartment-section-three .wide-image-section .section-big-title { gap: 0; }
  .page-apartment .apartment-section-three .wide-image-section .wide-image-section-wrapper .wide-image-section-image .wide-image-section-image-src { height: 220px; }

  /* Pagina despre noi */
  .page-team .apartment-section-one .side-content .side-data .data-image { padding: 15px 0 30px; }
  .page-team .apartment-section-one .side-content .side-data .data-image img { height: 100px; }
  .page-team .apartment-section-one .section-content .section-content-columns { padding: 30px 0 0; }
  .page-team .apartment-section-one .section-content .section-content-columns .content-data-title { max-width: 100%; padding: 0 0 15px; }
  .page-team .apartment-section-two .section-two-inner .side-content .side-data .data-image img { height: auto; width: 100%; }
  .page-team .apartment-section-two .section-two-inner .section-content-data { padding: 30px 0 0; }
  .page-team .apartment-section-two .section-two-inner .section-content-data .content-data-title h3 { font-size: 3rem; }
  .page-team .apartment-section-three .section-three-inner .section-content-data .content-data-text .data-box { padding: 30px 15px 0; }
  .page-team .apartment-section-three .section-three-inner .section-content-data .content-data-text .data-box:before { width: 0; }
  .page-team .apartment-section-three .section-three-inner .section-content-data .content-data-text .data-box .data-box-title span { height: auto; }
  .page-team .apartment-section-four { padding: 20px 0; }

  /* Pagina contact */
  .page-contact .apartment-section-one .section-content .section-content-data .content-data-message .extra-spacing { padding: 30px 0 0; }
  .page-contact .apartment-section-one .section-content .section-content-form .steps-form-wrapper .steps-form .steps-form-content .step-fields input { font-size: 1.3rem; }
  .page-contact .apartment-section-one .section-content .section-content-form .steps-form-wrapper .steps-form .steps-form-content .step-fields .select2-container .selection .select2-selection--multiple { font-size: 1.3rem; }

  /* Burger contact panel */
  .burger-contact-panel { width: 95%; }
  .burger-contact-panel .side-panel-inner { padding: 15px 20px 0; }
  .burger-contact-panel .side-panel-inner .close-panel { top: 30px; }

  /* Footer */
  .footer-section { gap: 30px; padding: 30px 15px; }

  /* After content */
  .after-content-section .after-content-title span { font-size: 1.4rem !important; }

  /* Wide image section */
  .wide-image-section .wide-image-section-wrapper .wide-image-section-content {
    padding: 30px 20px !important;
  }
  .wide-image-section .wide-image-section-wrapper .wide-image-section-content .wide-image-title span {
    font-size: 1.8rem !important;
  }

  /* FAQ */
  .faq-title { font-size: 2rem !important; }
  .faq-accordion .faq-question { font-size: 0.9rem; padding: 15px 0; padding-right: 30px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr !important; }
  .article-title-body { font-size: 1.5rem !important; }
  .article-hero-img img { height: 220px !important; }

  /* Blog article margin-top */
  .page-article .article-header-section { margin-top: 95px; }

  /* ── TITLURI DECORATIVE MARI la 576px ──
     Homepage: Design, Superb, Echipa
     Pagini interioare: Splendid, Cochet, Superb, Grandios, Exclusiv
     Originalul WordPress lasă cuvintele să iasă puțin din ecran (overflow vizibil pe body)
     Nu folosim overflow:hidden pe container — taie cuvântul
  */

  /* Homepage: Design, Superb, Echipa — valorile exacte din app.min.css la 768px */
  .about-section .section-big-title .big-title,
  .gallery-section .section-big-title .big-title,
  .team-section .section-big-title .big-title {
    font-size: 5rem !important;
    line-height: 1.3 !important;
    white-space: nowrap;
  }
  /* Containerele: overflow hidden — previne scroll hijacking pe mobile */
  .about-section,
  .gallery-section,
  .team-section {
    overflow: hidden !important;
  }

  /* Titluri decorative pagini interioare header (Splendid, Cochet, Superb, Grandios, Exclusiv) */
  .page-project .page-template-header .page-template-header-box .page-template-header-title .header-big-title,
  .page-apartment .page-template-header .page-template-header-box .page-template-header-title .header-big-title {
    font-size: 5rem !important;
    line-height: 1.3 !important;
    white-space: nowrap;
  }
  /* Containerul header pagini interioare: overflow-x hidden, overflow-y visible */
  .page-project .page-template-header,
  .page-apartment .page-template-header {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  /* Galerie */
  .gallery-grid-layout { column-count: 1 !important; }

  /* Side title h2 (Disponibilitate tipuri apartamente) */
  .side-content .side-title h2 {
    font-size: 1rem !important;
    letter-spacing: 0.05em !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  /* Contact form */
  .steps-form .form-group { margin-bottom: 15px; }
  /* Checkbox GDPR: spațiu pentru butonul Contact fix */
  .steps-form .form-check { padding-right: 70px; }
  .steps-form .form-check-label { font-size: 0.85rem; line-height: 1.4; }
  /* Buton TRIMITE ACUM */
  .steps-form .btn-submit-form { width: 100%; max-width: 100%; }
  /* Email contact */
  .contact-info-wrapper .contact-info-item a { word-break: break-all; }
}

/* ── TELEFON FOARTE MIC: max 350px ── */
/* Valorile exacte din app.min.css la 350px */
@media screen and (max-width: 350px) {
  .custom-gallery-wrapper .custom-gallery-content .gallery-grid-layout .gallery-grid-item.gallery-span-big { grid-column-end: span 1; grid-row-end: span 1; }
  .custom-gallery-wrapper .custom-gallery-content .gallery-grid-layout .gallery-grid-item.gallery-span-wide-vertical { grid-column-end: span 1; grid-row-end: span 1; }
  .custom-gallery-wrapper .custom-gallery-content .gallery-grid-layout .gallery-grid-item.gallery-span-wide-horizontal { grid-column-end: span 1; grid-row-end: span 1; }
  .burger-contact-panel { left: 0; }
  .burger-contact-panel .side-panel-inner { padding: 15px 15px 0; }
}

/* ===================================================
   INTERNAL LINKS SECTION — "Descoperă și" / "Discover also"
   =================================================== */
.internal-links-section {
  background: #f7f9f7;
  padding: 60px 0 70px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.internal-links-header {
  margin-bottom: 36px;
}
.internal-links-label {
  font-family: Outfit, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #aaa;
  margin: 0 0 10px;
}
.internal-links-title {
  font-family: Outfit, sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.internal-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,0.08);
}
.internal-links-card {
  background: #fff;
  transition: background 0.25s ease;
  text-decoration: none;
  display: block;
}
.internal-links-card:hover {
  background: #f0f7f2;
  text-decoration: none;
}
.internal-links-card-inner {
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}
.internal-links-card-label {
  font-family: Outfit, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-color, #00603a);
  margin-bottom: 10px;
}
.internal-links-card-title {
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.35;
}
.internal-links-card-desc {
  font-family: Outfit, sans-serif;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}
.internal-links-card-arrow {
  font-family: Outfit, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-color, #00603a);
  display: flex;
  align-items: center;
  gap: 4px;
}
.internal-links-card-arrow i {
  font-size: 1.1rem;
}
@media screen and (max-width: 991px) {
  .internal-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 576px) {
  .internal-links-section {
    padding: 45px 0 50px;
  }
  .internal-links-grid {
    grid-template-columns: 1fr;
    background: none;
    gap: 12px;
  }
  .internal-links-card {
    border: 1px solid rgba(0,0,0,0.08);
  }
  .internal-links-card-inner {
    padding: 24px 22px 20px;
  }
}
