/*
Theme Name: Chico Moldova
Theme URI: https://chico.md/
Author: Chico Moldova
Author URI: https://chico.md/
Description: Tema WordPress custom, pixel-perfect, construită from scratch pentru Chico Moldova.
Version: 1.0.0
Text Domain: chico-moldova
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --primary:        #162c4c;
  --primary-hover:  #0f1f38;
  --accent-blue:    #58a9d0;
  --accent-green:   #e1eee4;
  --bg-main:        #fafafa;
  --bg-white:       #ffffff;
  --text:           #454545;
  --muted:          #686b6f;
  --border:         #f2f2f2;
  --border-mid:     #dfe1e3;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  --container: min(1084px, 92vw);
  --section-pad: clamp(40px, 6vw, 80px);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-main);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad);
}

.section--white  { background: var(--bg-white); }
.section--fafafa { background: var(--bg-main); }

.section-title-center {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle-center {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  padding-inline: 24px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-category:hover { background: var(--primary-hover); }

/* ============================================================
   PRODUCT CATEGORY PAGE
   ============================================================ */
.product-category-page {
  background: linear-gradient(180deg, #FFF 0%, #FAFAFA 17.87%);
}

.product-category-page .top-header {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.category-main {
  background: transparent;
}

.category-toolbar {
  border-bottom: 1px solid #c6c7ce;
}

.category-toolbar__inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.breadcrumb a,
.breadcrumb span {
  color: #a2a2a2;
}

.breadcrumb span:last-child {
  color: #5682fa;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.04em;
  padding: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.sort-control img {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg) scaleY(-1);
}

.sort-control:hover,
.sort-control:focus,
.sort-control:active {
  color: var(--primary);
  background: transparent;
  outline: none;
}

.sort-control-wrap {
  position: relative;
}

.sort-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 226px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--border-mid);
  background: var(--bg-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
}

.sort-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--primary);
  text-align: left;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.04em;
}

.sort-option:hover,
.sort-option:focus,
.sort-option:active,
.sort-option.is-active {
  background: transparent;
  color: var(--primary);
  outline: none;
}

.category-title-wrap {
  padding-top: 44px;
}

.category-title-wrap h1 {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: var(--primary);
  text-transform: uppercase;
}

.product-section {
  margin-top: 28px;
}

.product-section--second {
  margin-top: 60px;
}

.product-section__heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 31px;
}

.product-section__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-section__title-row h2 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.product-section__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.product-section__count,
.product-section__heading p {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 348px));
  gap: 20px;
  justify-content: space-between;
}

.product-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.product-card__media {
  height: 288px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__media img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card__body {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 36px;
  min-height: 72px;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.product-card__description {
  position: relative;
  min-height: 76px;
  background: transparent;
}

.product-card p {
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.product-card__excerpt,
.product-card__full {
  transition: opacity 0.3s ease;
}

.product-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.product-card__full {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.product-card__full p {
  margin: 0;
}

.product-card__full p + p {
  margin-top: 1em;
}

.category-card p + p {
  margin-top: 1em;
}

.product-card:hover .product-card__media img {
  transform: scale(0.96);
}

.product-card:hover .product-card__excerpt {
  display: none;
  opacity: 0;
}

.product-card:hover .product-card__full {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  width: 100%;
  margin-top: auto;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  transition: background 0.2s;
}

.product-card__button:hover {
  background: var(--primary-hover);
}

.category-cta {
  margin-top: 60px;
}

.product-category-page .category-cta .cta-inner {
  align-content: start;
  row-gap: 20px;
  padding-top: 102px;
  padding-bottom: 0;
}

.product-category-page .category-cta .cta-inner h2 {
  max-width: 482px;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 45px;
}

.product-category-page .category-cta .cta-subtitle {
  max-width: 482px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: -0.02em;
  opacity: 1;
}

.product-category-page .category-cta .btn-cta {
  height: 42px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 14px;
}

/* ============================================================
   HEADER
   ============================================================ */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 42px;
  align-items: center;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.04em;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.main-nav a:hover { opacity: 0.65; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero-banner {
  min-height: clamp(360px, 50vw, 560px);
  display: flex;
  align-items: center;
  background: url("assets/images/freepik__enhance__99474 1.jpg") center / cover no-repeat;
}

.hero-content {
  display: grid;
  gap: 16px;
  color: #fff;
  padding-block: 48px;
  justify-items: start;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.hero-content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  max-width: 460px;
}

.hero-content p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 360px;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.story-image-wrap {
  position: relative;
  align-self: stretch;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: #f5f5f5;
}

.story-badge {
  position: absolute;
  bottom: 24px;
  right: 0;
  background: var(--accent-blue);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 130px;
  transform: translateX(0);
}

.story-badge__year {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.story-badge__sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Tag badge */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 5px 14px 5px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.tag-badge svg { flex-shrink: 0; }

.story-text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.story-text p {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.story-text p strong {
  font-weight: 700;
}

.story-text p:last-child { margin-bottom: 0; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.categories-slider__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.categories-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.categories-slider__track .category-card {
  flex: 0 0 calc(100% / 3);
  padding-inline: 10px;
}

.categories-slider__nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.categories-slider__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.categories-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.categories-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #cdd6dd;
  padding: 0;
  cursor: pointer;
}

.categories-slider__dot.is-active {
  background: var(--primary);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.category-media {
  width: 240px;
  height: 240px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.category-card p {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  letter-spacing: -0.03em;
  max-width: 300px;
  flex: 1;
}

/* ============================================================
   CERCETARE / INOVAȚIE / RESPONSABILITATE
   ============================================================ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(24px, 3vw, 36px);
}

.research-card {
  position: relative;
  height: clamp(300px, 32vw, 380px);
  border: 1px solid var(--border);
  overflow: hidden;
}

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

.research-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(8, 23, 45, 0.72) 40%, rgba(8, 23, 45, 0.9) 100%);
}

.research-card__title {
  font-family: var(--font-head);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.research-card__text {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #fff;
  max-height: 0;
  opacity: 0;
  transform: translateY(14px);
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

.research-card__title:hover + .research-card__text,
.research-card__title:focus + .research-card__text,
.research-card:hover .research-card__text,
.research-card:focus-within .research-card__text {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   VALUES
   ============================================================ */
.values-section .section-title-center { margin-bottom: 10px; }

.values-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
}

.value-card {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 30vw, 360px);
  border: 1px solid var(--border);
}

.value-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
  transform: scale(1);
  transition: transform 0.5s ease;
}

.value-card:hover .value-card__bg { transform: scale(1.04); }

/* gradient overlay */
.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.value-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.value-card__content h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0;
  cursor: pointer;
}

.value-card__content p {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
  opacity: 0;
  max-height: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
}

.value-card__content h3:hover + p,
.value-card__content h3:focus + p,
.value-card:hover .value-card__content p,
.value-card:focus-within .value-card__content p {
  opacity: 0.95;
  max-height: 160px;
  transform: translateY(0);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding-top: var(--section-pad);
  padding-bottom: 0;
  background: var(--bg-main);
}

.testimonials-header {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.testimonials-slider {
  position: relative;
  width: 100%;
  padding-inline: 56px;
}

.testimonials-slider__viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
}

.testimonials-slider__track {
  display: flex;
  transition: transform 0.35s ease;
  align-items: stretch;
}

.testimonials-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.testimonials-slider__nav {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.testimonials-slider__nav--prev {
  left: 0;
}

.testimonials-slider__nav--next {
  right: 0;
}

.testimonials-slider__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.testimonials-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonials-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #cdd6dd;
  padding: 0;
  cursor: pointer;
}

.testimonials-slider__dot.is-active {
  background: var(--primary);
}

/* Testimonial card */
.tcard {
  background: var(--bg-white);
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.tcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tcard__avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tcard__name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.04em;
  display: block;
  line-height: 1.3;
}

.tcard__date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: -0.03em;
  display: block;
}

.tcard__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.04em;
  white-space: normal;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--bg-main);
  padding-block: 30px;
}

.cta-inner {
  aspect-ratio: 1084 / 424;
  min-height: 0;
  display: grid;
  grid-template-columns: 50% 1fr;
  align-content: center;
  row-gap: 14px;
  padding-top: 48px;
  padding-bottom: 10px;
  background: url("assets/images/Group 1000027287 (1).jpg") center / contain no-repeat;
  color: #fff;
}

.cta-inner > * {
  grid-column: 2;
  justify-self: start;
  margin-left: 24px;
}

.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  max-width: 380px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 13px;
  line-height: 1.35;
  max-width: 400px;
  opacity: 0.88;
}

.btn-cta {
  background: #273b82;
  max-width: 100%;
  padding: 9px 18px;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  white-space: normal;
}

.btn-cta:hover {
  background: #1e2e6a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding-block: 60px;
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-logo {
  display: inline-flex;
  width: 74.487px;
  height: 42px;
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #c9ccd0;
  border-radius: 3px;
  opacity: 1;
  transition: opacity 0.15s;
}

.social-link:nth-child(2) {
  border-radius: 4.5px;
}

.social-link img {
  display: block;
  width: 10px;
  height: 10px;
}

.social-link--facebook img {
  width: 4.784px;
  height: 9px;
}

.social-link:nth-child(3) img {
  width: 8.992px;
  height: 9px;
}

.social-link:nth-child(4) img {
  width: 10.286px;
  height: 10.286px;
}

.social-link:hover { opacity: 0.65; }

.footer-line {
  display: block;
  width: 100%;
  height: 1px;
}

.footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.footer-lists {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.footer-list,
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-contacts {
  width: 262px;
  white-space: nowrap;
}

.footer-list__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: -0.04em;
  color: #a2a2a2;
}

.footer-list a,
.footer-contact-row,
.footer-description,
.footer-bottom span {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: -0.04em;
}

.footer-list a,
.footer-contact-row {
  color: var(--text);
}

.footer-list a {
  transition: opacity 0.15s;
}

.footer-list a:hover,
.footer-contact-row a:hover {
  opacity: 0.65;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.footer-contact-row a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-description {
  color: #a2a2a2;
  max-width: 100%;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.footer-bottom span {
  color: #a2a2a2;
}

/* ============================================================
   ADMIN / GENERIC COMPONENTS (preserved)
   ============================================================ */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.form-grid { display: grid; gap: 0.75rem; }

input, textarea, button { font: inherit; }

input, textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  background: #fff;
}

button {
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover { background: var(--primary-hover); }

button.secondary { background: #374151; }
button.secondary:hover { background: #111827; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border-mid);
  padding: 0.8rem 0;
}

.admin-row:last-child { border-bottom: 0; }
.admin-row p { margin: 0.3rem 0 0; color: var(--muted); }

.admin-actions { display: flex; gap: 0.5rem; align-items: flex-start; }
.hidden { display: none; }

.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-mid);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-header nav { display: flex; gap: 1rem; }

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE — TABLET  (max 960px)
   ============================================================ */
@media (max-width: 960px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 20px;
  }

  .category-toolbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-media {
    width: 200px;
    height: 200px;
  }

  .category-media img {
    width: 100%;
    height: 100%;
  }

  .research-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    gap: 32px;
  }

  .footer-lists {
    gap: 36px;
  }

  .footer-contacts {
    width: 252px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE  (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --section-pad: 40px; }

  .container {
    width: calc(100% - 28px);
  }

  /* Header */
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-mid);
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .main-nav.is-open { display: flex; }

  .main-nav a {
    padding: 12px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav a:last-child { border-bottom: none; }

  .header-inner {
    min-height: 64px;
    gap: 0;
  }

  .nav-toggle {
    display: flex;
    width: auto;
    height: auto;
    padding: 0;
    gap: 4px;
  }

  .nav-toggle span {
    width: 18px;
  }

  .top-header { position: relative; }

  .category-title-wrap {
    padding-top: 32px;
  }

  .category-title-wrap h1 {
    font-size: 22px;
  }

  .breadcrumb {
    flex-wrap: wrap;
    white-space: normal;
  }

  .product-section__title-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .product-section__line {
    order: 3;
    flex-basis: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 0;
    padding-bottom: 67px;
  }

  .product-card__media {
    height: auto;
    aspect-ratio: 348 / 288;
  }

  .product-category-page .category-cta .cta-inner h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .product-category-page .category-cta .cta-inner {
    align-content: center;
    padding: 32px 20px;
  }

  /* Home section titles */
  .landing-page .section-title-center {
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .landing-page .section-subtitle-center {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.04em;
  }

  /* Hero */
  .hero-banner {
    min-height: 500px;
    align-items: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url("assets/images/freepik__enhance__99474 1.jpg");
    background-position: 60% center, 60% center;
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
  }

  .hero-content {
    min-height: 420px;
    padding-block: 74px;
    gap: 24px;
    align-content: center;
  }

  .hero-content h1 {
    max-width: 347px;
    font-size: 24px;
    line-height: normal;
    text-transform: uppercase;
  }

  .hero-content p {
    max-width: 347px;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.04em;
  }

  .hero-content .btn-primary {
    width: 100%;
    max-width: 347px;
    height: 48px;
    padding: 0 24px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0;
  }

  /* Story */
  #story.section {
    padding-block: 40px;
    background: #ebebed;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .story-image-wrap {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .story-image-wrap img {
    min-height: 382px;
    height: 382px;
  }

  .story-badge {
    right: 14px;
    bottom: 20px;
    min-width: 95px;
    height: 52px;
    border-radius: 8px;
    padding: 7px 0;
    gap: 7px;
  }

  .story-badge__year {
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
  }

  .story-badge__sub {
    font-size: 10px;
    line-height: 1;
  }

  .tag-badge {
    gap: 14px;
    padding: 5px 14px 5px 8px;
    margin-bottom: 20px;
  }

  .story-text h2 {
    margin-bottom: 24px;
    font-size: 32px;
    line-height: normal;
  }

  .story-text p {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
  }

  /* Categories */
  #categorii.section {
    background: #fff;
    padding-block: 60px;
  }

  #categorii .section-title-center {
    margin-bottom: 40px;
  }

  .categories-slider {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .categories-slider__track .category-card {
    flex: 0 0 100%;
    padding-inline: 0;
  }

  .categories-slider__nav {
    display: none;
  }

  .category-card {
    width: 348px;
    margin-inline: auto;
    gap: 20px;
    min-height: 423px;
  }

  .category-media {
    width: 240px;
    height: 240px;
    border-width: 0.69px;
  }

  .category-card h3 {
    font-size: 26px;
    line-height: 36px;
    letter-spacing: -0.04em;
  }

  .category-card p {
    width: 348px;
    max-width: 348px;
    min-height: 96px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: -0.04em;
  }

  .category-card .btn-category {
    width: 166.76px;
    height: 47px;
    padding: 0 24px;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 0;
  }

  /* Values */
  .values-section.section {
    background: #fff;
    padding-block: 60px;
  }

  .values-section .section-title-center {
    margin-bottom: 12px;
  }

  .values-section .section-subtitle-center {
    margin-bottom: 60px;
  }

  .values-top {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
  }

  .value-card {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    height: 360px;
  }

  .value-card__content {
    padding: 20px;
  }

  .value-card__content h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .value-card__content p {
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }

  /* Research */
  #cercetare.section {
    background: #fff;
    padding-block: 60px;
  }

  #cercetare .section-title-center {
    margin-bottom: 12px;
  }

  #cercetare .section-subtitle-center {
    margin-bottom: 60px;
  }

  .research-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 14px;
  }

  .research-card {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    height: 360px;
  }

  .research-card__overlay {
    padding: 20px;
  }

  .research-card__title {
    font-size: 20px;
    line-height: 1.2;
  }

  .research-card__text {
    font-size: 14px;
    line-height: 1.35;
  }

  /* Testimonials */
  .testimonials-section {
    padding-top: 60px;
    padding-bottom: 0;
    background: #ebebed;
  }

  .testimonials-header {
    margin-bottom: 60px;
  }

  .testimonials-slider {
    gap: 14px;
    padding-inline: 0;
  }

  .testimonials-slider__track {
    gap: 0;
  }

  .testimonials-slide {
    display: contents;
  }

  .testimonials-slide .tcard {
    flex: 0 0 100%;
  }

  .testimonials-slider__dots {
    padding-top: 10px;
    padding-bottom: 25px;
  }

  .testimonials-slider__nav {
    display: none;
  }

  .tcard {
    min-height: 218px;
    padding: 20px;
    gap: 20px;
  }

  .tcard__name {
    font-size: 20px;
    line-height: 32px;
    letter-spacing: -0.04em;
  }

  .tcard__text {
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.04em;
  }

  /* CTA */
  .cta-band {
    padding-block: 0;
    background: var(--bg-main);
  }

  .cta-inner {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    aspect-ratio: auto;
    min-height: 532px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 40px;
    background: url("assets/images/image 27.jpg") center / cover no-repeat;
  }

  .cta-inner > * {
    grid-column: auto;
    margin-left: 0;
    max-width: 295px;
  }

  .cta-inner h2 {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.04em;
  }

  .cta-subtitle {
    font-family: var(--font-head);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    opacity: 1;
  }

  .btn-cta {
    width: 100%;
    max-width: 295px;
    height: 48px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 14px;
  }

  /* Footer */
  .site-footer {
    padding-block: 14px;
  }

  .footer-shell {
    gap: 23px;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-lists {
    width: 100%;
    gap: 40px;
  }

  .footer-list {
    flex: 1 1 0;
    gap: 12px;
  }

  .footer-list__title {
    font-size: 12px;
    line-height: 14px;
  }

  .footer-list a,
  .footer-contact-row,
  .footer-description,
  .footer-bottom span {
    font-size: 14px;
    line-height: 16px;
    letter-spacing: -0.04em;
  }

  .footer-contacts {
    width: 100%;
    gap: 12px;
    white-space: normal;
  }

  .footer-contact-row {
    justify-content: flex-start;
    gap: 40px;
  }

  .footer-contact-row span {
    width: 153px;
    flex: 0 0 153px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .testimonials-slider__track {
    transition: none;
  }
}
