/*
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(to bottom, #fff 0%, #fff 18%, var(--bg-main) 18%, var(--bg-main) 100%);
}

.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 {
  position: relative;
  min-height: 477px;
  padding-bottom: 67px;
  overflow: hidden;
}

.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;
}

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

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

.product-card__button {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 47px;
  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-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 20px;
}

.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);
  background: var(--bg-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.category-media img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.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
   ============================================================ */
.cerc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 393px;
  margin-top: clamp(28px, 4vw, 48px);
}

.cerc-text {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 19px;
  overflow: hidden;
}

.cerc-text h3 {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1.25;
}

.cerc-text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.cerc-img {
  overflow: hidden;
  border: 1px solid var(--border);
}

.cerc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

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

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

.value-card {
  position: relative;
  overflow: hidden;
  height: 460px;
  border: 1px solid var(--border);
}

.value-card--wide {
  height: 313px;
}

.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: 20px;
  left: 20px;
  right: 20px;
  z-index: 1;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-card--wide .value-card__content {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  right: auto;
  width: clamp(260px, 30%, 340px);
}

.value-card--wide .value-card__bg { filter: none; transform: scale(1.04); }
.value-card--wide::after {
  background: none;
}

.value-card__content--dark { color: var(--primary); }

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

.value-card__content p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.03em;
  opacity: 0.92;
}

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

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

.testimonials-track-wrap {
  overflow: hidden;
  margin-bottom: 20px;
}

.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.testimonials-track--reverse {
  animation: scroll-right 44s linear infinite;
}

.testimonials-track-wrap:hover .testimonials-track { animation-play-state: paused; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

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

.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;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   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: 164px;
    height: 164px;
  }

  /* Cercetare — tighten at tablet */
  .cerc-grid {
    grid-auto-rows: 300px;
  }

  .cerc-text {
    padding: 24px;
  }

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

  .values-top .value-card:last-child {
    grid-column: 1 / -1;
    height: 300px;
  }

  .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-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

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

  .category-card:nth-child(2n + 1):not(:first-child) {
    margin-top: 40px;
  }

  .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;
    margin-bottom: 14px;
  }

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

  .values-top .value-card:last-child {
    grid-column: auto;
    height: 460px;
  }

  .value-card__content {
    left: 19px;
    right: auto;
    bottom: 19px;
    width: 308px;
    gap: 10px;
  }

  .value-card__content h3 {
    font-size: 26px;
    line-height: 1;
  }

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

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

  .value-card--wide .value-card__content {
    top: auto;
    bottom: 39px;
    transform: none;
    left: 29px;
    right: auto;
    width: 320px;
    color: var(--primary);
  }

  .value-card--wide::after {
    background: none;
  }

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

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

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

  .cerc-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    margin-top: 0;
  }

  #cercetare .cerc-grid > :nth-child(1) { order: 2; }
  #cercetare .cerc-grid > :nth-child(2) { order: 1; }
  #cercetare .cerc-grid > :nth-child(3) { order: 4; }
  #cercetare .cerc-grid > :nth-child(4) { order: 3; }
  #cercetare .cerc-grid > :nth-child(5) { order: 6; }
  #cercetare .cerc-grid > :nth-child(6) { order: 5; }

  .cerc-img,
  .cerc-text {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }

  .cerc-img {
    height: 393px;
    border: 1px solid var(--border);
  }

  #cercetare .cerc-grid > .cerc-img:nth-of-type(2) img {
    display: none;
  }

  #cercetare .cerc-grid > .cerc-img:nth-of-type(2) {
    background: url("assets/images/rec-suzeta.jpg") center / cover no-repeat;
  }

  .cerc-text {
    padding: 40px;
    min-height: 249px;
    gap: 19px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }

  #cercetare .cerc-grid > .cerc-text:nth-child(5) {
    min-height: 229px;
    border-bottom: 1px solid var(--border);
  }

  .cerc-text h3 {
    font-size: 20px;
    line-height: 1.25;
  }

  .cerc-text p {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.04em;
  }

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

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

  .testimonials-track-wrap {
    margin-bottom: 20px;
  }

  .tcard {
    width: 524px;
    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-track,
  .testimonials-track--reverse {
    animation: none;
  }
}
