/* =========================================================
   AIDent Center — Stylesheet
   Inspired by clean dental clinic aesthetics
   Palette extracted from img/logo.svg
   ========================================================= */

:root {
  /* Colors from logo.svg */
  --c-primary-darkest: #0a4f6a;
  --c-primary-dark:    #127396;
  --c-primary:         #1994c0;
  --c-primary-mid:     #208fc5;
  --c-accent:          #34c0e1;
  --c-accent-light:    #62cbeb;
  --c-pale:            #9fdcee;
  --c-pale-2:          #cdebf5;
  --c-paler:           #e7f5fa;

  --c-bg:              #ffffff;
  --c-bg-soft:         #f6fafc;
  --c-bg-alt:          #eef7fb;

  --c-ink:             #0e2632;
  --c-ink-2:           #1d3b4b;
  --c-text:            #36546a;
  --c-muted:           #6f8a9d;
  --c-line:            #e1ecf2;

  /* Typography */
  --ff-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --ff-sans:  'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 1.5rem;
  --radius-sm: 6px;
  --radius:    14px;
  --radius-lg: 24px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .55s;
}


/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; }

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--c-ink);
  font-weight: 500;
  margin: 0 0 .6em;
  line-height: 1.15;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c-primary-dark); }

p { margin: 0 0 1em; }

em { font-style: italic; color: var(--c-primary); }


/* -------- Layout helpers -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.section-head {
  margin-bottom: 3.5rem;
}
.section-head-centered {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  margin: 0 0 .8rem;
}
.section-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 640px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.section-eyebrow img,
.section-eyebrow svg {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.section-eyebrow svg { color: currentColor; }
.section-eyebrow.light { color: var(--c-pale); }
.section-eyebrow.light img { filter: brightness(1.6) saturate(.6); }

.eyebrow-num {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: currentColor;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow-num::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section-head-centered .section-eyebrow { gap: .9rem; }

.section-title.light { color: #fff; }
.section-title.light em { color: var(--c-accent-light); }


/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.8rem;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-primary-dark);
  color: #fff;
  border-color: var(--c-primary-dark);
}
.btn-primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(18,115,150,.5);
}
.btn-ghost {
  background: transparent;
  color: var(--c-primary-dark);
  border-color: var(--c-primary-dark);
}
.btn-ghost:hover {
  background: var(--c-primary-dark);
  color: #fff;
}


/* -------- Preloader -------- */
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo img {
  width: 72px;
  height: auto;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.04); }
}


/* -------- Header / Nav -------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(18,115,150,.08), 0 8px 30px -18px rgba(18,115,150,.18);
  padding: .7rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-link {
  display: flex;
  align-items: center;
  z-index: 110;
}
.logo-full {
  height: 50px;
  width: auto;
  transition: filter .35s var(--ease), height .35s var(--ease);
  filter: brightness(0) invert(1);
}
.header.scrolled .logo-full {
  filter: none;
  height: 44px;
}
.logo-icon { display: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  position: relative;
  padding: .3rem 0;
  transition: color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.header.scrolled .nav-link { color: var(--c-ink-2); }
.header.scrolled .nav-link:hover { color: var(--c-primary); }

.nav-cta {
  padding: .65rem 1.3rem;
  font-size: .85rem;
}
.header:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  backdrop-filter: blur(6px);
}
.header:not(.scrolled) .nav-cta:hover {
  background: #fff;
  color: var(--c-primary-dark);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: all .3s var(--ease);
  border-radius: 2px;
}
.header.scrolled .menu-toggle span {
  background: var(--c-ink-2);
}


/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 6rem;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10,79,106,.78) 0%, rgba(18,115,150,.5) 40%, rgba(32,143,197,.3) 100%),
    linear-gradient(180deg, rgba(10,38,50,.35) 0%, rgba(10,38,50,.25) 60%, rgba(10,38,50,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  animation: fadeUp .9s var(--ease) .2s both;
}
.hero-eyebrow img,
.hero-eyebrow svg {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.hero-eyebrow img { filter: brightness(2) saturate(.4); }
.hero-eyebrow svg { color: rgba(255,255,255,.85); }
.hero-title {
  font-family: var(--ff-serif);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.25);
  animation: fadeUp .9s var(--ease) .35s both;
}
.hero-title em {
  color: var(--c-pale);
  font-weight: 500;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 580px;
  color: rgba(255,255,255,.92);
  margin-bottom: 2.6rem;
  animation: fadeUp .9s var(--ease) .5s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp .9s var(--ease) .65s both;
}
.hero-actions .btn-primary {
  background: #fff;
  color: var(--c-primary-dark);
  border-color: #fff;
}
.hero-actions .btn-primary:hover {
  background: var(--c-pale);
  border-color: var(--c-pale);
  color: var(--c-primary-darkest);
}
.hero-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero-actions .btn-ghost:hover {
  background: #fff;
  color: var(--c-primary-dark);
}

.hero-watermark {
  position: absolute;
  right: -6%;
  bottom: -10%;
  width: 60%;
  max-width: 700px;
  z-index: 1;
  opacity: .07;
  pointer-events: none;
}
.hero-watermark img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  z-index: 3;
}
.scroll-indicator span {
  width: 3px;
  height: 8px;
  background: #fff;
  border-radius: 3px;
  animation: scrollDown 1.7s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}


@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* -------- Despre -------- */
.section-despre {
  background: var(--c-bg);
}
.despre-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.despre-text .lead {
  font-size: 1.15rem;
  color: var(--c-ink-2);
  font-family: var(--ff-serif);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.6rem;
}
.despre-text p {
  color: var(--c-text);
}
.despre-text strong {
  color: var(--c-primary-dark);
  font-weight: 600;
}

.despre-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--c-line);
}
.highlight {
  display: flex;
  flex-direction: column;
}
.highlight-num {
  font-family: var(--ff-serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--c-primary);
  line-height: 1;
}
.highlight-label {
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: .4rem;
}

.despre-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 180px;
  gap: 1.2rem;
}
.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 50px -25px rgba(14,38,50,.35);
}
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.media-card:hover img { transform: scale(1.05); }

.media-card-main {
  grid-column: 1 / -1;
}
.media-card-secondary {
  grid-column: 2 / -1;
  transform: translateY(-30px);
}
.media-decoration {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  opacity: .15;
  z-index: -1;
}


/* -------- Servicii -------- */
.section-servicii {
  background: var(--c-bg-soft);
  position: relative;
}
.section-bg-watermark {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 40%;
  max-width: 480px;
  opacity: .04;
  pointer-events: none;
  z-index: 0;
}
.section-bg-watermark img { width: 100%; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  position: relative;
  z-index: 1;
}
.service-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary-dark), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -25px rgba(18,115,150,.35);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-paler), var(--c-pale-2));
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  transition: background .4s var(--ease);
}
.service-icon img,
.service-icon svg {
  width: 28px;
  height: 28px;
}
.service-icon svg {
  color: var(--c-primary-dark);
  transition: color .4s var(--ease);
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
}
.service-card:hover .service-icon img {
  filter: brightness(0) invert(1);
}
.service-card:hover .service-icon svg {
  color: #fff;
}
.service-card h3 {
  margin-bottom: .6rem;
  color: var(--c-ink);
}
.service-card p {
  margin: 0;
  font-size: .94rem;
  color: var(--c-muted);
  line-height: 1.55;
}


/* -------- Video -------- */
.section-video {
  background:
    linear-gradient(135deg, var(--c-primary-darkest) 0%, var(--c-primary-dark) 50%, var(--c-primary) 100%);
  color: #fff;
  position: relative;
}
.section-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/logo.svg') center / 60% no-repeat;
  opacity: .035;
  pointer-events: none;
}
.video-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55);
  background: #000;
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* -------- Dotari -------- */
.section-dotari {
  background: var(--c-bg);
}
.dotari-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.dotari-content .lead {
  font-size: 1.05rem;
  color: var(--c-ink-2);
  line-height: 1.65;
  margin-bottom: 2.2rem;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--c-line);
}
.features-list li:last-child { border-bottom: 1px solid var(--c-line); }
.feature-bullet {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-paler);
  display: grid;
  place-items: center;
}
.feature-bullet img,
.feature-bullet svg { width: 20px; height: 20px; }
.feature-bullet svg { color: var(--c-primary-dark); }
.features-list strong {
  display: block;
  color: var(--c-ink);
  font-family: var(--ff-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: .15rem;
}
.features-list p {
  margin: 0;
  font-size: .9rem;
  color: var(--c-muted);
}

.dotari-media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 180px 180px 180px;
  gap: 1rem;
}
.dotari-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(14,38,50,.4);
}
.dotari-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.dotari-img:hover img { transform: scale(1.06); }
.dotari-img-1 {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}
.dotari-img-2 {
  grid-column: 5 / 7;
  grid-row: 1 / 2;
}
.dotari-img-3 {
  grid-column: 3 / 7;
  grid-row: 2 / 4;
}


/* -------- Echipa -------- */
.section-echipa {
  background: var(--c-bg-soft);
  position: relative;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--c-line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.team-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary-dark));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -25px rgba(18,115,150,.4);
}
.team-card:hover::after { transform: scaleX(1); transform-origin: left; }
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-paler), var(--c-pale-2));
  display: grid;
  place-items: center;
  transition: background .4s var(--ease);
}
.team-avatar img {
  width: 42px;
  transition: filter .4s var(--ease);
}
.team-initials {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  color: var(--c-primary-dark);
  letter-spacing: -.02em;
  line-height: 1;
  transition: color .4s var(--ease);
}
.team-card:hover .team-avatar {
  background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
}
.team-card:hover .team-avatar img {
  filter: brightness(0) invert(1);
}
.team-card:hover .team-initials {
  color: #fff;
}
.team-card h3 {
  font-size: 1.2rem;
  margin: 0 0 .35rem;
  color: var(--c-ink);
}
.team-card p {
  margin: 0;
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.5;
}


/* -------- Galerie -------- */
.section-galerie {
  background: var(--c-bg);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--c-paler);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,79,106,0) 50%, rgba(10,79,106,.55) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }


/* -------- Contact -------- */
.section-contact {
  background:
    linear-gradient(135deg, var(--c-primary-darkest) 0%, var(--c-primary-dark) 70%, var(--c-primary) 100%);
  color: #fff;
  position: relative;
}
.section-contact::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -5%;
  width: 35%;
  height: 70%;
  background: url('../img/logo.svg') center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  display: grid;
  place-items: center;
}
.contact-icon img,
.contact-icon svg {
  width: 24px;
  height: 24px;
}
.contact-icon img { filter: brightness(2); }
.contact-icon svg { color: #fff; }
.contact-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 .4rem;
}
.contact-card p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.55;
}
.contact-card a {
  color: var(--c-pale);
  font-weight: 500;
}
.contact-card a:hover { color: #fff; }
.contact-card .small {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: .3rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  margin-top: .5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: .85rem;
  color: #fff;
  transition: all .3s var(--ease);
}
.social-links a:hover {
  background: #fff;
  color: var(--c-primary-dark);
  transform: translateY(-2px);
}
.social-links svg {
  width: 18px;
  height: 18px;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,.5);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 460px;
  filter: grayscale(.2) contrast(1.05);
}


/* -------- Footer -------- */
.footer {
  background: var(--c-ink);
  color: rgba(255,255,255,.7);
  padding: 4.5rem 0 1.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 1.2rem;
}
.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
  margin: 0;
  line-height: 1.6;
}
.footer-col h4 {
  color: #fff;
  font-family: var(--ff-sans);
  font-size: .85rem;
  margin-bottom: 1.2rem;
  letter-spacing: .12em;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: .55rem;
  font-size: .92rem;
}
.footer-col a {
  color: rgba(255,255,255,.65);
}
.footer-col a:hover { color: var(--c-pale); }

.footer-social {
  display: flex;
  gap: .8rem;
}
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.75);
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom p { margin: 0; }
.footer-icon img {
  width: 22px;
  opacity: .35;
}


/* -------- Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,38,50,.95);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open {
  display: flex;
  animation: lbFade .3s var(--ease);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-stage {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}
.lightbox-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translate3d(-33.3333%, 0, 0);
  will-change: transform;
}
.lightbox-track.is-snap-next,
.lightbox-track.is-snap-prev { transition: transform .38s cubic-bezier(.2, .7, .25, 1); }
.lightbox-track.is-cancel    { transition: transform .28s cubic-bezier(.2, .7, .25, 1); }
.lightbox-slide {
  flex: 0 0 33.3333%;
  height: 100%;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.lightbox-slide img {
  position: absolute;
  top: 50%;
  /* Default: centred in the slide (used for the current slide and during commit) */
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* Edge-alignment for prev/next so 1 px swipe immediately reveals the image.
   The shift is expressed in pixels via --shift (set by JS per-slide based on
   each image's rendered width). Using ONLY `transform` keeps the alignment
   animation GPU-accelerated — no layout-driven jitter. */
.lightbox-slide:nth-child(1) img {  /* prev: image right edge at slot right edge */
  transform: translate(calc(-50% + var(--shift, 0px)), -50%);
}
.lightbox-slide:nth-child(3) img {  /* next: image left edge at slot left edge */
  transform: translate(calc(-50% - var(--shift, 0px)), -50%);
}

/* COMMIT — symmetric motion for the outgoing and incoming images.
   The current slide (nth-child 2) animates to the SAME edge-alignment that the
   incoming neighbour had in idle, while the incoming neighbour recentres.
   Result: both images travel the same net distance, identical speed. */

/* Going to NEXT (track slides left): current image exits right-aligned in its
   slot (its right edge hits the stage's left edge at exact end of commit). */
.lightbox-track.is-snap-next .lightbox-slide:nth-child(2) img {
  transform: translate(calc(-50% + var(--shift, 0px)), -50%);
}
.lightbox-track.is-snap-next .lightbox-slide:nth-child(3) img {
  transform: translate(-50%, -50%);
}

/* Going to PREV (track slides right): current image exits left-aligned. */
.lightbox-track.is-snap-prev .lightbox-slide:nth-child(2) img {
  transform: translate(calc(-50% - var(--shift, 0px)), -50%);
}
.lightbox-track.is-snap-prev .lightbox-slide:nth-child(1) img {
  transform: translate(-50%, -50%);
}

/* Shared transition for all images involved in either commit direction. */
.lightbox-track.is-snap-next .lightbox-slide:nth-child(2) img,
.lightbox-track.is-snap-next .lightbox-slide:nth-child(3) img,
.lightbox-track.is-snap-prev .lightbox-slide:nth-child(2) img,
.lightbox-track.is-snap-prev .lightbox-slide:nth-child(1) img {
  transition: transform .38s cubic-bezier(.2, .7, .25, 1);
}
.lightbox-caption {
  display: none;
  color: rgba(255,255,255,.7);
  margin-top: 1rem;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lightbox button {
  position: absolute;
  z-index: 10;
  color: #fff;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.lightbox button svg {
  width: 20px;
  height: 20px;
  display: block;
}
.lightbox button:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.35);
}
/* Close: top-right, no vertical centering */
.lightbox-close { top: 1.5rem; right: 1.5rem; transform: scale(1); }
.lightbox-close:hover { transform: scale(1.08); }
/* Prev/Next: vertically centered via translateY(-50%) — preserved on hover */
.lightbox-prev { left: 1.5rem;  top: 50%; transform: translate(0, -50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translate(0, -50%); }
.lightbox-prev:hover { transform: translate(-3px, -50%) scale(1.08); }
.lightbox-next:hover { transform: translate( 3px, -50%) scale(1.08); }


/* -------- Reveal on scroll -------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .despre-grid,
  .dotari-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .logo-full { height: 40px; }
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    padding: 5.5rem 2rem 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }
  .menu-open .nav {
    transform: translateX(0);
  }
  /* Menu-open styles scoped to mobile only — prevents leftover state on desktop */
  body.menu-open { overflow: hidden; }
  .menu-open .logo-full {
    filter: none;
    height: 44px;
  }
  .menu-open .menu-toggle span { background: var(--c-ink-2); }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-list {
    flex-direction: column;
    gap: 1.4rem;
    width: 100%;
    text-align: center;
    margin: auto 0;
  }
  .nav-link {
    color: var(--c-ink-2) !important;
    font-size: 1.3rem;
    font-family: var(--ff-serif);
  }
  .nav-link::after { display: none; }
  .nav-cta {
    width: 100%;
    text-align: center;
    background: var(--c-primary-dark) !important;
    color: #fff !important;
    border-color: var(--c-primary-dark) !important;
  }

  .hero { min-height: 88vh; }
  .hero-eyebrow { font-size: .68rem; padding: .4rem .8rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .despre-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .highlight-num { font-size: 2rem; }

  .despre-media {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: .9rem;
  }
  .media-card-main {
    grid-column: 1;
    height: 240px;
  }
  .media-card-secondary {
    grid-column: 1;
    transform: none;
    height: 200px;
  }
  .media-decoration { display: none; }

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .dotari-media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: .8rem;
  }
  .dotari-img-1 {
    grid-column: 1 / -1;
    grid-row: auto;
    height: 240px;
  }
  .dotari-img-2 {
    grid-column: 1 / 2;
    grid-row: auto;
    height: 160px;
  }
  .dotari-img-3 {
    grid-column: 2 / -1;
    grid-row: auto;
    height: 160px;
  }

  .contact-info { min-width: 0; }
  .contact-card {
    min-width: 0;
    padding: 1.2rem;
    gap: .9rem;
  }
  .contact-card > div:not(.contact-icon) { min-width: 0; flex: 1; }
  .contact-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .contact-icon img,
  .contact-icon svg { width: 20px; height: 20px; }
  .contact-card h3 { font-size: 1.05rem; }
  .contact-map { min-height: 320px; }
  .contact-map iframe { min-height: 320px; }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-item-wide { grid-column: span 2; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: .6rem;
    text-align: center;
  }

  .lightbox-close { top: .8rem; right: .8rem; }
  .lightbox-prev { left: .4rem; }
  .lightbox-next { right: .4rem; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .hero-title { font-size: 2.2rem; }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item-wide,
  .gallery-item-tall { grid-row: auto; grid-column: auto; }
}


/* -------- Body lock for lightbox (menu lock is scoped to mobile @media) -------- */
body.no-scroll { overflow: hidden; }
