/* Calthera custom sections — Apple-inspired, radius 30px */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --cth-green: #A9D158;
  --cth-green-hover: #97BD49;
  --cth-wood: #A88052;
  --cth-wood-soft: #c5a48e;
  --cth-wood-hover: #8B663D;
  --cth-text: #1D273D;
  --cth-muted: #A5A3A3;
  --cth-bg: #F8F8F8;
  --cth-white: #ffffff;
  --cth-radius: 30px;
  --cth-pad-x: clamp(1.25rem, 4vw, 3rem);
  --cth-max: 1290px;
  --cth-font: "DM Sans", system-ui, sans-serif;
  --cth-display: "Cormorant Garamond", Georgia, serif;
}

.cth-section,
.cth-section * {
  box-sizing: border-box;
}

.cth-section {
  font-family: var(--cth-font);
  color: var(--cth-text);
  background: var(--cth-bg);
  padding: clamp(3rem, 6vw, 5.5rem) var(--cth-pad-x);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.cth-section--white { background: var(--cth-white); }
.cth-section--soft { background: #f3f1ee; }
.cth-section--dark {
  background: linear-gradient(160deg, #1D273D 0%, #2a3548 55%, #3d2e22 100%);
  color: var(--cth-white);
}

.cth-section--dark .cth-title,
.cth-section--dark .cth-brand,
.cth-section--dark h1,
.cth-section--dark h2,
.cth-section--dark h3 {
  color: #ffffff !important;
}

.cth-wrap {
  max-width: var(--cth-max);
  margin: 0 auto;
  width: 100%;
}

.cth-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cth-wood);
  margin: 0 0 0.85rem;
}

.cth-section--dark .cth-eyebrow { color: var(--cth-green); }

.cth-brand {
  font-family: var(--cth-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.cth-title {
  font-family: var(--cth-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.cth-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--cth-muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}

.cth-section--dark .cth-lead { color: rgba(255,255,255,0.72); }

.cth-text {
  font-size: 1.05rem;
  color: #4a5160;
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.cth-section--dark .cth-text { color: rgba(255,255,255,0.78); }

.cth-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.cth-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1.02rem;
  color: #3a4252;
}

.cth-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cth-green);
}

.cth-section--dark .cth-list li { color: rgba(255,255,255,0.85); }

/* Buttons / CTA */
.cth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  background: var(--cth-green);
  color: var(--cth-text) !important;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none !important;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.cth-cta:hover {
  background: var(--cth-green-hover);
  transform: translateY(-1px);
}

.cth-cta--wood {
  background: var(--cth-wood);
  color: #fff !important;
}

.cth-cta--wood:hover { background: var(--cth-wood-hover); }

.cth-cta--ghost {
  background: transparent;
  border: 1.5px solid rgba(29,39,61,0.18);
  color: var(--cth-text) !important;
}

.cth-section--dark .cth-cta--ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff !important;
}

.cth-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cth-phone {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hero */
.cth-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #1D273D;
}

@media (min-width: 900px) {
  .cth-hero,
  .cth-page .cth-hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }
}

.cth-hero__media {
  position: absolute;
  inset: 0;
}

.cth-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cth-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.55) 12%,
      rgba(0, 0, 0, 0.28) 28%,
      rgba(0, 0, 0, 0.18) 42%,
      rgba(29, 39, 61, 0.45) 68%,
      rgba(29, 39, 61, 0.88) 100%
    );
  pointer-events: none;
}

.cth-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--cth-max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--cth-pad-x);
  color: #fff;
}

.cth-hero .cth-brand,
.cth-hero .cth-title { color: #fff; }

.cth-hero .cth-lead { color: rgba(255,255,255,0.82); max-width: 32rem; }

/* Media frame */
.cth-media {
  border-radius: var(--cth-radius);
  overflow: hidden;
  background: #f0eeea;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cth-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cth-media--tall { aspect-ratio: 3 / 4; }
.cth-media--wide { aspect-ratio: 16 / 10; }

/* Split blocks */
.cth-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cth-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .cth-split--reverse { direction: rtl; }
  .cth-split--reverse > * { direction: ltr; }
}

/* Cards */
.cth-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .cth-cards--2 { grid-template-columns: repeat(2, 1fr); }
  .cth-cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.cth-card {
  background: var(--cth-white);
  border-radius: var(--cth-radius);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(29,39,61,0.06);
}

.cth-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cth-wood);
  margin: 0 0 0.5rem;
}

.cth-card__title {
  font-family: var(--cth-display);
  font-size: 1.55rem;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.cth-card__text {
  margin: 0;
  color: #5a6170;
  font-size: 0.98rem;
}

.cth-price {
  font-family: var(--cth-display);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  margin: 0.35rem 0 0.5rem;
  color: var(--cth-text);
}

.cth-price span {
  font-family: var(--cth-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--cth-muted);
  margin-left: 0.35rem;
}

.cth-price-card {
  background: var(--cth-white);
  border-radius: var(--cth-radius);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(29,39,61,0.07);
  box-shadow: 0 18px 50px rgba(29,39,61,0.06);
  max-width: 560px;
}

/* Benefits grid */
.cth-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cth-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
  .cth-benefits { grid-template-columns: repeat(3, 1fr); }
}

.cth-benefit {
  background: var(--cth-white);
  border-radius: var(--cth-radius);
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(29,39,61,0.05);
}

.cth-benefit h3 {
  font-family: var(--cth-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}

.cth-benefit p {
  margin: 0;
  color: #5a6170;
  font-size: 0.95rem;
}

/* Legal document — padding redus ca să nu apară „goluri” între blocuri */
.cth-legal {
  background: var(--cth-white);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cth-legal .cth-wrap { max-width: 860px; }

/* Opțional: pe orice pagină, adaugă clasa asta pe secțiune ca să strângi spațiul */
.cth-section--compact {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cth-section--compact + .cth-section--compact {
  padding-top: 0.5rem;
}

.cth-legal h2 {
  font-family: var(--cth-display);
  font-size: 1.65rem;
  margin: 2rem 0 0.75rem;
}

.cth-legal h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.5rem;
}

.cth-legal p,
.cth-legal li {
  color: #4a5160;
  font-size: 0.98rem;
}

.cth-legal ul { padding-left: 1.2rem; }

.cth-disclaimer {
  background: #f7f3ec;
  border-radius: var(--cth-radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
  color: #5a6170;
  margin: 0 0 1.75rem;
  border: 1px solid rgba(168,128,82,0.18);
}

.cth-placeholder {
  background: #fff8e8;
  border-radius: 8px;
  padding: 0.1em 0.35em;
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  color: #8B663D;
}

.cth-cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}

.cth-cookie-table th,
.cth-cookie-table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(29,39,61,0.08);
  vertical-align: top;
}

.cth-cookie-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cth-wood);
}

@media (max-width: 700px) {
  .cth-cookie-table,
  .cth-cookie-table thead,
  .cth-cookie-table tbody,
  .cth-cookie-table th,
  .cth-cookie-table td,
  .cth-cookie-table tr { display: block; }
  .cth-cookie-table thead { display: none; }
  .cth-cookie-table tr {
    margin-bottom: 1rem;
    border: 1px solid rgba(29,39,61,0.08);
    border-radius: 16px;
    padding: 0.75rem;
  }
  .cth-cookie-table td {
    border: none;
    padding: 0.35rem 0;
  }
  .cth-cookie-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cth-wood);
    margin-bottom: 0.15rem;
  }
}

/* ========== Slider (Apple style) ========== */
.cth-slider {
  position: relative;
  width: 100%;
}

.cth-slider__viewport {
  overflow: hidden;
  border-radius: var(--cth-radius);
}

.cth-slider__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.cth-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0;
}

.cth-slide-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: start;
  width: 100%;
  background: var(--cth-white);
  border-radius: var(--cth-radius);
  overflow: hidden;
  border: 1px solid rgba(29,39,61,0.05);
}

/* Chenar STRICT pătrat — forțează 9:16 / orice raport în 1:1 */
.cth-slide-inner__media {
  margin: 0;
  position: relative;
  width: 100%;
  height: 0 !important;
  padding-bottom: 100% !important; /* 1:1 */
  aspect-ratio: 1 / 1;
  max-height: none;
  min-height: 0 !important;
  overflow: hidden;
  background: #f0eeea;
}

.cth-slide-inner__media img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
}

.cth-slide-inner__body {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  align-self: center;
}

@media (min-width: 900px) {
  .cth-slide-inner {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0 !important;
    align-items: start;
  }
  .cth-slide-inner--flip {
    grid-template-columns: 1fr 1fr;
  }
  .cth-slide-inner--flip .cth-slide-inner__media { order: 2; }
  .cth-slide-inner--flip .cth-slide-inner__body { order: 1; }
  .cth-slide-inner__media {
    width: 100%;
    height: 0 !important;
    padding-bottom: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0;
    align-self: start;
  }
  .cth-slide-inner__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    align-self: stretch;
  }
}

.cth-slider__slide {
  display: block;
  height: auto !important;
}

/* Nu mai forțăm înălțime egală pe slide — cauza spațiului uriaș */
.cth-slider.is-equalized .cth-slider__slide,
.cth-slider.is-equalized .cth-slide-inner {
  height: auto !important;
}

/* Pagini combinate */
.cth-page .cth-section:not(.cth-hero) {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cth-page .cth-hero {
  padding: 0;
}

.cth-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.cth-slider__arrow {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(29,39,61,0.06);
  color: var(--cth-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
  padding: 0;
}

.cth-slider__arrow:hover {
  opacity: 1;
  background: rgba(29,39,61,0.1);
}

.cth-slider__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Apple-style dots pill */
.cth-slider__dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(229, 229, 231, 0.95);
  backdrop-filter: blur(8px);
}

.cth-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #6e6e73;
  opacity: 0.45;
  cursor: pointer;
  transition: width 0.3s ease, opacity 0.25s ease, background 0.25s ease;
}

.cth-slider__dot.is-active {
  width: 18px;
  opacity: 1;
  background: #1d1d1f;
}

.cth-section--dark .cth-slide-inner {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  color: #fff;
}

.cth-section--dark .cth-slide-inner__body .cth-text,
.cth-section--dark .cth-slide-inner__body .cth-lead {
  color: rgba(255,255,255,0.78);
}

.cth-section--dark .cth-slider__arrow {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.cth-section--dark .cth-slider__dots {
  background: rgba(255,255,255,0.18);
}

.cth-section--dark .cth-slider__dot {
  background: #fff;
  opacity: 0.4;
}

.cth-section--dark .cth-slider__dot.is-active {
  opacity: 1;
  background: #fff;
}

.cth-center { text-align: center; }
.cth-center .cth-lead,
.cth-center .cth-text { margin-left: auto; margin-right: auto; }
.cth-center .cth-cta-row { justify-content: center; }

.cth-mt { margin-top: 1.5rem; }
.cth-mb { margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .cth-slider__track { transition: none; }
}
