/* ================================================================
   MODAL (wrapper general, comun tuturor secțiunilor)
   ================================================================ */

.modal {
  border: none;
  margin: 0;
  padding: 56px 24px;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: rgba(0, 0, 0, .90);
  backdrop-filter: blur(2px);
}

.modal-inner {
  position: relative;
  width: min(920px, 94vw);
  margin: 0 auto;
  background-color: var(--color-background-light);
  box-shadow: 0 30px 70px rgba(20, 14, 8, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.modal[open] .modal-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .modal[open] .modal-inner {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@media (max-width: 1024px) {
  .modal {
    padding: 0;
    margin: 0;
  }

  .modal-inner {
    margin: 0;
    width: 100%;
  }

  .modal::backdrop {
    display: none;
  }

  .modal-close {
    color: var(--color-nonochrome);
  }

  .modal-close:hover {
    color: black;
  }

}


/* ================================================================
   HERO AUDIT 360
   ================================================================ */

.modal-hero {
  background-image: url("/assets/images/img.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(245, 239, 234, 1) 0%,
      rgba(245, 239, 234, 0.6) 40%,
      rgba(245, 239, 234, 0) 100%);
  z-index: 1;
}

.modal-hero-text {
  padding: 28px 32px 8px;
  z-index: 2;
}

.modal-hero-title {
  font-family: var(--font-serif);
  font-size: var(--title-h1);
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 6px;
}

.modal-hero-accent {
  color: var(--color-accent);
}

.modal-hero-lede {
  font-family: var(--font-serif);
  font-size: var(--title-h2);
  font-weight: 400;
  color: var(--color-accent);
  font-style: italic;
  margin: 0 0 14px;
}

.modal-hero-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin-top: 20px;
  margin-bottom: 20px;
}

.modal-hero-intro {
  font-family: var(--font-sans);
  font-size: var(--text-normal);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.5;
  max-width: 560px;
}


/* ================================================================
   WRAPPER GENERAL SECȚIUNI
   ================================================================ */

.audit360-wrapper {
  margin: 0;
}


/* ================================================================
   SECȚIUNEA 1 — DE CE UN AUDIT?
   ================================================================ */

.audit360-s1 {
  padding: 30px 0;
  box-sizing: border-box;
  background-color: var(--color-background-light);
}

.audit360-s1-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.audit360-s1-main {
  margin: 0 auto;
  text-align: center;
  border-bottom: 0.5px solid var(--color-divider);
}

.audit360-s1-title {
  font-family: var(--font-serif);
  font-size: var(--title-h4);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.audit360-s1-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin: 20px auto;
}

.audit360-s1-lead {
  font-family: var(--font-serif);
  font-size: var(--title-h4);
  color: var(--color-accent);
  font-style: italic;
  font-weight: 300;
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.5;
  max-width: 550px;
  text-align: left;
  margin: auto;
  margin-bottom: 30px;
}

.audit360-s1-desc {
  font-family: var(--font-sans);
  font-size: var(--text-normal);
  color: var(--color-text);
  font-weight: 300;
  margin-bottom: 15px;
  line-height: 1.5;
  max-width: 550px;
  text-align: left;
  margin: auto;
  margin-bottom: 50px;
}

/* Blocul de jos: cele 3 coloane */
.audit360-s1-secondary {
  padding: 0 30px;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.audit360-s1-feature {
  border-left: 1px solid var(--color-divider);
  padding-left: 25px;
  padding-right: 15px;
}

.audit360-s1-feature:first-child {
  border-left: none;
}

.audit360-s1-feature-title {
  font-family: var(--font-sans);
  font-size: var(--label-small);
  color: var(--color-accent);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 20px;
}

.audit360-s1-feature-text {
  font-family: var(--font-sans);
  font-size: var(--text);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.6;
}

/* --- Responsive Secțiunea 1 --- */
@media (max-width: 1024px) {
  .audit360-s1-secondary {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }
}

@media (max-width: 768px) {
  .audit360-s1 {
    padding: 30px 30px;
  }
}

@media (max-width: 600px) {
  .audit360-s1-secondary {
    grid-template-columns: 1fr;
  }

  .audit360-s1-feature {
    border-left: none;
    border-top: 1px solid #dcd8cf;
    padding-left: 0;
    padding-top: 20px;
  }

  .audit360-s1-feature:first-child {
    border-top: none;
    padding-top: 0;
  }
}

/* ================================================================
   SECȚIUNEA 2 — CE ANALIZĂM 
   ================================================================ */

.audit360-s2 {
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: var(--color-background-soft);
  border-top: 0.5px solid var(--color-divider);
}

.audit360-s2-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.audit360-s2-title {
  font-family: var(--font-serif);
  font-size: var(--title-h4);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 25px;
  text-transform: uppercase;
  text-align: center;
}

.audit360-s2-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin: 0 auto;
}

.audit360-s2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 50px;
}

.audit360-s2-card {
  text-align: center;
  padding: 40px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
}

.audit360-s2-card::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.5px;
  height: 60%;
  background-color: var(--color-divider);
}

.audit360-s2-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 0.5px;
  background-color: var(--color-divider);
}

.audit360-s2-card-title {
  font-family: var(--font-sans);
  font-size: var(--label-small);
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* elimină linia verticală de pe ultima coloană (4, 8) */
.audit360-s2-card:nth-child(4n)::after {
  display: none;
}

/* elimină linia orizontală de pe ultimul rând (5,6,7,8) */
.audit360-s2-card:nth-child(n+5)::before {
  display: none;
}

.audit360-s2-card-text {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}

/* --- Responsive Secțiunea 2 --- */

/* Tabletă: grid 2 coloane */
@media (max-width: 1024px) {
  .audit360-s2-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* pe desktop eram pe 4 coloane; pe 2 coloane refacem regulile de la zero */
  .audit360-s2-card::after {
    display: block;
  }

  .audit360-s2-card::before {
    display: block;
  }

  /* pe 2 coloane, elementele pare (2,4,6,8) sunt ultimele din dreapta */
  .audit360-s2-card:nth-child(2n)::after {
    display: none;
  }

  /* pe 2 coloane, ultimele 2 elemente (7,8) sunt pe ultimul rând */
  .audit360-s2-card:nth-child(n+7)::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .audit360-s2 {
    padding: 50px 20px;
  }
}

/* Telefon: grid 1 coloană */
@media (max-width: 600px) {
  .audit360-s2-grid {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .audit360-s2-card {
    padding: 30px 10px;
  }

  .audit360-s2-card::after {
    display: none;
  }

  .audit360-s2-card:nth-child(n+5)::before {
    display: block;
  }

  .audit360-s2-card::before {
    width: 100%;
    left: 0;
    transform: none;
  }

  .audit360-s2-card:last-child::before {
    display: none;
  }

  .audit360-s2-card-text {
    max-width: 200px;
    margin: 0 auto;
  }
}


/* ================================================================
   SECȚIUNEA 3 — METODOLOGIA NOASTRĂ & CE PRIMEȘTI
   ================================================================ */

.audit360-s3 {
  padding: 0;
  box-sizing: border-box;
  background-color: var(--color-background-soft);
  border-top: 0.5px solid var(--color-divider);
  border-bottom: 0.5px solid var(--color-divider);
}

.audit360-s3-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

/* Coloana stânga — fundal cu imagine */
.audit360-s3-left {
  background: linear-gradient(to left,
      rgba(245, 239, 234, 1) 40%,
      rgba(245, 239, 234, 0.6) 80%,
      rgba(245, 239, 234, 0) 100%),
    url('/assets/images/img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

.audit360-s3-left-inner {
  padding: 40px;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}

/* Coloana dreapta */
.audit360-s3-right {
  background-color: var(--color-background-light);
  padding: 20px;
}

.audit360-s3-title {
  font-family: var(--font-serif);
  font-size: var(--title-h5);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 25px;
  text-transform: uppercase;
}

.audit360-s3-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin-bottom: 25px;
}

.audit360-s3-desc {
  font-family: var(--font-sans);
  font-size: var(--text-medium);
  color: var(--color-text);
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.5;
}

.audit360-s3-title-right {
  font-family: var(--font-serif);
  font-size: var(--title-h5);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: 17px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.audit360-s3-list {
  font-family: var(--font-sans);
  font-size: var(--text);
  font-weight: 500;
  color: var(--color-text);
  list-style: none;
  padding: 0;
  margin: 0;
}

.audit360-s3-list-item {
  padding: 12px 0 12px 20px;
  border-bottom: 0.5px solid var(--color-divider);
  color: var(--color-text);
  position: relative;
}

.audit360-s3-list-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1em;
}

.audit360-s3-list-item:last-child {
  border-bottom: none;
}

/* --- Responsive Secțiunea 3 --- */
@media (max-width: 768px) {

  .audit360-s3-container {
    grid-template-columns: 1fr;
  }

  .audit360-s3-left {
    background: linear-gradient(to top,
        rgba(245, 239, 234, 1) 40%,
        rgba(245, 239, 234, 0.6) 80%,
        rgba(245, 239, 234, 0) 100%),
      url('/assets/images/img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
  }

  .audit360-s3-right {
    padding: 40px;
  }
}


/* ================================================================
   SECȚIUNEA 4 — PENTRU CINE ESTE POTRIVIT
   ================================================================ */

.audit360-s4 {
  padding: 30px 20px;
  box-sizing: border-box;
  background-color: var(--color-background-soft);
  border-bottom: 0.5px solid var(--color-divider);
}

.audit360-s4-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;

}

.audit360-s4-title {
  font-family: var(--font-serif);
  font-size: var(--title-h4);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 25px;
  text-transform: uppercase;
  text-align: center;
}

.audit360-s4-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin-bottom: 25px;
  margin: 0 auto;
}

.audit360-s4-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 50px;
  margin-bottom: 30px;
}

.audit360-s4-box {
  font-family: var(--font-sans);
  font-size: var(--label-small);
  padding: 10px 15px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

/* divizorul vertical scurt dintre casete */
.audit360-s4-box::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 40px;
  width: 0.5px;
  background-color: var(--color-divider);
}

.audit360-s4-box:last-child::after {
  display: none;
}

/* --- Responsive Secțiunea 4 --- */
@media (max-width: 1024px) {
  .audit360-s4-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* resetăm regula globală last-child, aici nu se aplică */
  .audit360-s4-box:last-child::after {
    display: block;
  }

  /* ascundem linia pe ultimul din fiecare rând (3, 6, 9...) */
  .audit360-s4-box:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .audit360-s4 {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .audit360-s4-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   SECȚIUNEA 5 — REZULTATUL 
   ================================================================ */

.audit360-s5 {
  padding: 0;
  box-sizing: border-box;
}

.audit360-s5-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background-color: #f9f4f0;
  align-items: stretch;
}

.audit360-s5-content {
  padding: 40px 40px 40px 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.audit360-s5-title {
  font-family: var(--font-serif);
  font-size: var(--title-h4);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-transform: uppercase;
}

.audit360-s5-divider {
  display: block;
  width: 80px;
  height: 0.5px;
  background: var(--color-accent);
  margin-top: 20px;
  margin-bottom: 22px;
}

.audit360-s5-desc {
  font-family: var(--font-sans);
  font-size: var(--text-medium);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.5;
}

.audit360-s5-emphasis {
  font-family: var(--font-serif);
  font-size: var(--title-h3);
  color: var(--color-accent);
  font-weight: 400;
  margin: 15px 0;
  line-height: 1.4;
}

.audit360-s5-image {
  background: linear-gradient(to right,
      #f9f4f0 0%,
      rgba(249, 244, 240, 0.2) 40%,
      rgba(249, 244, 240, 0) 100%),
    url('/assets/images/img.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
}

/* --- Responsive Secțiunea 5 --- */
@media (max-width: 768px) {
  .audit360-s5-container {
    grid-template-columns: 1fr;
  }

  .audit360-s5-content {
    padding: 30px 20px 20px 20px;
  }

  .audit360-s5-image {
    height: 220px;
    min-height: auto;
    background: linear-gradient(to bottom,
        #f9f4f0 0%,
        rgba(249, 244, 240, 0.2) 40%,
        rgba(249, 244, 240, 0) 100%),
      url('/assets/images/img.jpg');
    background-size: cover;
    background-position: center;
  }
}


/* ================================================================
   SECȚIUNEA 6 — CTA BANNER (maro)
   ================================================================ */

.audit360-s6 {
  background-color: var(--color-accent);
  color: #ffffff;
  padding: 30px 30px;
}

.audit360-s6-container {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audit360-s6-text {
  /* wrapper text, fără stiluri proprii momentan */
}

.audit360-s6-question {
  font-family: var(--font-sans);
  font-size: var(--text-normal);
  color: white;
  font-weight: 400;
  margin-bottom: 5px;
}

.audit360-s6-subtext {
  font-family: var(--font-sans);
  font-size: var(--text-medium);
  font-weight: 300;
  color: white;
  font-size: 13px;
}

.audit360-s6-btn {
  font-family: var(--font-sans);
  font-size: var(--text);
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 15px 30px;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.audit360-s6-btn:hover {
  background-color: #ffffff;
  color: var(--color-accent);
}

.audit360-s6-btn .audit360-s6-btn-arrow{
    flex-shrink: 0;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.audit360-s6-btn:hover .audit360-s6-btn-arrow {
    transform: translateX(4px);
}

/* --- Responsive Secțiunea 6 --- */
@media (max-width: 768px) {
  .audit360-s6-container {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
}