:root {
  --gold-grad: linear-gradient(135deg, #d4b98a, #f1e3c6, #c8a46b);
  --gold-solid: #c8a46b;
  --dark: #151313;
  --cream: #f7f4ef;
  --border: #e0d8cf;
  --glass-bg: rgba(15, 15, 15, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: #2a2a2a;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
  margin-top: 0;
  text-align: center;
}

h2 {
  font-size: 2.6rem;
  letter-spacing: -0.4px;
  text-align: center;
}

p {
  max-width: 780px;
  font-size: 1.05rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

section {
  padding: 100px 12%;
  border-bottom: 1px solid var(--border);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease forwards;
  text-align: center;
}

/* Improve anchor navigation with fixed navbar */
:target {
  scroll-margin-top: 120px;
}


section:nth-of-type(2) { animation-delay: 0.1s; }
section:nth-of-type(3) { animation-delay: 0.2s; }
section:nth-of-type(4) { animation-delay: 0.3s; }
section:nth-of-type(5) { animation-delay: 0.4s; }
section:nth-of-type(6) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.gold-line {
  width: 350px;
  height: 3px;
  background: var(--gold-grad);
  border-radius: 2px;
  margin: 20px auto 40px auto;
}

/* NAVBAR */
.nav {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 26px;
  color: #f7f4ef;
  font-size: 0.9rem;
}

.lang-toggle {
  /* Match .btn gold styling */
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    var(--gold-grad);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.lang-toggle:hover {
  /* Intentionally no hover lift/shadow: match requested behavior */
}



.nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav-links a {
  color: #f7f4ef;
  text-decoration: none;
  margin: 0 6px;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold-grad);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HERO */
header {
  height: 90vh;
  background: url('images/bucharest.jpg')
    center/cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  color: #fff;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  section {
    animation: none;
    transform: none;
    opacity: 1;
  }
}



header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(200,164,107,0.35), transparent 55%),
              rgba(0,0,0,0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.1;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 36px;
  /* Darken slightly for contrast without changing the gold look */
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    var(--gold-grad);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1rem;
  transition: 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);

  /* Improve readability over shimmering/bright gradients */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}


.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

/* GOLD SHIMMER (applies to gold buttons on hover) */
.btn::before,
.contact-btn::before,
.mobile-contact-btn::before,
.lang-toggle::before,
.mobile-lang-toggle::before,
.back-to-top::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-35%) skewX(-15deg);
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 15%,
    rgba(241, 227, 198, 0.75) 30%,
    rgba(255, 255, 255, 0) 45%
  );
  filter: blur(0.2px);
}

.btn,
.contact-btn,
.mobile-contact-btn,
.lang-toggle,
.mobile-lang-toggle {
  position: relative;
  overflow: hidden;
}

.btn:hover::before,
.contact-btn:hover::before,
.mobile-contact-btn:hover::before,
.lang-toggle:hover::before,
.mobile-lang-toggle:hover::before,
.back-to-top:hover::before {
  opacity: 1;
  animation: gold-shimmer 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gold-shimmer {
  0% {
    transform: translateX(-55%) skewX(-15deg);
    opacity: 0.0;
  }
  10% {
    opacity: 0.95;
  }
  55% {
    transform: translateX(10%) skewX(-15deg);
    opacity: 1;
  }
  100% {
    transform: translateX(55%) skewX(-15deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover::before,
  .contact-btn:hover::before,
  .mobile-contact-btn:hover::before,
  .lang-toggle:hover::before,
  .mobile-lang-toggle:hover::before {
    animation: none;
    opacity: 0.8;
  }
}


/* GRID & CARDS */
.grid {
  display: grid;
  gap: 40px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* SERVICES GRID: 4-3 pyramid layout, second row perfectly centered.
   Flexbox centers the shorter bottom row symmetrically; cards keep
   exactly the same width as a strict 4-column layout. */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.services-grid .card {
  flex: 0 0 calc((100% - 120px) / 4); /* (width - 3 gaps) / 4 columns */
}

@media (max-width: 1100px) {
  .services-grid .card {
    flex-basis: calc((100% - 40px) / 2);
  }
}

@media (max-width: 620px) {
  .services-grid .card {
    flex-basis: 100%;
  }
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: 0.3s ease;
  text-align: center;
}

.card h3 {
  text-align: center;
}

.card p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  border-color: var(--gold-solid);
}

/* SECTION IMAGES (CONSULTANCY VIBE) */
.section-image {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--gold-solid);
  margin-bottom: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* PROCESS: shift image up to avoid cutting the subject */
#process .section-image {
  /* move cropping downward (show more top of the image) */
  object-position: center 70%;
}

/* SERVICES: shift image cropping similarly */
#services .section-image {
  object-position: center 70%;
}



/* STEPS */
.step {
  margin-bottom: 45px;
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
  text-align: center;
  padding-left: 0;
  border-left: none;
}

.step h3 {
  text-align: center;
}

.step p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* GOLD ARROWS between process steps */
.step-arrow {
  width: 46px;
  height: 28px;
  margin: -6px auto 12px auto;
  background: var(--gold-grad);
  clip-path: polygon(0% 0%, 50% 55%, 100% 0%, 100% 45%, 50% 100%, 0% 45%);
  filter: drop-shadow(0 2px 5px rgba(200, 164, 107, 0.5));
}


/* FOOTER */
footer {
  padding: 60px 12%;
  background: var(--dark);
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer .gold-line {
  margin: 10px auto 20px auto;
}

a {
  color: var(--gold-solid);
}

/* CONTACT (make email + phone stand out) */
#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#contact strong {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--dark);
}

#contact a {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(200, 164, 107, 0.14);
  border: 1px solid rgba(200, 164, 107, 0.40);
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: 0.2s ease;

  /* shimmer support */
  position: relative;
  overflow: hidden;
}

#contact a::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-35%) skewX(-15deg);
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 15%,
    rgba(241, 227, 198, 0.75) 30%,
    rgba(255, 255, 255, 0) 45%
  );
  filter: blur(0.2px);
}

#contact a:hover::before {
  opacity: 1;
  animation: gold-shimmer 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  #contact a:hover::before {
    animation: none;
    opacity: 0.8;
  }
}

#contact a:hover {
  background: rgba(200, 164, 107, 0.22);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  #contact p {
    justify-content: center;
  }
}

/* BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), var(--gold-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0.35s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
}

.back-to-top svg {
  display: block;
  transition: transform 0.2s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* SECTION CONTACT BUTTON */
.contact-btn {
  position: fixed;
  left: auto;
  right: 16px;
  bottom: 16px;
  top: auto;
  z-index: 9999;

  display: inline-block;
  padding: 12px 22px;
  /* Darken slightly for contrast without changing the gold look */
  background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    var(--gold-grad);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.4px;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Improve readability over shimmering/bright gradients */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}









.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.25);
}

@media (max-width: 860px) {

  /* Reduce excessive padding on mobile to fix “messed up resolutions” */
  section {
    padding: 72px 7%;
  }

  /* Mobile: place Contact button top-right and keep it there while scrolling */
  .contact-btn {
    top: 16px;
    bottom: auto;
    right: 16px;
    left: auto;
    z-index: 9999;
    position: fixed;
  }

  /* Remove the floating header entirely on mobile (desktop remains unchanged) */
  .nav {
    display: none;
  }

  /* Mobile-only language toggle (replaces hidden nav) */
.mobile-lang-toggle {
    position: fixed;
    top: 16px;
    left: 16px;
    right: auto;
    z-index: 9999;


    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)), var(--gold-grad);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  }






  .mobile-lang-toggle:hover {
    /* Intentionally no hover lift/shadow: match requested behavior */
  }

  /* Remove mobile bottom Contact button only */
  .mobile-contact-btn {
    display: none;
  }



.mobile-contact-btn-left {
    right: 16px;
    left: auto;
}



  .mobile-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.25);
  }

  /* Mobile layout: center everything nicely and remove extra top spacing */

  header {
    padding: 0 7%;
    align-items: center;
    padding-top: 0;
    height: auto;
    min-height: 70vh;
    background-attachment: scroll;
  }

  .hero-content {
    text-align: center;
    margin: 0 auto;
  }

  /* Keep section content centered on mobile (desktop unaffected) */
  section {
    text-align: center;
  }

  section p,
  section .step {
    margin-left: auto;
    margin-right: auto;
  }

  section .step {
    padding-left: 0;
    border-left: none;
  }


  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  p {
    font-size: 1.02rem;
  }

  /* Contact CTA should never overflow on small screens */
.contact-btn {
    right: 16px;
    top: 16px;
    bottom: auto;
    font-size: 0.92rem;
    padding: 10px 16px;
    white-space: nowrap;
  }


  /* Images scale nicely on mobile */
  .section-image {
    height: 260px;
    margin-bottom: 34px;
  }

  /* Back to top button on mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Buttons smaller */
  .btn {
    font-size: 0.98rem;
    padding: 12px 22px;
    margin-top: 22px;
  }
}



