/* ============================================================
   MCMedia · style.css
   ============================================================ */

:root {
  --cream:       #FAFAF8;
  --white:       #FFFFFF;
  --dark:        #1A1A1A;
  --dark-mid:    #2C2C2C;
  --gray:        #6E6E6E;
  --gray-light:  #E8E8E4;
  --gold:        #C9A96E;
  --gold-light:  #D4BA84;
  --gold-pale:   #F0E8D8;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Raleway', system-ui, sans-serif;

  --max-w:      1200px;
  --nav-h:      80px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:      all 0.4s var(--ease);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body   { font-family: var(--font-sans); background: var(--cream); color: var(--dark); line-height: 1.7; overflow-x: hidden; }
img    { max-width: 100%; display: block; }
a      { text-decoration: none; color: inherit; }
ul     { list-style: none; }
button { font-family: var(--font-sans); }

/* ── Typography helpers ─────────────────────────────────────── */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
}
.section-header { text-align: center; margin-bottom: 4rem; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid currentColor;
  transition: var(--trans);
  cursor: pointer;
  background: transparent;
}
.btn--primary {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  width: 100%;
  text-align: center;
}
.btn--primary:hover  { background: var(--gold); border-color: var(--gold); }
.btn--outline        { color: var(--dark); }
.btn--outline:hover  { background: var(--dark); color: var(--cream); }
.btn--light          { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.btn--light:hover    { color: var(--white); border-color: var(--gold); background: var(--gold); }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Fade-up (hero children) ────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.3s; }
.fade-up:nth-child(2) { animation-delay: 0.55s; }
.fade-up:nth-child(3) { animation-delay: 0.75s; }
.fade-up:nth-child(4) { animation-delay: 0.95s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(250,250,248,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-light);
}
.nav__container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo { display: flex; align-items: center; }
.logo-svg  { width: 52px; height: 38px; color: var(--dark); transition: color 0.3s; }
.logo-svg--light { color: var(--cream); }
.logo-c    { fill: var(--gold); }

/* Links */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  position: relative;
  transition: color 0.3s;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link--cta {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--dark);
}
.nav__link--cta::after  { display: none; }
.nav__link--cta:hover   { background: var(--dark); color: var(--cream); }

/* Nav state over hero */
.nav--hero .logo-svg    { color: var(--cream); }
.nav--hero .nav__link   { color: rgba(255,255,255,0.88); }
.nav--hero .nav__link:hover { color: var(--gold-light); }
.nav--hero .nav__link::after { background: var(--gold-light); }
.nav--hero .nav__link--cta  { border-color: rgba(255,255,255,0.5); color: var(--cream); }
.nav--hero .nav__link--cta:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.nav--hero .nav__toggle span { background: var(--cream); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 300;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--dark);
  transition: var(--trans);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  background-color: #1e1e1e;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.52) 60%,
    rgba(10,10,10,0.72) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 820px;
  padding: 0 2rem;
}
.hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__title em { font-style: italic; color: rgba(255,255,255,0.82); }
.hero__subtitle {
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.68);
  margin-bottom: 3rem;
}
.hero__cta {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 5px;
  transition: var(--trans);
}
.hero__cta:hover { color: var(--gold-light); letter-spacing: 0.32em; }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  margin: 0 auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 9rem 0;
  background: var(--white);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about__text .section-title { margin-bottom: 1.5rem; }
.about__body  { font-size: 0.93rem; color: var(--gray); line-height: 1.85; margin-bottom: 1.1rem; }
.about__text .btn { margin-top: 1.8rem; }

.about__img-frame {
  position: relative;
  aspect-ratio: 4/5;
}
.about__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__img-frame.no-img {
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__img-frame.no-img::after {
  content: 'about.jpg';
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}
.about__img-accent {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 58%;
  height: 58%;
  border: 1px solid var(--gold);
  pointer-events: none;
}

/* ── Team ───────────────────────────────────────────────────── */
.team {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-top: 6rem;
  padding-top: 5rem;
  border-top: 1px solid var(--gray-light);
}
.team-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}
.team-card__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--gray-light);
  position: relative;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-card__photo.no-img,
.team-card__photo img[src=""] {
  background: var(--gray-light);
}
.team-card__photo.no-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gray-light);
}
.team-card__name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}
.team-card__role {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.team-card__bio {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.8;
}
.team-card__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  color: var(--gold);
}
.team-card__divider span {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--gold);
}
.team-card__divider::before,
.team-card__divider::after {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gray-light), transparent);
}

@media (max-width: 768px) {
  .team {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .team-card { grid-template-columns: 100px 1fr; gap: 1.5rem; }
  .team-card__photo { width: 100px; height: 100px; }
  .team-card__divider { flex-direction: row; padding: 1.5rem 0; }
  .team-card__divider::before,
  .team-card__divider::after { width: 60px; height: 1px; background: linear-gradient(to right, transparent, var(--gray-light), transparent); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 9rem 0;
  background: var(--cream);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--gray-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,0.07); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon  { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1.5rem; }
.service-card__title { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 400; margin-bottom: 0.9rem; }
.service-card__text  { font-size: 0.88rem; color: var(--gray); line-height: 1.85; margin-bottom: 1.5rem; }
.service-card__tag   { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio {
  padding: 9rem 0 5rem;
  background: var(--dark);
}
.portfolio .section-label { color: var(--gold); }
.portfolio .section-title { color: var(--cream); }
.portfolio__more { text-align: center; margin-top: 4rem; }

/* Gallery — CSS masonry */
.gallery {
  columns: 4;
  column-gap: 3px;
  margin-top: 0;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.55s var(--ease);
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
}
.gallery-item:hover img     { transform: scale(1.06); }
.gallery-item:hover::after  { background: rgba(0,0,0,0.18); }

/* Placeholder tiles when images aren't loaded yet */
.gallery-item--placeholder {
  background: #242424;
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.gallery-item--placeholder::after { display: none; }
.gallery-item--placeholder span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 9rem 0;
  background: var(--cream);
}
.contact__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact__inner .section-label { display: block; }
.contact__intro { font-size: 0.93rem; color: var(--gray); line-height: 1.85; margin: 1.5rem 0 2.5rem; }
.contact__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.contact__item svg   { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.contact__item:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--cream);
  padding: 4.5rem 0 2rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.footer__logo   { display: flex; align-items: center; }
.footer__tagline { font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: rgba(255,255,255,0.4); margin-top: 0.3rem; }
.footer__links  { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer__links a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--trans);
}
.footer__social a svg   { width: 17px; height: 17px; }
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__bottom { padding-top: 2rem; text-align: center; }
.footer__bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox__content { max-width: 90vw; max-height: 90vh; }
.lightbox__content img { max-width: 90vw; max-height: 88vh; object-fit: contain; }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: color 0.25s;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--gold); }
.lightbox__close { top: 1.5rem; right: 1.5rem; font-size: 2.2rem; }
.lightbox__prev  { left: 1.5rem;  font-size: 3.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1.5rem; font-size: 3.5rem; top: 50%; transform: translateY(-50%); }

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.whatsapp-btn svg { width: 28px; height: 28px; }
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gallery        { columns: 3; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner   { gap: 3.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 250;
  }
  .nav__menu.open       { transform: translateX(0); }
  .nav__link            { font-size: 0.9rem; letter-spacing: 0.2em; }
  .nav--hero .nav__menu { background: var(--dark); }
  .nav--hero .nav__menu .nav__link { color: rgba(255,255,255,0.85); }

  /* About */
  .about__inner      { grid-template-columns: 1fr; }
  .about__visual     { order: -1; }
  .about__img-frame  { aspect-ratio: 16/9; }
  .about__img-accent { display: none; }

  /* Team — stiveaza vertical pe mobil */
  .team {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
    padding-top: 3.5rem;
  }
  .team-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 0;
    justify-items: center;
  }
  .team-card__photo  { width: 120px; height: 120px; }
  .team-card__divider {
    flex-direction: row;
    padding: 0.5rem 0;
  }
  .team-card__divider::before,
  .team-card__divider::after {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gray-light), transparent);
  }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery { columns: 2; }

  /* Contact */
  .contact__item { font-size: 0.9rem; }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 2rem; }

  /* WhatsApp mai mic pe ecrane mici */
  .whatsapp-btn { width: 50px; height: 50px; bottom: 1.5rem; right: 1.5rem; }
  .whatsapp-btn svg { width: 24px; height: 24px; }
}

@media (max-width: 480px) {
  .gallery    { columns: 1; }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__eyebrow { font-size: 0.6rem; letter-spacing: 0.2em; }
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .section-title  { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .about, .services, .portfolio, .contact { padding: 5rem 0; }
}
