/*
Theme Name: Robert Neacsu Theme
Theme URI: https://robertneacsu.ro
Author: Robert Neacsu
Description: Tema custom minimalista pentru brand personal.
Version: 1.0.0
Text Domain: robertneacsu-theme
*/

:root {
  --rn-bg: #dfdfdf;
  --rn-deep: #064830;
  --rn-ink: #232323;
  --rn-max: 1200px;
  --rn-space-xl: clamp(3rem, 5vw, 5.8rem);
  --rn-space-lg: clamp(2.5rem, 5vw, 5rem);
  --rn-space-md: clamp(1.25rem, 2vw, 2rem);
  --rn-space-sm: 0.75rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--rn-bg);
  color: var(--rn-ink);
  line-height: 1.6;
}

html.portfolio-lightbox-open,
html.portfolio-lightbox-open body {
  overflow: hidden;
}

h1, h2, h3 {
  font-family: 'Bodoni Moda', serif;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.rn-container {
  width: min(var(--rn-max), calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--rn-bg), white 30%);
  border-bottom: 1px solid rgba(35, 35, 35, 0.12);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(35, 35, 35, 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(35, 35, 35, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--rn-ink);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--rn-deep);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(35, 35, 35, 0.25);
}

.section {
  padding: var(--rn-space-xl) 0;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  color: rgba(35, 35, 35, 0.65);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.card {
  border: 1px solid rgba(35, 35, 35, 0.12);
  padding: 1.2rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--rn-bg), white 25%);
}

.lead-magnet-cover {
  width: 100%;
  max-width: 300px;
  border-radius: 0.9rem;
  display: block;
  border: 1px solid rgba(35, 35, 35, 0.15);
  justify-self: center;
}

.lead-magnet-card {
  display: grid;
  grid-template-columns: minmax(230px, 300px) 1fr;
  gap: 1.3rem;
  align-items: start;
  padding: 1.8rem;
}

.lead-magnet-card__content h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.lead-magnet-card__content p {
  margin-bottom: 1rem;
}

.lead-form label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; }
.lead-form input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(35, 35, 35, 0.2);
  margin-bottom: 0.8rem;
  font: inherit;
}

.lead-form__note {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(35, 35, 35, 0.68);
}

.rn-notice {
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.rn-notice--ok {
  background: rgba(6, 72, 48, 0.12);
  border: 1px solid rgba(6, 72, 48, 0.35);
}

.rn-notice--error {
  background: rgba(35, 35, 35, 0.08);
  border: 1px solid rgba(35, 35, 35, 0.28);
}

.rn-student-login__wrap {
  max-width: 680px;
}

.rn-student-login__card {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.rn-student-login-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.rn-student-login-form label {
  font-weight: 700;
}

.rn-student-login-form input[type="text"],
.rn-student-login-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(35, 35, 35, 0.2);
  border-radius: 0.9rem;
  background: #fff;
  font: inherit;
  padding: 0.9rem 1rem;
}

.rn-checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.rn-checkbox input {
  width: 1rem;
  height: 1rem;
}

.rn-form-message {
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  font-weight: 700;
}

.rn-form-message--error {
  border: 1px solid rgba(150, 40, 40, 0.3);
  background: rgba(150, 40, 40, 0.08);
  color: #842020;
}

.rn-student-login__help {
  margin-top: 1.3rem;
  color: rgba(35, 35, 35, 0.68);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rn-space-md);
}

.section-intro {
  max-width: 70ch;
  margin-bottom: 1.2rem;
}

.experience-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rn-space-md);
  margin-bottom: 1.2rem;
}

.experience-stats h3 {
  margin-bottom: 0.3rem;
}

.video-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 42%);
  gap: var(--rn-space-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0 1rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.2rem;
  -webkit-overflow-scrolling: touch;
}

.video-grid::-webkit-scrollbar {
  height: 0.55rem;
}

.video-grid::-webkit-scrollbar-track {
  background: rgba(35, 35, 35, 0.08);
  border-radius: 999px;
}

.video-grid::-webkit-scrollbar-thumb {
  background: rgba(6, 72, 48, 0.55);
  border-radius: 999px;
}

.video-card {
  scroll-snap-align: start;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

.portfolio-grid {
  column-count: 3;
  column-gap: var(--rn-space-md);
}

.portfolio-card {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--rn-space-md);
}

.portfolio-lightbox-trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
}

.portfolio-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.8rem;
  background: #111;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.portfolio-lightbox[hidden] {
  display: none;
}

.portfolio-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 15, 15, 0.78);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.portfolio-lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1120px, 96vw);
  max-height: 90svh;
  display: grid;
  place-items: center;
}

.portfolio-lightbox__close {
  position: absolute;
  top: -0.9rem;
  right: -0.9rem;
  z-index: 2;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: #fff;
  color: var(--rn-ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.portfolio-lightbox__media img,
.portfolio-lightbox__media video {
  display: block;
  max-width: 96vw;
  max-height: 88svh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  background: #111;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(35, 35, 35, 0.2);
  background: linear-gradient(135deg, #f6f6f6, #e4e4e4);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  font-weight: 700;
}

.portfolio-card h3 a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brands-strip {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.9rem;
  padding-bottom: 0.25rem;
}

.brand-logo {
  background: #fff;
  border: 1px solid rgba(35, 35, 35, 0.15);
  border-radius: 0.8rem;
  min-height: 78px;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem;
  flex: 0 0 auto;
}

.brand-logo img {
  max-width: 150px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.9;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rn-space-lg);
  align-items: center;
}

.course-cta {
  position: sticky;
  top: 6rem;
  align-self: start;
  background: var(--rn-deep);
  color: #fff;
  border-radius: 1.4rem;
  padding: var(--rn-space-lg);
}

.course-duration {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.card .course-duration {
  border-color: var(--rn-border);
  background: rgba(255, 255, 255, 0.45);
}

.course-vsl {
  width: 100%;
  display: block;
  border-radius: 1rem;
  background: #111;
  margin-bottom: 1.1rem;
}

.course-tabs {
  display: grid;
  gap: 1rem;
}

.course-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-tab {
  border: 1px solid rgba(35, 35, 35, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--rn-ink);
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.course-tab.is-active {
  background: var(--rn-deep);
  border-color: var(--rn-deep);
  color: #fff;
}

.course-tab-panel[hidden] {
  display: none;
}

.course-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--rn-space-md);
  margin-top: var(--rn-space-md);
}

.course-chapters-card {
  grid-column: 1 / -1;
}

.course-list {
  margin: 0;
  padding-left: 1.15rem;
}

.course-list li + li {
  margin-top: 0.45rem;
}

.course-chapters {
  display: grid;
  gap: 0.75rem;
}

.course-chapter {
  border: 1px solid rgba(35, 35, 35, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.course-chapter summary {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.course-chapter summary::-webkit-details-marker {
  display: none;
}

.course-chapter small {
  opacity: 0.7;
  white-space: nowrap;
}

.course-chapter summary::after {
  content: "+";
  width: 1.8rem;
  height: 1.8rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rn-deep);
  color: #fff;
  font-weight: 800;
}

.course-chapter[open] summary::after {
  content: "-";
}

.course-lessons {
  margin: 0;
  padding: 0 0.9rem 0.9rem 2rem;
  color: rgba(35, 35, 35, 0.78);
}

.course-lessons li + li {
  margin-top: 0.35rem;
}

.woocommerce-page-main .product,
.woocommerce-page-main .woocommerce-cart-form,
.woocommerce-page-main .cart_totals,
.woocommerce-page-main .woocommerce-checkout,
.woocommerce-page-main .woocommerce-notices-wrapper {
  background: color-mix(in srgb, var(--rn-bg), white 25%);
  border: 1px solid rgba(35, 35, 35, 0.12);
  border-radius: 1rem;
  padding: 1.2rem;
}

.woocommerce-page-main button.button,
.woocommerce-page-main a.button,
.woocommerce-page-main .single_add_to_cart_button {
  border-radius: 999px;
  background: var(--rn-deep) !important;
  color: #fff !important;
  padding: 0.8rem 1.2rem !important;
}

.rn-product-course-details {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rn-space-md);
  margin-top: var(--rn-space-md);
}

.rn-product-course-details .course-chapters-card {
  grid-column: 1 / -1;
}

.site-footer {
  border-top: 1px solid rgba(35, 35, 35, 0.12);
  padding: 2rem 0 4rem;
  font-size: 0.9rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(35, 35, 35, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--rn-ink);
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.anpc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.anpc-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(35, 35, 35, 0.22);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .hero__grid, .split { grid-template-columns: 1fr; }
  .course-cta { position: static; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .experience-stats,
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-auto-columns: minmax(280px, 58%); }
  .portfolio-grid { column-count: 2; }
  .course-details,
  .rn-product-course-details { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .rn-container { width: min(var(--rn-max), calc(100% - 1.5rem)); }
  .site-header__inner { position: relative; gap: 0.75rem; }
  .brand-avatar { width: 2.35rem; height: 2.35rem; }
  .brand-mark { font-size: 1rem; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .btn-primary { display: none; }
  .main-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    display: none;
    padding: 0.85rem;
    border: 1px solid rgba(35, 35, 35, 0.14);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--rn-bg), white 40%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  }
  .site-header.menu-open .main-nav { display: block; }
  .main-nav ul {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
  }
  .main-nav a {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
  }
  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.55);
  }
  .grid-3,
  .experience-stats,
  .site-footer__grid { grid-template-columns: 1fr; }
  .video-grid { grid-auto-columns: minmax(260px, 86%); }
  .portfolio-grid { column-count: 2; }
  .lead-magnet-card { grid-template-columns: 1fr; }
}

.rn-links-body {
  min-height: 100svh;
  background: radial-gradient(circle at 15% 20%, #f3f3f3 0%, var(--rn-bg) 45%, #d7d7d7 100%);
}

.rn-links-wrap {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.rn-links-card {
  width: min(680px, 100%);
  border: 1px solid rgba(35, 35, 35, 0.14);
  border-radius: 1.4rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36)),
    color-mix(in srgb, var(--rn-bg), white 26%);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
}

.rn-links-card h1 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.rn-links-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.rn-links-sub {
  margin-bottom: 1.2rem;
  max-width: 52ch;
}

.rn-links-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.rn-link-btn {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(35, 35, 35, 0.24);
  background: linear-gradient(180deg, #ffffff, #f2f2f2);
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rn-link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--rn-deep);
  box-shadow: 0 10px 24px rgba(6, 72, 48, 0.1);
}

.rn-link-btn--email {
  background: color-mix(in srgb, var(--rn-deep), white 85%);
}

.rn-socials {
  display: flex;
  gap: 0.7rem;
}

.rn-socials a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 35, 0.22);
  background: #fff;
}

.rn-socials svg {
  width: 20px;
  height: 20px;
  fill: var(--rn-ink);
}

.rn-banner-zone {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(35, 35, 35, 0.12);
}

.rn-banner-zone__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.rn-banner-zone__head h2 {
  font-size: 1.2rem;
  margin: 0;
}

.rn-banner-nav {
  display: flex;
  gap: 0.4rem;
}

.rn-banner-prev,
.rn-banner-next {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(35, 35, 35, 0.22);
  background: #fff;
  font: inherit;
  font-size: 1.15rem;
  cursor: pointer;
}

.rn-banner-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.rn-banner-item {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(35, 35, 35, 0.16);
  min-height: 170px;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #ececec, #d9d9d9);
}

.rn-banner-item img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  display: block;
}

.rn-banner-placeholder {
  min-height: 170px;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  text-align: center;
  padding: 1rem;
}

.rn-banner-placeholder span {
  font-family: 'Bodoni Moda', serif;
  font-size: 1.15rem;
}

.rn-banner-placeholder small {
  opacity: 0.75;
}

@media (max-width: 700px) {
  .rn-banner-track {
    grid-auto-columns: minmax(90%, 1fr);
  }
}
